Remote Desktop via Xephyr and ssh tunnel

Server side
1. OpenSSH Server
2. Xorg Client & XAuth
3. gnome-session

ArchLinux Example

sudo pacman -S openssh gnome xorg-xauth
sudo /etc/rc.d/sshd start

Client side
1. OpenSSH Client
2. Xorg Server & Xephyr

ArchLinux Example

# In virtual terminal
X &
DISPLAY=:0.0 Xephyr -keybd ephyr,,,xkbrules=evdev,xkbmodel=evdev,xkblayout=us -fullscreen :1 &
DISPLAY=:1.0 ssh -Xf 172.16.28.13 gnome-session

Over!

Enable IME in password field in Firefox 4.0.1

Sometimes, you need software keyboard and uses GTK+ Input method module in password field in Firefox browser.

Why it doesn’t work?
May be security, Firefox disable input method context support in password entry widget by default.

How to make it works?
Modify file: widget/src/gtk2/nsGtkIMModule.h

// If software keyboard is needed in password field and uses GTK2 IM module
// for inputting characters, we need to enable IME in password field too.
//#ifdef MOZ_PLATFORM_MAEMO
#define NS_IME_ENABLED_ON_PASSWORD_FIELD 1
//#endif

Rebuild firefox.

Over!