Issues running startx as non-root user
by permaroot from LinuxQuestions.org on (#4R8EP)
Hey all, I have a weird issue.
I use arch linux (but I figured this applies to all linux distros?) and have multiple installs.
On my desktop I installed xorg, xorg-xinit, etc as root after installation. I can log in as my non-privileged user and startx.
However, on my laptop I get errors such as xinit permission denied, or I/O permission denied (and keyboard wont work if it runs)
I then came across a post that said " You set it up as root so all the permissions were for root, which is a horrendous idea for X"
Link to Post
My questions are:
Why would it work with an identical install on my desktop but not my laptop?
How can you install packages as a non-root user when using sudo is basically doing the same thing?
How do you personally install xorg? As root?
Any help appreciated.


I use arch linux (but I figured this applies to all linux distros?) and have multiple installs.
On my desktop I installed xorg, xorg-xinit, etc as root after installation. I can log in as my non-privileged user and startx.
However, on my laptop I get errors such as xinit permission denied, or I/O permission denied (and keyboard wont work if it runs)
I then came across a post that said " You set it up as root so all the permissions were for root, which is a horrendous idea for X"
Link to Post
My questions are:
Why would it work with an identical install on my desktop but not my laptop?
How can you install packages as a non-root user when using sudo is basically doing the same thing?
How do you personally install xorg? As root?
Any help appreciated.