For some reason I want to have 2 GUIs open at different TTYs.
the commands
sudo service lightdm stop/start
will stop/create a new GUI at TTY7. but how can I do the same at different TTYs or redirect its output?
Like I'm doing this for tty1 here:
at this point you can launch your graphical application though you can use this alternative instead of previous command:
Start a detached X server:
Note: Don't forget the you should enter all these commands just in dedicated tty (Ctrl+Alt+F1) and not in your graphical console. |
|||||
|
|
I just tested the above answer in response to jasonszhao's comment that it does not work. Using Ubuntu 16.04.2 LTS there were no issues with the commands. Note:
"n" in "vtN is the tty number you want to run the graphical display. So in my case I ran
to start another X session on tty8 and then I used
to start the program I wanted to run on DISPLAY:4 |
|||||
|
startx -- :1. In my Ubuntu Gnome / gdm setup will start a new server on tty8. Tested just now. Probably the exact effect is dependent on the xinit scripts, so could be different between gdm , ligthdm and whatnot. – Rmano Apr 4 '14 at 22:25