after-chroot.sh fix 1
This commit is contained in:
@@ -4,8 +4,8 @@ source env.sh
|
|||||||
|
|
||||||
|
|
||||||
#locale
|
#locale
|
||||||
echo -e "en_US.UTF-8 UTF-8" >> /etc/locale.gen && \
|
sed -i "s/#en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/g" /etc/locale.gen && \
|
||||||
echo -e "cs_CZ.UTF-8 UTF-8" >> /etc/locale.gen && \
|
sed -i "s/#cs_CZ.UTF-8 UTF-8/cs_CZ.UTF-8 UTF-8/g" /etc/locale.gen && \
|
||||||
locale-gen && \
|
locale-gen && \
|
||||||
echo LANG=cs_CZ.UTF-8 > /etc/locale.conf && \
|
echo LANG=cs_CZ.UTF-8 > /etc/locale.conf && \
|
||||||
export LANG=cs_CZ.UTF-8 && \
|
export LANG=cs_CZ.UTF-8 && \
|
||||||
@@ -32,7 +32,7 @@ passwd && \
|
|||||||
|
|
||||||
#bootloader
|
#bootloader
|
||||||
pacman -Sy && \
|
pacman -Sy && \
|
||||||
yes | pacman -S dosfstools freetype2 fuse2 gptfdisk libisoburn mtools os-prober grub efibootmgr && \
|
yes a | pacman -S dosfstools freetype2 fuse2 gptfdisk libisoburn mtools os-prober grub efibootmgr && \
|
||||||
sed -i "s/quiet/quiet resume=UUID=`blkid -s UUID -o value /dev/lvmSystem/volSwap`/g" /etc/default/grub && \
|
sed -i "s/quiet/quiet resume=UUID=`blkid -s UUID -o value /dev/lvmSystem/volSwap`/g" /etc/default/grub && \
|
||||||
sed -i "s/GRUB_CMDLINE_LINUX=\"\"/GRUB_CMDLINE_LINUX=\"cryptdevice=UUID=`blkid -s UUID -o value $DISK\2`:lvm-system\"/g" /etc/default/grub && \
|
sed -i "s/GRUB_CMDLINE_LINUX=\"\"/GRUB_CMDLINE_LINUX=\"cryptdevice=UUID=`blkid -s UUID -o value $DISK\2`:lvm-system\"/g" /etc/default/grub && \
|
||||||
sed -i "s/#GRUB_ENABLE_CRYPTODISK/GRUB_ENABLE_CRYPTODISK/g" /etc/default/grub && \
|
sed -i "s/#GRUB_ENABLE_CRYPTODISK/GRUB_ENABLE_CRYPTODISK/g" /etc/default/grub && \
|
||||||
@@ -51,24 +51,24 @@ passwd $USERNAME && \
|
|||||||
sed -i "s/# %wheel ALL=(ALL:ALL) NOPASSWD: ALL/%wheel ALL=(ALL:ALL) NOPASSWD: ALL/g" /etc/sudoers
|
sed -i "s/# %wheel ALL=(ALL:ALL) NOPASSWD: ALL/%wheel ALL=(ALL:ALL) NOPASSWD: ALL/g" /etc/sudoers
|
||||||
|
|
||||||
#network
|
#network
|
||||||
yes | pacman -S networkmanager networkmanager-openrc networkmanager-openvpn network-manager-applet && \
|
yes a | pacman -S networkmanager networkmanager-openrc networkmanager-openvpn network-manager-applet && \
|
||||||
rc-update add NetworkManager default && \
|
rc-update add NetworkManager default && \
|
||||||
|
|
||||||
#ssh
|
#ssh
|
||||||
yes | pacman -S openssh openssh-openrc && \
|
yes a | pacman -S openssh openssh-openrc && \
|
||||||
rc-update add sshd default && \
|
rc-update add sshd default && \
|
||||||
|
|
||||||
#other deamons
|
#other deamons
|
||||||
yes | pacman -S ntp ntp-openrc acpid acpid-openrc syslog-ng syslog-ng-openrc && \
|
yes a | pacman -S ntp ntp-openrc acpid acpid-openrc syslog-ng syslog-ng-openrc && \
|
||||||
rc-update add ntpd default && \
|
rc-update add ntpd default && \
|
||||||
rc-update add acpid default && \
|
rc-update add acpid default && \
|
||||||
rc-update add syslog-ng default && \
|
rc-update add syslog-ng default && \
|
||||||
|
|
||||||
#Usefull utils
|
#Usefull utils
|
||||||
yes | pacman -S vi artools bash-completion lsof strace && \
|
pacman -S vi artools bash-completion lsof strace && \
|
||||||
yes | pacman -S wget htop mc zip samba unrar p7zip unzip && \
|
yes a | pacman -S wget htop mc zip samba unrar p7zip unzip && \
|
||||||
yes | pacman -S hdparm smartmontools hwinfo dmidecode && \
|
yes a | pacman -S hdparm smartmontools hwinfo dmidecode && \
|
||||||
yes | pacman -S whois rsync nmap tcpdump inetutils net-tools ndisc6 && \
|
yes a | pacman -S whois rsync nmap tcpdump inetutils net-tools ndisc6
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user