Jump to content

is there a step-by-step guide to setup a VPS for OSBot for dummies somewhere?


ez11

Recommended Posts

10 hours ago, ez11 said:

will go through that

is there anything specific to osbot that is different on a lunix vps compared to just running it on a windows pc?

Not really, if you used Windows it'll be a better user experience but Linux is free and uses less computer resources. If you're using Kimsufi I know a template you can use for Windows 10 but you'll need to get a license for it within a few days. It apparently works for online.net and soyoustart but haven't tried it successfully yet.

9 hours ago, Burundanga said:

I used this one and works like a charm! 10/10
 

 

 

10 hours ago, Chris said:

 

The config doesn't use -localhost, means most of the time you'll be bruteforced. Btw VNC is probably one of the most common ways of hacking a Linux server. Secondly It doesn't install fail2ban which also alllows the attacker to bruteforce SSH which is very common, so if you have a shitty password expect it to be bruteforced eventually. Thirdly the repo for that installer no longer works so you'll need to use:

cd /var/lib/dpkg/info
sudo sed -i 's|JAVA_VERSION=8u151|JAVA_VERSION=8u162|' oracle-java8-installer.*
sudo sed -i 's|PARTNER_URL=http://download.oracle.com/otn-pub/java/jdk/8u151-b12/e758a0de34e24606bca991d704f6dcbf/|PARTNER_URL=http://download.oracle.com/otn-pub/java/jdk/8u162-b12/0da788060d494f5095bf8624735fa2f1/|' oracle-java8-installer.*
sudo sed -i 's|SHA256SUM_TGZ="c78200ce409367b296ec39be4427f020e2c585470c4eed01021feada576f027f"|SHA256SUM_TGZ="68ec82d47fd9c2b8eb84225b6db398a72008285fafc98631b1ff8d2229680257"|' oracle-java8-installer.*
sudo sed -i 's|J_DIR=jdk1.8.0_151|J_DIR=jdk1.8.0_162|' oracle-java8-installer.*
apt-get update && apt get upgrade -y
apt-get install oracle-java8-installer -y

If you CBA to use ^ then you can use my own install script that I use:

#!/bin/sh
adduser user
apt-get update && apt-get upgrade -y && apt-get install nano software-properties-common python-software-properties fail2ban nano xfce4 xfce4-goodies tightvncserver firefox htop nload -y
sleep 1s
myuser="user"
sleep 1s
mypasswd=$(tr -cd '[:alnum:]' < /dev/urandom | fold -w8 | head -n1)
sleep 1s
mkdir /home/$myuser/.vnc
sleep 1s
echo $mypasswd | vncpasswd -f > /home/$myuser/.vnc/passwd
sleep 1s
chown -R $myuser:$myuser /home/$myuser/.vnc
sleep 1s
chmod 0600 /home/$myuser/.vnc/passwd
sleep 1s
echo "VNC Pass: $mypasswd" >> ~/vncpasswd
sleep 1s
su - user -c "vncserver -kill :1"
su - user -c "mv ~/.vnc/xstartup ~/.vnc/xstartup.bak"
su - user -c "echo '#!/bin/bash' >> ~/.vnc/xstartup"
su - user -c "echo 'xrdb ~/.Xresources' >> ~/.vnc/xstartup"
su - user -c "echo 'startxfce4 &' >> ~/.vnc/xstartup"
su - user -c "chmod +x ~/.vnc/xstartup"
su - user -c "vncserver"
echo "[Unit]" >> /etc/systemd/system/vncserver@1.service
echo "Description=Start TightVNC server at startup" >> /etc/systemd/system/vncserver@1.service
echo "After=syslog.target network.target" >> /etc/systemd/system/vncserver@1.service
echo "" >> /etc/systemd/system/vncserver@1.service
echo "[Service]" >> /etc/systemd/system/vncserver@1.service
echo "Type=forking" >> /etc/systemd/system/vncserver@1.service
echo "User=user" >> /etc/systemd/system/vncserver@1.service
echo "PAMName=login" >> /etc/systemd/system/vncserver@1.service
echo "PIDFile=/home/user/.vnc/%H:%i.pid" >> /etc/systemd/system/vncserver@1.service
echo "ExecStartPre=-/usr/bin/vncserver -kill :%i > /dev/null 2>&1" >> /etc/systemd/system/vncserver@1.service
echo "ExecStart=/usr/bin/vncserver -depth 24 -geometry 1280x800 -localhost :%i" >> /etc/systemd/system/vncserver@1.service
echo "ExecStop=/usr/bin/vncserver -kill :%i" >> /etc/systemd/system/vncserver@1.service
echo "" >> /etc/systemd/system/vncserver@1.service
echo "[Install]" >> /etc/systemd/system/vncserver@1.service
echo "WantedBy=multi-user.target" >> /etc/systemd/system/vncserver@1.service
systemctl daemon-reload
systemctl enable vncserver@1.service
su - user -c "vncserver -kill :1"
systemctl start vncserver@1
add-apt-repository ppa:webupd8team/java -y
# temp fix to webupd8 issue
cd /var/lib/dpkg/info
sudo sed -i 's|JAVA_VERSION=8u151|JAVA_VERSION=8u162|' oracle-java8-installer.*
sudo sed -i 's|PARTNER_URL=http://download.oracle.com/otn-pub/java/jdk/8u151-b12/e758a0de34e24606bca991d704f6dcbf/|PARTNER_URL=http://download.oracle.com/otn-pub/java/jdk/8u162-b12/0da788060d494f5095bf8624735fa2f1/|' oracle-java8-installer.*
sudo sed -i 's|SHA256SUM_TGZ="c78200ce409367b296ec39be4427f020e2c585470c4eed01021feada576f027f"|SHA256SUM_TGZ="68ec82d47fd9c2b8eb84225b6db398a72008285fafc98631b1ff8d2229680257"|' oracle-java8-installer.*
sudo sed -i 's|J_DIR=jdk1.8.0_151|J_DIR=jdk1.8.0_162|' oracle-java8-installer.*
apt-get update && apt get upgrade -y
# end of fix.
apt-get install oracle-java8-installer -y
apt purge --autoremove xscreensaver -y
echo "DONE!"

https://paste.ofcode.org/dEjdtKeF5xcnpF2LjB6zu2

I've also got a video you can use to actually set it up:

 

 

  • Like 3
Link to comment
Share on other sites

4 minutes ago, John Cena said:

Not really, if you used Windows it'll be a better user experience but Linux is free and uses less computer resources. If you're using Kimsufi I know a template you can use for Windows 10 but you'll need to get a license for it within a few days. It apparently works for online.net and soyoustart but haven't tried it successfully yet.

 

The config doesn't use -localhost, means most of the time you'll be bruteforced. Btw VNC is probably one of the most common ways of hacking a Linux server. Secondly It doesn't install fail2ban which also alllows the attacker to bruteforce SSH which is very common, so if you have a shitty password expect it to be bruteforced eventually. Thirdly the repo for that installer no longer works so you'll need to use:


cd /var/lib/dpkg/info
sudo sed -i 's|JAVA_VERSION=8u151|JAVA_VERSION=8u162|' oracle-java8-installer.*
sudo sed -i 's|PARTNER_URL=http://download.oracle.com/otn-pub/java/jdk/8u151-b12/e758a0de34e24606bca991d704f6dcbf/|PARTNER_URL=http://download.oracle.com/otn-pub/java/jdk/8u162-b12/0da788060d494f5095bf8624735fa2f1/|' oracle-java8-installer.*
sudo sed -i 's|SHA256SUM_TGZ="c78200ce409367b296ec39be4427f020e2c585470c4eed01021feada576f027f"|SHA256SUM_TGZ="68ec82d47fd9c2b8eb84225b6db398a72008285fafc98631b1ff8d2229680257"|' oracle-java8-installer.*
sudo sed -i 's|J_DIR=jdk1.8.0_151|J_DIR=jdk1.8.0_162|' oracle-java8-installer.*
apt-get update && apt get upgrade -y
apt-get install oracle-java8-installer -y

If you CBA to use ^ then you can use my own install script that I use:


#!/bin/sh
adduser user
apt-get update && apt-get upgrade -y && apt-get install nano software-properties-common python-software-properties fail2ban nano xfce4 xfce4-goodies tightvncserver firefox htop nload -y
sleep 1s
myuser="user"
sleep 1s
mypasswd=$(tr -cd '[:alnum:]' < /dev/urandom | fold -w8 | head -n1)
sleep 1s
mkdir /home/$myuser/.vnc
sleep 1s
echo $mypasswd | vncpasswd -f > /home/$myuser/.vnc/passwd
sleep 1s
chown -R $myuser:$myuser /home/$myuser/.vnc
sleep 1s
chmod 0600 /home/$myuser/.vnc/passwd
sleep 1s
echo "VNC Pass: $mypasswd" >> ~/vncpasswd
sleep 1s
su - user -c "vncserver -kill :1"
su - user -c "mv ~/.vnc/xstartup ~/.vnc/xstartup.bak"
su - user -c "echo '#!/bin/bash' >> ~/.vnc/xstartup"
su - user -c "echo 'xrdb ~/.Xresources' >> ~/.vnc/xstartup"
su - user -c "echo 'startxfce4 &' >> ~/.vnc/xstartup"
su - user -c "chmod +x ~/.vnc/xstartup"
su - user -c "vncserver"
echo "[Unit]" >> /etc/systemd/system/vncserver@1.service
echo "Description=Start TightVNC server at startup" >> /etc/systemd/system/vncserver@1.service
echo "After=syslog.target network.target" >> /etc/systemd/system/vncserver@1.service
echo "" >> /etc/systemd/system/vncserver@1.service
echo "[Service]" >> /etc/systemd/system/vncserver@1.service
echo "Type=forking" >> /etc/systemd/system/vncserver@1.service
echo "User=user" >> /etc/systemd/system/vncserver@1.service
echo "PAMName=login" >> /etc/systemd/system/vncserver@1.service
echo "PIDFile=/home/user/.vnc/%H:%i.pid" >> /etc/systemd/system/vncserver@1.service
echo "ExecStartPre=-/usr/bin/vncserver -kill :%i > /dev/null 2>&1" >> /etc/systemd/system/vncserver@1.service
echo "ExecStart=/usr/bin/vncserver -depth 24 -geometry 1280x800 -localhost :%i" >> /etc/systemd/system/vncserver@1.service
echo "ExecStop=/usr/bin/vncserver -kill :%i" >> /etc/systemd/system/vncserver@1.service
echo "" >> /etc/systemd/system/vncserver@1.service
echo "[Install]" >> /etc/systemd/system/vncserver@1.service
echo "WantedBy=multi-user.target" >> /etc/systemd/system/vncserver@1.service
systemctl daemon-reload
systemctl enable vncserver@1.service
su - user -c "vncserver -kill :1"
systemctl start vncserver@1
add-apt-repository ppa:webupd8team/java -y
# temp fix to webupd8 issue
cd /var/lib/dpkg/info
sudo sed -i 's|JAVA_VERSION=8u151|JAVA_VERSION=8u162|' oracle-java8-installer.*
sudo sed -i 's|PARTNER_URL=http://download.oracle.com/otn-pub/java/jdk/8u151-b12/e758a0de34e24606bca991d704f6dcbf/|PARTNER_URL=http://download.oracle.com/otn-pub/java/jdk/8u162-b12/0da788060d494f5095bf8624735fa2f1/|' oracle-java8-installer.*
sudo sed -i 's|SHA256SUM_TGZ="c78200ce409367b296ec39be4427f020e2c585470c4eed01021feada576f027f"|SHA256SUM_TGZ="68ec82d47fd9c2b8eb84225b6db398a72008285fafc98631b1ff8d2229680257"|' oracle-java8-installer.*
sudo sed -i 's|J_DIR=jdk1.8.0_151|J_DIR=jdk1.8.0_162|' oracle-java8-installer.*
apt-get update && apt get upgrade -y
# end of fix.
apt-get install oracle-java8-installer -y
apt purge --autoremove xscreensaver -y
echo "DONE!"

https://paste.ofcode.org/dEjdtKeF5xcnpF2LjB6zu2

I've also got a video you can use to actually set it up:

 

 

looks like i got a lot of reading to do this weekend lol

big thanks my friend

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...