~ not pointing to /home/$user/ when used as root user instead points to /root/. startx not working as root user either.
When I login as root startx does not work, It pops up then closes bringing me back to console. But when I run it as my non-root user account it loads just fine bringing me to bspwm.
Also the tilde key does not point to /home/swer but instead to /root/ so I always have to manually type /home/swer.
About this post
- Posted
- Archived
- Score
- 0 · 100% up
- Kind
- Text
- ID
- 21cata
17 comments
Why would you try to startx as root...? You should never log in as the root user unless you absolutely have to. Starting a user graphical environment as root is not safe.
Also, ~ maps to the current logged in user's home directory. Root's home is /root/, not /home/$user.
I suspect you're looking for the sudo command which preserves the home directory while letting you execute commands as root. There's not much information here about what you're actually trying to accomplish so I can't say for sure.
Deleted before we saved it.
You can have sudo in archlinux:
and then check the archlinux wiki article on sudo
as root:
Make sure your user is part of the wheel group as well.
If
sudois not on your machine you can install it withpacman -S sudoas root (if you have an active internet connection of course).Root is a different user itself, and its home directory is /root.
As for startx not working, I'm not 100% sure, but it's probably because it's not configured for root at all. Check ~/.xinitrc, and see if the file even exists.
Deleted before we saved it.
Personally, I use gdm rather than muck with startx, so I'm not sure. Check the arch wiki page on X11?
Deleted before we saved it.
start over with the wiki.
You should probably install Ubuntu.
Good to hear that you never misunderstood anything about Linux.
Ah yes, so I'm sure you're in favor of making calculus an introductory math course?
There are beginner distributions for a reason. What's your advice? Keep running Arch on a computer OP may need to use, so that they are dead in the water when some major change occurs?