LinuxQuestions.org
Have you listened to LQ Radio?
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Thread Tools Search this Thread
Old 06-29-2009, 03:20 AM   #1
shameertaj
LQ Newbie
 
Registered: Jun 2009
Posts: 8
Thanked: 0
Not able to change VNC port in ubuntu 9.04


[Log in to get rid of this advertisement]
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.

Thanks
Shameer

Last edited by shameertaj; 06-29-2009 at 03:25 AM..
shameertaj is offline     Reply With Quote
Old 06-30-2009, 10:00 AM   #2
tredegar
Senior Member
 
Registered: May 2003
Location: London, UK
Distribution: Kubuntu 8.04LTS, 9.10 (with KDE3.5.x)
Posts: 4,692
Thanked: 194
From man vncserver
Quote:
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.
Ok
Code:
tred@vaio:~$ which vncserver
/usr/bin/vncserver
tred@vaio:~$
So, open up /usr/bin/vncserver with your favourite editor and search for Port
I see this at line 127:
Code:
$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
tredegar is online now     Reply With Quote
Old 07-01-2009, 12:38 AM   #3
shameertaj
LQ Newbie
 
Registered: Jun 2009
Posts: 8
Thanked: 0

Original Poster
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
Shameer
shameertaj is offline     Reply With Quote

Reply


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


All times are GMT -5. The time now is 05:45 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Advertisement
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Click Here to receive a complimentary subscription courtesy of LQ.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration