View previous topic :: View next topic |
Author |
Message |
Guinney n00b
Joined: 13 Nov 2002 Posts: 34
|
Posted: Wed Dec 04, 2002 3:18 am Post subject: Letting non root users launch KDM/GDM |
|
|
I start my sytem to the command prompt only. What files would I have to change the permissions on so non root users can launch kdm/gdm
/ _________________ There are no facts...
There is no truth, just data to be manipulated... |
|
Back to top |
|
|
zhenlin Veteran
Joined: 09 Nov 2002 Posts: 1361
|
Posted: Wed Dec 04, 2002 7:20 am Post subject: |
|
|
No, you want GUI to come up automatically, do as root "rc-update add xdm default" and tweak /etc/rc.conf
Non root users should not start a login manager. Non root should only use startx. To tweak which session startx starts, edit /etc/rc.conf |
|
Back to top |
|
|
alyent n00b
Joined: 20 Nov 2002 Posts: 38 Location: Vancouver BC, Canada
|
Posted: Wed Dec 04, 2002 7:26 am Post subject: |
|
|
How do I make kde to start with startx without kdm???
Last edited by alyent on Wed Dec 04, 2002 9:15 am; edited 1 time in total |
|
Back to top |
|
|
billethius n00b
Joined: 23 Sep 2002 Posts: 31
|
Posted: Wed Dec 04, 2002 7:39 am Post subject: |
|
|
edit your .xinitrc file to read:
exec startkde |
|
Back to top |
|
|
EzInKy Veteran
Joined: 11 Oct 2002 Posts: 1742 Location: Kentucky
|
Posted: Wed Dec 04, 2002 7:43 am Post subject: |
|
|
Create a file .xinitrc in the user's home directory and put a line in it like this
or
Then the user can start the window manager with:
|
|
Back to top |
|
|
zhenlin Veteran
Joined: 09 Nov 2002 Posts: 1361
|
Posted: Wed Dec 04, 2002 9:18 am Post subject: |
|
|
Or better yet, tweak /etc/rc.conf:
Code: |
# tail -n20 /etc/rc.conf
# XSESSION is a new variable to control what window manager to start
# default with X if run with xdm, startx or xinit. The default behavior
# is to look in /etc/X11/Sessions/ and run the script in matching the
# value that XSESSION is set to. The support scripts is smart enouth to
# look in all bin directories if it cant find a match in /etc/X11/Sessions/,
# so setting it to "enligtenment" can also work. This is basically used
# as a way for the system admin to configure a default system wide WM,
# allthough it will work if the user export XSESSION in his .bash_profile, etc.
#
# NOTE: this behaviour is overridden when a ~/.xinitrc or ~/.xsession exists
# for the particular program run ( ~/.xinitrc for startx, ... ).
#
# Defaults depending on what you install currently include:
#
# Gnome - will start gnome-session
# kde-<version> - will start startkde (ex: kde-3.0.2)
# Xsession - will start a terminal and a few other nice apps
#XSESSION=Gnome
XSESSION=wmaker
|
|
|
Back to top |
|
|
|