Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've recently installed X and SLiM but when I wanted to login it wouldn't let me. It keeps asking for username. (virtualbox)

My /.xinitrc:

DEFAULT_SESSION=ck-launch-session dbus-launch openbox-session
case $1 in
   exec ck-launch-session dbus-launch openbox-session
   exec startxfce4

Log: (1st is username attempt, 2nd is root attempt)

slim: waiting for X server to begin accepting connections

slim: waiting for X server to shut down

slim: waiting for X server to begin accepting connections
slim: pam_authentication(): Authentication failure
share|improve this question
It keeps asking for the password, or it logs in, tries to create the X-Session, then fails and throws you back at the login? – Bobby Jul 26 '12 at 12:18
I enter my username&password but it keeps asking for them. In the logs it says "failed to authenticate" – Seven of Nine Jul 26 '12 at 12:20
And you are sure you are entering the correct credentials? – Bobby Jul 26 '12 at 12:21
Yea, when I press Ctrl+Alt+F1 I can easily log into the console. – Seven of Nine Jul 26 '12 at 12:22
According to the wiki, login information may be wrong in the logs, so this could be another issue. Check again after correcting this, maybe : – Nicolas Barbey Jul 26 '12 at 12:47

For reference, the archlinux wiki is a treasure trove :

There is a typo in your script. All clk-launch-session should read ck-launch-session

Also, did you make .xinitrc executable ?

chmod +x ~/.xinitrc
share|improve this answer
oh sorry, that ck-clk mistype is only here, in the actual file it's alright. – Seven of Nine Jul 26 '12 at 12:37
but this doesnt work :[ – Seven of Nine Jul 26 '12 at 12:52
Could you fix the logs issue as asked in my previous comment, show us the logs and fix the typo in the question ? – Nicolas Barbey Jul 26 '12 at 13:54
I tried to but I'm a bit new to Linux. I'm usually able to work out these errors but now.. – Seven of Nine Jul 26 '12 at 14:04
From the log, it seems that authentication did not fail on user login, so it may be the window manager. – Nicolas Barbey Jul 26 '12 at 14:10

You have to do a bit of extra work to start X in virtualbox with archlinux. You can find it on the wiki here, copied and pasted below.

Installing Arch under VirtualBox is straightforward, and additions should be installed through pacman (not through "Install Guest Additions" in VirtualBox, or a mounted ISO.) Follow these instructions after doing a basic install of the X-window system found on the Beginners' Guide.

Guest additions package

Install virtualbox-archlinux-additions.

Kernel modules

Manually load the VirtualBox modules with

# modprobe -a vboxguest vboxsf vboxvideo

Auto-start modules

To autostart these modules each time you boot, you can add the three modules above to the MODULES array in /etc/rc.conf.

MODULES=(... vboxguest vboxsf vboxvideo)

Enable VboxClient-all

The VBoxClient contain these services(/usr/bin/VBoxClient-all) (copy/paste...) :

 --clipboard        start the shared clipboard service
 --display          start the display management service
 --checkhostversion start the host version notifier service
 --seamless         start the seamless windows service

So you can Enable VBoxClient-all to start all these services.

If you are running something that launches /etc/xdg/autostart/vboxclient.desktop, such as GNOME, then you should be ready to go. If you use .xinitrc to launch things instead, you must add

VBoxClient-all &

to your .xinitrc before launching your WM. You should now be all set, and all guest additions should work properly.

share|improve this answer
I've done that modprobe and MODULES thing but I'm not quite sure how my .xinitrc should look like. I added that line, but it made no difference. – Seven of Nine Jul 26 '12 at 19:13
put VBoxClient-all & a line above the case $1 in. I'll be heading home shortly and can help more when I get home. – Rob Jul 26 '12 at 19:21
I did that and no effect. >< – Seven of Nine Jul 26 '12 at 19:30
You can ask for help in #archlinux on with an IRC client, and I'll be back on to give you more information when I get home. What is the host OS? – Rob Jul 26 '12 at 19:34
host OS? You mean the OS that's running VirtualBox? Win7 64 – Seven of Nine Jul 26 '12 at 19:47

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.