You are not logged in.

#1 2019-09-01 12:23:45

Stefan_xyz
Member
Registered: 2019-09-01
Posts: 107

[Solved] Starting xfce4 -> Getting the display for xauth

I'm new to Arch but not to Linux. Also I'm writting this from my phone so excuse formating and gramatical errors.

I want xfce as my desktop environment.
I downloaded it and tried to run it with:

'startxfce4'

It then prints:

'usr/bin/startxfce: starting X server
waiting for Xserver to beginn accepting connections'

Then it prints some dots and then shuts down the PC (no error or anything I know of). (The same happens with 'startx')

Now i check my .Xauthority file which exists but is empty.
So i tried to generate one via 'xauth generate [...]' but for this I need to know the display and i didnt found a way to get it (":0" or "arch:0" didnt work).

Any ideas?

Last edited by Stefan_xyz (2019-09-01 13:02:59)

Offline

#2 2019-09-01 12:29:15

dockland
Member
From: Sweden
Registered: 2015-06-06
Posts: 861

Re: [Solved] Starting xfce4 -> Getting the display for xauth

Hi Stefan_xyz and welcome onboard.

First things first. Is this a laptop perhaps with hybrid graphics?
Do you have a ~/.xinitrc?


I possess a device, in my pocket, that is capable of accessing the entirety of information known to man.
I use it to look at funny pictures of cats and to argue with strangers.

Offline

#3 2019-09-01 12:34:56

Stefan_xyz
Member
Registered: 2019-09-01
Posts: 107

Re: [Solved] Starting xfce4 -> Getting the display for xauth

dockland wrote:

First things first. Is this a laptop perhaps with hybrid graphics?

I got an 1050ti and an i7 7700HQ with graphic support.

dockland wrote:

Do you have a ~/.xinitrc?

Yes i got the file. It is not empty the only changes i made was to uncomment everything below the '# start some nice programms' commentar.

Offline

#4 2019-09-01 12:46:50

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

Re: [Solved] Starting xfce4 -> Getting the display for xauth

Stefan_xyz wrote:

Yes i got the file. It is not empty the only changes i made was to uncomment everything below the '# start some nice programms' commentar.

That would explain why startx doesn't do what you expect, though not why the system would shut down: please follow the wiki.

To troubleshoot the shutdown, please post your Xorg log and the journal from the previous boot (when the shutdown happened).


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2019-09-01 13:02:36

Stefan_xyz
Member
Registered: 2019-09-01
Posts: 107

Re: [Solved] Starting xfce4 -> Getting the display for xauth

Trilby wrote:
Stefan_xyz wrote:

Yes i got the file. It is not empty the only changes i made was to uncomment everything below the '# start some nice programms' commentar.

That would explain why startx doesn't do what you expect, though not why the system would shut down: please follow the wiki.

To troubleshoot the shutdown, please post your Xorg log and the journal from the previous boot (when the shutdown happened).

Okay i redone it and now it works. Thanks!

Im not quite sure why tho because before i changed the file it didnt work (neither as root nor a normal user) but now it works (as root and as a normal user)


Thanks for the quick replies.

Offline

#6 2019-09-01 13:12:17

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

Re: [Solved] Starting xfce4 -> Getting the display for xauth

Ah, ok.  That really shouldn't have fixed the shutdown.

But if it's working, so be it.  But please also do not run X as root.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB