From d36fe802f82bdfbafd452c3bc9a73b521cfd5cb3 Mon Sep 17 00:00:00 2001 From: Raven Scott Date: Mon, 4 Jul 2022 20:23:32 -0500 Subject: [PATCH] Code-Server 3.12 -> 4.5.0 --- alma/code-server | 8 ++++---- debian/code-server | 15 ++++++++++----- ubuntu/code-server | 13 +++++++++---- ubuntu/cs-test | 8 ++++---- ubuntu/starship | 2 +- ubuntu/starship-fish | 40 ++++++++++++++++++++++++++++++++++++++++ 6 files changed, 68 insertions(+), 18 deletions(-) create mode 100644 ubuntu/starship-fish diff --git a/alma/code-server b/alma/code-server index 0c8bc4d..eeb875f 100644 --- a/alma/code-server +++ b/alma/code-server @@ -12,11 +12,11 @@ echo "Done" notif "Welcome to the Code-Server Automated installer for Discord-Linux ARM, We are preparing your installation..." -notif "Installing Code-Server 3.12 using DPKG" +notif "Installing Code-Server 4.5.0 using RPM" -wget https://github.com/coder/code-server/releases/download/v3.12.0/code-server-3.12.0-arm64.rpm -rpm -U code-server-3.12.0-arm64.rpm -rm -f code-server-3.12.0-arm64.rpm +wget https://github.com/coder/code-server/releases/download/v4.5.0/code-server-4.5.0-arm64.rpm +rpm -U code-server-4.5.0-arm64.rpm +rm -f code-server-4.5.0-arm64.rpm notif "Downloading our configurations" diff --git a/debian/code-server b/debian/code-server index 18b0075..a4e46d0 100644 --- a/debian/code-server +++ b/debian/code-server @@ -1,5 +1,10 @@ #!/bin/bash +# +# THIS IS A TEST SCRIPT TO TEST THE HTTP BUG FOUND IN CODE SERVER WITH OUR MASTER SERVER +# THIS SHOULD NOT BE USED ON ACTIVE CONTAINERS + + echo "Welcome to the Discord-Linux CodeServer Automated installer" echo "This installer will automatically select a port on your container." echo "I will let you know how to access your installation when installation is complete." @@ -7,7 +12,7 @@ echo "" echo "downloading the Notification Bot" -wget -q -O /usr/bin/notif https://ssh.surf/debian/notif && chmod +x /usr/bin/notif +wget -q -O /usr/bin/notif https://ssh.surf/notif && chmod +x /usr/bin/notif echo "Done" notif "Welcome to the Code-Server Automated installer for Discord-Linux ARM, We are preparing your installation..." @@ -15,13 +20,13 @@ notif "Welcome to the Code-Server Automated installer for Discord-Linux ARM, We apt update DEBIAN_FRONTEND=noninteractive apt upgrade -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -y -wget -q https://github.com/coder/code-server/releases/download/v3.12.0/code-server_3.12.0_arm64.deb +wget -q https://github.com/coder/code-server/releases/download/v4.5.0/code-server_4.5.0_arm64.deb -notif "Installing Code-Server 3.12 using DPKG" +notif "Installing Code-Server code-server_4.5.0_arm64.deb using DPKG" -dpkg -i code-server_3.12.0_arm64.deb +dpkg -i code-server_4.5.0_arm64.deb -rm -f code-server_3.12.0_arm64.deb +rm -f code-server_4.5.0_arm64.deb notif "Downloading our configurations" diff --git a/ubuntu/code-server b/ubuntu/code-server index 4bb4fe5..a4e46d0 100644 --- a/ubuntu/code-server +++ b/ubuntu/code-server @@ -1,5 +1,10 @@ #!/bin/bash +# +# THIS IS A TEST SCRIPT TO TEST THE HTTP BUG FOUND IN CODE SERVER WITH OUR MASTER SERVER +# THIS SHOULD NOT BE USED ON ACTIVE CONTAINERS + + echo "Welcome to the Discord-Linux CodeServer Automated installer" echo "This installer will automatically select a port on your container." echo "I will let you know how to access your installation when installation is complete." @@ -15,13 +20,13 @@ notif "Welcome to the Code-Server Automated installer for Discord-Linux ARM, We apt update DEBIAN_FRONTEND=noninteractive apt upgrade -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -y -wget -q https://github.com/coder/code-server/releases/download/v3.12.0/code-server_3.12.0_arm64.deb +wget -q https://github.com/coder/code-server/releases/download/v4.5.0/code-server_4.5.0_arm64.deb -notif "Installing Code-Server 3.12 using DPKG" +notif "Installing Code-Server code-server_4.5.0_arm64.deb using DPKG" -dpkg -i code-server_3.12.0_arm64.deb +dpkg -i code-server_4.5.0_arm64.deb -rm -f code-server_3.12.0_arm64.deb +rm -f code-server_4.5.0_arm64.deb notif "Downloading our configurations" diff --git a/ubuntu/cs-test b/ubuntu/cs-test index 080df6b..a4e46d0 100644 --- a/ubuntu/cs-test +++ b/ubuntu/cs-test @@ -20,13 +20,13 @@ notif "Welcome to the Code-Server Automated installer for Discord-Linux ARM, We apt update DEBIAN_FRONTEND=noninteractive apt upgrade -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -y -wget -q https://github.com/coder/code-server/releases/download/v4.4.0/code-server_4.4.0_arm64.deb +wget -q https://github.com/coder/code-server/releases/download/v4.5.0/code-server_4.5.0_arm64.deb -notif "Installing Code-Server code-server_4.4.0_arm64.deb using DPKG" +notif "Installing Code-Server code-server_4.5.0_arm64.deb using DPKG" -dpkg -i code-server_4.4.0_arm64.deb +dpkg -i code-server_4.5.0_arm64.deb -rm -f code-server_4.4.0_arm64.deb +rm -f code-server_4.5.0_arm64.deb notif "Downloading our configurations" diff --git a/ubuntu/starship b/ubuntu/starship index 27a3551..eb4c0b2 100644 --- a/ubuntu/starship +++ b/ubuntu/starship @@ -24,7 +24,7 @@ fc-cache -fv echo "downloading preconfigured style" mkdir -vp ~/.config -wget -q -O ~/.config/starship.toml https://paste.discord-linux.com/85492450859640 +wget -q -O ~/.config/starship.toml https://paste.discord-linux.com/89021226408983 echo "done!" echo 'eval "$(starship init bash)"' >> ~/.bashrc diff --git a/ubuntu/starship-fish b/ubuntu/starship-fish new file mode 100644 index 0000000..3b0f286 --- /dev/null +++ b/ubuntu/starship-fish @@ -0,0 +1,40 @@ +#!/bin/bash +echo "Welcome to the Starship CLI Installer for Discord-Linux!" +echo "We will install and configure Starship for you automatically." + +sleep 2 +mkdir -vp ~/.config +mkdir -vp ~/.config/fish + + +sudo apt install fish -y + +wget -q -O /var/tools/starship_installer.sh https://starship.rs/install.sh + +chmod +x /var/tools/starship_installer.sh + +sh /var/tools/starship_installer.sh -f >/dev/null 2>&1 + +#/bin/bash +# install DroidSansMono Nerd Font --> u can choose another at: https://www.nerdfonts.com/font-downloads +apt install zip unzip -y +echo "[-] Download fonts [-]" +echo "https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/FiraCode.zip" +wget -q https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/FiraCode.zip +mkdir ~/.fonts -vp +unzip -ao FiraCode.zip -d ~/.fonts +rm -vf FiraCode.zip +sudo apt install fontconfig -y +fc-cache -fv + +echo "downloading preconfigured style" +wget -q -O ~/.config/starship.toml https://paste.discord-linux.com/89021226408983 +echo "done!" + +echo 'eval "$(starship init bash)"' >> ~/.bashrc +wget -O ~/.config/fish/config.fish https://paste.discord-linux.com/10390186724203 +usermod --shell /usr/bin/fish root + +echo "!!!!!CONFIGURATION COMPLETE!!!!!!!!!!" +echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" +echo "Please close the SSH Session and reconnect! "