You are not logged in.

#1 2017-01-03 07:04:02

notCarl
Member
Registered: 2016-12-28
Posts: 7

Xserver stopped working randomly.

Hi everyone.
I was trying to configure my .Xresources file to learn how to edit my terminals, and after a few reboots, I would get an error when i run $startx.

The error is that .Xauthority in ~/.Xauthority directory is not writeable. There are also two new .Xauthority files. .Xauthority-c, and .Xauthority-l

Did my user profile lose permissions to write files for some reason? I had successfully made some adjustments to .Xresources, and noticed the results a few times before my Xserver started to hang on me. That is why it seems like something broke randomly.

Thank you for reading.

Offline

#2 2017-01-03 07:42:42

ayekat
Member
Registered: 2011-01-17
Posts: 1,634

Re: Xserver stopped working randomly.

notCarl wrote:

I would get an error when i run $startx.

It would be useful to have that error message. Also, are you literally typing that command with the dollar sign?

Please post the output of this command, too:

ls -la .Xauthority*

Last edited by ayekat (2017-01-03 07:43:08)


pkgs │ hacks │ cfg │ blag

Offline

#3 2017-01-03 18:39:33

notCarl
Member
Registered: 2016-12-28
Posts: 7

Re: Xserver stopped working randomly.

I am not using the dollar sign. I'm simply typing "startx." Like I said, it was working many times and then eventually it started to hang.

The exact error I get is--    /home/notcar/.Xauthority not writable, changes will be ignored
ls -la .Xauthority gives me

-rw------ 1 root          root   104 Jan 2 16:42    .Xauthority
-rw------ 2 notcarl     notcarl  0 Jan 3 04:31    .Xauthority-c
-rw------ 2 notcarl     notcarl  0 Jan 3 04:31    .Xauthority-l

Offline

#4 2017-01-03 19:11:43

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,962
Website

Re: Xserver stopped working randomly.

why is it owned by root?

Offline

#5 2017-01-03 19:12:52

loqs
Member
Registered: 2014-03-06
Posts: 19,184

Re: Xserver stopped working randomly.

It appears at some point you ran the equivalent of

$ sudo startx

A process then running as root updated .Xauthority causing the ownership to become root:root.
With the ownership of .Xauthority now root:root future invocations of startx for user notcarl can not update .Xauthority,  so the the authentication information X applications need can not be generated correctly so those applications will not start successfully.
Delete /home/notcarl/.Xauthority it will be recreated with the correct permissions on the next use of startx assuming it is not run with sudo.

Offline

#6 2017-01-04 20:48:59

notCarl
Member
Registered: 2016-12-28
Posts: 7

Re: Xserver stopped working randomly.

Loqs, you were exactly correct. Your suggestion worked perfectly. Problem solved.
Thank you very much!

Offline

#7 2017-01-04 20:55:52

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Xserver stopped working randomly.

Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB