This tutorial walks through setting up a remote VNC session to control the desktop of your VPS. Using it, you can control programs like Firefox, Google Chrome. My favourite use is running Firefox to download a huge file remotely from a file sharing site like Hotfile. Downloading it normally on my home PC takes ages, during which Hotfile usually disconnects me.
Steps:
Install an OS on your VPS.
Update and upgrade your packages:
# apt-get update # apt-get upgrade
Installing for Gnome:
apt-get install ubuntu-desktop apt-get install gdm service gdm start apt-get install tightvncserver vncserver :1 -geometry 1366x768 vncserver -kill :1 vi ~/.vnc/xstartup
Add the following to the bottom of that file:
gnome-session &
Now start the server:
vncserver :1 -geometry 1024x768
Install TightVNC Windows client on your PC.
Run TightVNC Viewer, and add the following details, click Connect:
- IP Address: [your server’s main IP]
- Port: 5901 (or 5901, 5902 for desktop :2, etc)
- Password: [password you set earlier]
Instructions for KDE:
apt-get install kubuntu-desktop apt-get install kdm service kdm start apt-get install tightvncserver vncserver :1 -geometry 1366x768 vncserver -kill :1 vi ~/.vnc/xstartup
Add the following to the bottom of that file:
startkde &
Now start the server:
vncserver :1 -geometry 1024x768
Install TightVNC Windows client on your PC.
Run TightVNC Viewer, and add the following details, click Connect:
- IP Address: [your server’s main IP]
- Port: 5901 (or 5901, 5902 for desktop :2, etc)
- Password: [password you set earlier]
Joel G Mathew, known in tech circles by the pseudonym Droidzone, is an opensource and programming enthusiast.
He is a full stack developer, whose favorite languages are currently Python and Vue.js. He is also fluent in Javascript, Flutter/Dart, Perl, PHP, SQL, C and bash shell scripting. He loves Linux, and can often be found tinkering with linux kernel code, and source code for GNU applications. He used to be an active developer on XDA forums, and his tinkered ROMS used to be very popular in the early 2000s.
His favorite pastime is grappling with GNU compilers, discovering newer Linux secrets, writing scripts, hacking roms, and programs (nothing illegal), reading, blogging. and testing out the latest gadgets.
When away from the tech world, Dr Joel G. Mathew is a practising ENT Surgeon, busy with surgeries and clinical practise.