You are not logged in.
Hey all,
I just did a fresh install of Arch as a Virtualbox guest on my Macbook Pro. I have virtualbox-guest-utils installed, and my module-loading file looks fine.
I haven't installed a proper windows manager/desktop environment yet, I've just been testing with xorg.
When I login as root, startx works just fine. When I login as a normal user I can't execute startx without typing "sudo startx", and when xorg launches it freezes.
I searched for similar issues, but I couldn't find someone who had the exact issue I currently have.
Any help would be appreciated.
Offline
What actual error messages and results do you get when you try to run as a regular user?
What is in the user's xinitrc? Do you have twm and xterm installed?
Last edited by Trilby (2014-07-30 20:33:43)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
editting ... standby
<grabs popcorn>
Offline
Ha, sorry Karol (and maxbaroi), I grossly misjudged the initial post the first time arround.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
No problem, but I have to say it's a let down. I expected sheer epicness and got 'meh' <throws popcorn at Trilby>
;-)
maxbaroi, what's the output of the commands you run? Anything interesting in the logs?
Which version of xorg-server are you running?
Offline
My .xinitrc for my regular user is just:
/usr/bin/VBoxClient-all
Yes, I have xterm and xorg-twm installed.
The error message I got running startx without sudo from my regular user account is:
X.Org X Server 1.16.0
Release Date: 2014-07-16
X Protocal Version 11, Revision 0
Build Operating System: Linux 3.15-2-ARCH x86_4
Current Operating System: Linux arch-box 2.15.7-1-ARCH #1 SMP PREEMPT Mon Jul 28 20:06:17 CEST 2014 x86_64
Kernel command line: BOOT_IAGE=/boot/vmlinuz-linux root=UUID=9e59517b-19b7-4ea5-aab0-5911f46d5093 rw quiet
Build Date: 25 July 2014  10:42:31PM
Current version of pixman: 0.32.6
           Before reporting provlems, check http://wiki.x.org
           to make sure you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
             (++) from command line, (!!) notice, (II) informational,
             (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Wed Jul 30 13:40:29:2014
(==) Using config directory: "/etc/X11/xorg.conf.d"
waiting for X server to shut down (EE) Server terminated successfully (0). Closing log file.
And when I type sudo startx, I see the xorg desktop environment, but it's completely frozen: can't type, can't switch windows, can't close windows, etc.
Last edited by maxbaroi (2014-07-30 21:10:00)
Offline
Server terminated successfully (0). Closing log file.
Well, that's pretty self explanatory. Nothing went wrong.
But it just has nothing to do. So I gather the vbox command is not doing what you want it to do (see edit). Can you start a wm (eg twm) from your user's xinitrc?
EDIT: or it is doing what it's supposed to an exiting. You need to put something in your xinitrc or when it is done, it exits successfully.
Last edited by Trilby (2014-07-30 21:04:06)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Did you type this in here?
(==) Using config directory: "/etc/X11/xprg.conf.d"I'm not sure if it should say 'xprg'.
Offline
Yeah, Karol. I typed it out because the shared clipboard isn't working.
Trilby: Adding "exec twm" at the bottom of my .xinitrc totally worked. I have no idea why startx works in root without that line, but now startx works for regular users. Thanks.
It's weird though, I don't remember having to add that to my .xinitrc file in previous installs. But I guess that doesn't really matter.
Offline
root doesn't use your user's ~/.xinitrc.
Offline
In the absence of an xinitrc, startx starts some "default" programs like twm and a few xterms. When rightly followed the wiki to add that vbox line to the top of your xinitrc, it was assuming that you *had* an xinitrc (most users do!). But as you didn't already have one, I gather you created the file with just that line. The presence of the file prevented startx from reading the systemwide xinitrc.
Time to go edit a wiki page.
EDIT: nevermind, it's already there - you didn't follow it close enough 
  The wiki says to copy the systemwide template xinitrc first if it doesn't exist yet.
Last edited by Trilby (2014-07-30 21:41:23)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
It's a big wiki. Sometimes you overlook things. Thanks for the advice.
Offline