From c4488915c2b549e9717e226315df92f27ee7b20b Mon Sep 17 00:00:00 2001 From: Raven Scott Date: Sat, 25 Jun 2022 19:42:27 -0500 Subject: [PATCH] Getting Starship worked out with a config style --- alma/list | 1 + alma/starship | 16 ++++++++++++++++ alpine/list | 3 ++- alpine/starship | 16 ++++++++++++++++ arch/list | 8 +++++++- arch/starship | 16 ++++++++++++++++ debian/list | 1 + debian/starship | 16 ++++++++++++++++ notify | 3 +++ ubuntu/list | 1 + ubuntu/notify copy | 3 +++ ubuntu/secuNotify | 4 ++-- ubuntu/starship | 33 +++++++++++++++++++++++++++++++++ ubuntu/wp | 3 ++- 14 files changed, 119 insertions(+), 5 deletions(-) create mode 100644 alma/starship create mode 100644 alpine/starship create mode 100644 arch/starship create mode 100644 debian/starship create mode 100644 notify create mode 100644 ubuntu/notify copy create mode 100644 ubuntu/starship diff --git a/alma/list b/alma/list index 811c7be..e865fa0 100644 --- a/alma/list +++ b/alma/list @@ -3,6 +3,7 @@ To install use: auto-install packageName PackageName - Software URL +starship-bash - https://starship.rs webmin - https://www.webmin.com/ osjs-webdesktop - https://www.os-js.org/ wp - https://wordpress.org/ diff --git a/alma/starship b/alma/starship new file mode 100644 index 0000000..d7ebb36 --- /dev/null +++ b/alma/starship @@ -0,0 +1,16 @@ +#!/bin/bash +echo "Welcome to the Starship CLI Installer for Discord-Linux!" +echo "We will install and configure Starship for you automatically." + +sleep 2 + +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 + +echo 'eval "$(starship init bash)"' >> ~/.bashrc +echo "!!!!!CONFIGURATION COMPLETE!!!!!!!!!!" +echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" +echo "Please close the SSH Session and reconnect! " diff --git a/alpine/list b/alpine/list index fa14bac..f73f894 100644 --- a/alpine/list +++ b/alpine/list @@ -2,4 +2,5 @@ Software Currently Avalible for Alpine: To install use: auto-install packageName PackageName - Software URL -Sorry, No installers have been coded yet :( \ No newline at end of file + +starship-bash - https://starship.rs diff --git a/alpine/starship b/alpine/starship new file mode 100644 index 0000000..d7ebb36 --- /dev/null +++ b/alpine/starship @@ -0,0 +1,16 @@ +#!/bin/bash +echo "Welcome to the Starship CLI Installer for Discord-Linux!" +echo "We will install and configure Starship for you automatically." + +sleep 2 + +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 + +echo 'eval "$(starship init bash)"' >> ~/.bashrc +echo "!!!!!CONFIGURATION COMPLETE!!!!!!!!!!" +echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" +echo "Please close the SSH Session and reconnect! " diff --git a/arch/list b/arch/list index e36394e..d44ab88 100644 --- a/arch/list +++ b/arch/list @@ -1 +1,7 @@ -There is no installers configured yet. \ No newline at end of file + +Software Currently Avalible for AlmaLinux: +To install use: auto-install packageName + +PackageName - Software URL + +starship-bash - https://starship.rs diff --git a/arch/starship b/arch/starship new file mode 100644 index 0000000..d7ebb36 --- /dev/null +++ b/arch/starship @@ -0,0 +1,16 @@ +#!/bin/bash +echo "Welcome to the Starship CLI Installer for Discord-Linux!" +echo "We will install and configure Starship for you automatically." + +sleep 2 + +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 + +echo 'eval "$(starship init bash)"' >> ~/.bashrc +echo "!!!!!CONFIGURATION COMPLETE!!!!!!!!!!" +echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" +echo "Please close the SSH Session and reconnect! " diff --git a/debian/list b/debian/list index 37b34e1..d389580 100644 --- a/debian/list +++ b/debian/list @@ -3,6 +3,7 @@ To install use: auto-install packageName PackageName - Software URL +starship-bash - https://starship.rs webmin - https://www.webmin.com/ osjs-webdesktop - https://www.os-js.org/ wp - https://wordpress.org/ diff --git a/debian/starship b/debian/starship new file mode 100644 index 0000000..d7ebb36 --- /dev/null +++ b/debian/starship @@ -0,0 +1,16 @@ +#!/bin/bash +echo "Welcome to the Starship CLI Installer for Discord-Linux!" +echo "We will install and configure Starship for you automatically." + +sleep 2 + +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 + +echo 'eval "$(starship init bash)"' >> ~/.bashrc +echo "!!!!!CONFIGURATION COMPLETE!!!!!!!!!!" +echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" +echo "Please close the SSH Session and reconnect! " diff --git a/notify b/notify new file mode 100644 index 0000000..2ef93b7 --- /dev/null +++ b/notify @@ -0,0 +1,3 @@ +#!/bin/bash +wget -q -O /usr/bin/notif https://ssh.surf/notif && chmod +x /usr/bin/notif +echo "Notify Install complete" \ No newline at end of file diff --git a/ubuntu/list b/ubuntu/list index 6bf1e0c..2536e22 100644 --- a/ubuntu/list +++ b/ubuntu/list @@ -3,6 +3,7 @@ To install simply use: auto-install packageName PackageName - Software URL +starship-bash - https://starship.rs webmin - https://www.webmin.com/ osjs-webdesktop - https://www.os-js.org/ wp - https://wordpress.org/ diff --git a/ubuntu/notify copy b/ubuntu/notify copy new file mode 100644 index 0000000..2ef93b7 --- /dev/null +++ b/ubuntu/notify copy @@ -0,0 +1,3 @@ +#!/bin/bash +wget -q -O /usr/bin/notif https://ssh.surf/notif && chmod +x /usr/bin/notif +echo "Notify Install complete" \ No newline at end of file diff --git a/ubuntu/secuNotify b/ubuntu/secuNotify index a7707cf..f54d667 100644 --- a/ubuntu/secuNotify +++ b/ubuntu/secuNotify @@ -12,7 +12,7 @@ notif "We have installed rsyslog restarting requrired services" sleep 2 service ssh stop sleep 2 -service rsyslog start +systemctl start rsyslog sleep 2 service ssh start sleep 2 @@ -34,7 +34,7 @@ chmod +x /var/tools/firewallctl notif "Downloading the secuNotify service and enabling it to run on boot" sleep 2 wget -O /etc/systemd/system/secuNotify.service https://ssh.surf/install/secu/secuNotify.service -sed -i 's/service ssh start/service rsyslog start \&\& service ssh start \&\& service secuNotify start/g' /start.sh +sed -i 's/service ssh start/systemctl start rsyslog \&\& service ssh start \&\& service secuNotify start/g' /start.sh sleep 2 service apache2 restart sleep 2 diff --git a/ubuntu/starship b/ubuntu/starship new file mode 100644 index 0000000..2d5773e --- /dev/null +++ b/ubuntu/starship @@ -0,0 +1,33 @@ +#!/bin/bash +echo "Welcome to the Starship CLI Installer for Discord-Linux!" +echo "We will install and configure Starship for you automatically." + +sleep 2 + +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 +unzip FiraCode.zip -d ~/.fonts +rm -vf FiraCode.zip +sudo apt install fontconfig -y +fc-cache -fv + +echo "downloading preconfigured style" +mkdir -vp ~/.config +wget -q -O ~/.config/starship.toml https://paste.discord-linux.com/87202532789681 + +echo "done!" + +echo 'eval "$(starship init bash)"' >> ~/.bashrc +echo "!!!!!CONFIGURATION COMPLETE!!!!!!!!!!" +echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" +echo "Please close the SSH Session and reconnect! " diff --git a/ubuntu/wp b/ubuntu/wp index 8dbe256..9a0f9d2 100644 --- a/ubuntu/wp +++ b/ubuntu/wp @@ -10,7 +10,8 @@ echo "downloading the Notification Bot" wget -q -O - https://ssh.surf/notify | bash apt update -DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends tzdata +DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends tzdata dialog + DEBIAN_FRONTEND=noninteractive apt upgrade -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -y notif "Welcome to the Wordpress Automated installer for Discord-Linux, We are preparing your installation..."