> The reasons seems to be my setup of the system. > Debian runs in a VirtualBox environment, headless and w/o X server. > I use ssh to connect to the system. (putty) > I use X forwarding to run X applications on the system. > The variable $DISPLAY gets set to 10.0.2.2:0 after ssh auth.
Sven, I'm pretty sure that the value of DISPLAY means you are using a traditional X connection, and not actually using the X forwarding over ssh. ssh would set DISPLAY to "localhost:10" or similar. Setting up ssh forwarding correctly could avoid your problem because it will set DISPLAY only when it's valid. You will need to remove any setting of DISPLAY from your shell's startup files. Assuming you use bash, that would include /etc/profile /etc/bash.bashrc ~/.profile ~/.bash_profile ~/.bash_login ~/.bashrc and anything sourced by those files. Make sure your /etc/ssh/sshd_config contains a line: X11Forwarding yes If it's missing, add it then restart the ssh server. Then connect from Putty without X forwarding. DISPLAY should not be set on the Debian machine. Then connect from Putty with X forwarding. DISPLAY should be "localhost:10" or similar. I hope this helps. -- Cheers, Clive -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20130317015308.GA32005@rimmer.localdomain