You are not logged in.

#1 2015-06-13 17:42:10

LastDino
Member
Registered: 2015-06-12
Posts: 8

[SOLVED] startx returns error /root/ .Xauthority does not exist

So, I followed this solution to my problem which was same as the OP in this linked thread. I encountered it while installing openbox on VM bare-bones arch.

https://bbs.archlinux.org/viewtopic.php … 8#p1514318

But, after running ''startx'' I get this.

http://i.imgur.com/SDXfXVp.png

I've tried doing some researching for this as well, but I'm afraid I'm probably going down the wrong road. Any ideas?

Last edited by LastDino (2015-06-15 15:46:29)

Offline

#2 2015-06-13 17:48:49

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,896
Website

Re: [SOLVED] startx returns error /root/ .Xauthority does not exist

Server terminated successfully (0)

X is working fine, and is doing what you've told it to do. So what have you told it to do? What is in your .xinitrc?


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2015-06-13 17:53:11

dcdriving
Member
From: United Kingdom
Registered: 2015-01-20
Posts: 70

Re: [SOLVED] startx returns error /root/ .Xauthority does not exist

Are you meaning to run X as root?  Did you copy the file WorMzy asked to see to a users home directory or to the root home directory?

Offline

#4 2015-06-13 18:18:09

LastDino
Member
Registered: 2015-06-12
Posts: 8

Re: [SOLVED] startx returns error /root/ .Xauthority does not exist

WorMzy wrote:

Server terminated successfully (0)

X is working fine, and is doing what you've told it to do. So what have you told it to do? What is in your .xinitrc?

http://i.imgur.com/Hg5BYsw.png

Something like this? Though, I've no idea what to edit now.

dcdriving wrote:

Are you meaning to run X as root?  Did you copy the file WorMzy asked to see to a users home directory or to the root home directory?

Actually, I went to root and tried that out when my user login gave this output

http://i.imgur.com/PWtEAXc.png

Offline

#5 2015-06-13 18:28:36

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: [SOLVED] startx returns error /root/ .Xauthority does not exist

LastDino wrote:

Something like this? Though, I've no idea what to edit now.

You should post the entire file rather than just the bit that fits on your screen. You can use a pastebin client to generate a link to an online pastebin.
https://wiki.archlinux.org/index.php/Li … in_clients

Read this:
https://wiki.archlinux.org/index.php/Xinitrc

And probably this as well (recursively):
https://wiki.archlinux.org/index.php/Ge … mendations

Don't run X as root, even in a VM.

Make sure .xinitrc is in your normal user's home directory.

Offline

#6 2015-06-13 18:45:40

LastDino
Member
Registered: 2015-06-12
Posts: 8

Re: [SOLVED] startx returns error /root/ .Xauthority does not exist

Head_on_a_Stick wrote:
LastDino wrote:

Something like this? Though, I've no idea what to edit now.

You should post the entire file rather than just the bit that fits on your screen. You can use a pastebin client to generate a link to an online pastebin.
https://wiki.archlinux.org/index.php/Li … in_clients

Read this:
https://wiki.archlinux.org/index.php/Xinitrc

And probably this as well (recursively):
https://wiki.archlinux.org/index.php/Ge … mendations

Don't run X as root, even in a VM.

Make sure .xinitrc is in your normal user's home directory.


I've read the 2nd link before and I think I performed this action wrong:

The reason of doing this (instead of creating one from scratch) is to preserve some desired default behaviour in the original file, such as sourcing shell scripts from /etc/X11/xinit/xinitrc.d. Scripts in this directory without .sh extension are however not sourced: FS#41471. As such, replace /etc/X11/xinit/xinitrc.d/?*.sh with /etc/X11/xinit/xinitrc.d/?*

As the original thread link in my OP, I had the problem with xinitrc not being present in /etc/skel/  and I tried to use /etc/X11/xinit/xinitrc.

Was that not necessary? If it was, could you please walk me through the process?

Also, first upper part of the xinitrc
http://i.imgur.com/zuwYCxT.png

Sorry, don't know yet how to copy paste text across VM and machine to paste text trough pastebin.  Will try to figure out, but right now screenshot is best I can do.

Offline

#7 2015-06-13 18:59:21

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: [SOLVED] startx returns error /root/ .Xauthority does not exist

LastDino wrote:

As the original thread link in my OP, I had the problem with xinitrc not being present in /etc/skel/  and I tried to use /etc/X11/xinit/xinitrc.

Was that not necessary? If it was, could you please walk me through the process?

*Read* the xinitrc ArchWiki page I have linked.

I'm not going to re-type it for you...

LastDino wrote:

Sorry, don't know yet how to copy paste text across VM and machine to paste text trough pastebin.

*Read* the pastebin client ArchWiki page I have linked.

cat ~/.xinitrc | curl -F 'sprunge=<-' http://sprunge.us

EDIT: typo

Last edited by Head_on_a_Stick (2015-06-13 19:00:01)

Offline

#8 2015-06-13 20:19:01

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

Re: [SOLVED] startx returns error /root/ .Xauthority does not exist

So the issue posted in the title of the thread is solved then right?  Run as a user, and there is no error.

You're real problem, however, is something else - as indicated right away by WorMzy in the second post.  You need to put what you want in your ~/.xinitrc.  You could use the default, but the default tries to start TWM xclock and xterms.  If these are not installed, xinitrc will `exec` to something that doesn't exist and thus complete.  X will exit happily, having completed everything you told it to do.


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

Offline

#9 2015-06-14 03:16:02

LastDino
Member
Registered: 2015-06-12
Posts: 8

Re: [SOLVED] startx returns error /root/ .Xauthority does not exist

Head_on_a_Stick wrote:
LastDino wrote:

As the original thread link in my OP, I had the problem with xinitrc not being present in /etc/skel/  and I tried to use /etc/X11/xinit/xinitrc.

Was that not necessary? If it was, could you please walk me through the process?

*Read* the xinitrc ArchWiki page I have linked.

I'm not going to re-type it for you...

LastDino wrote:

Sorry, don't know yet how to copy paste text across VM and machine to paste text trough pastebin.

*Read* the pastebin client ArchWiki page I have linked.

cat ~/.xinitrc | curl -F 'sprunge=<-' http://sprunge.us

EDIT: typo

Thank you for the code. And links ^^

Trilby wrote:

So the issue posted in the title of the thread is solved then right?  Run as a user, and there is no error.

You're real problem, however, is something else - as indicated right away by WorMzy in the second post.  You need to put what you want in your ~/.xinitrc.  You could use the default, but the default tries to start TWM xclock and xterms.  If these are not installed, xinitrc will `exec` to something that doesn't exist and thus complete.  X will exit happily, having completed everything you told it to do.

Yes, it has. Thank you.

Offline

#10 2015-06-14 21:46:34

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] startx returns error /root/ .Xauthority does not exist

Please remember to mark the thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309

Offline

Board footer

Powered by FluxBB