You are not logged in.

#1 2014-11-17 05:40:49

jenia
Member
Registered: 2014-07-12
Posts: 45

how to start a second XServer session?

I want to run xmnoad in another TTY. For this purporse, I type

    startx /usr/bin/xmonad -- :6 vt6

I simply get a black screen. I thought maybe I dont know how to use xmonad. So I did the same with lxde, which I normally use:

    startx /user/bin/openbox-lxde -- :6 vt6

I got simply a black screen with a cursor.

Also, when I kill that process by doing

    ps aux | grep xmonad

    kill ****

The xserver shuts down.

Can someone tell me, how to properly start a second window manager like xmonad or lxde in another TTY session.

Last edited by jenia (2014-11-17 06:11:04)

Offline

#2 2014-11-17 06:31:44

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: how to start a second XServer session?

Are you using ~/.xinitrc to launch your X session? I do. I simply log into another tty and type 'startx'.

Offline

#3 2014-11-17 07:07:42

alezost
Member
Registered: 2013-10-17
Posts: 61

Re: how to start a second XServer session?

Why do you use ":6"?  Did you try ":1"?

Edit: I didn't notice your phrase about cursor, so perhaps it just started OK and all you get is a window manager.  I tried

startx xterm -- :1 vt6

and I saw xterm window as expected.

Last edited by alezost (2014-11-17 07:49:40)

Offline

#4 2014-11-17 14:50:11

jenia
Member
Registered: 2014-07-12
Posts: 45

Re: how to start a second XServer session?

karol wrote:

Are you using ~/.xinitrc to launch your X session? I do. I simply log into another tty and type 'startx'.

Hi Karol.

No. I can't use xinitrc because it has the settings for my current window manager, but I want to try another window manager (xmonad) in another TTY so I have to pass it the argument on the command line I guess.

Offline

#5 2014-11-17 14:53:53

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

Re: how to start a second XServer session?

FWIW, xinitrc takes parameters.  For example, I can run mine with "xinit alo", "xinit vel", "xinit ob", or with no parameter for a default:

xmodmap ~/.Xmodmap
urxvtd -q -f -o

WM=${1:-alo}

xrandr | grep -q "VGA1 connected" && xrandr --output LVDS1 --auto --output VGA1 --auto --below LVDS1
iocane -c powder

case $WM in
	alo)
		exec ~/code/alopex/alopex > ~/.xorg.log 2>&1
		;;
	vel)
		tint2 &
		exec ~/code/velox/velox > ~/.xorg.log 2>&1
		;;
	ob)
		feh --bg-scale ~/images/bg.jpg
		exec openbox
		;;
	*)
		exec alopex
		;;
esac

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

Offline

#6 2014-11-17 14:56:06

jenia
Member
Registered: 2014-07-12
Posts: 45

Re: how to start a second XServer session?

alezost wrote:

Why do you use ":6"?  Did you try ":1"?

Edit: I didn't notice your phrase about cursor, so perhaps it just started OK and all you get is a window manager.  I tried

startx xterm -- :1 vt6

and I saw xterm window as expected.

Hi alezost.
I dont understand, xterm is a terminal emulator i think.
Also, what do you mean "all you get is a window manager"? Is that not enough to get a normal graphical environemtn?
I want to achieve the same result as if I place `exec xmonad` in my .xinitrc file but from the command line (to try alternative window managers like xmonad in another TTY while running my primary window manager which is lxde).

Offline

#7 2014-11-17 15:07:53

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,481

Re: how to start a second XServer session?

FYI, since recent Xorg updates, it is mandatory to first switch to the vt you want to start another X server.
I don't know if this is the expected behaviour.

See this: https://bbs.archlinux.org/viewtopic.php?id=186212


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

Board footer

Powered by FluxBB