Changes

Jump to: navigation, search

X inside VE

2,658 bytes added, 15:09, 9 December 2007
Using xdm
== Using xdm ==
It should be also possible First off, as of December 2007, I was never able to do remote X by running '''xdm''' successfully get an Xserver to run inside a VE andX have it's display output onto virtual-terminal 7 (the Xserver default), However, you can get an Xserver running on the hostnode to display output on virtual-query <remote IP> :1terminal 7 without any special configuration (as the hostnode has direct access to all necessary devices).
However === VE Configuration ===Install your desktop environment as you'd like (kde/gnome/xfce/etc) and ensure you install at least XDM. You can opt to use GDM/KDM as they also do the same job as XDM. The configuration for KDM/GDM is different than XDM's and I was only able to find one link on configuring GDM (more below). ===== XDM =====Configuring XDM requires editing 3 files: /etc/X11/xdm/xdm-config, /etc/X11/xdm/Xservers, /etc/X11/xdm/Xaccess In xdm-config, comment out the line where it says '''DisplayManager.requestPort: 0''' In Xservers, comment out the line ''':0 local /usr/bin/X :0 vt7'''' (this starts a local X server, which will fail) In Xaccess, uncomment the line with ''' * #any host can get a login window'''(Please keep in mind the security implications by the above line. Read the comments found in the file and set it appropriately) Once these changes have been made, start your xdm server by the appropriate startup script (typically similar to /etc/init.d/xdm start). That concludes the XDM setup in the VE. ===== GDM =====Edit the '''gdm.conf''' file and in xdmcp section, comment out the 0=standard line under the [servers] section - this will prevent gdm from trying to launch an X server on the local machine - it will simply listen for xdmcp requests. Also, change from VCAllocation=true to VTAllocation=false and comment out the FirstVT=7 line. Change the access restrictions (if any) to suit your needs and then start GDM. === Hostnode Configuration ===On the HN, you need to install ONLY a bare Xserver as per your OS instructions (use yum, emerge, apt, whatever). A desktop environment like XFCE/GNOME/KDE are entirely optional (and not recommended as it'll unnecessarily just chew up resources) on the HN. To get access to the XDM server, just start an Xserver with '''X -query <remote IP> :0''' (where :0 is the local display...set to :1 if you already have an X session running, or use Xnest) There are guides online on howto tunnel the XDMCP settings over ssh giving you security, in an otherwise INSECURE protocol. This approach has some major benefits over the VNC approach method described above, but also has a couple of major drawbacks. The biggest pro being XDMCP is much easierfaster than VNC (due to the way each deals with screen handling) and the biggest con being that you CANNOT connect to existing sessions like you can with VNC. Each time you logout, your programs are closed.
== External links ==
12
edits

Navigation menu