i think i got it, i'll know this evening.
so... the setup looks as followed:
server: freebsd-8.3 (soon to be replaced by freebsd-9.1), named "kaffeekanne"
client1: raspberry pi, debian linux (named "salzstreuer")
client2: raspberry pi, debian linux (named "pfefferstreuer")
the goal was to have a shared desktop on both of the pis.
tightvnc turned out to be too slow, plus i had to fiddle around in the sourcecode. so i gave xrdp a shot.
so here is my /etc/xrdp/sesman.ini:
Code:
[Globals]
ListenAddress=127.0.0.1
ListenPort=3350
EnableUserWindowManager=1
UserWindowManager=startwm.sh
DefaultWindowManager=startwm.sh
[Security]
AllowRootLogin=1
MaxLoginRetry=4
TerminalServerUsers=users
TerminalServerAdmins=dettus
[Sessions]
X11DisplayOffset=10
MaxSessions=10
KillDisconnected=0
IdleTimeLimit=0
DisconnectedTimeLimit=0
[Logging]
LogFile=/var/log/xrdp-sesman.log
LogLevel=DEBUG
EnableSyslog=0
SyslogLevel=DEBUG
[X11rdp]
param1=-bs
param2=-ac
param3=-nolisten
param4=tcp
[Xvnc]
param1=-bs
param2=-ac
param3=-nolisten
param4=tcp
here is my xrdp.ini:
Code:
[globals]
bitmap_cache=yes
bitmap_compression=yes
port=3389
crypt_level=low
channel_code=1
[xrdp1]
name=sesman-Xvnc
lib=libvnc.so
username=ask
password=ask
ip=127.0.0.1
port=-1
[xrdp2]
name=console
lib=libvnc.so
ip=127.0.0.1
port=5900
username=na
password=ask
[xrdp3]
name=vnc-any
lib=libvnc.so
ip=ask
port=ask5900
username=na
password=ask
[xrdp4]
name=sesman-any
lib=libvnc.so
ip=ask
port=-1
username=ask
password=ask
[xrdp5]
name=rdp-any
lib=librdp.so
ip=ask
port=ask3389
[xrdp6]
name=sesman-X11rdp
lib=libxup.so
username=ask
password=ask
ip=127.0.0.1
port=-1
my /etc/pam.d/xrdp-sesman and /etc/xrdp/sesman are similar:
Code:
#%PAM-1.0
# PAM configuration for the "login" service
#
# auth
auth sufficient pam_self.so no_warn
auth include system
# account
account requisite pam_securetty.so
account required pam_nologin.so
account include system
# session
session include system
# password
password include system
on the freebsd server (kaffeekanne), i am running
Code:
/usr/local/sbin/xrdp-sesman --nodaemon
/usr/local/sbin/xrdp -nodaemon
(for debugging purposes).
i have two raspberry pis, one on the left hand side, the other on the right hand side. the one on the left is a synapse server. it has a mouse and a keyboard connected to it. the other one a synergy client. (i will give you the config for that one later. sorry.)
/etc/synergy.conf:
Code:
section: screens
pfefferstreuer:
salzstreuer:
end
section: links
salzstreuer:
right = pfefferstreuer
pfefferstreuer:
left = salzstreuer
end
section: aliases
# curly is also known as shemp
salzstreuer:
kk
end
anyways, on the left hand pi (salzstreuer), i have to create a $HOME/.xsessionrc:
Code:
setxkbdmap us
synergys
rdesktop -P -u dettus -k us -g 2560x1024+0+0 kaffeekanne
xterm
on the right one (pfefferstreuer):
Code:
synergyc salzstreuer
rdesktop -P -g 2560x1024-0+0 -u dettus -k us kaffeekanne
xterm
by accident, both of them are connecting to the same xrdp desktop. i don't know exactly why, but it works. is it fun? no. wayyyy too much laagg....
and some keys on my keyboard are dead. like, for instance, all the cursor keys. the ones on the num pad work.