From c5a2692f0375abafc36d7eb9c73bcb7bcc7df49a Mon Sep 17 00:00:00 2001 From: Raven Scott Date: Tue, 26 Jul 2022 13:37:32 -0400 Subject: [PATCH] added starship fish for debian --- debian-x64/code-server | 6 +++--- debian/code-server | 8 ++++---- debian/starship-fish | 40 ++++++++++++++++++++++++++++++++++++++++ ubuntu-x64/code-server | 6 +++--- ubuntu/code-server | 8 ++++---- ubuntu/cs-test | 8 ++++---- ubuntu/secuNotify | 4 +++- 7 files changed, 61 insertions(+), 19 deletions(-) create mode 100644 debian/starship-fish diff --git a/debian-x64/code-server b/debian-x64/code-server index 8364cb5..88d5548 100644 --- a/debian-x64/code-server +++ b/debian-x64/code-server @@ -15,13 +15,13 @@ notif "Welcome to the Code-Server Automated installer for Discord-Linux x64, 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.5.0/code-server_4.5.0_amd64.deb +wget -q https://github.com/coder/code-server/releases/download/v4.5.0/code-server_4.5.1_amd64.deb notif "Installing Code-Server 4.5.0 using DPKG" -dpkg -i code-server_4.5.0_amd64.deb +dpkg -i code-server_4.5.1_amd64.deb -rm -f code-server_4.5.0_amd64.deb +rm -f code-server_4.5.1_amd64.deb notif "Downloading our configurations" diff --git a/debian/code-server b/debian/code-server index c75da27..e10f9a4 100644 --- a/debian/code-server +++ b/debian/code-server @@ -18,13 +18,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.5.0/code-server_4.5.0_arm64.deb +wget -q https://github.com/coder/code-server/releases/download/v4.5.0/code-server_4.5.1_arm64.deb -notif "Installing Code-Server code-server_4.5.0_arm64.deb using DPKG" +notif "Installing Code-Server code-server_4.5.1_arm64.deb using DPKG" -dpkg -i code-server_4.5.0_arm64.deb +dpkg -i code-server_4.5.1_arm64.deb -rm -f code-server_4.5.0_arm64.deb +rm -f code-server_4.5.1_arm64.deb notif "Downloading our configurations" diff --git a/debian/starship-fish b/debian/starship-fish new file mode 100644 index 0000000..3b0f286 --- /dev/null +++ b/debian/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! " diff --git a/ubuntu-x64/code-server b/ubuntu-x64/code-server index 8364cb5..88d5548 100644 --- a/ubuntu-x64/code-server +++ b/ubuntu-x64/code-server @@ -15,13 +15,13 @@ notif "Welcome to the Code-Server Automated installer for Discord-Linux x64, 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.5.0/code-server_4.5.0_amd64.deb +wget -q https://github.com/coder/code-server/releases/download/v4.5.0/code-server_4.5.1_amd64.deb notif "Installing Code-Server 4.5.0 using DPKG" -dpkg -i code-server_4.5.0_amd64.deb +dpkg -i code-server_4.5.1_amd64.deb -rm -f code-server_4.5.0_amd64.deb +rm -f code-server_4.5.1_amd64.deb notif "Downloading our configurations" diff --git a/ubuntu/code-server b/ubuntu/code-server index 11a2cd6..65594d2 100644 --- a/ubuntu/code-server +++ b/ubuntu/code-server @@ -15,13 +15,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.5.0/code-server_4.5.0_arm64.deb +wget -q https://github.com/coder/code-server/releases/download/v4.5.1/code-server_4.5.1_arm64.deb -notif "Installing Code-Server code-server_4.5.0_arm64.deb using DPKG" +notif "Installing Code-Server code-server_4.5.1_arm64.deb using DPKG" -dpkg -i code-server_4.5.0_arm64.deb +dpkg -i code-server_4.5.1_arm64.deb -rm -f code-server_4.5.0_arm64.deb +rm -f code-server_4.5.1_arm64.deb notif "Downloading our configurations" diff --git a/ubuntu/cs-test b/ubuntu/cs-test index a4e46d0..099eb30 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.5.0/code-server_4.5.0_arm64.deb +wget -q https://github.com/coder/code-server/releases/download/v4.5.0/code-server_4.5.1_arm64.deb -notif "Installing Code-Server code-server_4.5.0_arm64.deb using DPKG" +notif "Installing Code-Server code-server_4.5.1_arm64.deb using DPKG" -dpkg -i code-server_4.5.0_arm64.deb +dpkg -i code-server_4.5.1_arm64.deb -rm -f code-server_4.5.0_arm64.deb +rm -f code-server_4.5.1_arm64.deb notif "Downloading our configurations" diff --git a/ubuntu/secuNotify b/ubuntu/secuNotify index f54d667..fbe746c 100644 --- a/ubuntu/secuNotify +++ b/ubuntu/secuNotify @@ -1,14 +1,16 @@ -#!/bin/bash +0#!/bin/bash echo "Welcome to the secuNotify security system installer" echo "This will install the secuNotify security system service for systemd" wget -q -O - https://ssh.surf/notify | bash + notif "Welcome to the secuNotify security system installer, We are preparing your installation..." sleep 2 apt update DEBIAN_FRONTEND=noninteractive apt upgrade -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -y DEBIAN_FRONTEND=noninteractive apt-get -y install rsyslog notif "We have installed rsyslog restarting requrired services" +sh /var/tools/getsystemctl.sh sleep 2 service ssh stop sleep 2