Starting the conversion for x64 installers, all images are updated to support this.

This commit is contained in:
Raven Scott 2022-07-05 09:37:21 -05:00
parent 8ee540d18d
commit 23e4721c1d
35 changed files with 1438 additions and 25 deletions

53
alma-x64/code-server Normal file
View File

@ -0,0 +1,53 @@
#!/bin/bash
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."
echo ""
echo "downloading the Notification Bot"
wget -q -O /usr/bin/notif https://ssh.surf/debian/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
notif "Downloading our configurations"
wget -q -O /var/tools/startCodeServer.json https://ssh.surf/install/code-server/startCodeServer.json
wget -q -O /var/tools/startCodeServer.sh https://ssh.surf/install/code-server/startCodeServer.sh
chmod +x /var/tools/startCodeServer.sh
mkdir -vp /root/.config/code-server/
wget -q -O /root/.config/code-server/config.yaml https://ssh.surf/install/code-server/config.yaml
PASS=$(openssl rand -hex 12)
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
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"

55
alma-x64/hastebin Normal file
View File

@ -0,0 +1,55 @@
#!/bin/bash
echo "Welcome to the Discord-Linux HasteBin Automated installer"
echo "This installer will automatically select a port on your container."
echo "I will let you know how to access your Webmin installation when installation is complete."
echo ""
echo "downloading the Notification Bot"
wget -q -O /usr/bin/notif https://ssh.surf/debian/notif && chmod +x /usr/bin/notif
echo "Done"
notif "Welcome to the HasteBin Automated installer for Discord-Linux, We are preparing your installation..."
sleep 3
cd /home
notif "Cloning into /home/haste-server"
git clone https://github.com/seejohnrun/haste-server.git
cd haste-server
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
notif "Configuring HasteBin and starting it's server"
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
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"

11
alma-x64/jdk Normal file
View File

@ -0,0 +1,11 @@
cat <<EOF > /etc/yum.repos.d/adoptium.repo
[Adoptium]
name=Adoptium
baseurl=https://packages.adoptium.net/artifactory/rpm/centos/8/$(uname -m)
enabled=1
gpgcheck=1
gpgkey=https://packages.adoptium.net/artifactory/api/gpg/key/public
EOF
yum remove java-1.8.0-openjdk-headless -y
yum update -y # update if you haven't already -y
yum install temurin-17-jdk -y

6
alma-x64/list Normal file
View File

@ -0,0 +1,6 @@
Software Currently Avalible for AlmaLinux:
To install use: auto-install packageName
PackageName - Software URL
Sorry, nothing here yet! Packages coming soon!

63
alma-x64/mc Normal file
View File

@ -0,0 +1,63 @@
#!/bin/bash
echo "Welcome to the Discord-Linux MineCraft Server Automated installer"
echo "This will install MineCraft Sever on your system"
echo "A random port on your container will be selected."
printf "\n"
echo "Running this sever does require the Discord-Linux Power Plan"
echo "You may purchase this plan here: https://store.discord-linux.com/product/discord-power-upgrade/"
printf "\n"
echo "Sleeping for 30 seconds, please close this process if you do not wish to continue"
sleep 30
wget -q -O - https://ssh.surf/notify | bash
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
chown mc:mc /home/mc
wget -O /home/mc/server.jar https://api.papermc.io/v2/projects/paper/versions/1.18.2/builds/357/downloads/paper-1.18.2-357.jar
wget -O /home/mc/minecraft-server.json https://ssh.surf/install/mc/minecraft-server.json
wget -q -O /home/mc/eula.txt https://ssh.surf/install/mc/eula
chown -R mc:mc
su - mc -c "cd /home/mc/ && pm2 start minecraft-server.json"
echo "sleeping 30 seconds to allow the server to generate"
sleep 30
echo "Shutting down the MC server for port configuration"
su - mc -c "cd /home/mc/ && pm2 delete all"
echo "killing any possible running instances of java"
pkill java -9
hostname=$(hostname)
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/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
echo "Starting the server for final launch"
su - mc -c "cd /home/mc/ && pm2 start minecraft-server.json"
chown mc:mc /home/mc
echo "========================="
echo "Installation is complete."
echo "========================="
echo "Your installation has completed, connect to your MineCraft Server using the following: ssh.surf:$port"
notif "Your installation has completed, connect to your MineCraft Server using the following: ssh.surf:$port"
echo "Please allow up to 5 minutes for the server to start up"

116
alma-x64/osjs-webdesktop Executable file
View File

@ -0,0 +1,116 @@
#!/bin/bash
echo "Welcome to the Discord-Linux OSjs 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 this process is complete."
echo ""
echo ""
echo ""
echo "Sleeping for 5 seconds, please close this process if you do not wish to continue"
yum groupinstall 'Development Tools' -y
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
echo "Done"
notif "Welcome to the OSjs Automated installer for Discord-Linux, we will begin by updating your system. Please wait..."
sh /var/tools/getsystemctl.sh
notif "The system has been updated and systemD has been patched, we are now starting to install the required NPM's for OSjs"
mkdir -vp /webos
cd /webos && git clone https://github.com/os-js/OS.js.git
mv /webos/OS.js /webos/OSjs
cd /webos/OSjs && rm -f package-lock.json
echo "Installing main packages..."
npm install
npm update
notif "The Core OSjs Packages have been installed, we are now starting to install the Applications for OSJS Via NPM"
npm install @osjs/textpad-application
npm install --save --production @osjs/draw-application
npm install --save --production @osjs/filemanager-application
npm install @osjs/settings-application
npm install @osjs/writer-application
npm install --save --production @osjs/xterm-application
npm install --save --production @osjs/ace-application
npm install @osjs/xpra-application
npm install @osjs/vnc-application
npm install @osjs/epub-application
npm install @osjs/webodf-application
npm install @osjs/wolfenstein3d-application
npm install @osjs/tetris-application
npm install @osjs/standard-theme
npm install @osjs/standard-dark-theme
npm install @osjs/gnome-icons
npm install @osjs/freedesktop-sounds
npm install --save --production @osjs/pam-auth
echo "Fixing detected vulns"
npm audit fix
notif "We are almost finished, we are now configuring OSjs and starting the server"
echo "removing config files..."
rm -f src/server/index.js
rm -f src/server/config.js
rm -f src/client/config.js
echo "Installing our own customized config files"
wget -O src/server/index.js https://ssh.surf/install/osjs/osjs_server_index.js
wget -O src/server/config.js https://ssh.surf/install/osjs/osjs_server_config.js
wget -O src/client/config.js https://ssh.surf/install/osjs/osjs_client_config.js
wget -O src/client/wallpaper.jpg https://ssh.surf/wallpaper.jpg
wget -O osjsStart.json https://ssh.surf/install/osjs/osjsStart.json
hostname=$(hostname)
echo "Grabbing a port from your container from our API"
port=$(curl -s https://findport.ssh.surf/?id=$hostname)
echo "Setting port in our config"
sed -i "s/CUSTOM/${port}/g" src/server/config.js
echo "Discovering all installed packages..."
npm run package:discover
echo "Building the client..."
npm run build
rm -f /webos/OSjs/dist/f4cfc6708cf6bfc17d4b1e775f594ae2.png
wget -O /webos/OSjs/dist/f4cfc6708cf6bfc17d4b1e775f594ae2.png https://ssh.surf/wallpaper.png
cd /webos/OSjs && pm2 start osjsStart.json
echo "cd /webos/OSjs && pm2 start osjsStart.json" > /var/tools/osjsboot.sh
chmod +x /var/tools/osjsboot.sh
sed -i "s/#osjs/cd \/webos\/OSjs \&\& pm2 start osjsStart.json /g" /start.sh
echo "Sending discord notification to your account:"
notif "Your OSJS installation has completed and should be running at this time, you may access your installation at: http://ssh.surf:$port"
echo "Your OSJs installation has completed and should be running at this time, you may access your installation at: http://ssh.surf:$port"

46
alma-x64/send-to-log Normal file
View File

@ -0,0 +1,46 @@
#!/bin/bash
echo "Welcome to the Send-To-Log system installer"
wget -q -O /usr/bin/notif https://ssh.surf/debian/notif && chmod +x /usr/bin/notif
sleep 2
yum groupinstall 'Development Tools' -y
yum install cmake -y
notif Welcome to the Send-To-Log installer, we will pick a port and provide you a URL when complete.
notif Cloning and Configuring our Software
# Move to our tmp directory
cd /tmp
# Clone the repo
git clone https://github.com/tsl0922/ttyd.git
# Move and build!
cd ttyd && mkdir build && cd build
# Install
cd /tmp/ttyd/build && cmake ..
cd /tmp/ttyd/build && make && sudo make install
# lets download our start up files backend and frontend.
wget -q -O /etc/systemd/system/s2l.service https://ssh.surf/install/s2l/s2l-service.service
wget -q -O /etc/s2l.json https://ssh.surf/install/s2l/s2l-pm2.json
wget -q -O /usr/bin/s2l https://ssh.surf/install/s2l/input.sh
chmod +x /usr/bin/s2l
hostname=$(hostname)
echo "Grabbing a port from your container from our API"
port=$(curl -s https://findport.ssh.surf/?id=$hostname)
sed -i "s/changeme/${port}/g" /etc/s2l.json
sed -i "s/#s2lmain/systemctl start s2l \&\& sleep 5/g" /start.sh
sed -i "s/#s2lsecond/pm2 start \/etc\/s2l.json/g" /start.sh
cd /
systemctl start s2l
sleep 5
pm2 start /etc/s2l.json
echo "Done, you may access s2l at http://ssh.surf:$port"
notif Done, you may access s2l at http://ssh.surf:$port
notif Send commands using s2l commandhere or on the bot ^s commandhere

16
alma-x64/starship Normal file
View File

@ -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! "

53
alma-x64/webmin Executable file
View File

@ -0,0 +1,53 @@
#!/bin/bash
echo "Welcome to the Discord-Linux Webmin Automated installer"
echo "This installer will automatically select a port on your container."
echo "I will let you know how to access your Webmin installation when installation is complete."
echo ""
echo ""
echo ""
echo ""
echo "downloading the Notification Bot"
wget -q -O /usr/bin/notif https://ssh.surf/debian/notif && chmod +x /usr/bin/notif
echo "Done"
notif "Welcome to the Webmin Automated installer for Discord-Linux, We are preparing your installation..."
yum install dnf-plugins-core -y
yum config-manager --set-enabled powertools
yum -y install perl perl-Net-SSLeay openssl perl-IO-Tty perl-Encode-Detect
cd /tmp
wget http://prdownloads.sourceforge.net/webadmin/webmin-1.994-1.noarch.rpm
rpm -U webmin-1.994-1.noarch.rpm
rm -f webmin-1.994-1.noarch.rpm
#notif "Finding a port and configuring webmin"
hostname=$(hostname)
echo "Grabbing a port from your container from our API"
port=$(curl -s https://findport.ssh.surf/?id=$hostname)
echo "Disabling SSL in webmin for proxy support"
sed -i 's/ssl=1/ssl=0/g' /etc/webmin/miniserv.conf
echo "disabling refer checks to allow for vhost usage"
sed -i 's/referers_none=1/referers_none=0/g' /etc/webmin/config
sed -i 's/referer=1/referer=0/g' /etc/webmin/config
echo "Setting Webmin Port"
sed -i "s/10000/${port}/g" /etc/webmin/miniserv.conf
service webmin start
sed -i "s/#webmin/service webmin start/g" /start.sh
#notif "Your webmin installation has completed, you may access your installation at: http://ssh.surf:$port"
echo "Your installation has completed, you may access your installation at: http://ssh.surf:$port"

155
alma-x64/wp Normal file
View File

@ -0,0 +1,155 @@
#!/bin/bash
echo "Welcome to the Discord-Linux Wordpress Automated installer"
echo "This will install Apache, MySQL, PHP and Wordpress on your system"
echo "The install will be located at /var/www/html"
echo "downloading the Notification Bot"
wget -q -O /usr/bin/notif https://ssh.surf/debian/notif && chmod +x /usr/bin/notif
notif "Welcome to the Wordpress Automated installer for Discord-Linux, We are preparing your installation..."
yum install dnf-plugins-core sudo -y
yum config-manager --set-enabled powertools
yum groupinstall 'Development Tools' -y
echo "Installing dependencies for Apache and PHP"
notif "Installing dependencies for Apache and PHP"
#sudo add-apt-repository ppa:ondrej/php
#sudo apt update
sudo dnf install httpd httpd-tools -y
sudo dnf module reset php -y
sudo dnf module enable php:7.4 -y
sudo dnf install php php-common php-opcache php-cli php-gd php-curl php-mysqlnd zip unzip php-zip php-intl php-gd php-pear php-devel -y
sudo dnf install mariadb-server -y
sed -i 's/AllowOverride None/AllowOverride All/g' /etc/apache2/apache2.conf
notif "Installing MySQL 8"
echo "Installing MySQL 8"
echo "Starting MySQL 8"
service mariadb start
notif "Sleeping for 5 seconds to allow MySQL to start."
echo "Sleeping 5 seconds to allow MySQL to start"
sleep 5
echo "creating database with random strings for dbname, dbuser and dbpassword"
DBNAME=$(openssl rand -hex 12)
USERNAME=$(openssl rand -hex 12)
PASSWORD=$(openssl rand -hex 12)
mysql -uroot -e "CREATE DATABASE $DBNAME CHARACTER SET utf8 COLLATE utf8_general_ci";
mysql -uroot -e "CREATE USER $USERNAME@'127.0.0.1' IDENTIFIED BY '$PASSWORD'";
mysql -uroot -e "GRANT ALL PRIVILEGES ON $DBNAME.* TO '$USERNAME'@'127.0.0.1'";
notif "We have created the following Database information for this installaton: Database:$DBNAME|Username:$USERNAME|Password:$PASSWORD"
echo "Database and user created."
#https://askubuntu.com/questions/916199/install-apt-show-versions-inside-an-ubuntu-docker-container
echo "Fixing SystemD"
sh /var/tools/getsystemctl.sh
echo "Installing Wordpress base"
wget -O /var/www/html/latest.tar.gz https://wordpress.org/latest.tar.gz
#unzip wordpress
cd /var/www/html && tar -zxvf latest.tar.gz
#change dir to wordpress
cd /var/www/html/wordpress
#copy file to parent dir
cp -rf . ..
#move back to parent dir
cd ..
#remove files from wordpress folder
rm -R wordpress
#create wp config
cp wp-config-sample.php wp-config.php
echo "Setting up WP DB Config"
#set database details with perl find and replace
perl -pi -e "s/database_name_here/$DBNAME/g" /var/www/html/wp-config.php
perl -pi -e "s/username_here/$USERNAME/g" /var/www/html/wp-config.php
perl -pi -e "s/password_here/$PASSWORD/g" /var/www/html/wp-config.php
perl -pi -e "s/localhost/127.0.0.1/g" /var/www/html/wp-config.php
#set WP salts
perl -i -pe'
BEGIN {
@chars = ("a" .. "z", "A" .. "Z", 0 .. 9);
push @chars, split //, "!@#$%^&*()-_ []{}<>~\`+=,.;:/?|";
sub salt { join "", map $chars[ rand @chars ], 1 .. 64 }
}
s/put your unique phrase here/salt()/ge
' /var/www/html/wp-config.php
#create uploads folder and set permissions
mkdir /var/www/html/wp-content/uploads
chmod 775 /var/www/html/wp-content/uploads
mkdir -p /var/www/temp
chmod 755 /var/www/temp
echo "Installing WP CLI"
# installing wp cli
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
php wp-cli.phar --info
chmod +x wp-cli.phar
sudo mv wp-cli.phar /usr/local/bin/wp
echo "Setting Custom ENV"
cd /var/www/html/ && wp config set FS_METHOD \'direct\' --raw --type=constant --allow-root
cd /var/www/html/ && wp config set 'WP_TEMP_DIR' \'/var/www/temp\' --raw --type=constant --allow-root
echo "repairing ownership and permissions"
chown -R www-data:www-data /var/www/html/
chown -R www-data:www-data /var/www/temp
find /var/www/html/ -type d -exec chmod 755 {} \;
find /var/www/html/ -type f -exec chmod 644 {} \;
rm -f /var/www/html/index.html
sed -i "3 iif ( (\!empty( \$_SERVER['HTTP_X_FORWARDED_HOST'])) || (\!empty( \$_SERVER['HTTP_X_FORWARDED_FOR'])) ) { \$_SERVER['HTTPS'] = 'on'; }" /var/www/html/wp-config.php
echo "Cleaning..."
#remove zip file
rm latest.tar.gz
echo "Setting serverName ENV"
echo "serverName $(hostname)" >> /etc/httpd/conf/httpd.conf
echo "starting webserver"
sudo systemctl start php-fpm
service httpd restart
sed -i "s/#wp/service mysql start \&\& service httpd start/g" /start.sh
echo "========================="
echo "Installation is complete."
echo "========================="
notif "The Wordpress installation is complete, please complete your installation at your HTTP Port."

View File

@ -15,13 +15,13 @@ notif "Welcome to the Code-Server Automated installer for Discord-Linux x64, We
apt update apt update
DEBIAN_FRONTEND=noninteractive apt upgrade -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -y 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_amd64.deb wget -q https://github.com/coder/code-server/releases/download/v4.5.0/code-server_4.5.0_amd64.deb
notif "Installing Code-Server 3.12 using DPKG" notif "Installing Code-Server 4.5.0 using DPKG"
dpkg -i code-server_3.12.0_amd64.deb dpkg -i code-server_4.5.0_amd64.deb
rm -f code-server_3.12.0_amd64.deb rm -f code-server_4.5.0_amd64.deb
notif "Downloading our configurations" notif "Downloading our configurations"

12
debian-x64/list Normal file
View File

@ -0,0 +1,12 @@
Software Currently Avalible within Discord-Linux:
To install simply use: auto-install packageName
PackageName - Software URL
wp - https://wordpress.org/
starship, starship-fish - https://starship.rs
webmin - https://www.webmin.com/
osjs-webdesktop - https://www.os-js.org/
wp - https://wordpress.org/
hastebin - https://www.toptal.com/developers/hastebin/about.md
send-to-log - https://docs.discord-linux.com/en/auto-installers#send-to-log-s2l

View File

@ -16,9 +16,10 @@ echo "Done"
notif "Welcome to the OSjs Automated installer for Discord-Linux, we will begin by updating your system. Please wait..." notif "Welcome to the OSjs Automated installer for Discord-Linux, we will begin by updating your system. Please wait..."
apt update apt update
DEBIAN_FRONTEND=noninteractive apt-get -y install build-essential libpam-dev perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl python2-minimal python2 dh-python 2to3 python-is-python3 unzip zip
DEBIAN_FRONTEND=noninteractive apt upgrade -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -y DEBIAN_FRONTEND=noninteractive apt upgrade -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -y
DEBIAN_FRONTEND=noninteractive apt-get -y install build-essential libpam-dev perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl python unzip zip
#https://askubuntu.com/questions/916199/install-apt-show-versions-inside-an-ubuntu-docker-container #https://askubuntu.com/questions/916199/install-apt-show-versions-inside-an-ubuntu-docker-container

33
debian-x64/starship Normal file
View File

@ -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
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 "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
echo "Please close the SSH Session and reconnect! "

40
debian-x64/starship-fish Normal file
View File

@ -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! "

View File

@ -9,6 +9,8 @@ echo ""
echo "" echo ""
apt update apt update
DEBIAN_FRONTEND=noninteractive apt-get -y install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl python2-minimal python2 dh-python 2to3 python-is-python3 unzip zip libio-pty-perl libauthen-pam-perl libnet-ssleay-perl
echo "downloading the Notification Bot" echo "downloading the Notification Bot"
wget -q -O /usr/bin/notif https://ssh.surf/notify-x64 && chmod +x /usr/bin/notif wget -q -O /usr/bin/notif https://ssh.surf/notify-x64 && chmod +x /usr/bin/notif
echo "Done" echo "Done"
@ -18,8 +20,6 @@ notif "Welcome to the Webmin Automated installer for Discord-Linux, We are prepa
DEBIAN_FRONTEND=noninteractive apt upgrade -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -y DEBIAN_FRONTEND=noninteractive apt upgrade -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -y
DEBIAN_FRONTEND=noninteractive apt-get -y install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl python unzip zip
#https://askubuntu.com/questions/916199/install-apt-show-versions-inside-an-ubuntu-docker-container #https://askubuntu.com/questions/916199/install-apt-show-versions-inside-an-ubuntu-docker-container
rm /etc/apt/apt.conf.d/docker-gzip-indexes rm /etc/apt/apt.conf.d/docker-gzip-indexes
apt-get -y purge apt-show-versions apt-get -y purge apt-show-versions

View File

@ -5,12 +5,14 @@ echo "This will install Apache, MySQL, PHP and Wordpress on your system"
echo "The install will be located at /var/www/html" echo "The install will be located at /var/www/html"
echo "downloading the Notification Bot" echo "downloading the Notification Bot"
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends tzdata
wget -q -O /usr/bin/notif https://ssh.surf/notify-x64 && chmod +x /usr/bin/notif wget -q -O /usr/bin/notif https://ssh.surf/notify-x64 && chmod +x /usr/bin/notif
chmod +x /usr/bin/notif
apt update apt update
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 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..." notif "Welcome to the Wordpress Automated installer for Discord-Linux, We are preparing your installation..."
@ -28,35 +30,37 @@ DEBIAN_FRONTEND=noninteractive sudo apt install php-gd php-curl php-xml php-soap
DEBIAN_FRONTEND=noninteractive sudo apt install libapache2-mod-php -y DEBIAN_FRONTEND=noninteractive sudo apt install libapache2-mod-php -y
sudo a2enmod php8.0
sudo a2enmod rewrite
sed -i 's/AllowOverride None/AllowOverride All/g' /etc/apache2/apache2.conf sed -i 's/AllowOverride None/AllowOverride All/g' /etc/apache2/apache2.conf
DEBIAN_FRONTEND=noninteractive apt-get -y install apache2 DEBIAN_FRONTEND=noninteractive apt-get -y install apache2
notif "Installing MariaDB" sudo a2enmod php8.0
echo "Installing MariaDB" sudo a2enmod rewrite
DEBIAN_FRONTEND=noninteractive apt-get -y install mariadb-server mariadb-client
notif "Installing MySQL"
echo "Installing MarMySQLaDB"
apt update
DEBIAN_FRONTEND=noninteractive apt-get -y install mysql-server mysql-client
echo "Starting MariaDB" echo "Starting MySQL "
service mariadb start service mysql start
notif "Sleeping for 10 seconds to allow MySQL to start." notif "Sleeping for 5 seconds to allow MySQL to start."
echo "Sleeping 10 seconds to allow MySQL to start" echo "Sleeping 5 seconds to allow MySQL to start"
sleep 10 sleep 5
echo "creating database with random strings for dbname, dbuser and dbpassword" echo "creating database with random strings for dbname, dbuser and dbpassword"
DBNAME=$(openssl rand -hex 12) DBNAME=$(openssl rand -hex 12)
USERNAME=$(openssl rand -hex 12) USERNAME=$(openssl rand -hex 12)
PASSWORD=$(openssl rand -hex 12) PASSWORD=$(openssl rand -hex 12)
mysql -uroot -e "CREATE DATABASE $DBNAME CHARACTER SET utf8 COLLATE utf8_general_ci"; mysql -uroot -e "CREATE DATABASE $DBNAME CHARACTER SET utf8 COLLATE utf8_general_ci";
mysql -uroot -e "CREATE USER $USERNAME@'localhost' IDENTIFIED BY '$PASSWORD'"; mysql -uroot -e "CREATE USER $USERNAME@'127.0.0.1' IDENTIFIED BY '$PASSWORD'";
mysql -uroot -e "GRANT ALL PRIVILEGES ON $DBNAME.* TO '$USERNAME'@'localhost'"; mysql -uroot -e "GRANT ALL PRIVILEGES ON $DBNAME.* TO '$USERNAME'@'127.0.0.1'";
notif "We have created the following Database information for this installaton:%0ADatabase:$DBNAME%0AUsername:$USERNAME%0APassword:$PASSWORD" notif "We have created the following Database information for this installaton: Database:$DBNAME|Username:$USERNAME|Password:$PASSWORD"
@ -89,6 +93,8 @@ echo "Setting up WP DB Config"
perl -pi -e "s/database_name_here/$DBNAME/g" /var/www/html/wp-config.php perl -pi -e "s/database_name_here/$DBNAME/g" /var/www/html/wp-config.php
perl -pi -e "s/username_here/$USERNAME/g" /var/www/html/wp-config.php perl -pi -e "s/username_here/$USERNAME/g" /var/www/html/wp-config.php
perl -pi -e "s/password_here/$PASSWORD/g" /var/www/html/wp-config.php perl -pi -e "s/password_here/$PASSWORD/g" /var/www/html/wp-config.php
perl -pi -e "s/localhost/127.0.0.1/g" /var/www/html/wp-config.php
#set WP salts #set WP salts
perl -i -pe' perl -i -pe'
@ -133,10 +139,11 @@ rm latest.tar.gz
echo "Setting serverName ENV" echo "Setting serverName ENV"
echo "serverName $(hostname)" >> /etc/apache2/apache2.conf echo "serverName $(hostname)" >> /etc/apache2/apache2.conf
sed -i "s/#wp/service mariadb start \&\& service apache2 start \&\& httpPort/g" /start.sh
echo "starting webserver" echo "starting webserver"
sed -i "s/#wp/service mysql start \&\& service apache2 start/g" /start.sh
service apache2 restart service apache2 restart
sleep 2 sleep 2
httpPort httpPort
@ -146,5 +153,3 @@ notif "Your WordPress site is available at: https://$url"
echo "=========================" echo "========================="
echo "Installation is complete." echo "Installation is complete."
echo "=========================" echo "========================="

0
ubun Normal file
View File

58
ubuntu-x64/code-server Normal file
View File

@ -0,0 +1,58 @@
#!/bin/bash
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."
echo ""
echo "downloading the Notification Bot"
wget -q -O /usr/bin/notif https://ssh.surf/notify-x64 && chmod +x /usr/bin/notif
echo "Done"
notif "Welcome to the Code-Server Automated installer for Discord-Linux x64, We are preparing your installation..."
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
notif "Installing Code-Server 4.5.0 using DPKG"
dpkg -i code-server_4.5.0_amd64.deb
rm -f code-server_4.5.0_amd64.deb
notif "Downloading our configurations"
wget -q -O /var/tools/startCodeServer.json https://ssh.surf/install/code-server/startCodeServer.json
wget -q -O /var/tools/startCodeServer.sh https://ssh.surf/install/code-server/startCodeServer.sh
chmod +x /var/tools/startCodeServer.sh
mkdir -vp /root/.config/code-server/
wget -q -O /root/.config/code-server/config.yaml https://ssh.surf/install/code-server/config.yaml
PASS=$(openssl rand -hex 12)
sed -i "s/replaceme/${PASS}/g" ~/.config/code-server/config.yaml
sed -i "s/#code-server/pm2 start \/var\/tools\/startCodeServer.json \&\& relayPort 8080/g" /start.sh
pm2 start /var/tools/startCodeServer.sh
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"

44
ubuntu-x64/hastebin Normal file
View File

@ -0,0 +1,44 @@
#!/bin/bash
echo "Welcome to the Discord-Linux HasteBin Automated installer"
echo "This installer will automatically select a port on your container."
echo "I will let you know how to access your Webmin installation when installation is complete."
echo ""
echo "downloading the Notification Bot"
wget -q -O /usr/bin/notif https://ssh.surf/notify-x64 && chmod +x /usr/bin/notif
echo "Done"
notif "Welcome to the HasteBin Automated installer for Discord-Linux, We are preparing your installation..."
apt update
DEBIAN_FRONTEND=noninteractive apt upgrade -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -y
cd /home
notif "Cloning into /home/haste-server"
git clone https://github.com/seejohnrun/haste-server.git
cd haste-server
npm install
npm update
sed -i "s/7777/10002/g" config.js
notif "Configuring HasteBin and starting it's server"
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 \&\& relayPort 10002/g" /start.sh
relayPort 10002
sleep 2
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"

12
ubuntu-x64/list Normal file
View File

@ -0,0 +1,12 @@
Software Currently Avalible within Discord-Linux:
To install simply use: auto-install packageName
PackageName - Software URL
wp - https://wordpress.org/
starship, starship-fish - https://starship.rs
webmin - https://www.webmin.com/
osjs-webdesktop - https://www.os-js.org/
wp - https://wordpress.org/
hastebin - https://www.toptal.com/developers/hastebin/about.md
send-to-log - https://docs.discord-linux.com/en/auto-installers#send-to-log-s2l

63
ubuntu-x64/mc Normal file
View File

@ -0,0 +1,63 @@
#!/bin/bash
echo "Welcome to the Discord-Linux MineCraft Server Automated installer"
echo "This will install MineCraft Sever on your system"
echo "A random port on your container will be selected."
printf "\n"
echo "Running this sever does require the Discord-Linux Power Plan"
echo "You may purchase this plan here: https://store.discord-linux.com/product/discord-power-upgrade/"
printf "\n"
echo "Sleeping for 30 seconds, please close this process if you do not wish to continue"
sleep 3
wget -q -O - https://ssh.surf/notifyx64 | bash
notif "Welcome to the MineCraft Server installer for Discord-Linux, the installation is starting and will complete in 45 seconds"
apt update
useradd mc
mkdir -vp /home/mc
chown mc:mc /home/mc
wget -O /home/mc/server.jar https://papermc.io/api/v2/projects/paper/versions/1.18.2/builds/234/downloads/paper-1.18.2-234.jar
wget -O /home/mc/minecraft-server.json https://ssh.surf/install/mc/minecraft-server.json
wget -q -O /home/mc/eula.txt https://ssh.surf/install/mc/eula
chown -R mc:mc /home/mc/
pm2 start /home/mc/minecraft-server.json
echo "sleeping 30 seconds to allow the server to generate"
sleep 30
echo "Shutting down the MC server for port configuration"
pm2 delete all
echo "killing any possible running instances of java"
pkill java -9
echo "Setting port in our config"
#sed -i "s/25565/${port}/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
echo "Starting the server for final launch"
pm2 start /home/mc/minecraft-server.json
relayPort 25565
echo "========================="
echo "Installation is complete."
echo "========================="
echo "Your installation has completed, connect to your MineCraft Server via hyper relay: $(hostname)-25565"
notif "Your installation has completed, connect to your MineCraft Server via via hyper relay: $(hostname)-25565"
echo "Please allow up to 5 minutes for the server to start up"

53
ubuntu-x64/ols-64 Normal file
View File

@ -0,0 +1,53 @@
#!/bin/bash
echo "Welcome to the Discord-Linux OpenLiteSpeed Automated installer for dLinux64"
echo "This installer will automatically select a port on your container."
echo "I will let you know how to access your Webmin installation when installation is complete."
echo ""
echo ""
echo ""
echo ""
apt update
echo "downloading the Notification Bot"
wget -q -O /usr/bin/notif https://ssh.surf/notify-x64 && chmod +x /usr/bin/notif
echo "Done"
notif "Welcome to the OpenLiteSpeed Automated installer for Discord-Linux, We are preparing your installation..."
DEBIAN_FRONTEND=noninteractive apt upgrade -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -y
DEBIAN_FRONTEND=noninteractive apt-get -y install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl python unzip zip
echo "deb http://rpms.litespeedtech.com/debian/ focal main" > /etc/apt/sources.list.d/lst_debian_repo.list
echo "#deb http://rpms.litespeedtech.com/edge/debian/ focal main" >> /etc/apt/sources.list.d/lst_debian_repo.list
wget -O /etc/apt/trusted.gpg.d/lst_debian_repo.gpg http://rpms.litespeedtech.com/debian/lst_debian_repo.gpg
wget -O /etc/apt/trusted.gpg.d/lst_repo.gpg http://rpms.litespeedtech.com/debian/lst_repo.gpg
sudo apt update
DEBIAN_FRONTEND=noninteractive apt-get -y install openlitespeed
DEBIAN_FRONTEND=noninteractive apt-get -y install lsphp80
/usr/local/lsws/bin/lswsctrl start
service webmin start
relayPort 7000
sleep 5
url=$(grep -hPo "(?<=listening ).*" /root/.pm2/logs/Relay-80-out.log | head -n 1 | sed 's/$/.virt.fun/')
backendurl=$(grep -hPo "(?<=listening ).*" /root/.pm2/logs/Relay-7000-out.log | head -n 1 | sed 's/$/.virt.fun/')
echo "referers=$url" >> /etc/webmin/config
sed -i "s/#ols/usr/local/lsws/bin/lswsctrl start \&\& relayPort 7000/g" /start.sh
notif "Your webserver URL is https://$url"
notif "Your ADMIN URL is https://$backendurl"
echo "Your installation has completed, you may access your installation at: https://$url"

126
ubuntu-x64/osjs-webdesktop Executable file
View File

@ -0,0 +1,126 @@
#!/bin/bash
echo "Welcome to the Discord-Linux OSjs 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 this process is complete."
echo ""
echo ""
echo ""
echo "Sleeping for 5 seconds, please close this process if you do not wish to continue"
sleep 5
echo "downloading the Notification Bot"
wget -q -O /usr/bin/notif https://ssh.surf/notify-x64 && 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..."
apt update
DEBIAN_FRONTEND=noninteractive apt-get -y install build-essential libpam-dev perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl python2-minimal python2 dh-python 2to3 python-is-python3 unzip zip
DEBIAN_FRONTEND=noninteractive apt upgrade -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -y
#https://askubuntu.com/questions/916199/install-apt-show-versions-inside-an-ubuntu-docker-container
sh /var/tools/getsystemctl.sh
notif "The system has been updated and systemD has been patched, we are now starting to install the required NPM's for OSjs"
mkdir -vp /webos
cd /webos && git clone https://github.com/os-js/OS.js.git
mv /webos/OS.js /webos/OSjs
cd /webos/OSjs && rm -f package-lock.json
echo "Installing main packages..."
npm install
npm update
notif "The Core OSjs Packages have been installed, we are now starting to install the Applications for OSJS Via NPM"
npm install @osjs/textpad-application
npm install --save --production @osjs/draw-application
npm install --save --production @osjs/filemanager-application
npm install @osjs/settings-application
npm install @osjs/writer-application
npm install --save --production @osjs/xterm-application
npm install --save --production @osjs/ace-application
npm install @osjs/xpra-application
npm install @osjs/vnc-application
npm install @osjs/epub-application
npm install @osjs/webodf-application
npm install @osjs/wolfenstein3d-application
npm install @osjs/tetris-application
npm install @osjs/standard-theme
npm install @osjs/standard-dark-theme
npm install @osjs/gnome-icons
npm install @osjs/freedesktop-sounds
npm install --save --production @osjs/pam-auth
echo "Fixing detected vulns"
npm audit fix
notif "We are almost finished, we are now configuring OSjs and starting the server"
echo "removing config files..."
rm -f src/server/index.js
rm -f src/server/config.js
rm -f src/client/config.js
echo "Installing our own customized config files"
wget -O src/server/index.js https://ssh.surf/install/osjs/osjs_server_index.js
wget -O src/server/config.js https://ssh.surf/install/osjs/osjs_server_config.js
wget -O src/client/config.js https://ssh.surf/install/osjs/osjs_client_config.js
wget -O src/client/wallpaper.jpg https://ssh.surf/wallpaper.jpg
wget -O osjsStart.json https://ssh.surf/install/osjs/osjsStart.json
echo "Setting port in our config"
sed -i "s/CUSTOM/10001/g" src/server/config.js
echo "Discovering all installed packages..."
npm run package:discover
echo "Building the client..."
npm run build
rm -f /webos/OSjs/dist/f4cfc6708cf6bfc17d4b1e775f594ae2.png
wget -O /webos/OSjs/dist/f4cfc6708cf6bfc17d4b1e775f594ae2.png https://ssh.surf/wallpaper.png
cd /webos/OSjs && pm2 start osjsStart.json
sleep 5
relayPort 10001
sleep 5
url=$(grep -hPo "(?<=listening ).*" /root/.pm2/logs/Relay-10001-out.log | head -n 1 | sed 's/$/.virt.fun/')
echo "cd /webos/OSjs && pm2 start osjsStart.json" > /var/tools/osjsboot.sh
chmod +x /var/tools/osjsboot.sh
sed -i "s/#osjs/cd \/webos\/OSjs \&\& pm2 start osjsStart.json \&\& relayPort 1001/g" /start.sh
notif "Your OSJS installation has completed and should be running at this time, you may access your installation at: https://$url"
echo "Your OSJs installation has completed and should be running at this time, you may access your installation at: https://$url"

54
ubuntu-x64/send-to-log Normal file
View File

@ -0,0 +1,54 @@
#!/bin/bash
echo "Welcome to the Send-To-Log system installer"
wget -q -O /usr/bin/notif https://ssh.surf/notify-x64 && chmod +x /usr/bin/notif
notif Welcome to the Send-To-Log installer, we will pick a port and provide you a URL when complete.
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 build-essential cmake git libjson-c-dev libwebsockets-dev screen
notif Cloning and Configuring our Software
# Move to our tmp directory
cd /tmp
# Clone the repo
git clone https://github.com/tsl0922/ttyd.git
# Move and build!
cd ttyd && mkdir build && cd build
# Install
cd /tmp/ttyd/build && cmake ..
cd /tmp/ttyd/build && make && sudo make install
# lets download our start up files backend and frontend.
wget -q -O /etc/systemd/system/s2l.service https://ssh.surf/install/s2l/s2l-service.service
wget -q -O /etc/s2l.json https://ssh.surf/install/s2l/s2l-pm2.json
wget -q -O /usr/bin/s2l https://ssh.surf/install/s2l/input.sh
chmod +x /usr/bin/s2l
hostname=$(hostname)
echo "Grabbing a port from your container from our API"
port=$(curl -s https://findport.ssh.surf/?id=$hostname)
sed -i "s/changeme/7070/g" /etc/s2l.json
sed -i "s/#s2lmain/systemctl start s2l && sleep 5/g" /start.sh
sed -i "s/#s2lsecond/pm2 start \/etc\/s2l.json/g" /start.sh
cd /
systemctl start s2l
sleep 5
pm2 start /etc/s2l.json
sleep 10
relayPort 7070
sleep 5
url=$(grep -hPo "(?<=listening ).*" /root/.pm2/logs/Relay-7070-out.log | head -n 1 | sed 's/$/.virt.fun/')
echo "Done, you may access s2l at https://$url"
notif Done, you may access s2l at https://$url
notif Send commands using s2l commandhere or on the bot ^s commandhere

33
ubuntu-x64/starship Normal file
View File

@ -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
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 "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
echo "Please close the SSH Session and reconnect! "

40
ubuntu-x64/starship-fish Normal file
View File

@ -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! "

65
ubuntu-x64/webmin Executable file
View File

@ -0,0 +1,65 @@
#!/bin/bash
echo "Welcome to the Discord-Linux Webmin Automated installer for dLinux64"
echo "This installer will automatically select a port on your container."
echo "I will let you know how to access your Webmin installation when installation is complete."
echo ""
echo ""
echo ""
echo ""
apt update
DEBIAN_FRONTEND=noninteractive apt-get -y install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl python2-minimal python2 dh-python 2to3 python-is-python3 unzip zip libio-pty-perl libauthen-pam-perl libnet-ssleay-perl
echo "downloading the Notification Bot"
wget -q -O /usr/bin/notif https://ssh.surf/notify-x64 && chmod +x /usr/bin/notif
echo "Done"
notif "Welcome to the Webmin Automated installer for Discord-Linux, We are preparing your installation..."
DEBIAN_FRONTEND=noninteractive apt upgrade -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -y
#https://askubuntu.com/questions/916199/install-apt-show-versions-inside-an-ubuntu-docker-container
rm /etc/apt/apt.conf.d/docker-gzip-indexes
apt-get -y purge apt-show-versions
rm /var/lib/apt/lists/*lz4
apt-get -o Acquire::GzipIndexes=false update
notif "We are building show versions, this may take a while..."
apt install -y apt-show-versions
sh /var/tools/getsystemctl.sh
wget -O /tmp/webmin-current.deb http://www.webmin.com/download/deb/webmin-current.deb
dpkg -i /tmp/webmin-current.deb
echo "Disabling SSL in webmin for proxy support"
sed -i 's/ssl=1/ssl=0/g' /etc/webmin/miniserv.conf
echo "disabling refer checks to allow for vhost usage"
sed -i 's/referers_none=1/referers_none=0/g' /etc/webmin/config
sed -i 's/referer=1/referer=0/g' /etc/webmin/config
rm -f /tmp/webmin_1.984_all.deb
service webmin start
relayPort 10000
sleep 5
url=$(grep -hPo "(?<=listening ).*" /root/.pm2/logs/Relay-10000-out.log | head -n 1 | sed 's/$/.virt.fun/')
echo "referers=$url" >> /etc/webmin/config
sed -i "s/#webmin/service webmin start \&\& relayPort 10000/g" /start.sh
notif "Your webmin installation has completed, you may access your installation at: https://$url"
echo "Your installation has completed, you may access your installation at: https://$url"

155
ubuntu-x64/wp Normal file
View File

@ -0,0 +1,155 @@
#!/bin/bash
echo "Welcome to the Discord-Linux Wordpress Automated installer"
echo "This will install Apache, MySQL, PHP and Wordpress on your system"
echo "The install will be located at /var/www/html"
echo "downloading the Notification Bot"
wget -q -O /usr/bin/notif https://ssh.surf/notify-x64 && chmod +x /usr/bin/notif
chmod +x /usr/bin/notif
apt update
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..."
echo "Installing dependencies for Apache and PHP"
DEBIAN_FRONTEND=noninteractive apt-get -y install build-essential unzip zip software-properties-common
notif "Installing dependencies for Apache and PHP"
#sudo add-apt-repository ppa:ondrej/php
#sudo apt update
DEBIAN_FRONTEND=noninteractive sudo apt install php -y
DEBIAN_FRONTEND=noninteractive sudo apt install php-gd php-curl php-xml php-soap php-mbstring php-mysql -y
DEBIAN_FRONTEND=noninteractive sudo apt install libapache2-mod-php -y
sed -i 's/AllowOverride None/AllowOverride All/g' /etc/apache2/apache2.conf
DEBIAN_FRONTEND=noninteractive apt-get -y install apache2
sudo a2enmod php8.0
sudo a2enmod rewrite
notif "Installing MySQL"
echo "Installing MarMySQLaDB"
apt update
DEBIAN_FRONTEND=noninteractive apt-get -y install mysql-server mysql-client
echo "Starting MySQL "
service mysql start
notif "Sleeping for 5 seconds to allow MySQL to start."
echo "Sleeping 5 seconds to allow MySQL to start"
sleep 5
echo "creating database with random strings for dbname, dbuser and dbpassword"
DBNAME=$(openssl rand -hex 12)
USERNAME=$(openssl rand -hex 12)
PASSWORD=$(openssl rand -hex 12)
mysql -uroot -e "CREATE DATABASE $DBNAME CHARACTER SET utf8 COLLATE utf8_general_ci";
mysql -uroot -e "CREATE USER $USERNAME@'127.0.0.1' IDENTIFIED BY '$PASSWORD'";
mysql -uroot -e "GRANT ALL PRIVILEGES ON $DBNAME.* TO '$USERNAME'@'127.0.0.1'";
notif "We have created the following Database information for this installaton: Database:$DBNAME|Username:$USERNAME|Password:$PASSWORD"
echo "Database and user created."
#https://askubuntu.com/questions/916199/install-apt-show-versions-inside-an-ubuntu-docker-container
echo "Fixing SystemD"
sh /var/tools/getsystemctl.sh
echo "Installing Wordpress base"
wget -O /var/www/html/latest.tar.gz https://wordpress.org/latest.tar.gz
#unzip wordpress
cd /var/www/html && tar -zxvf latest.tar.gz
#change dir to wordpress
cd /var/www/html/wordpress
#copy file to parent dir
cp -rf . ..
#move back to parent dir
cd ..
#remove files from wordpress folder
rm -R wordpress
#create wp config
cp wp-config-sample.php wp-config.php
echo "Setting up WP DB Config"
#set database details with perl find and replace
perl -pi -e "s/database_name_here/$DBNAME/g" /var/www/html/wp-config.php
perl -pi -e "s/username_here/$USERNAME/g" /var/www/html/wp-config.php
perl -pi -e "s/password_here/$PASSWORD/g" /var/www/html/wp-config.php
perl -pi -e "s/localhost/127.0.0.1/g" /var/www/html/wp-config.php
#set WP salts
perl -i -pe'
BEGIN {
@chars = ("a" .. "z", "A" .. "Z", 0 .. 9);
push @chars, split //, "!@#$%^&*()-_ []{}<>~\`+=,.;:/?|";
sub salt { join "", map $chars[ rand @chars ], 1 .. 64 }
}
s/put your unique phrase here/salt()/ge
' /var/www/html/wp-config.php
#create uploads folder and set permissions
mkdir /var/www/html/wp-content/uploads
chmod 775 /var/www/html/wp-content/uploads
mkdir -p /var/www/temp
chmod 755 /var/www/temp
echo "Installing WP CLI"
# installing wp cli
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
php wp-cli.phar --info
chmod +x wp-cli.phar
sudo mv wp-cli.phar /usr/local/bin/wp
echo "Setting Custom ENV"
cd /var/www/html/ && wp config set FS_METHOD \'direct\' --raw --type=constant --allow-root
cd /var/www/html/ && wp config set 'WP_TEMP_DIR' \'/var/www/temp\' --raw --type=constant --allow-root
echo "repairing ownership and permissions"
chown -R www-data:www-data /var/www/html/
chown -R www-data:www-data /var/www/temp
find /var/www/html/ -type d -exec chmod 755 {} \;
find /var/www/html/ -type f -exec chmod 644 {} \;
rm -f /var/www/html/index.html
sed -i "3 iif ( (\!empty( \$_SERVER['HTTP_X_FORWARDED_HOST'])) || (\!empty( \$_SERVER['HTTP_X_FORWARDED_FOR'])) ) { \$_SERVER['HTTPS'] = 'on'; }" /var/www/html/wp-config.php
echo "Cleaning..."
#remove zip file
rm latest.tar.gz
echo "Setting serverName ENV"
echo "serverName $(hostname)" >> /etc/apache2/apache2.conf
echo "starting webserver"
sed -i "s/#wp/service mysql start \&\& service apache2 start/g" /start.sh
service apache2 restart
sleep 2
httpPort
sleep 2
url=$(grep -hPo "(?<=listening ).*" /root/.pm2/logs/Relay-80-out.log | head -n 1 | sed 's/$/.virt.fun/')
notif "Your WordPress site is available at: https://$url"
echo "========================="
echo "Installation is complete."
echo "========================="

45
ubuntu-x64/xfce Normal file
View File

@ -0,0 +1,45 @@
#!/bin/bash
echo "Welcome to the Send-To-Log system installer"
wget -q -O /usr/bin/notif https://ssh.surf/notify-x64 && chmod +x /usr/bin/notif
sleep 2
apt update
notif "We are beginning to install the standard xserver...please wait...."
DEBIAN_FRONTEND=noninteractive apt upgrade -y
DEBIAN_FRONTEND=noninteractive apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -y install lightdm
DEBIAN_FRONTEND=noninteractive apt upgrade -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -y
DEBIAN_FRONTEND=noninteractive apt-get -y install xserver-xorg xserver-xorg-core xfonts-base xinit x11-xserver-utils
notif "We have installed the standard xserver, we are now setting up the Remote Software"
# Move to our tmp directory
cd /tmp
DEBIAN_FRONTEND=noninteractive sudo apt -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install -y xfwm4 xfce4-panel xfce4-settings xfce4-session xfce4-terminal xfdesktop4 xfce4-taskmanager tango-icon-theme lightdm-gtk-greeter
DEBIAN_FRONTEND=noninteractive apt-get --no-install-recommends -y install xrdp xorgxrdp thunar
wget -O /etc/xrdp/new.bmp https://ssh.surf/install/XRDP/new.bmp
mv /etc/xrdp/xrdp.ini /etc/xrdp/xrdp.ini.bak
wget -O /etc/xrdp/xrdp.ini https://ssh.surf/install/XRDP/xrdp.ini
echo xfce4-session > ~/.xsession
hostname=$(hostname)
echo "Grabbing a port from your container from our API"
port=$(curl -s https://findport.ssh.surf/?id=$hostname)
service xrdp start
sleep 3
relayPort 3389
sleep 5
url=$(grep -hPo "(?<=listening ).*" /root/.pm2/logs/Relay-3389-out.log | head -n 1 | sed 's/$/.virt.fun/')
echo "To connect use the topic: $hostname-3389"
notif "Use the client as decribed on the wiki for connection"