So here’s what you idiots (me and myself) need to do after reinstalling the VPS. This post is only meant for me.
- sudo without password
$USER ALL=(ALL) NOPASSWD: ALL
2. Install cyberpanel using root
sh <(curl https://cyberpanel.net/install.sh || wget -O - https://cyberpanel.net/install.sh)
3. Install npm and nodejs. Remember to look for the latest version
curl -sL https://deb.nodesource.com/setup_22.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh
sudo apt install nodejs
4. Install qbittorent nox
sudo apt install qbittorrent-nox
Create a service user for qBittorrent
sudo nano /etc/systemd/system/qbittorrent-nox.service
[Unit]
Description=qBittorrent NoX Terminal Application
After=network.target
[Service]
Type=forking
User=valsze
UMask=007
ExecStart=/usr/bin/qbittorrent-nox -d --webui-port=8080
Restart=on-failure
[Install]
WantedBy=multi-user.target
Enable qBittorrent service (run at boot) and start it
sudo systemctl start qbittorrent-nox.service
sudo systemctl enable qbittorrent-nox.service
sudo systemctl status qbittorrent-nox
Allow port 8080 on firewalld
sudo firewall-cmd --permanent --add-port=8080/tcp
sudo firewall-cmd --reload
Allow connection from outside
sudo nano ~/.config/qBittorrent/qBittorrent.conf
[Preferences]
WebUI\Port=8080
WebUI\Host=*
ProxyPass it
ProxyPass / http://ip:8080/
ProxyPassReverse / http://ip:8080/
5. Create downloads folder and edit the access. After that enable the transmission port.
chmod ugo+rwx downloads
6. Install LXDE and tightvncserver
sudo apt-get install nano xorg lxde-core tightvncserver
Run it once, kill it, and then do the following lines
nano ~/.vnc/xstartup
#add following lines
lxterminal &
/usr/bin/lxsession -s LXDE &
7. Install microsoft edge
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/edge stable main" > /etc/apt/sources.list.d/microsoft-edge-dev.list'
sudo rm microsoft.gpg
sudo apt update && sudo apt install microsoft-edge-stable
8. Install and customize rclone
[Unit]
Description=Rclone Mount Service
After=network.target
[Service]
ExecStart=/usr/bin/rclone mount VPS:vps /downloads --allow-other --vfs-cache-mode=writes
Restart=always
User=valsze
[Install]
WantedBy=multi-user.target
Allow other on fuse.conf
sudo nano /etc/fuse.conf
sudo systemctl daemon-reload
sudo systemctl enable rclone.service
sudo systemctl start rclone.service