diff --git a/alma-x64/code-server b/alma-x64/code-server index eeb875f..9695fdf 100644 --- a/alma-x64/code-server +++ b/alma-x64/code-server @@ -7,16 +7,16 @@ 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/alma-x64/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..." notif "Installing Code-Server 4.5.0 using 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 +wget https://github.com/coder/code-server/releases/download/v4.5.0/code-server-4.5.0-amd64.rpm +rpm -U code-server-4.5.0-amd64.rpm +rm -f code-server-4.5.0-amd64.rpm notif "Downloading our configurations" @@ -37,17 +37,19 @@ sed -i "s/replaceme/${PASS}/g" ~/.config/code-server/config.yaml sed -i "s/#code-server/cd \/var\/tools \&\& pm2 start startCodeServer.json \&\& relayPort 8080/g" /start.sh - - -notif "Requesting port from API Server" -hostname=$(hostname) - -echo "Grabbing a port from your container from our API" -port=$(curl -s https://findport.ssh.surf/?id=$hostname) - -sed -i "s/127.0.0.1:8080/0.0.0.0:${port}/g" /root/.config/code-server/config.yaml +sed -i "s/127.0.0.1:8080/0.0.0.0:8080/g" /root/.config/code-server/config.yaml pm2 start /var/tools/startCodeServer.json -notif "The installation has completed. You may access your install at: http://ssh.surf:$port with the password $PASS" +sleep 5 +notif "Sleeping for 5 seconds to allow for code-server to start...." + +relayPort 8080 + +sleep 5 +notif "Sleeping to allow the relay to start..." + +url=$(grep -hPo "(?<=listening ).*" /root/.pm2/logs/Relay-8080-out.log | head -n 1 | sed 's/$/.virt.fun/') + +notif "The installation has completed. You may access your install at: https://$url with the password $PASS" \ No newline at end of file diff --git a/alma-x64/hastebin b/alma-x64/hastebin index ddaafc3..bf81a29 100644 --- a/alma-x64/hastebin +++ b/alma-x64/hastebin @@ -7,7 +7,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/alma-x64/notif && chmod +x /usr/bin/notif echo "Done" notif "Welcome to the HasteBin Automated installer for Discord-Linux, We are preparing your installation..." @@ -24,13 +24,8 @@ npm install npm update -notif "Requesting port from API Server" -hostname=$(hostname) -echo "Grabbing a port from your container from our API" -port=$(curl -s https://findport.ssh.surf/?id=$hostname) - -sed -i "s/7777/${port}/g" config.js +sed -i "s/7777/10002/g" config.js notif "Configuring HasteBin and starting it's server" @@ -38,18 +33,11 @@ wget -O hasteBinStart.json https://ssh.surf/install/hastebin cd /home/haste-server && pm2 start hasteBinStart.json -sed -i "s/#hastebin/cd \/home\/haste-server \&\& pm2 start hasteBinStart.json/g" /start.sh +sed -i "s/#hastebin/cd \/home\/haste-server \&\& pm2 start hasteBinStart.json \&\& relayPort 10002/g" /start.sh +relayPort 10002 +sleep 2 -echo "Your installation has completed, you may access your installation at: http://ssh.surf:$port" -echo "" -echo "" -echo "You may also create a subdomain for your installation by usoing the following commands in discord" -echo "+dns register yoursubdomainhere" -echo "+dns vhost $port" -echo "The installation will then be avalible over encrypted SSL at https://yoursubdomainhere.ssh.surf" - -echo "Sending discord notification to your account:" -notif "Your hastebin installation has completed, you may access your installation at: http://ssh.surf:$port" - +url=$(grep -hPo "(?<=listening ).*" /root/.pm2/logs/Relay-10002-out.log | head -n 1 | sed 's/$/.virt.fun/') +notif "Your HasteBin is now running at https://$url" diff --git a/alma-x64/list b/alma-x64/list index 00b8d33..03c2d9a 100644 --- a/alma-x64/list +++ b/alma-x64/list @@ -3,4 +3,7 @@ To install use: auto-install packageName PackageName - Software URL -Sorry, nothing here yet! Packages coming soon! \ No newline at end of file +starship, starship-fish - https://starship.rs +hastebin - https://www.toptal.com/developers/hastebin/about.md +code-server - https://github.com/coder/code-server +osjs-webdesktop - https://www.os-js.org/ diff --git a/alma-x64/mc b/alma-x64/mc index 82ead8d..2afef0c 100644 --- a/alma-x64/mc +++ b/alma-x64/mc @@ -11,7 +11,7 @@ echo "Sleeping for 30 seconds, please close this process if you do not wish to c sleep 30 -wget -q -O - https://ssh.surf/notify | bash +wget -q -O /usr/bin/notif https://ssh.surf/alma-x64/notif && chmod +x /usr/bin/notif notif "Welcome to the MineCraft Server installer for Discord-Linux, the installation is starting and will complete in 45 seconds" useradd mc mkdir -vp /home/mc @@ -45,7 +45,7 @@ echo "Grabbing a port from your container from our API" port=$(curl -s https://findport.ssh.surf/?id=$hostname) sleep 10 echo "Setting port in our config" -sed -i "s/25565/${port}/g" /home/mc/server.properties +sed -i "s/25565/25565/g" /home/mc/server.properties sed -i "s/max-players=20/max-players=4/g" /home/mc/server.properties sed -i "s/A Minecraft Server/An MC Server running on Discord-Linux/g" /home/mc/server.properties diff --git a/alma-x64/notif b/alma-x64/notif new file mode 100644 index 0000000..ead5728 Binary files /dev/null and b/alma-x64/notif differ diff --git a/alma-x64/osjs-webdesktop b/alma-x64/osjs-webdesktop index 028a5cf..5d8a5f9 100755 --- a/alma-x64/osjs-webdesktop +++ b/alma-x64/osjs-webdesktop @@ -12,7 +12,7 @@ yum install pam-devel -y sleep 5 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/alma-x64/notif && chmod +x /usr/bin/notif echo "Done" notif "Welcome to the OSjs Automated installer for Discord-Linux, we will begin by updating your system. Please wait..." diff --git a/alma-x64/starship b/alma-x64/starship index d7ebb36..5812212 100644 --- a/alma-x64/starship +++ b/alma-x64/starship @@ -10,6 +10,23 @@ 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 +yum 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" +mkdir -vp ~/.config +wget -q -O ~/.config/starship.toml https://paste.discord-linux.com/89021226408983 +echo "done!" + echo 'eval "$(starship init bash)"' >> ~/.bashrc echo "!!!!!CONFIGURATION COMPLETE!!!!!!!!!!" echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" diff --git a/alma-x64/starship-fish b/alma-x64/starship-fish new file mode 100644 index 0000000..ebf933c --- /dev/null +++ b/alma-x64/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 + + +yum 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 +yum 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 +yum 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/alma-x64/webmin b/alma-x64/webmin index 2e5449b..d2fed6f 100755 --- a/alma-x64/webmin +++ b/alma-x64/webmin @@ -9,7 +9,7 @@ echo "" 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/alma-x64/notif && chmod +x /usr/bin/notif echo "Done" notif "Welcome to the Webmin Automated installer for Discord-Linux, We are preparing your installation..." diff --git a/arch-x64/list b/arch-x64/list new file mode 100644 index 0000000..d44ab88 --- /dev/null +++ b/arch-x64/list @@ -0,0 +1,7 @@ + +Software Currently Avalible for AlmaLinux: +To install use: auto-install packageName + +PackageName - Software URL + +starship-bash - https://starship.rs diff --git a/arch-x64/starship b/arch-x64/starship new file mode 100644 index 0000000..d7ebb36 --- /dev/null +++ b/arch-x64/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/ubuntu/list b/ubuntu/list index 2536e22..332e599 100644 --- a/ubuntu/list +++ b/ubuntu/list @@ -12,14 +12,4 @@ code-server - https://github.com/coder/code-server jdk - https://adoptium.net/ mc - https://papermc.io/ secuNotify - https://docs.discord-linux.com/en/auto-installers#secunotify -send-to-log - https://docs.discord-linux.com/en/auto-installers#send-to-log-s2l - -Discord-Linux x64 Beta can use the following packages: - -Webmin-x64 - https://www.webmin.com/ -osjs-webdesktop-64 - https://www.os-js.org/ -wp-64 - https://wordpress.org/ -mc-64 - https://papermc.io/ -jdk - https://adoptium.net/ - - +send-to-log - https://docs.discord-linux.com/en/auto-installers#send-to-log-s2l \ No newline at end of file