13.07.2015 Views

Linux System Administration Recipes A Problem-Solution Approach

Linux System Administration Recipes A Problem-Solution Approach

Linux System Administration Recipes A Problem-Solution Approach

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CHAPTER 10 ■ THINGS GO IN, THINGS GO OUTHowever, the sshd daemon on the machine you’re logging into has to be set up to allow this. Addthis line to /etc/ssh/sshd_config on the remote machine, and restart sshd (/etc/init.d/sshd restart):X11Forwarding YesThis allows you to start graphical programs from your logged-in terminal window, but it won’t giveyou a desktop per se. You need to start everything from the command line. It’s a good idea to startanother xterm from the logged-in terminal window immediately, with xterm&, and then work from thatso that your original window always has a command line available in case something goes wrong in theworking window.10-6. Using GDM to Log in RemotelyIf you want to be able to fire up a full login screen remotely (and then kick off a full desktop by logging infrom there), you can use gdm, the standard Gnome display manager, to handle this for you. The KDEversion, kdm, will also do the same thing.For gdm, edit /etc/gdm/gdm.conf on the remote machine (on some systems this may be located at/etc/X11/gdm/gdm.conf). For kdm, edit /etc/kde3/kdm/kdmrc. In both cases, you must add a line in the[Xdmcp] section so it reads as follows:Enable=trueOr edit the Enable line appropriately if there’s already one there. Save the file, and restart the displaymanager so the change will take effect.■ Note You can also use the gdmsetup utility to configure gdm graphically, if you prefer.On the client side, you can use Xnest, a nested X server, to connect. This is available as the xnestxorgpackage for Debian/Ubuntu. Another option is Xephyr (the package xserver-xephyr). To use Xnest,type the following:Xnest -query remotemachine.example.com -geometry 1280x1024 :1You should get a login screen for your remote machine. You can give the IP address instead of thename if you prefer.TroubleshootingIf you get a security error, try this on your local machine (this adds the machine to the allowed list) andthen the Xnest line again:xhost remotemachine.com209Download at WoweBook.Com

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!