Install Remote Desktop RDP on Ubuntu VPS

Install [RDP] Remote Desktop GUI on Ubuntu VPS. 



As most of the VPS comes with pre-installed command line image of OS. I.e their is no GUI interface for the VPS , and you are left with command line interface to manage the VPS. 
So, if you are not familier with commands or command line interface you can make your VPS run GUI version of the OS installed. I.e you van make your VPS a remote desktop.

Steps to setup Remote Desktop on Ubuntu based VPS.


Login to the command line using #BitWise SSH Client, Putty or any other SSH client. 
If you don't know how to Login to Command line 


Now run the following commands one by one to install rdp on VPS.
apt-get update
apt-get upgrade
apt-get install ubuntu-desktop
dpkg-reconfigure xserver-xorg
If on running this command, you get an error like this 
dpkg-query: package 'xerver-xorg' is not installed and no information is availab
le
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
/usr/sbin/dpkg-reconfigure: xerver-xorg is not installed
Run the following command
apt-get install xserver-xorg
apt-get install tightvncserver
After successful execution of the following commands your VPS is now ready to run GUI.
Now run these commands to setup GUI.

vncserver :1 -geometry 1024x768 -depth 16 -pixelformat rgb565
To start VNC Server with the following configuration.
As soon you enter this command it will ask for a password [ max 6 digit], enter password of your choice, and this password will going to be used during making connection to RDP.
As the default VNC server doesn’t use Gnome window manager as default, to run Gnome as default we must do some changes on the configuration file. To do so, either edit the xtartup file manually or upload the one already modified.
To edit manually type "vi ~/.vnc/xstartup" and change the content similar to the given file, Save and restart Vps.
#!/bin/sh
xrdb $HOME/.Xresources
xsetroot -solid grey
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#x-window-manager &
gnome-session &
Or simply upload the already modified file using SFTP to [./vnc folder] [SFTP conenction is only available in #BitVise SSH Client] 
.

Now enter "restart" to restart vps and restart type "vncserver :1 -geometry 1024x768 -depth 16 -pixelformat rgb565" to start VNC.
Now download #Tight VNC Client [ Download ] and install.
Now open Tight Vnc Client and put your remote host as VPS-IP:1 [Suppose your vps IP is 192.168.6.7 . SO you need to enter 192.168.6.7:1 in Remote Host and press connect.

Now enter the password you entered earlier during the setup and your VPS is now ready with Graphical Interface.

Now you can manage your VPS using Graphical interface.
Source- help2cse.com

Leave a Reply

    Category

    Category

    Category