Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How to change port number in vino ubuntu 11.10?

Cannot find option to change from port 5900 on vino vnc 'remote desktop' window, nor can I find it via gconf-editor as was available in previous ubuntu version.

Please help

share|improve this question
    
You can install gconf-editor. –  Oli Oct 20 '11 at 22:23
    
I did add it, however there are not options for alternative port as in previous versions of ubuntu –  Matt Perry Oct 20 '11 at 22:24

3 Answers 3

Install dconf-editor

sudo apt-get install dconf-tools

Press alt+f2 and type dconf-editor

Navigate to desktop>gnome>remote access and change your port there, don't forget to tick the use-alternative-port option so that vino uses the one you set:

enter image description here

enter image description here

share|improve this answer
    
Thats a smart way. –  Luis Oct 21 '11 at 4:09

Failing finding the configuration, you could set up iptables (the kernel-level firewall) to redirect another port to 5900 using something like this:

iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 59000 -j REDIRECT --to-port 5900

Port 5900 would still be used for hosting it but so would port 59000.

I'm not sure if that it acceptable for your problem or not.

share|improve this answer

There is a brainstorm idea that was closed because it was thought of as a bug report: http://brainstorm.ubuntu.com/idea/25109/

Here is another question regarding this and the second answer mentions how to do it but I recommend using iptables: Enable remote VNC from the commandline?

UPDATE - As mentioned by the answer from Oli that would be the way to do it until the vino-preferences readds the option again.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.