You are not logged in.
Hello,
I have installed xwindows and the i3 desktop environment on my root account by mistake. I created a user account and logged into it, but I could not start a xwindows because it wasn't installed on that account. Do I need to reinstall everything on the new user or is there a way to copy everything over?
Thanks
Offline
If an application is installed by pacman, then every user should be able to access it.
Please paste actual errors: https://bbs.archlinux.org/viewtopic.php?id=57855
Offline
Hi, you won't need to reinstall anything. There may be some configuration you need to do for your user though. See the Wiki and follow the same steps. You will be able to copy some config files but make sure the permissions on them are correct afterwards.
What is the actual problem you are having now? What errors are you seeing?
All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
Thank you for your quick responses.
when I use startx, it says xinit: connection to X server lost.
Here is the log:
http://sprunge.us/fOPM
EDIT:
Sorry, this was an easy fix. As you can tell, I am very new to unix. I just needed to change the bash script that starts xwindows automatically to run with administrative privileges.
Last edited by dannybtx (2014-12-24 07:56:59)
Offline
[ 736.552] (EE) Server terminated successfully (0). Closing log file.
It is working: you just need to give it something to do. What is in your ~/.xinitrc?
Offline
EDIT:
Sorry, this was an easy fix. As you can tell, I am very new to unix. I just needed to change the bash script that starts xwindows automatically to run with administrative privileges.
I don't know what kind of bash script you're talking about, but that doesn't sound like a proper fix.
Offline
That's an understatement. It sounds like you are logging in as your regular user then using sudo/su to run X as root. This is very dangerous. Don't do this.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Online
Upon further use, I realize that this was a terrible fix. When I use sudo to run startx from a normal user, I become root. Is there a better way to get this to work without sudoing?
That's an understatement. It sounds like you are logging in as your regular user then using sudo/su to run X as root. This is very dangerous. Don't do this.
This is exactly what I am doing.
Last edited by dannybtx (2014-12-24 20:37:21)
Offline
Is there a better way to get this to work without sudoing?
Yes:
It is working: you just need to give it something to do. What is in your ~/.xinitrc?
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Online
See the following:
https://www.archlinux.org/news/xorg-ser … available/
https://wiki.archlinux.org/index.php/Xo … 28v1.16.29
Incidentally, is it "bad" to use
needs_root_rights=yes
in Xwrapper.config? When xorg-server 1.16 was released I used that fix to get it everything working with Openbox asap then forgot about the issue.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
Xyne, there is nothing wrong with using xorg wrap that way to run Xorg (the X server) as root. Running the x clients (window manager, terminals, web browsers) as root however is what is being done by the OP here, and this is an entirely different question - running all x client programs as root is a ridiculously bad idea*. There is no advice anywhere in our wiki or in any documentation that recommends starting x as root as it is dangerous to do so.
*off topic note, we do have a few linux veterans around here who chose to do this. I would not ridicule their choice, but I'd stand by my assertion that it is a bad idea. But they know all the dangers inherent in it and make an informed choice.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Online
Xyne, there is nothing wrong with using xorg wrap that way to run Xorg (the X server) as root. Running the x clients (window manager, terminals, web browsers) as root however is what is being done by the OP here, and this is an entirely different question - running all x client programs as root is a ridiculously bad idea*. There is no advice anywhere in our wiki or in any documentation that recommends starting x as root as it is dangerous to do so.
I understand that and I agree that running X and everything in it as root is almost certainly a bad idea.
What I am still wondering is if using xorg wrap is a hack as opposed to some "cleaner" systemd solution. I still haven't read up on logind etc. so I may be doing something silly.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
offtopic @Xyne
What I am still wondering is if using xorg wrap is a hack as opposed to some "cleaner" systemd solution.
Well, simply not using Xwrapper.config, then Xorg will handle this on it's own (see man page extract below). I don't think Openbox has problems with this, so I think the problems you had would have to be looked at separately. But maybe better on their own topic...
'man Xorg.wrap'
[ ... ]
By default Xorg.wrap will autodetect if root rights are necessary, and if
not it will drop its elevated rights before starting the real X server. By
default Xorg.wrap will only allow executing the real X server from login
sessions on a physical console.
[ ... ]
When auto-detecting the wrapper will drop rights if kms graphics are avail‐
able and not drop them if no kms graphics are detected. If a system has
multiple graphics cards and some are not kms capable auto-detection may
fail, in this case manual configuration should be used.
[ ... ]
You're a bit late on that one
Personal website: reboot.li
GitHub: github.com/rebootl
Offline
It is working: you just need to give it something to do. What is in your ~/.xinitrc?
This is what is in my ~/.xinitrc file for my user: http://sprunge.us/ffLf.
In my root's ~/.xinitrc file, the only line is "execute i3"
Offline
jasonwryan wrote:It is working: you just need to give it something to do. What is in your ~/.xinitrc?
This is what is in my ~/.xinitrc file for my user: http://sprunge.us/ffLf.
In my root's ~/.xinitrc file, the only line is "execute i3"
Offline