forked from snxraven/autoinstallers
cleanup
This commit is contained in:
parent
c0ca2c996c
commit
c15e198d48
@ -12,7 +12,8 @@ https://ssh.surf/ubuntu/wp
|
||||
|
||||
|
||||
|
||||
Any script not listed in a "list" file is experimental and NOT meant forproduction use yet.
|
||||
Any script not listed in a "list" file is experimental and NOT meant for production use yet.
|
||||
|
||||
|
||||
Want Changes? - Feel free to submit a pull request!
|
||||
|
||||
|
55
ols-64
55
ols-64
@ -1,55 +0,0 @@
|
||||
#/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"
|
||||
|
||||
|
4
resolv
4
resolv
@ -1,4 +0,0 @@
|
||||
search vcn07112203.oraclevcn.com subnet07112203.vcn07112203.oraclevcn.com
|
||||
nameserver 169.254.169.254
|
||||
nameserver 127.0.0.11
|
||||
options ndots:0
|
29
test.go
29
test.go
@ -1,29 +0,0 @@
|
||||
// webserver that says hello
|
||||
|
||||
|
||||
package main
|
||||
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
|
||||
func main() {
|
||||
http.HandleFunc("/", handler)
|
||||
http.ListenAndServe(":8080", nil)
|
||||
}
|
||||
|
||||
|
||||
func handler(w http.ResponseWriter, r *http.Request) {
|
||||
fmt.Fprintf(w, "Hello, world!")
|
||||
}
|
||||
|
||||
|
||||
// Output:
|
||||
// $ go run test.go
|
||||
// Hello, world!
|
||||
// $
|
||||
|
||||
|
@ -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."
|
||||
|
@ -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
@ -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
|
Loading…
Reference in New Issue
Block a user