#Startx does not start xorg without sudo

1 messages · Page 1 of 1 (latest)

polar pier
#

I am on Debian 12 with dwm as my WM. Typing startx on tty gives “xinit: unable to connect to X server: Connection refused”
With no log file in .local and sudo startx works with no errors but everything warns me about being in the root account.

brave valley
#

Stop using root as if a regular user account then!

polar pier
#

I am logged in as the user

brave valley
#

How are you running dwm for startx? What's your xinitrc look like?

polar pier
#

Exec dwm

brave valley
#

With that capitolized E?

polar pier
#

No I am on my phone right now

#

Autocorrect

#

Lowercase e

brave valley
#

YOu would need to provide more details,.Logs (startx outputs to stdout, not to a file.), .xinitrc contents, etc.

polar pier
brave valley
#

You don't need to.

#

startx > startup.log

polar pier
#

What’s nc?

brave valley
#

netcat

polar pier
#

Do I need to apt install or is it already there

brave valley
#

It's default in many cases, TIAS, install if needed.

polar pier
brave valley
#

Yep.

polar pier
#

Done.

brave valley
#

URL?

polar pier
#

Nothing came back

brave valley
#

...

polar pier
#

Was it 9999 or a place holder?

brave valley
#

Is your log file more than 0 bytes?

polar pier
#

Lemme see

#

It has nothing

brave valley
#

So, 0 bytes?

polar pier
#

Blank

#

Yes

#

0

brave valley
#

startx &> startup.log

polar pier
#

Done

brave valley
#

Is that more than 0 bytes?

polar pier
#

Yes

#

Sorry

#

Yes

brave valley
#

So,termbin it.

polar pier
#

K

brave valley
#

Hmm.. That's all, eh?

polar pier
#

Yeah

brave valley
#

termbin your .xinitrc

polar pier
#

Alll I see

polar pier
brave valley
#

Not likely to provide much help, because it's clear Xorg isn't even starting.

brave valley
#

apt install xorg -- Just to make sure it's reasonably installed.

brave valley
#

No.

polar pier
brave valley
#

Of course.

#

If you've configured sudo.

polar pier
#

I have

#

Also ran an apt upgrade

#

Startx still the same

brave valley
#

I wonder if you ran sudo startx, and it rote files in your $HOME that are now owned by root

polar pier
#

No all me

brave valley
#

find $HOME -user root

polar pier
#

Returns all my .config/dwm and st and dmenu

brave valley
#

So.... Stuff in $HOME is owned by root user.

#

Ironically just like I said.

polar pier
#

Ls -lah says my username

polar pier
polar pier
#

but the .config subdirectory, yes

brave valley
#

And, is there a specific reason why, you want suckless software, the only software YOU have to patch to make it suck less? And also not using a displaymanager?

polar pier
#

Too many questions that I have no good answer to

brave valley
#

find $HOME -user root -exec chown $USER:$USER \{\} +

#

Ahh.

#

You might need to run that sudo. 🙂

#

$HOME and $USER would be translated before the execution so it remains the same.

polar pier
#

I think because of sudo make clean install it did this

brave valley
#

.config? Not likely that.

#

if so, you did something very wrong.

polar pier
#

In .config/suckless/dwm I did sudo make clean install

#

So the binary is owned by root

brave valley
#

You have a binary in .config?

polar pier
brave valley
#

walks away.

#

Good luck. 🙂

polar pier
#

Sudo it is

#

Ahhh startx is still the same

#

i_know_what_im_doing I know what I am doing