| Trusted X11 forwarding - KDE Gnome on one screen securely |
|
trusted X11 forwarding - running gnome and KDE both on one screen, at the same time securely. The following assumes gnome is running on the current computer and "closet.squeezel.com" has KDE $ ssh -Y closet.squeezel.com $ startkde Or assume you want to run gnome on "closet.squeezel.com" $ ssh -Y closet.squeezel.com $ gnome-session By default Fedora Core allows ForwardX11 over ssh. Note you want to use the -Y option above and NOT -X. Suppose you want a remote "gnome-session" on ctl-alt-F12. Below is an example of getting the remote computer closet.squeezel.com, and you can still have the above configuration. First you must allow magic cookies for each server connection. $ MCOOKIE=$(mcookie) $ xauth add $(hostname)/unix:1 MIT-MAGIC-COOKIE-1 $MCOOKIE $ xauth add localhost/unix:1 MIT-MAGIC-COOKIE-1 $MCOOKIE Again, note that you have to add this for EACH connection. So if you wanted 2 as well $ MCOOKIE=$(mcookie) $ xauth add $(hostname)/unix:2 MIT-MAGIC-COOKIE-1 $MCOOKIE $ xauth add localhost/unix:2 MIT-MAGIC-COOKIE-1 $MCOOKIE On squeezel.squeezel.com create a new xterm. If :1 is take below try :2. The vt12 is for switching to ctl-alt-F12. $ xinit -- :1 vt12 Note, if you do not add the above cookies, you will get the follow error: Xlib: connection to ":1.0" refused by server Xlib: No protocol specified The screen may be hard to read. At this point ssh -Y to the remote computer. $ ssh -Y closet.squeezel.com $ gnome-session Yes, you will get errors about sound and some custom drivers is the remove computer has different hardware. After is loads, you can switch back and forth between session with (ctl-alt-F12) and (ctl-alt-F7)
|















Legitcode.com : All Rights Reserved