Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
If I change TTY to 2, then run startx, then change to TTY 1 and stop Xorg (by killing Xorg or the process I started with startx), TTY changes to 2. Can I stop Xorg without switching, i.e. stay on the same TTY?
service lightdm start
service lightdm stop
You need to start Xorg with the -novtswitch option.
Required, but never shown