Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SSH login shows Only console users are allowed to run the X server

Every time I log in from SSH, I get:

Only console users are allowed to run the X server

I also get this if I make a new tmux pane, which I can handle by putting:

test -z ${TMUX} && startx

in my .zprofile

I assume I get the message because I run startx. How can I make it not to run startx if I log in from ssh?

like image 314
Bagus Trihatmaja Avatar asked Nov 08 '22 22:11

Bagus Trihatmaja


1 Answers

So, I found a solution for this, that is by login automatically right after booting by using xlogin and dbus.

Here is a wiki of how to do that:

Automatic login into xorg without display manager

like image 107
Bagus Trihatmaja Avatar answered Nov 15 '22 09:11

Bagus Trihatmaja