Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Letting non root users launch KDM/GDM
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Guinney
n00b
n00b


Joined: 13 Nov 2002
Posts: 34

PostPosted: Wed Dec 04, 2002 3:18 am    Post subject: Letting non root users launch KDM/GDM Reply with quote

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
View user's profile Send private message
zhenlin
Veteran
Veteran


Joined: 09 Nov 2002
Posts: 1361

PostPosted: Wed Dec 04, 2002 7:20 am    Post subject: Reply with quote

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
View user's profile Send private message
alyent
n00b
n00b


Joined: 20 Nov 2002
Posts: 38
Location: Vancouver BC, Canada

PostPosted: Wed Dec 04, 2002 7:26 am    Post subject: Reply with quote

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
View user's profile Send private message
billethius
n00b
n00b


Joined: 23 Sep 2002
Posts: 31

PostPosted: Wed Dec 04, 2002 7:39 am    Post subject: Reply with quote

edit your .xinitrc file to read:

exec startkde
Back to top
View user's profile Send private message
EzInKy
Veteran
Veteran


Joined: 11 Oct 2002
Posts: 1742
Location: Kentucky

PostPosted: Wed Dec 04, 2002 7:43 am    Post subject: Reply with quote

Create a file .xinitrc in the user's home directory and put a line in it like this
Code:

exec startkde

or
Code:

exec gnome-session

Then the user can start the window manager with:
Code:

#startx
Back to top
View user's profile Send private message
zhenlin
Veteran
Veteran


Joined: 09 Nov 2002
Posts: 1361

PostPosted: Wed Dec 04, 2002 9:18 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum