Update install

This commit is contained in:
zenobit 2020-08-23 09:51:15 +00:00
parent 4a6903c651
commit fd7f94fb56
1 changed files with 9 additions and 14 deletions

23
install
View File

@ -1,17 +1,13 @@
#!/bin/bash
# Void Linux post-install script
echo "$(tput setaf 1) Starting Void Linux post-install script$(tput sgr 0)"
# Install packages
sudo xbps-install -Su
sudo xbps-install -Sy $(cat INSTALL/1_repos)
sudo xbps-install -Sy $(cat INSTALL/2_base)
cd ~/bin
git clone https://gitlab.com/awesome-void/awesomeVoid /dotfiles
cd ~/bin/install
# Choose gpu
echo "$(tput setaf 1) Which GPU you using?$(tput sgr 0)"
read -p "NVIDIA (n) or AMD (a) or QEMU (q)[n/a/q] " -n 1 video
@ -30,10 +26,8 @@ echo
echo "Invalid option."
exit 1
fi
#sudo xbps-install -Sy $(cat INSTALL/3_nvidia)
sudo xbps-install -Sy $(cat INSTALL/4_desktop)
# Choose window manager
echo "$(tput setaf 1) Which windows manager you want use?$(tput sgr 0)"
read -p "OPENBOX (o) or AWESOME (a) or SOMETHING ELSE (s) [o/a/n] " -n 1 vm
@ -52,36 +46,37 @@ echo
echo "Invalid option."
exit 1
fi
#sudo xbps-install -Sy $(cat INSTALL/6_media)
#sudo xbps-install -Sy $(cat INSTALL/7_virtual)
#sudo xbps-install -Sy $(cat INSTALL/8_big)
#sudo xbps-install -Sy $(cat INSTALL/)
#sudo xbps-install -Sy $(cat INSTALL/)
# nested virtualization AMD
#modprobe kvm-amd
# make fish base shell
sudo usermod --shell /bin/fish zen
echo ". ~/.config/fish/aliases.fish" >> ~/.config/fish/config.fish
echo "alias xterm 'sakura'" >> ~/.config/fish/aliases.fish
echo alias xterm='sakura' >> ~/.bashrc
# čeština
sudo nano /etc/default/libc-locales
sudo xbps-reconfigure -f glibc-locales
# creating bare repository
cd ~/
mkdir .void
cd .void
git init --bare
# Install services
sudo ln -s /etc/sv/dbus /var/service
#sudo ln -s /etc/sv/lightdm /var/service
sudo ln -s /etc/sv/acpid /var/service
#sudo ln -s /etc/sv/dbus /var/service
#sudo ln -s /etc/sv/dbus /var/service
# Choose window manager
echo "$(tput setaf 1) Which windows manager you want use?$(tput sgr 0)"
read -p "Spustit lightdm nyní? ano nebo ne? [a/n] " -n 1 lightdm
echo
if [[ $lightdm = "y" ]]; then
sudo ln -s /etc/sv/lightdm /var/service
elif [[ $lightdm = "n" ]]; then
fi