You are not logged in.

#1 2020-01-05 22:46:44

eosphoros
Member
Registered: 2019-09-18
Posts: 5

[SOLVED] xorg and desktop environment installation from root?

I have read the Installation wiki but im pretty unsure of how to proceed.


Say im...  chrooted into the newly pacstraped system, configured stuff and set up the user account. Do i now change into the user account and install xorg, video drivers, kdeplasma with sudo pacman, or do i remain as root user and install the DE?


Is there a difference and how do i proceed in installing the correct way?

Sorry for the noob question, im still trying to put averything together.

Last edited by eosphoros (2020-01-06 01:46:02)

Offline

#2 2020-01-05 22:52:25

Trilby
Banned
Registered: 2011-11-29
Posts: 22,631
Website

Re: [SOLVED] xorg and desktop environment installation from root?

No there is not a difference, just don't try to run x as root.

But really you'd be best off rebooting (and removing the live usb) so you boot into your new system before progressing further.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2020-01-05 22:52:27

Slithery
Forum Moderator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 3,600

Re: [SOLVED] xorg and desktop environment installation from root?

You can only use pacman to install packages if you are logged in as root or use sudo. However, launching X as the root user is a very bad idea.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#4 2020-01-05 22:54:36

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 17,004

Re: [SOLVED] xorg and desktop environment installation from root?

I would suggest that you set up your bootloader (you did not mention that you had set that up yet). 
Then, reboot and make certain you can get things going from a clean boot. 
And make sure your network is working.

Now you have a working system.

Next install sudo, put your user in the wheel group, and configure sudo to allow wheel members to do privileged things with their password.

Lastly, install xorg, and anything else you need as your user using sudo to gain root permissions.

Edit:  You received good comments from three people who have been around a long time -- apparently I am the slowest sad

Last edited by ewaller (2020-01-05 22:55:54)


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 2020-01-05 23:15:03

eosphoros
Member
Registered: 2019-09-18
Posts: 5

Re: [SOLVED] xorg and desktop environment installation from root?

Bootctl is used as bootmanager and was already configured.

Thanks for the fast replies, im moving along with the installation then.

Cheers

Offline

#6 2020-01-05 23:19:36

2ManyDogs
Forum Moderator
Registered: 2012-01-15
Posts: 2,969

Re: [SOLVED] xorg and desktop environment installation from root?

Please remember to mark your thread [SOLVED] (edit the title of your first post).

How to Post

Offline

#7 2020-01-06 00:31:05

eosphoros
Member
Registered: 2019-09-18
Posts: 5

Re: [SOLVED] xorg and desktop environment installation from root?

Slithery wrote:

You can only use pacman to install packages if you are logged in as root or use sudo. However, launching X as the root user is a very bad idea.


There seems to be a bug in the sddm login manager which lauches xorg as root. Does this mean using sddm as login manager to start the KDE desktop makes the system vulnerable?

https://bugs.archlinux.org/task/64105

Offline

#8 2020-01-06 00:34:47

Trilby
Banned
Registered: 2011-11-29
Posts: 22,631
Website

Re: [SOLVED] xorg and desktop environment installation from root?

That's a bit of a different point.

Comments in this thread were ensuring that you never tried to run startx/xinit as root.  Your DM/WM definitely should not run as root - and they don't with SDDM.

Now whether SDDM should run the X server as root is a very different question.  It is perfectly "normal" for it to do so on a properly running arch system.  So don't panic.  It may not be wise or entirely secure ... so panic a little, or consider safer alternatives.  But SDDM running Xorg as root is not indicative of you doing anything incorrectly.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#9 2020-01-06 01:43:02

eosphoros
Member
Registered: 2019-09-18
Posts: 5

Re: [SOLVED] xorg and desktop environment installation from root?

OK, i'll do some research into the alternatives if there are any. At least its as safe as it gets for now.

Thanks

Offline

#10 2020-01-06 02:16:18

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 17,004

Re: [SOLVED] xorg and desktop environment installation from root?

eosphoros wrote:

OK, i'll do some research into the alternatives if there are any. At least its as safe as it gets for now.

Thanks

Consider whether logging into a console (enter user name and password) followed by startx is any less convenient than a display manager.

(Empirically) Most of us old farts do it that way.


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 2020-01-06 02:19:48

Trilby
Banned
Registered: 2011-11-29
Posts: 22,631
Website

Re: [SOLVED] xorg and desktop environment installation from root?

Pssh, speak for yourself.  I have no need for `startx`. tongue


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#12 2020-01-06 02:20:37

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 17,004

Re: [SOLVED] xorg and desktop environment installation from root?

Hey, I said most tongue

But, I'll bet a beer you don't use a Window Manager.

Last edited by ewaller (2020-01-06 02:21:26)


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

#13 2020-01-06 02:24:16

Trilby
Banned
Registered: 2011-11-29
Posts: 22,631
Website

Re: [SOLVED] xorg and desktop environment installation from root?

Sure I do.  It's about 100 lines of C code, but it manages my windows.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#14 2020-01-06 02:30:07

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 17,004

Re: [SOLVED] xorg and desktop environment installation from root?

Crap.  I meant display manager.


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

Board footer

Powered by FluxBB