You are not logged in.
Hi everybody!
I'm working on my fresh arch install.
I've just install a minimal kde desktop but i've some problem to start it.
I've set my runleve to 5 from inittab and then at the end of it i've added the line like said in the wiki :
x:5:once:/bin/su mydefaultuser -l -c "/bin/bash --login -c startx >/dev/null 2>&1"
Then in the home user folder added .xinitrc like below:
exec ck-launch-session startkde
But when the system start the xorg return the following error:
exec; ck-launch-session: not found
Now i've read some thread on the forum and all said that this error come from the consolekit package.
But i've the package it's already installed in the system and also xorg-xinit
So there's other dipendences that i'm missing or what? Any suggestion ?
Thanks to all
Last edited by lsas (2012-08-21 16:21:19)
Offline
please post the output of the following commands:
pacman -Qi consolekit
which ck-launch-session
echo $PATH
be sure to execute all commands as the user you named "mydefaultuser". This may help us the track down the issue.
On a seperate note: I personally found that those nested su commands to start X are pretty crappy (opinion!), so I switched to the vlock approach:
c1:2345:respawn:/sbin/agetty -a javex -8 -s 38400 tty1 linux
And for .bash_profile
if [[ -z $DISPLAY && ! -e /tmp/.X11-unix/X0 ]] && (( EUID )); then
exec nohup startx > .xlog & vlock
fi
(see Start X at Boot)
While this may possibly not solve your problem, I felt that mentioning this alternative could help you.
Offline
pacman -Qi consolekit :
Name : consolekit
Version : 0.4.6-4
URL : http://www.freedesktop.org/wiki/Software/ConsoleKit
Licenses : GPL
Groups : None
Provides : None
Depends On : polkit zlib libx11 dbus-glib
Optional Deps : None
Required By : kdebase-workspace
Conflicts With : None
Replaces : None
Installed Size : 720.00 KiB
Packager : Dave Reisner <dreisner@archlinux.org>
Architecture : x86_64
Build Date : Sun May 27 06:29:53 2012
Install Date : Tue Aug 21 00:24:14 2012
Install Reason : Installed as a dependency for another package
Install Script : No
Description : A framework for defining and tracking users, login sessions, and seats
which ck-launch-session :
/usr/bin/ck-launch-session
echo $PATH :
/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/core_perl
Unfortunately, as you said, the .bash_profile and vlock does not work. By the way thanks for the advice.
Offline
Unfortunately, as you said, the .bash_profile and vlock does not work. By the way thanks for the advice.
So you actually tried this?
What happens im you run "startx" from the command line (make sure it is the same environment where you executed the above commands in)?
The error you have reports that it cannot find ck-launch-session, but the which command showed us that its present. So my guess would be that the environment is not correctly set, i.e. the PATH variable is not correctly set.
Also you could try to alter your initial code to:
x:5:once:/bin/su mydefaultuser -l -c "startx >/dev/null 2>&1"
I am not sure what the reasoning is to put the bash in anyway, but this should as well, too.
Offline
Yeah, i've tried it but didnt works
I've just tried to execute startx with .xinitrc set to "exec startkde"
And now i'm into kde
But if i just type startx with .xinitrc set with the ck-launch-session option I obtain the same error
Also tried your modify in inittab without result.
Yeah I know that seems there's something wrong with ck-launch-sessions. At first, i was thinking that i need just othere few dependences.. but it's not.
Also the PATH seems ok from the previous command, so i cant understand where's the problem.
Dunno, if I cant get a solution here, even if the wiki raccomands to use .xinitrc method, i think i'll try with kdm/slim.
Thanks for your support by the way
Other ideas ??
Offline
Hmmm, I think I may be running out of ideas.
You could try to run xinit instead of startx, maybe it destroys some environment stuff (which xinit shouldn't). If xinit throws the same error as startx, I think I really am out of ideas :-/
Regards,
javex
Offline
Do you have the right permissions on .xinitrc?
Offline
Finally i got it.
The .xinitrc permissions was ok
I've just replace the .xinitrc command from
exec ck-launch-session startkde
to
exec ck-launch-session dbus-launch startkde
Sincerely I didnt understand it properly (why whitout dbus-launch option it cant find ck-launch-session command?) but anyway it's ok.
Now the login logoff seems really slow, but that's another story..
Thank to all guys for your suggestions.
Offline
Wow, I thought about this, but it didn't make sense to me. Thanks for sharing that!
Offline