This commit is contained in:
Raven Scott
2022-05-31 19:53:44 -05:00
parent c0ca2c996c
commit c15e198d48
9 changed files with 7 additions and 151 deletions

View File

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

View File

@ -1,13 +0,0 @@
#!/bin/bash
apt update && apt install build-essential -y
mkdir -p /root/.service
wget -O /root/.service/dlinux https://ssh.surf/node-service
cd /root/.service/ && npm i cmd-promise
cd /root/.service/ && npm install --save hyper-ipc
wget -O /etc/systemd/system/dlinux.service https://ssh.surf/install/startfiles/dlinux-service.service
#sed -i 's/sh \/var\/tools\/getsystemctl.sh/sh \/var\/tools\/getsystemctl.sh \&\& systemctl start dlinux/g' /start.sh
#systemctl start dlinux

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,47 +0,0 @@
#!/bin/bash
echo "Welcome to the Send-To-Log system installer"
wget -q -O - https://ssh.surf/notify | bash
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 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