You are not logged in.

#1 2015-11-18 23:24:54

LordCorvin
Member
Registered: 2015-11-18
Posts: 10

Cannot open Xorg.0.log on fresh install

First all I'm trying to make my installation work off of USB inside VM_ware machine, I need access to the internet for now, afterwards I will be using that usb as standalone
Carrying on


So I have a weird error and don't know how to get it working.

when I try to run this command as standard user

Xorg -configure

I get this
http://i.imgur.com/G7kLhMQ.png

When I run through root I get this
http://i.imgur.com/oohNhXF.png

The log file is here http://pastebin.com/BkdZVD4T

What am I doing wrong, and need to fix?

Moderator edit.  Converted img tags for over sized pictures to url tags.

Last edited by ewaller (2015-11-18 23:35:24)

Offline

#2 2015-11-18 23:38:35

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,803

Re: Cannot open Xorg.0.log on fresh install

Welcome to Arch Linux.  First, is there a reason you feel the need to run Xorg configure?

It sounds to me as if you do not have permission to open the log file for writing.  I suspect that the log file is owned by root.  If so, delete it.
As a sanity check, Can you write to your home directory? I have seen borked set ups where users cannot.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2015-11-18 23:44:25

LordCorvin
Member
Registered: 2015-11-18
Posts: 10

Re: Cannot open Xorg.0.log on fresh install

Yep, Permission Denied.

When I create new user it doesn't automatically create a place the user can write?

Offline

#4 2015-11-18 23:52:08

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,803

Re: Cannot open Xorg.0.log on fresh install

Nope.  Did you use the -m  ( --create-home ) switch in useradd   ?   
No worries.  As root, create the home directory at /home/yourUserName
Change the group and owner to yourUserName
Change the permissions to 0x700  (owner read, write, execute)

Also, verify that /home is mounted and is writeable.  Ensure that is Linux friendly file system (not ntfs / fat / ....)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#5 2015-11-19 00:00:06

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: Cannot open Xorg.0.log on fresh install

You can only run 'Xorg -configure' as root. I'm guessing this is causing your issue, even though the error message about log file is kinda odd.

man Xorg wrote:

-configure
               When this option is specified, the Xorg server loads all video
               driver  modules, probes for available hardware, and writes out
               an initial xorg.conf(5) file based on what was detected.  This
               option  currently  has some problems on some platforms, but in
               most cases it is a good way  to  bootstrap  the  configuration
               process.  This option is only available when the server is run
               as root (i.e, with real-uid 0).

Unless you're missing your /home/user directory of course.

Usually you shouldn't need to run the command, just install any drivers you need and startx.
For installing arch guest, see this wiki page for dependencies: https://wiki.archlinux.org/index.php/VM … figuration

Offline

#6 2015-11-19 00:05:10

LordCorvin
Member
Registered: 2015-11-18
Posts: 10

Re: Cannot open Xorg.0.log on fresh install

I did use -m switch while creating user, weird. I have /home/myUsername created already

Changing ownership to user results in Operation not permitted

Everything is mounted and in ext4 format

Offline

#7 2015-11-19 00:12:12

LordCorvin
Member
Registered: 2015-11-18
Posts: 10

Re: Cannot open Xorg.0.log on fresh install

ooo wrote:

You can only run 'Xorg -configure' as root. I'm guessing this is causing your issue, even though the error message about log file is kinda odd.

I tried running it's as root as I told here

LordCorvin wrote:

When I run through root I get this
http://i.imgur.com/oohNhXF.png
The log file is here http://pastebin.com/BkdZVD4T

Offline

#8 2015-11-19 00:19:12

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,803

Re: Cannot open Xorg.0.log on fresh install

But...   Is there a reason you need to run Xorg configure?   It is not normally needed.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#9 2015-11-19 00:29:00

LordCorvin
Member
Registered: 2015-11-18
Posts: 10

Re: Cannot open Xorg.0.log on fresh install

No, not really. I'm trying to use startx to see if my graphic drivers are working, but unable to do so.
It mentions

 xauth: timeout in locking authority file /home/myUserName/.Xauthority
fatal server error

Cannot open log file "/home/myUserName/.local/share/xorg/Xorg.0.log

xinit:giving up
xinit: Unable to connect to server x: Connection refused
xinit: Server error

I believe all of this is related, and looks like for some reason myUser doesn't have ownership of home folder, and I can't grant him through root for whatever reason.

I can launch startx through root, but as I understand you're not suppose to

Last edited by LordCorvin (2015-11-19 00:35:05)

Offline

#10 2015-11-19 00:41:33

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,803

Re: Cannot open Xorg.0.log on fresh install

Take a look at ~/.Xauthority and ~/.local/xorg/Xorg.0.log   
I bet they are owned by root. 

Can you now write to your home directory?  Until you can "touch" a file in ~ you are going to have a lot of problems.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#11 2015-11-19 00:52:38

LordCorvin
Member
Registered: 2015-11-18
Posts: 10

Re: Cannot open Xorg.0.log on fresh install

How do I change owner?

I tried

chown myUser /home/myUser/

and nothing worked, tried root and sudo user have same result

chown changing ownership of /home/myUser/: Operation not permitted

Offline

#12 2015-11-19 01:14:44

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: Cannot open Xorg.0.log on fresh install

LordCorvin wrote:

I tried running it's as root as I told here

Sorry, I glanced through too quickly and though that Xorg -configure did work as root.

That command on your last post should change owner of the /home/myUser directory, although you might want to add -R flag to change permissions recursively, and also change the group to your user:

chown -R myUser:myUser /home/myUser

Is your /home partition mounted as read-write? Could you post the output of

mount | grep home

Also can you create files outside of /home/myUser on the same partition, e.g. does this work?

touch /home/foo

Offline

#13 2015-11-19 01:24:51

LordCorvin
Member
Registered: 2015-11-18
Posts: 10

Re: Cannot open Xorg.0.log on fresh install

ooo wrote:
LordCorvin wrote:

I tried running it's as root as I told here

Sorry, I glanced through too quickly and though that Xorg -configure did work as root.

That command on your last post should change owner of the /home/myUser directory, although you might want to add -R flag to change permissions recursively, and also change the group to your user:

chown -R myUser:myUser /home/myUser

Is your /home partition mounted as read-write? Could you post the output of

mount | grep home

Also can you create files outside of /home/myUser on the same partition, e.g. does this work?

touch /home/foo

Result of 1st command

 /dev/sdb2 on /home type vfat (rw,realtime,fmask=0022,dmask=0022,codepage=437,iochart=iso8859-1,shortname=mixed,errors=remount-ro)

And no I can't do anything outside my user folder as well as a user. Can do whatever I want with root though, so definately some permission problems. But root can't give ownership to the user

Offline

#14 2015-11-19 01:41:54

loqs
Member
Registered: 2014-03-06
Posts: 17,416

Re: Cannot open Xorg.0.log on fresh install

/dev/sdb2 on /home type vfat (rw,realtime,fmask=0022,dmask=0022,codepage=437,iochart=iso8859-1,shortname=mixed,errors=remount-ro)
ewaller wrote:

Also, verify that /home is mounted and is writeable.  Ensure that is Linux friendly file system (not ntfs / fat / ....)

Offline

#15 2015-11-19 01:56:59

LordCorvin
Member
Registered: 2015-11-18
Posts: 10

Re: Cannot open Xorg.0.log on fresh install

loqs wrote:
/dev/sdb2 on /home type vfat (rw,realtime,fmask=0022,dmask=0022,codepage=437,iochart=iso8859-1,shortname=mixed,errors=remount-ro)
ewaller wrote:

Also, verify that /home is mounted and is writeable.  Ensure that is Linux friendly file system (not ntfs / fat / ....)

Now I feel stupid, though it's weird, I remember partitioning it to ext4 as well. How safe is it format to ext4? Will I break anything?

Offline

#16 2015-11-19 02:05:14

loqs
Member
Registered: 2014-03-06
Posts: 17,416

Re: Cannot open Xorg.0.log on fresh install

All the data will be lost and you will need to adjust the entry for /home in /etc/fstab.
As it seems to be the case that every file / directory under /home is owned root:root its your choice if you want to try and preserve the data (by copying it somwhere else before the format then copy it back and fix permissions)  or start over.
Edit:
Might be too late but by start over I meant just use userdel to remove the users,  umount /home,  reformat /home,  adjust the entry in fstab for /home, mount /home,  use useradd to put the users back.

Last edited by loqs (2015-11-19 09:51:02)

Offline

#17 2015-11-19 02:09:45

LordCorvin
Member
Registered: 2015-11-18
Posts: 10

Re: Cannot open Xorg.0.log on fresh install

I'll just start over, might come back tomorrow with more questions. Thnaks

Offline

Board footer

Powered by FluxBB