View Single Post
  #9   (View Single Post)  
Old 31st October 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

To enable GDM on startup, edit /etc/rc.conf and add the line: gdm_enable="YES"

To enable auto login for user 'guest', run gdmsetup -> you can use the configure menu at the GDM screen on boot, or launch gdmsetup as root after logging in. Once the configuration program (gdmsetup) is up, go to the 'Security' tab, click Enable Automatic Login', and enter the desired user name in the line edit. This will keep gdm from asking for a password. If your user account requires a password in order to login (such as at the system console). you also might have to setup PAM to allow that account to login w/o a password.

To enable Fluxbox as the window manager, you should create a session for it in GDM and make it the default, or set GDM to run the X clients script. If your guest account is just what its name implies, for guests, for security reasons you probably want to use a session file for it instead of the X clients script method.


-> session file method. Create /usr/local/share/xsessions/Fluxbox.desktop with the following content:

Code:
[Desktop Entry]
Encoding=UTF-8
Name=Fluxbox
Comment=Launch a Fluxbox session
Exec=startfluxbox
Type=Application
Now run the gdmsetup program as noted above, and set the default session to 'Fluxbox'. You can edit the .desktop file to suit your needs, check the other .desktop files in that directory for an idea of what you can do.

-> X clients file method

Create a shell script in the user accounts home directory named .xsession, chmod it 0700, and place the necessary startup commands in it (usually startfluxbox). Then run the gdmsetup program as noted above, and set the default session to run x clients file.


The main issue for concern is, the user will be able to edit ~/.xsession and do anything they want, with the user permissions of their account.



disclaimer I use GDM a lot, but never actually had time to RTFM; just figure it out from within.
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote