Validation of Xephyr setup?

constantine costas.magnuse at gmail.com
Fri Oct 10 18:13:01 PDT 2014


Hi all!

I want to have 3 different users (userA, userB, userC) run X automated
tasks simultaneously on the same machine that I use for my work.
I run KDE (DISPLAY=:0) with 2 activities: in the first I do my work
and in the second I monitor the activities of (userA, userB, userC).

Is my setup correct?

I ask because when I start for userB a let's say an xdotool loop, it
stops (Quit core dump), when I return to my first activity or go to
another desktop.

Moreover, I would really like to learn what redundant steps I have taken.

### 1. I let them use my Display:
$ xhost -
$ xhost +SI:localuser:userA
$ xhost +SI:localuser:userB
$ xhost +SI:localuser:userC

### 2. I start one Xephyr session in each of my second activity's
virtual desktops:
$ sudo -H -u userA bash -c 'DISPLAY=:0 kstart --desktop 1 Xephyr -br
-ac -noreset -screen 800x600 :10'
$ sleep 1
$ sudo -H -u userB bash -c 'DISPLAY=:0 kstart --desktop 2 Xephyr  -br
-ac -noreset -screen 800x600 :11'
$ sleep 1
$ sudo -H -u userC bash -c 'DISPLAY=:0 kstart --desktop 3 Xephyr  -br
-ac -noreset -screen 800x600 :12'
$ sleep 1

### 3. I start an openbox session
$ sudo -H -u userA bash -c 'DISPLAY=:10 /usr/bin/openbox-session' &
$ sleep 1
$ sudo -H -u userB bash -c 'DISPLAY=:11 /usr/bin/openbox-session' &
$ sleep 1
$ sudo -H -u userC bash -c 'DISPLAY=:12 /usr/bin/openbox-session' &

Another question please: Are the '$ sleep 1' really necessary?


Thank you!


constantine


PS: In /etc/sudoers I have added:
thatsme ALL=(root) NOPASSWD: /bin/su - userA
thatsme ALL=(root) NOPASSWD: /bin/su - userB
thatsme ALL=(root) NOPASSWD: /bin/su - userC


More information about the xorg mailing list