You are not logged in.
I'm not very experienced with Linux. It's summer and I have nothing better to do so I decided to learn some Linux by installing Arch.
I used the minimal CD with VirtualBox and installed a base system, where I then installed Xorg, Xfce, and SLiM.
startx brings up 2 xterm windows, and startxfce4 brings up Xfce4. So everything worked and it was all great until I tried to start Xfce on boot
To do that, I changed runlevel to level 5, and uncommented slim in inittab. I added exec ck-launch-session startxfce4 in xinitrc. And I added dbus and slim to daemons in rc.conf
After all this, the system boots, slim starts, I log into root because logging into the other user will just bring me back to the username screen of slim. After a few minutes logged in, I'll get a message: "INIT: Id 'x' respawning too fast: disabled for 5 minutes" if I switch to a tty that I logged into after the system boots. On top of this, logoff menu option in Applications hangs for about a minute if I click on it. And nothing happens when I click on the action button on the top right. It stays depressed and nothing appears. And the action button seems to appear about half a minute after Xfce starts
Summary:
Logout option hangs for about a minute before anything happens
Action button stays depressed when clicked
Action button appearance delayed by about half a minute after Xfce starts
Ambiguous message appears in a tty a few minutes after logging in
Maybe I haven't configured this right but Xfce seems a bit slower than usual. Reminds me of when Windows starts up abnormally and everything takes a lot longer to start but there's very little hard drive activity
Normal users get booted back to username screen when trying to log in
config files:
# -----------.xinitrc-----------
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
# exec gnome-session
# exec startkde
# exec ck-launch-session dbus-launch startxfce4
exec ck-launch-session startxfce4
# ...or the Window Manager of your choice
# -----------rc.conf-----------
LOCALE="en_US.UTF-8"
DAEMON_LOCALE="no"
HARDWARECLOCK="UTC"
TIMEZONE="America/Toronto"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"
MODULES=(vboxguest vboxsf vboxvideo)
# Udev settle timeout (default to 30)
UDEV_TIMEOUT=30
# Scan for FakeRAID (dmraid) Volumes at startup
USEDMRAID="no"
# Scan for BTRFS volumes at startup
USEBTRFS="no"
# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"
interface=eth0
address=
netmask=
broadcast=
gateway=
# Setting this to "yes" will skip network shutdown.
# This is required if your root device is on NFS.
NETWORK_PERSIST="no"
DAEMONS=(hwclock syslog-ng network netfs crond dbus slim)
# -----------inittab-----------
# Boot to console
#id:3:initdefault:
# Boot to X11
id:5:initdefault:
rc::sysinit:/etc/rc.sysinit
rs:S1:wait:/etc/rc.single
rm:2345:wait:/etc/rc.multi
rh:06:wait:/etc/rc.shutdown
su:S:wait:/sbin/sulogin -p
# -8 options fixes umlauts problem on login
c1:2345:respawn:/sbin/agetty -8 -s 38400 tty1 linux
c2:2345:respawn:/sbin/agetty -8 -s 38400 tty2 linux
c3:2345:respawn:/sbin/agetty -8 -s 38400 tty3 linux
c4:2345:respawn:/sbin/agetty -8 -s 38400 tty4 linux
c5:2345:respawn:/sbin/agetty -8 -s 38400 tty5 linux
c6:2345:respawn:/sbin/agetty -8 -s 38400 tty6 linux
# Serial Virtual Console for KVM and others VMs
#s0:2345:respawn:/sbin/agetty -8 -s 9600 ttyS0 linux
# Hypervisor Virtual Console for Xen and KVM
#h0:2345:respawn:/sbin/agetty -8 -s 38400 hvc0 linux
ca::ctrlaltdel:/sbin/shutdown -t3 -r now
# Example lines for starting a login manager
#x:5:respawn:/usr/bin/xdm -nodaemon
#x:5:respawn:/usr/sbin/gdm -nodaemon
#x:5:respawn:/usr/bin/kdm -nodaemon
x:5:respawn:/usr/bin/slim >/dev/null 2>&1Last edited by yanalex981 (2012-07-08 23:54:35)
Offline
I´m no linux pro but i have been running arch linux white xfce and slime for some time and it works really well. If you look i the https://wiki.archlinux.org/index.php/Slim it says
Note: slim is ConsoleKit capable since version 1.3.3. Unless you happen to run an old version, you must no longer include ck-launch-session in your .xinitrc or slim.conf login_cmd. You should still have dbus-launch in your login_cmd, see #SLiM_and_Gnome_Keyring, since this gives subprocesses of your session the correct permissions (e.g. to mount something with gvfs-mount, like Pcmanfm does).
and i don´t think you need to un comment id:5:initdefault: in inittab i use id:3:initdefault: I hope it helps peace
Offline
I changed runlevel back to 3, removed ck-launch-session in xinitrc, and added dbus-launch in login_cmd before executing xinitrc, but nothing changed
Edit: Ok the error messages stopped appearing in the other consoles but the logout buttons still don't work properly and normal users still can't log in
Last edited by yanalex981 (2012-07-01 18:27:26)
Offline
I think xinitrc only applies to root and not the other users 'cause it's in root's directory
Offline
A few remarks:
1) .xinitrc should be in the users home directory, not in /root.
2) AFAIK, you don't need dbus-lauch for xfce because startxfce already uses dbus-launch. I can't find a quote to back me up atm, but when I didn't use a display manager I never used dbus-launch and automounting worked fine.
3) You can either start slim from the daemons array in rc.conf or from inittab (in which case you need to set the runlevel to 5). Using both methods at the same time produces the "INIT: Id 'x' respawning too fast: disabled for 5 minutes" message.
4) Slim = troubles.
Offline
Yeah xinitrc is in root's home directory because I always do these things in root because sudo doesn't work for any users. I always get wrong password even though my passwords are all the same
Offline
I just ran xfce4-session-logout and it produced the exact same results. The desktop stops redrawing and responding for a minute before displaying the logout dialog
Offline
Update on config files:
--------------xinitrc--------------
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
exec startxfce4
--------------rc.conf--------------
# Other unrelated settings...
# daemons
DAEMONS=(hwclock dbus syslog-ng network netfs crond)
--------------inittab--------------
# Boot to console
#id:3:initdefault:
# Boot to X11
id:5:initdefault:
rc::sysinit:/etc/rc.sysinit
rs:S1:wait:/etc/rc.single
rm:2345:wait:/etc/rc.multi
rh:06:wait:/etc/rc.shutdown
su:S:wait:/sbin/sulogin -p
# -8 options fixes umlauts problem on login
c1:2345:respawn:/sbin/agetty -8 -s 38400 tty1 linux
c2:2345:respawn:/sbin/agetty -8 -s 38400 tty2 linux
c3:2345:respawn:/sbin/agetty -8 -s 38400 tty3 linux
c4:2345:respawn:/sbin/agetty -8 -s 38400 tty4 linux
c5:2345:respawn:/sbin/agetty -8 -s 38400 tty5 linux
c6:2345:respawn:/sbin/agetty -8 -s 38400 tty6 linux
# Serial Virtual Console for KVM and others VMs
#s0:2345:respawn:/sbin/agetty -8 -s 9600 ttyS0 linux
# Hypervisor Virtual Console for Xen and KVM
#h0:2345:respawn:/sbin/agetty -8 -s 38400 hvc0 linux
ca::ctrlaltdel:/sbin/shutdown -t3 -r now
# Example lines for starting a login manager
#x:5:respawn:/usr/bin/xdm -nodaemon
#x:5:respawn:/usr/sbin/gdm -nodaemon
#x:5:respawn:/usr/bin/kdm -nodaemon
x:5:respawn:/usr/bin/slim >/dev/null 2>&1
--------------slim.conf--------------
default_path /bin:/usr/bin:/usr/local/bin
default_xserver /usr/bin/X
xserver_arguments -nolisten tcp vt07
# Commands for halt, login, etc.
halt_cmd /sbin/shutdown -h now
reboot_cmd /sbin/shutdown -r now
console_cmd /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/bin/cat /etc/issue; exec /bin/login"
#suspend_cmd /usr/sbin/suspend
xauth_path /usr/bin/xauth
authfile /var/run/slim.auth
# numlock on
hidecursor false
login_cmd exec dbus-launch /bin/bash -login ~/.xinitrc %session
# sessionstart_cmd some command
# sessionstop_cmd some command
# daemon yes
sessions xfce4
screenshot_cmd import -window root /slim.png
welcome_msg Welcome to %host
# session_msg Session:
shutdown_msg The system is halting...
reboot_msg The system is rebooting...
#default_user simone
#focus_password no
auto_login no
current_theme default
lockfile /var/lock/slim.lock
logfile /var/log/slim.logOffline
i had the same problem, i found a fix that worked for me:
https://bbs.archlinux.org/viewtopic.php?pid=1123944
if you followed the beginner's guide during this installation (like i did), then you probably manually force-updated the filesystem package (like it says to do). In the post above, it says you need to remove the /var/run and /var/lock directories:
$ sudo rm -rf /var/run /var/lockand then reinstall filesystem and dbus:
$ sudo pacman -S filesystem dbusi did both of these and then rebooted, and i could access logout, shutdown, etc from the button in the corner of the panel or from the "Log Out" in the Applications Menu (and there was no hang for the panel button to come up).
i hope it works for you.
Offline
WOW Thanks that worked great. And yes I skimmed the guide and one of the first things I did after installation was to force all the updates like it said, but I never deleted /var/run and /var/lock. I just tried that and reinstalled filesystem and dbus, and Xfce starts seconds after logging in.
The only problem I have now is that when normal users log in, they still get booted back to username screen. And sudo still doesn't work for normal users even though I added them into the group 'wheel'
Offline
The only problem I have now is that when normal users log in, they still get booted back to username screen. And sudo still doesn't work for normal users even though I added them into the group 'wheel'
re-install pam and pambase and try again.
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
YES. sudo works for normal users now that I reinstalled pam and pambase. But that might also be because I added myself to the sudo group which I've never seen before... But sudo works now. I just have to figure out how to log in as a normal user now
Last edited by yanalex981 (2012-07-02 21:19:01)
Offline
When I checked slim's logs, it said that "/usr/bin/xauth: file /var/run/slim.auth does not exist"
Offline
When I checked slim's logs, it said that "/usr/bin/xauth: file /var/run/slim.auth does not exist"
Hi,
You might want to try re-installing slim.
Offline
Nope. Just tried that. Still missing slim.auth
Edit: Whoops, that might've been an old log 'cause I just found slim.auth in /var/run and I still can't log in
Last edited by yanalex981 (2012-07-02 22:33:15)
Offline
No, it's probably relevant and a new log. There have been multiple cases where slim.auth is found in /var/run and it constantly gives that error anyway.
Offline
Hmm. Maybe that's why I keep hearing people say that using slim is not a good idea
Offline
$ sudo rm -rf /var/run /var/lockand then reinstall filesystem and dbus:
$ sudo pacman -S filesystem dbus.
I having the same problem logout takes long time and filesystem doesn't mount. Thanks it works !!!
Offline
But can normal users log in through slim? I can only log in with root
Offline
I don't understand how you are not able to log into slim as normal user.I have installed xfce with slim and have had no problems.Comparing your slim.conf to mines it seems different.Even the smallest things make a difference.
# Path, X server and arguments (if needed)
# Note: -xauth $authfile is automatically appended
default_path /bin:/usr/bin:/usr/local/bin
default_xserver /usr/bin/X
xserver_arguments -nolisten tcp vt07
# Commands for halt, login, etc.
halt_cmd /sbin/shutdown -h now
reboot_cmd /sbin/shutdown -r now
console_cmd /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/bin/cat /etc/issue; exec /bin/login"
#suspend_cmd /usr/sbin/suspend
# Full path to the xauth binary
xauth_path /usr/bin/xauth
# Xauth file for server
authfile /var/run/slim.auth
# Activate numlock when slim starts. Valid values: on|off
# numlock on
# Hide the mouse cursor (note: does not work with some WMs).
# Valid values: true|false
# hidecursor false
# This command is executed after a succesful login.
# you can place the %session and %theme variables
# to handle launching of specific commands in .xinitrc
# depending of chosen session and slim theme
#
# NOTE: if your system does not have bash you need
# to adjust the command according to your preferred shell,
# i.e. for freebsd use:
# login_cmd exec /bin/sh - ~/.xinitrc %session
login_cmd exec /bin/bash -login ~/.xinitrc %session
# Commands executed when starting and exiting a session.
# They can be used for registering a X11 session with
# sessreg. You can use the %user variable
#
# sessionstart_cmd some command
# sessionstop_cmd some command
# Start in daemon mode. Valid values: yes | no
# Note that this can be overriden by the command line
# options "-d" and "-nodaemon"
# daemon yes
# Available sessions (first one is the default).
# The current chosen session name is replaced in the login_cmd
# above, so your login command can handle different sessions.
# see the xinitrc.sample file shipped with slim sources
sessions xfce4,icewm-session,wmaker,blackbox
# Executed when pressing F11 (requires imagemagick)
screenshot_cmd import -window root /slim.png
# welcome message. Available variables: %host, %domain
welcome_msg Welcome to %host
# Session message. Prepended to the session name when pressing F1
# session_msg Session:
# shutdown / reboot messages
shutdown_msg The system is halting...
reboot_msg The system is rebooting...
# default user, leave blank or remove this line
# for avoid pre-loading the username.
default_user linuxfrenzy
# Focus the password field on start when default_user is set
# Set to "yes" to enable this feature
#focus_password no
# Automatically login the default user (without entering
# the password. Set to "yes" to enable this feature
#auto_login no
# current theme, use comma separated list to specify a set to
# randomly choose from
current_theme slim-archlinux-simple
# Lock file
lockfile /var/lock/slim.lock
# Log file
logfile /var/log/slim.log Offline
I think xinitrc only applies to root and not the other users 'cause it's in root's directory
Have you created .xinitrc in your home yet?
Offline
WOW I can't believe I never thought of that. Thanks. Works fine now. Everything on the VM works now. Thanks everybody
Last edited by yanalex981 (2012-07-08 20:16:53)
Offline
WOW I can't believe I never thought of that. Thanks. Works fine now. Everything on the VM works now. Thanks everybody
Don't forget to mark thread as Solved.
Offline
Sorry, first time using forums and can't find it
Offline
https://wiki.archlinux.org/index.php/Forum_Etiquette
Last edited by LinuxFrenzy (2012-07-08 23:00:35)
Offline