Tunnel X from Gutsy to Leopard

April 4th, 2008 at 22:08 · Filed Under Computing, Linux, Mac OS X 

I have been tunneling X from Linux to Tiger for almost two years without any problems and happy with it. After upgrading to Leopard, a disaster struck me. I was unable to access my Linux applications on my Ubuntu box. I used to do it with Tiger without any problems. When I ssh tunnel X from Gutsy to Leopard, I had keyboard problem. When I pressed some keys on the keyboard, I got numbers and some weird characters like close windows and minimize windows.

The problem lies within Apple’s new X11 in Leopard. The keyboard is not properly mapped after establishing the X tunnel. After searching the web and Ubuntu forum, I found a solution:


% ssh -X username@gutsy
% xmodmap -pke > ~/.keymap
% gnome-panel 1>/dev/null 2>/dev/null & xmodmap ~/.keymap

Just do xmodmap map once will do. After that, ssh into Ubuntu and invoke gnome-panel.

Comments

5 Responses to “Tunnel X from Gutsy to Leopard”

  • Kyle Richard on April 8th, 2008 9:34 1

    Adrian, thanks a bunch. You saved my day!

    I just finished upgrading to Leopard and the first thing I found out was that I was unable to run my Linux apps as usual. Same problem and thank God I found your post! Thanks once again.

  • Basir Ahmed on April 8th, 2008 17:40 2

    Thanks for the solution. It works on OpenSuSE as well.

    ahmed

  • Adrian Hoe on June 3rd, 2008 16:32 3

    This no longer works after the recent Ubuntu update.

  • Ruben on July 25th, 2008 6:44 4

    Anyone got this running with Hardy as server and Leopard as client?

    I’m having troubles getting the keymap to work properly.

  • Adrian Hoe on July 25th, 2008 8:55 5

    WIth the latest Leopard and Hardy updates, the keymap is working properly.

Leave a Reply