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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER 10 ■ THINGS GO IN, THINGS GO OUTIf you get a “Server is already active for display” error, check that you remembered to put :1 on theend. Otherwise, the server will default to :0, which conflicts with your existing desktop. You can also try:2 if there’s a conflict with :1.10-7. Using VNC or Similar to Log in RemotelyVirtual Network Computing (VNC) is the fuller-featured way of setting up the capability discussed in theprevious recipe. But it’s a little more hassle. For Debian/Ubuntu, you need to install the vnc4serverpackage on the remote machine and the xvnc4viewer package on the client machine.Setting up the server as shown here will again allow you to use GDM and VNC together so that youcan both log in and log out of your remote machine. First edit the GDM config file at/etc/X11/gdm/gdm.conf. Then add or edit the RemoteGreeter line:RemoteGreeter = /usr/bin/gdmgreeterand add a line after the [xdmcp] line:[xdmcp]Enable=trueNext, edit /etc/services to add a VNC service. Add this line at the end of the file:vnc5900/tcpNow create a file /etc/xinetd.d/vnc like this:service vnc{disable = nosocket-type = streamprotocol = tcpgroup = ttywait= nouser= nobody}server = /usr/bin/Xvncserver_args= -inetd -query localhost -geometry 1024x768 -depth 16 -once -fp unix/:7100 -securitytypes=none■ Note You can run multiple resolutions by adding extra lines to /etc/services. Here’s an example:vnc800 5901/tcp210Download at WoweBook.Com

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

Saved successfully!

Ooh no, something went wrong!