Ask Your Question

How to start 2nd x session (from a first one)?

asked 2015-07-25 04:29:03 -0600

przemas gravatar image

I'd like to launch 2nd x session (need to launch x with different window manager on 2nd terminal). How can I achieve that? When I do it by pressing ctrl+alt+f2 , logging in and typying: startx /usr/bin/openbox-session -- :1

it works.

When I try to do it from gnome on tty1 I get:

/usr/libexec/Xorg.wrap: Only console users are allowed to run the X server

Tried creating /etc/X11/Xwrapper.config and putting allowed_users=anybody there, but still no success. The error message changed though:

xauth:  file /home/przemek/.serverauth.3336 does not exist

X.Org X Server 1.16.3
Release Date: 2014-12-20
X Protocol Version 11, Revision 0
Build Operating System:  3.17.8-300.bz1178975.fc21.x86_64 
Current Operating System: Linux lenoviak 4.0.8-200.fc21.x86_64 #1 SMP Fri Jul 10 21:09:54 UTC 2015 x86_64
Kernel command line: BOOT_IMAGE=/vmlinuz-4.0.8-200.fc21.x86_64 root=UUID=4cf904f5-63f3-4b5a-b02c-317327aaad9d ro rhgb quiet LANG=pl_PL.UTF-8 nouveau.modeset=0 rd.driver.blacklist=nouveau
Build Date: 31 January 2015  11:23:27PM
Build ID: xorg-x11-server 1.16.3-2.fc21 
Current version of pixman: 0.32.6
    Before reporting problems, check
    to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.2.log", Time: Fri Jul 24 11:22:04 2015
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
Fatal server error:
(EE) no screens found(EE) 
Please consult the Fedora Project support 
 for help. 
(EE) Please also check the log file at "/var/log/Xorg.2.log" for additional information.
(EE) Server terminated with error (1). Closing log file.
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
Nie udało się uzyskać deskryptora pliku wskazującego na konsolę

Any ideas how can I do it?

edit retag flag offensive close merge delete


Who would own your screen in your scenario? You can create as many remote sessions as you want to, which each has their own screen. But how are you planning to have two X sessions share the same screen? By default you have one X Screen defined - that needs to be changed if you wish to have more than one (not sure I understand your use-case but that's not relevant).

bit4man gravatar imagebit4man ( 2015-07-28 23:00:42 -0600 )edit

??? They are not sharing the same screen-I wish to ctrl+alt+f2 to switch to 2nd session. But I want to launch/initiate 2nd x session from a 1st one. User stays the same. So lets assume we have user johndoe1 . System starts, user johndoe1 gets gdm screen, logs in into Gnome . There he starts a script that launches another session for him on tty2 , but with Openbox this time. As written that would be ideal and should be doable - I know users that got it working in CentOS. In Fedora I got errors. I need such setup for an app that does not work well in Gnome. Having to log on tty2 again is a pain.

przemas gravatar imageprzemas ( 2015-08-05 04:20:43 -0600 )edit

1 Answer

Sort by » oldest newest most voted

answered 2017-01-05 18:00:24 -0600

Did you get an answer?

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2015-07-25 04:29:03 -0600

Seen: 2,484 times

Last updated: Jul 25 '15