How do I start vino-server from putty?

Dan Purgert dan at djph.net
Sat Apr 18 12:10:22 UTC 2015


On Fri, 17 Apr 2015 19:11:26 +0000, Sterpu Victor wrote:

> Hello
> 
> I tried to start vino-server from a putty terminal but the error is:
> "Could not open X display"
> 
> Th console lines are:
> $ ls /tmp/.X*-lock /tmp/.X0-lock $ export DISPLAY=:0.0 $
> /usr/lib/vino/vino-server Invalid MIT-MAGIC-COOKIE-1 key **
> (vino-server:2213): WARNING **: Could not open X display When I started
> putty I checked "Enable X11 forwarding" and I wote 0.0 at X display
> location.

Check that:

1. You've enabled X forwarding over ssh (/etc/ssh/sshd_config -> 
"X11Forwarding yes").  Note that you might also need to play with the 
offset.

2. You've got the right Magic cookie for the user (assuming you're using 
cookie-auth ... especially if you log in as user_A and run the thing as 
user_B).  This information is in you .XAuthority file.

Then, it's as simple as running ssh -X user at host (from a *nix box), or 
PuTTY should also be just checking that X11 Forwarder box.  If you still 
can't get it to work, then you'll probably have to tell PuTTY which magic 
cookie to use (run the command "echo $DISPLAY" to get the display (e.g. 
"localhost:10.0"), then look for the cookie that matches (it'll be 
something like server/unix:10 MIT-MAGIC-COOKIE [cookie] )

HTH





More information about the ubuntu-users mailing list