Start Multiple WM Session On Different tty Number

Start Multiple WM Session On Different tty Number

I never thought of starting a WM / desktop session at a different tty number. But it is possible to do so if you wish. I assume you are using startx or xinit. Here's how:

.xinitrc should look something like this:

  1. case $( basename "$( tty )" ) in 
  2.     tty1) 
  3.         # Start WM 1 
  4.         # put whatever you want 
  5.         ;; 
  6.     tty2) 
  7.         # Start WM 2 
  8.         exec openbox-session 
  9.         ;; 
  10. esac 

You can login to a tty, for example tty2 (CTRL + ALT + F2) then just type "startx" or "xinit".

I hope this helps.

#Linux