[Spice-devel] multiple users and xspice

Jeremy White jwhite at codeweavers.com
Tue Dec 23 06:44:32 PST 2014


On 12/23/2014 07:45 AM, Rob Verduijn wrote:
> If you are curious about how to get the Xspice seamles to work for a
> single user

Sure; that works.

The recipe I was recently using is:

yum install xorg-x11-server-Xspice

> Edit /etc/gdm/custom.conf

[xdmcp]
Enable=true
PingIntervalSeconds=0
( see https://bugzilla.gnome.org/show_bug.cgi?id=741766 )

(MaxSessions=nn is a good idea, too)

Then, either in a startup script, or manually, run this:
Xspice --auto \
        --noreset \
        --disable-ticketing \
        -xorg /usr/libexec/Xorg.bin \
        -query localhost \
        -seat seat1 :1 \
        -ac

Then a client can connect with remote-viewer spice://<server-addr>:5900.

And instead of --disable-ticketing, you can put in --password for a 
password as well.  The -ac can be avoided with a bit of xauth fu, which 
I haven't gotten to yet.

I also tend to like to put --exit-on-disconnect, and then have Xspice 
restart itself in my script.

It's all a bit fiddly at the moment, though.  I haven't quite worked out 
how to get gdm to accept I have permission to start a color terminal, 
for example.  And the -xorg shouldn't be required, and the -ac should 
really be removed.

Cheers,

Jeremy


More information about the Spice-devel mailing list