Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1578  / 2 Years ago, fri, april 22, 2022, 7:16:51

I am used to being able to launch a second X session in TTY8 with exec startx but instead I'm getting an error:



X: user not authorized to run the X server, aborting.


And then in TTY 8 I end up with a stuck cursor and no login at all. Just the blinking cursor in the very top left. How to I kick up a second x server so that I can log in as another user there?



Update



With help in the comments, I've gotten somewhat farther. From the terminal in an existing xsession, I can do exec sudo startx to get a new x session in TTY8, logged in as that user. If I hop to TTY4, log in and do exec startx I can get a session, too.



Here's what still isn't working: the session I get is a a working x session but without any launcher, top bar or Unity window management. So ctrlaltt gives me a terminal and I can launch applications from there, but I can't switch between them and if I minimize a window there's no way to get it back.


More From » 13.10

 Answers
6

Not a complete answer, though it lets you run startx as root.



sudo does not execute in a shell. It just looks in the $PATH. That is why the exec is not found. You should try



exec sudo startx


Also, to start Unity you can just try and run the export DISPLAY=:0; unity command in a Terminal.






Also, just guessing though you can try these commands:



sudo startx
export DISPLAY=:0
unity

[#27701] Sunday, April 24, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
elecerna

Total Points: 140
Total Questions: 121
Total Answers: 107

Location: Northern Ireland
Member since Sun, Nov 21, 2021
3 Years ago
;