You are not logged in.
So I'm trying to run xfce4 and SLiM together, but after entering a username and password I get the error mentioned in the title. I can run xfce4 manually with start xfce4, but I cant get in to the gui through slim when booting. Help!
Offline
Does slim.log give any clues? What is the login_cmd and what are the contents of your .xinitrc?
All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
Do you have an ~/.xinitrc file which correspond with /etc/slim.conf? In your case you need to make sure "startxfce4" is the command SLiM with look for in .xinitrc. You have a "session" entry in slim.conf.
Offline
Does slim.log give any clues? What is the login_cmd and what are the contents of your .xinitrc?
login_cmd is exec /bin/bash - login ~/.xinitrc %session
in ~/.xinitrc I have exec ck-launch-session startxfce4
EDIT: Spelling
Last edited by jggiles (2012-08-03 17:40:38)
Offline
Do you have an ~/.xinitrc file which correspond with /etc/slim.conf? In your case you need to make sure "startxfce4" is the command SLiM with look for in .xinitrc. You have a "session" entry in slim.conf.
for the session section I have "sessions xfce4,icewm-session,wmaker,blackbox"
Offline
loafer wrote:Does slim.log give any clues? What is the login_cmd and what are the contents of your .xinitrc?
login_cmd is exec /bin/bash - login ~/.xinitrc %session
in ~/.xinit.rc I have exec ck-launch-session start xfce4
startxfce (one word).
Last edited by prasinoulhs (2012-08-03 17:33:22)
Offline
jggiles wrote:loafer wrote:Does slim.log give any clues? What is the login_cmd and what are the contents of your .xinitrc?
login_cmd is exec /bin/bash - login ~/.xinitrc %session
in ~/.xinit.rc I have exec ck-launch-session start xfce4
startxfce (one word).
In addition the file needs to be called .xinitrc (you have .xinit.rc instead) and you do not need ck-launch-session.
All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
Those misspellings are just me being stupid when typing the names in to the post. they are correctly named in the system. Sorry for the confusions.
Offline
prasinoulhs wrote:jggiles wrote:login_cmd is exec /bin/bash - login ~/.xinitrc %session
in ~/.xinit.rc I have exec ck-launch-session start xfce4
startxfce (one word).
In addition the file needs to be called .xinitrc (you have .xinit.rc instead) and you do not need ck-launch-session.
removed ck-launch-session but still getting the error
Offline
Do you check permissions?
What $HOME/.xsession-errors reports?
do it good first, it will be faster than do it twice the saint ![]()
Offline
You still need to get rid of ck-launch-session. Is there anything interesting in slim.log?
All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
Do you check permissions?
What $HOME/.xsession-errors reports?
not sure how to check permissions, and I can't seem to find ".xsession-errors"
Offline
You still need to get rid of ck-launch-session. Is there anything interesting in slim.log?
what is the default location of slim.log?
Offline
/var/log/slim.log as specified in slim.conf.
All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
TheSaint wrote:Do you check permissions?
What $HOME/.xsession-errors reports?not sure how to check permissions, and I can't seem to find ".xsession-errors"
You can check the permissions of .xinitrc by running 'ls -l ~/.xinitrc'.
loafer wrote:You still need to get rid of ck-launch-session. Is there anything interesting in slim.log?
what is the default location of slim.log?
The default location is '/var/log/slim.log'
Offline
I see a line that says "Unable to open session: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory" but I have no idea what that means. I do know dbus is a daemon that I run on startup, though.
Offline
I see a line that says "Unable to open session: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory" but I have no idea what that means. I do know dbus is a daemon that I run on startup, though.
Are you sure dbus is running?
All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
ps aux | grep dbus
returns
dbus 347 0.0 0.1 17272 1044 ? Ss 13:47 0:00 dbus-daemon --system
gza 698 0.0 0.1 8684 1044 ttyl S+ 14:04 0:00 grep dbus
Offline
exactly
ps -A |grep dbusBTW permission referred to ~/.xinitrc. But if there is no ~/.xsession-errors that's means two possible conditions. X didn't reach to read the ~/.xinitrc or X cannot have write permissions in $HOME
Just for try, can root start the session correctly?
do it good first, it will be faster than do it twice the saint ![]()
Offline
exactly
ps -A |grep dbusBTW permission referred to ~/.xinitrc. But if there is no ~/.xsession-errors that's means two possible conditions. X didn't reach to read the ~/.xinitrc or X cannot have write permissions in $HOME
Just for try, can root start the session correctly?
That command returns
347 ? 000:000:000 dbus-daemon
I I just type "startxfce4" I get "Fatal server error: Server is already active for display 0"
Offline
Honestly at this point I think I'd rather just change login managers. I'll be googling that for a while but would welcome advice.
Offline
Post the daemons array from rc.conf and the contents of boot.log. Have you removed the ck-launch-session from .xinitrc?
All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
ck-launch-session from .xinitrc?
I think most of the cases it might take startWM --with-ck-launch
do it good first, it will be faster than do it twice the saint ![]()
Offline
loafer wrote:ck-launch-session from .xinitrc?
I think most of the cases it might take startWM --with-ck-launch
But do you need either if using a login manager (in this case slim) which start ConsoleKit automatically. That is why I suggested removing it.
All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
You got to copy /etc/skel/.xinitrc and /etc/skel/.xsession to your home path. Afterwards, you chmod the xsession file to 744. Then edit .xinitrc to include exec startxfce4. That always seems to help when I face problems with slim not logging into XFCE.
Offline