You are not logged in.

#1 2013-10-19 10:23:00

MrQuest
Member
Registered: 2013-05-20
Posts: 19

Installing arch under virtualbox - cannot open default display & stuff

hi!

this is not my first time I try to install arch under virtualbox, and the results I get are the same.

Installation was pretty obvious: installed arch, added user to lp,wheel,games,video,audio,optical,storage,scanner,power,users groups, installed xorg (all group), installed virtualbox-guest-utils, added vboxvideo vboxsf and vboxguest to /etc/modules-load.d/virtualbox.conf. Also installed mesa and xf86-video-vesa.

Then I edited .xinitrc and added there /usr/bin/VboxClient-all line.

In result, when I try to launch X by typing startx, desktop changes resolution to a bigger one, then blank screen and the resolution changes back to previous, displaying the following:
nXQkf1D.png

If I try to launch any de (like bspwm or xfce4) I het a message saying "Can't open the default display".

The weirdest part is that if i change user to root, I can startx and the ugly twm will start, but if I try to launch de, I get the same error message.

Now, what have I missed during the installation which in result gives me what I get?

Thank you.

Offline

#2 2013-10-19 14:52:35

henk
Member
From: Weert, Netherlands
Registered: 2013-01-01
Posts: 334

Re: Installing arch under virtualbox - cannot open default display & stuff

Hi,
If you use startx, and twm appears , X is launched by /etc/X11/xinit/xinitrc. This the test-screen to see if your video-driver is working.
The good news is, the video-driver seems to work. The bad is that your .xinitrc is being ignored.
After copying .xinitrc from /etc/skel/ to your /home/<user>/ directory did you change the permissions?

EDIT: fixed stupid typo.

Last edited by henk (2013-10-19 15:04:47)

Offline

#3 2013-10-19 17:19:33

MrQuest
Member
Registered: 2013-05-20
Posts: 19

Re: Installing arch under virtualbox - cannot open default display & stuff

henk wrote:

Hi,
If you use startx, and twm appears , X is launched by /etc/X11/xinit/xinitrc. This the test-screen to see if your video-driver is working.
The good news is, the video-driver seems to work. The bad is that your .xinitrc is being ignored.
After copying .xinitrc from /etc/skel/ to your /home/<user>/ directory did you change the permissions?

EDIT: fixed stupid typo.

well, the permissions on the files can be seen below:
EP6jJVn.png

and they seems to be ok, right?
And btw, I didn't copy .xinitrc to my ~, it was there already.

Last edited by MrQuest (2013-10-19 17:24:21)

Offline

#4 2013-10-19 17:30:39

PsyGeek
Member
From: Belgium
Registered: 2013-10-16
Posts: 7

Re: Installing arch under virtualbox - cannot open default display & stuff

I'm a complete noob so I probably don't know what I'm saying but the last line in .xinitrc should be "exec *command to start your DE or whatever*" I think. Maybe you forgot the exec and that causes the problem?

Offline

#5 2013-10-19 17:57:06

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,530
Website

Re: Installing arch under virtualbox - cannot open default display & stuff

Please post your actual .xinitrc.  The output in your screenshots indicates that X exited normally, without error.  In other words, nothing went wrong, it did what it was told to do, you just likely have not told it to do what you want.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#6 2013-10-19 18:08:49

MrQuest
Member
Registered: 2013-05-20
Posts: 19

Re: Installing arch under virtualbox - cannot open default display & stuff

Trilby wrote:

Please post your actual .xinitrc.  The output in your screenshots indicates that X exited normally, without error.  In other words, nothing went wrong, it did what it was told to do, you just likely have not told it to do what you want.

good thing is that i actually installed xfce4 and uncommented the corresponding line in the .xinitrc and the xfce4 launced successfully. Maybe I was frustrated because under root I got something, and under user - failures.

The bad thing is that when I want now to launch bspwm with the following .xinitrc
b5TRWVV.png
I get a completely black screen with no response sad

Offline

#7 2013-10-19 18:29:01

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,530
Website

Re: Installing arch under virtualbox - cannot open default display & stuff

Remove the exec from the VBox line.  Then read `man exec`.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB