Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 06-29-2009, 03:20 AM   #1
LQ Newbie
Registered: Jun 2009
Posts: 8

Rep: Reputation: 0
Not able to change VNC port in ubuntu 9.04

I am new to linux.
How do I change the listning port of the default VNC server in ubuntu 9.04(64 bit). In ubuntu 8.10 there was a tab called "Advanced" in the System-->Preferences-->Remote Desktop screen where I can specify "Use and alternative port". But this "Advanced" tab is not available in 9.04. The default port is 5900.
Can some body help me to solve this problem.


Last edited by shameertaj; 06-29-2009 at 03:25 AM.
Old 06-30-2009, 10:00 AM   #2
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,087

Rep: Reputation: 407Reputation: 407Reputation: 407Reputation: 407Reputation: 407
From man vncserver
vncserver is a Perl script which simplifies the process of starting an
Xvnc server. It runs Xvnc with appropriate options and starts some X
applications to be displayed in the VNC desktop.
tred@vaio:~$ which vncserver
So, open up /usr/bin/vncserver with your favourite editor and search for Port
I see this at line 127:
$vncPort = 5900 + $displayNumber;
So, I expect that if you changed the 5900 to some other number, and restarted your vncserver it would use a different range of ports.

But why do you want to do this?
If you are thinking it will be "more secure" you are mistaken.

If you want vnc to be more secure, you should tunnel it through ssh
Old 07-01-2009, 12:38 AM   #3
LQ Newbie
Registered: Jun 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks for the reply!!

I could do this by using $gconfig-editor where I can change the port in the remote desktop option.

Thanks for the support


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
PLESK [Solution] Change port to 23 (telnet) instead of default port 8443 x5452 Linux - Software 6 05-10-2009 06:58 AM
VNC on different port (80) blackhawk999 Linux - Software 2 11-06-2007 01:10 PM
If i change my apache port 80 to another port, can this affect google listings? Doomhammer Linux - Networking 4 03-16-2007 09:41 AM
VNC Port Cottsay Linux - Software 2 11-04-2006 10:27 PM
Change VNC server port nostracosa Linux - General 6 08-17-2005 09:20 PM > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 07:44 AM.

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