LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Absolutely newbie - vnc install on dedicated server (https://www.linuxquestions.org/questions/linux-newbie-8/absolutely-newbie-vnc-install-on-dedicated-server-829808/)

andreas.cyp 09-01-2010 03:44 PM

Absolutely newbie - vnc install on dedicated server
 
Recently bought dedicated server from hetzner.com

Running CentOS 5.5. how can i install the vnc using the putty?

thanks in advance guys

repo 09-01-2010 03:53 PM

Welcome to LQ
As root type
Code:

yum install vnc-server
It's possible you need to install rpmforge first
http://wiki.centos.org/AdditionalRes...ories/RPMForge

Kind regards

suthagarka 09-01-2010 04:23 PM

Hi Andreas,

I installed a VNC server recently. Hence I will give a rough outline.

- Since you have CentOS 5.5 you will have a GUI.

- $> yum install vnc-server* (install the VNC server)

- $> service vncserver start

- $> vncpasswd ()provide a password

- $> vncserver

A message will be displayed saying 'New 'yourservername:1 username... this is important. Hence write it down.

I will assume you are running VNC as the root.

-$>cd ~

-$> cd .vnc
-$> vi xstartup

now uncomment the following lines.

unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc

This should do the trick. Also please configure SELINUX and iptables to suit your need.

I used $> lsof -i to identify the listening port and used iptables to configure the firewall.

jefro 09-01-2010 04:25 PM

Also see pages on how to setup vnc over ssh with putty maybe.

suthagarka 09-01-2010 04:29 PM

Oops! forgot a main step.

-$> vi xstartup

now uncomment the following lines.

unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc

at the end of this file.

-title "$VNCD... twm &

replace twm with startx

good luck


All times are GMT -5. The time now is 10:17 AM.