Installing Remote Desktop on a Linux VPS With CentOS 5

Status
Not open for further replies.

vizoomer

Active Member
2,327
2010
216
0
Hey guyz .... just thought i would post a way of installing the Remote Desktop on a linux VPS ... some 256mb of ram will also able to run it but ofc it'll be slow xD .. i recommend 512mb of ram as minmum for it ...

for this i'll be using the software putty which many of u use ;) ...

this is basically installing the VNC on the VPS ....

ok so here i go ....

login to ur putty and then start with these codes for installing required packages for VNC We'll need the X Window System and a desktop environment :-

Code:
 yum groupinstall "X Window System"
yum groupinstall "GNOME Desktop Environment"
Over here if u want u can install another Desktop Environment ... but GNOME uses less resources and thats what i use 8-)

also the installation will take some time ... so i'll say patience gives sweets fruits :P ...

NOTE: If you receive the error “Error: Missing Dependency: libgaim.so.0 is needed by package nautilus-sendto” while installing GNOME Desktop Environment, you will need to manually install nautilus-sendto with the following procedure:


Code:
yum install yum-utils

yumdownloader nautilus-sendto

rpm -Uvh --nodeps nautilus-sendto[PRESS TAB]
VNC Server will be installed with the X-Window System .. so now the thing left is to edit it's config for ur needs , so now type in :-


Code:
nano /etc/sysconfig/vncservers
and then look for

Code:
VNCSERVERS="2:root" # display port and username
VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -nohttpd -localhost
Now over here in the 1st line 2:root defines 2 as the port no. u want for the RDP and root is the username ...
the 2nd line 800x600 is the reselution ... edit it as per ur needs ;)


now ur RDP is almost ready ... all u gotta do is give it a password ...

type in :-

Code:
vncpasswd
and then add the pass ...


now add the thing is to run these Remote Desktop u 1st need to start it manually from the ssh by typing


Code:
vncserver :2
where 2 is ur port no. that u assined !!


now ... not so fast .... theres one more thing u need to edit ...

starting the server was just to chk if it was working fine ...


now kill it's process :-


Code:
vncserver -kill :2
Now edit the local config file in the root folder :-


Code:
nano ~/.vnc/xstartup
We want to have VNC load GNOME instead of the default twm. Look for the following line :-


Code:
twm &
And replace it with

Code:
gnome-session &
Ok now save and restart the VNC :

Code:
vncserver :2
ok .. now it's all done ... remember the port no. and then add it to ur ip for example :-

Code:
87.68.xx.xx:2
this will be the ip u'll use for connecting .... now what to use to connect ?
will i use TightVNC for this

u can also use RealVNC

now all u gotta do is type the ip with the port in this way

20800351441381992300.png


and then connect to it ... type in the password of the VNC that u made in the SSH ... and voila ... ur remote desktop is ready !!!

it may look something of thing kind ;)

[slide]http://baamba.com/images/23121571249649785954.png[/slide]

Enjoy guyz ;) ... and ofc u may need to install the softwarez that u want in it :P ... my 1st tutorial :D .... hope u all like it :)
 
82 comments
ok come on yahoo & install it for me ;) kthxbai

Anyways nice tut. Would mke u install it for me >_< but latter.

Nice would be less, Gr8 Tut dude. Keep them coming :D
 
and then look for

VNCSERVERS="2:root" # display port and username
VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -nohttpd -localhost
Now over here in the 1st line 2:root defines 2 as the port no. u want for the RDP and root is the username ...
the 2nd line 800x600 is the reselution ... edit it as per ur needs


now ur RDP is almost ready ... all u gotta do is give it a password ...


please specify more these
 
and then look for

VNCSERVERS="2:root" # display port and username
VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -nohttpd -localhost
Now over here in the 1st line 2:root defines 2 as the port no. u want for the RDP and root is the username ...
the 2nd line 800x600 is the reselution ... edit it as per ur needs


now ur RDP is almost ready ... all u gotta do is give it a password ...


please specify more these
what u want in it ?
 
does this work only if the centos is installed as a desktop or does it work if the centos is installed as a server too? centos server = terminal only i think
 
/\ ... see if the user that u entered already exists .... like if u enter root ... then it's already there ..... also see if the Desktop Environment is correctly entered .....
 
Did it on ubuntu.. commands varied but took little effort :P

Heres the screen:

[slide]http://lulzimg.com/i3/d35e7c47.png[/slide]
 
Status
Not open for further replies.
Back
Top