You are not logged in.
Pages: 1
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
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
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
Yep, Permission Denied.
When I create new user it doesn't automatically create a place the user can write?
Offline
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
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
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.
-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
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
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
When I run through root I get this
http://i.imgur.com/oohNhXF.png
The log file is here http://pastebin.com/BkdZVD4T
Offline
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
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
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
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
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
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
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
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
/dev/sdb2 on /home type vfat (rw,realtime,fmask=0022,dmask=0022,codepage=437,iochart=iso8859-1,shortname=mixed,errors=remount-ro)
Also, verify that /home is mounted and is writeable. Ensure that is Linux friendly file system (not ntfs / fat / ....)
Offline
/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
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
I'll just start over, might come back tomorrow with more questions. Thnaks
Offline
Pages: 1