Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-02-2008, 03:49 PM   #1
LQ Newbie
Registered: Feb 2006
Posts: 17

Rep: Reputation: 0
Activating VNC

Hi I'm renting my own vps in an effort to learn as much as I can about running a Linux based web server. It's Fedore Core 4 and I'm very keen to access the graphical desktop of my VPS remotely.

I would like to download tightvnc as a client on my windows laptop.

My question is what needs to be done on my vps in order for it to work.

I've read some stuff although don't quite understand it. I believe I would set the remote desktop preferences to "allow others to view my desktopp" however then I would need to secure vnc with ssh tunnelling. Can someone help me out abit please.
Old 02-02-2008, 06:28 PM   #2
Registered: Feb 2007
Posts: 54

Rep: Reputation: 15
secure vnc

assuming you have vnc set up right here is an explanation of what you need to do...


or if you understand this...follow it...

Edit /etc/sysconfig/vncservers uncomment lines
Name server…set port access
Su user switch user
Vncpasswd user set password for user
Vncserver –localhost sets file conditions
Vncserver –user starts vncserver
Vncserver –kill :2 kills vncstarted
Vim /home/.vnc/xstartup edit lines #twm&
firestarter allow port 5901 for lan clients
Vncserver –localhost starts up vncserver
Chkconfig –level 2345 vncserver on sets startup on vnc

Ssh –l ‘computername’ –L 15902:localhost:5904 ‘hostname’
Vncviewer –encoding hextile

here are a couple more links


Last edited by Tinkster; 02-08-2008 at 02:36 PM. Reason: spam removed
Old 02-02-2008, 07:38 PM   #3
Registered: Feb 2003
Location: St. Louis
Distribution: RedHat 8
Posts: 262

Rep: Reputation: 31
all you have to do is make sure vncserver start at boot. If you want X to start when you connect to the server. Uncomment these two lines in /home/userid/.vnc/xstartup

exec /etc/X11/xinit/xinitrc
Old 02-02-2008, 07:40 PM   #4
Registered: Feb 2003
Location: St. Louis
Distribution: RedHat 8
Posts: 262

Rep: Reputation: 31
Also, when you first startup vncserver on the server it will request you to create a password. This will be your password to connect to your session. Don't forget vncserver session is tied with your user account.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
rhel4 vnc problem, where to configure GUI vnc server? hocheetiong Linux - Newbie 1 10-24-2007 07:05 AM
VNC connection to SUSE Linux 10 from a Windows XP VNC Viewer determin2excel Linux - Software 13 10-03-2007 10:38 AM
trying to remote to vnc server through vnc client on XP. Kilahchris Linux - Newbie 3 11-22-2006 04:50 PM
windows vnc client and linux vnc server problem tungaw2001 Linux - Software 8 06-17-2006 01:06 AM
Activating VNC-server from putty (ssh) bulls_i Linux - Networking 4 10-21-2005 08:52 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:52 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration