geekvenue.net

Welcome to Chucktips Hardware HELP WITH DEAD OS Installing FreeBSD Miscellaneous
 faq
 search
 add article
 cool-stuff
 how-to
 main
 tips


HOWTO: Setup a GUI login with XDM
X Windows Posted by Jason on Wednesday May 30, @11:28PM
from the dept.
If you would like to configure your system to use a graphical interface to login and start X-Windows, try using xdm, the X-Windows Display Manager.

Before setting up xdm, you should configure and install X-Windows. You should also setup your .xinitrc file and test it with the startx command. Once you are happy with your X-Windows setup, you can use xdm to provide the graphical login.

There are two items that need to be configured for a basic xdm setup. You need to modify the /etc/ttys file, and you need to create a .xsession file for each user.


[Modify your /etc/ttys file]

The reason you modify the ttys file, is so the gui login (xdm) will automatically display itself on startup.

To modify your /etc/ttys file, you must login as root. Use the editor of your choice (vi, ee etc.) and modify the line that reads:

ttyv8 "/usr/X11R6/bin/xdm -nodaemon" xterm off secure

Changing the word off to on like so:
ttyv8 "/usr/X11R6/bin/xdm -nodaemon" xterm on secure

Now save the file and exit from your editor.


[Create a .xsession file]

Just as startx uses a .xinitrc file in each users home directory for its configuration, xdm uses a .xsession file also located in each users home directory. Since the format is the same, you can either copy .xinitrc to .xsession or simply sym-link them with the ln -s command. To copy your .xinitrc file use the cp command like so:

Login: user1
Password: ********

$ cd /usr/home/user1
$ cp .xinitrc .xsession

You will also need to set the read and execute permissions on the .xsession file using the chmod commmand.

$ chmod 755 .xsession

All I have in my .xsession file is a command to start kde.

  #####
  # .xsession
  exec startkde


[Test your configurartion]

To test your configuration, you can reboot your system and the xdm GUI login should appear after the standard startup messages. Alternatively, you can login as root and execute the command xdm.

To toggle between your gui login and other ttys use ctrl-alt and f1 through f8 for text consoles and f9 for xdm.

Note: Thats ctrl-alt-f1 for console 1 and ctrl-alt-f9 for the xdm gui login.

If you would like more information on these commands, I recommend the man pages.

  man xdm
  man ln
  man chmod


<  |  >

 

Related Links
  • Articles on X Windows
  • Also by Jason
  • Contact author

    Lilliput Mini USB Computer Monitor

    If you have ever wanted to learn about Cisco Routers, check out my new book "Cisco Routers for the Small Business" - it's Cisco CLI for the Regular Guy!

  • Sponsors

    The Fine Print: The following comments are owned by whoever posted them.
    ( Add a Reply )

    "You never know how many friends you have until you own a Condo on the beach." -- Jason's Postulate

    Powered by Zope  Powered by Apache  Squishdot Powered
    All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest ©2001 Jason Neumann.
    [ main | post article | search ]