You are not logged in.

#1 2013-04-05 16:43:05

Narga
Member
From: Hải Phòng, Việt Nam
Registered: 2011-10-06
Posts: 60
Website

How to separate DE per TTY

Hi,
Is it possible running separate DE on each TTY like title?
I'm trying running xfce4 on tty7 after login throught slim and want running openbox on tty8 (or another)
Thanks

Offline

#2 2013-04-05 19:47:26

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: How to separate DE per TTY

Yes. You just start one on display :0 and the next on display :1


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2013-04-06 04:35:17

Narga
Member
From: Hải Phòng, Việt Nam
Registered: 2011-10-06
Posts: 60
Website

Re: How to separate DE per TTY

How to does it?
I've started two X server from tty1 and tty2 but it's still start with default DE: XFCE4 and not start with others like Openbox

Offline

#4 2013-04-06 05:00:21

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: How to separate DE per TTY

You need a separate .xinitrc for Openbox...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2013-04-06 11:10:09

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,553
Website

Re: How to separate DE per TTY

It sounds like you've done all the hard work and have the challenging parts working, but overlooked the basics:  xinit/startx will accept command line parameters and pass them on to .xinitrc as $1 $2 ...

Generally one would have a case statement in .xinitrc for this

case $1
    ob) exec openbox ;;
    wm) exec othercoolwm ;;
    *) exec xfce4 ;;
esac

EDIT: then - in this cas - the parameter "ob" or "wm" would come before the "--" which separates xinitrc parameters from those sent to Xorg.  So your invocation would be something like the following

xinit -- vt7          #start default xfce session on tty7
xinit ob -- :1 vt8    #start openbox session on tty8

Last edited by Trilby (2013-04-06 11:15:47)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2013-04-08 01:40:13

Narga
Member
From: Hải Phòng, Việt Nam
Registered: 2011-10-06
Posts: 60
Website

Re: How to separate DE per TTY

Thanks, It works like charm, now I running two DE on separate tty and display it on two monitor.

Offline

Board footer

Powered by FluxBB