You are not logged in.

#1 2008-02-10 09:01:50

pascali70
Member
Registered: 2008-02-09
Posts: 2

can't start KDM as no-root and asla problem

Hi,

I'm new in the linux-world and I just installed arch-linux.
Everything is working out fine, but I have two problems I can't solve for the moment :
first :
When I am in the console and I want to start KDM, I can only do it as root.  When I try to start KDM as a normal user I get the message : only root can start KDM. 
I did some searching about the problem en found out that /tmp/ should have full rights.  So I already did that, but it still don't work out.  Can somebody help me ?
second :
I have sis ac'97 sound card.  I already configured the card with alsaconf and this works out fine (in KDE)....  till I restart the system.  After restart I have to configure alsa again and then it works again ? 
When I configure alsa the system founds my sound card and says that the alsa configuration is saved..... but after restart.... the sound doesn't work anymore.... till I start alsaconfig again.... then it works again....  What can by the problem here ?
Please for any solutions for this two problems, remember that I am a complete newbie :-(

Sorry for my written English (I tried to do my best), and I thank you in advance for any solutions.

Offline

#2 2008-02-10 10:02:48

deej
Member
Registered: 2008-02-08
Posts: 395

Re: can't start KDM as no-root and asla problem

Hi Pascali70,

For your first problem, you need to edit - as root - /etc/inittab. The edited file should look like this ( relevant sections only shown):

## Only one of the following two lines can be uncommented!
# Boot to console
#id:3:initdefault:
# Boot to X11
id:5:initdefault:

and...

# Example lines for starting a login manager
#x:5:respawn:/usr/bin/xdm -nodaemon
#x:5:respawn:/usr/sbin/gdm -nodaemon
x:5:respawn:/opt/kde/bin/kdm -nodaemon
#x:5:respawn:/usr/bin/slim >& /dev/null

That will get you booting into KDE. ( I am assuming that you have added a normal user account ).

For your sound problem, I too had problems with alsa, so in 'Control Centre -> Sounds & Multimedia -> System Notifications' click the 'Player Settings' button and I chose to use ( after installing it ! ) 'mplayer' as an external player. Works a treat.

Hope this helps...

Deej

Last edited by deej (2008-02-10 10:04:18)

Offline

#3 2008-02-10 12:59:06

pascali70
Member
Registered: 2008-02-09
Posts: 2

Re: can't start KDM as no-root and asla problem

Thanks for the reply.
Sorry, I think I explained my KDE problem in the wrong way.  I did the modifications above but now I get immediately a login-screen and not the usual console login.  What I want is : when I boot the system I get the console where I then can start kde.  But I can only start it when I'm logged in as root.  When I'm logged in as normal user the system says 'only root can start kdm'. 
The sound problem isn't solved ; i still have to run alsaconf again after reboot.  The weird thing is that when I run alsaconf again the system says that alsa is already running (but I have no sound) and when alsaconf is done (it even says that alsaconf is saved) I have sound. I don't get it.

Offline

#4 2008-02-10 17:09:43

deej
Member
Registered: 2008-02-08
Posts: 395

Re: can't start KDM as no-root and asla problem

OK,
Try the answer from mucknert here:

http://bbs.archlinux.org/viewtopic.php?id=31553

for your KDM problem. You may need to ceate the .xinitrc file ( don't forget it begins wit a 'dot' !).
Reset your /etc/inittab file to what it was previously.

For your sound problem: Are you are running alsaconf as root ? If not , do so. If you are... I'm at a loss.

Deej

Offline

#5 2008-02-15 10:20:57

RedShift
Member
From: Belgium
Registered: 2004-07-16
Posts: 230

Re: can't start KDM as no-root and asla problem

Hi Pascal, how's work? :-)

You can only start KDM as root because it's a login manager. If the login manager doesn't have root access to the system, it can't switch to another user to log you in. If you want to work without a login manager like kdm, you have to use the startx script which is provided by the xorg packages. To configure startx to start kde, edit the .xinitrc file in your home directory.

As for the sound problem, show us the output of lsmod after you've run alsaconf. Instead of modifying modprobe.conf (which is what alsaconf does) just add your soundmodule to the MODULES array in /etc/rc.conf. Did you add alsa to DAEMONS of rc.conf? The /etc/rc.d/alsa script takes care of saving and restoring your volume settings on respectively shutdown and bootup time.

Glenn


:?

Offline

Board footer

Powered by FluxBB