Use SH as shell

This commit is contained in:
1ndev 2024-12-14 09:11:34 -08:00
parent 19e3bc21a0
commit 8005fe750f
3 changed files with 72 additions and 74 deletions

View File

@ -1,8 +1,8 @@
#!/usr/bin/env bash #!/usr/bin/env sh
echo '' echo ''
echo "Disable read-only ? [y/n] (Enables System RW)" echo "Disable read-only ? [y/n] (Enables System RW)"
read -q inputrw read inputrw
if [[ $inputrw =~ ^[Yy]$ ]]; then if [[ $inputrw =~ ^[Yy]$ ]]; then
sudo steamos-readonly disable sudo steamos-readonly disable
sudo pacman-key --init sudo pacman-key --init
@ -10,73 +10,71 @@ if [[ $inputrw =~ ^[Yy]$ ]]; then
sudo pacman -Syu sudo pacman -Syu
sudo pacman -Sy archlinux-keyring sudo pacman -Sy archlinux-keyring
fi fi
echo ''
echo '' echo "Enable verbose boot ? [y/n]"
echo "Enable verbose boot ? [y/n]" read inputverbose
read -q inputverbose if [[ $inputverbose =~ ^[Yy]$ ]]; then
if [[ $inputverbose =~ ^[Yy]$ ]]; then
sudo awk '{gsub(/steamenv_quiet="loglevel=4 splash=verbose fbcon=nodefer"/, "steamenv_noisy=\"loglevel=4 splash=verbose fbcon=nodefer\"")} 1' /etc/grub.d/00_header > temp_file sudo awk '{gsub(/steamenv_quiet="loglevel=4 splash=verbose fbcon=nodefer"/, "steamenv_noisy=\"loglevel=4 splash=verbose fbcon=nodefer\"")} 1' /etc/grub.d/00_header > temp_file
sudo mv temp_file /etc/grub.d/00_header sudo mv temp_file /etc/grub.d/00_header
sudo update-grub sudo update-grub
fi fi
echo '' echo ''
echo "Install/Enable tailscale (VPN) ? [y/n]" echo "Install/Enable tailscale (VPN) ? [y/n]"
read -q inputvpn read inputvpn
if [[ $inputvpn =~ ^[Yy]$ ]]; then if [[ $inputvpn =~ ^[Yy]$ ]]; then
git clone https://github.com/tailscale-dev/deck-tailscale git clone https://github.com/tailscale-dev/deck-tailscale
cd deck-tailscale cd deck-tailscale
sudo bash tailscale.sh sudo bash tailscale.sh
source /etc/profile.d/tailscale.sh source /etc/profile.d/tailscale.sh
sudo tailscale up --operator=deck --ssh sudo tailscale up --operator=deck --ssh
fi fi
echo '' echo ''
echo "Install/Enable no machine (NX) ? [y/n]" echo "Install/Enable no machine (NX) ? [y/n]"
read -q inputrx read inputrx
if [[ $inputrx =~ ^[Yy]$ ]]; then if [[ $inputrx =~ ^[Yy]$ ]]; then
sudo steamos-readonly disable sudo steamos-readonly disable
sudo wget https://download.nomachine.com/download/8.14/Linux/nomachine_8.14.2_1_x86_64.tar.gz -P /usr sudo wget https://download.nomachine.com/download/8.14/Linux/nomachine_8.14.2_1_x86_64.tar.gz -P /usr
sudo tar -xvf /usr/nomachine_8.14.2_1_x86_64.tar.gz -C /usr/ sudo tar -xvf /usr/nomachine_8.14.2_1_x86_64.tar.gz -C /usr/
sudo /usr/NX/nxserver --install redhat sudo /usr/NX/nxserver --install redhat
sudo rm -r /usr/nomachine_8.14.2_1_x86_64.tar.gz sudo rm -r /usr/nomachine_8.14.2_1_x86_64.tar.gz
fi fi
echo '' echo ''
echo "Install Android Tools (adb) ? [y/n]" echo "Install Android Tools (adb) ? [y/n]"
read -q inputadb read inputadb
if [[ $inputadb =~ ^[Yy]$ ]]; then if [[ $inputadb =~ ^[Yy]$ ]]; then
sudo pacman -S --noconfirm android-tools sudo pacman -S --noconfirm android-tools
fi fi
echo '' echo ''
echo "Install Docker ? [y/n]" echo "Install Docker ? [y/n]"
read -q inputdocker read inputdocker
if [[ $inputdocker =~ ^[Yy]$ ]]; then if [[ $inputdocker =~ ^[Yy]$ ]]; then
sudo pacman -S --noconfirm docker sudo pacman -S --noconfirm docker
systemctl start docker systemctl start docker
fi fi
echo '' echo ''
echo "Install/Enable pip ? [y/n]" echo "Install/Enable pip ? [y/n]"
read -q inputpip read inputpip
if [[ $inputpip =~ ^[Yy]$ ]]; then if [[ $inputpip =~ ^[Yy]$ ]]; then
wget https://bootstrap.pypa.io/get-pip.py wget https://bootstrap.pypa.io/get-pip.py
python3 get-pip.py --user --break-system-packages python3 get-pip.py --user --break-system-packages
sudo rm get-pip.py sudo rm get-pip.py
fi fi
echo '' echo ''
echo "Install JDK 21 ? [y/n]" echo "Install JDK 21 ? [y/n]"
read -q inputjre read inputjre
if [[ $inputjre =~ ^[Yy]$ ]]; then if [[ $inputjre =~ ^[Yy]$ ]]; then
sudo pacman -Syy sudo pacman -Syy
sudo pacman -Su sudo pacman -Su
git clone https://github.com/BlackCorsair/install-jdk-on-steam-deck.git && \ git clone https://github.com/BlackCorsair/install-jdk-on-steam-deck.git && \
JDK_VERSION=21 ./install-jdk-on-steam-deck/scripts/install-jdk.sh && \ JDK_VERSION=21 ./install-jdk-on-steam-deck/scripts/install-jdk.sh && \
sudo rm -r ./install-jdk-on-steam-deck sudo rm -r ./install-jdk-on-steam-deck
fi fi
echo '' echo ''
echo "Install yay ? [y/n]" echo "Install yay ? [y/n]"
read -q inputyay read inputyay
if [[ $inputjre =~ ^[Yy]$ ]]; then if [[ $inputjre =~ ^[Yy]$ ]]; then
git clone https://aur.archlinux.org/yay-bin.git git clone https://aur.archlinux.org/yay-bin.git
cd yay-bin cd yay-bin
git checkout 96f90180a3cf72673b1769c23e2c74edb0293a9f git checkout 96f90180a3cf72673b1769c23e2c74edb0293a9f
makepkg -si makepkg -si
fi fi

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash #!/usr/bin/env sh
{ {
sudo cat << EOF sudo cat << EOF
[Unit] [Unit]

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash #!/usr/bin/env sh
sudo pacman -S zsh lsd git wget sudo pacman -S zsh lsd git wget
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k