2019-09-29 10:38:14 +02:00
|
|
|
import os
|
|
|
|
|
|
|
|
if os.getenv('DESKTOP_PACKAGE') == 'lxde':
|
|
|
|
xstartup = 'startlxde'
|
|
|
|
elif os.getenv('DESKTOP_PACKAGE') == 'xfce4':
|
|
|
|
xstartup = 'xfce4-session'
|
|
|
|
else:
|
|
|
|
xstartup = 'xterm'
|
|
|
|
|
2019-09-26 19:55:21 +02:00
|
|
|
c.ServerProxy.servers = {
|
2019-09-29 10:38:14 +02:00
|
|
|
'desktop': {
|
2019-09-26 19:55:21 +02:00
|
|
|
'command': [
|
2019-09-27 20:30:44 +02:00
|
|
|
# '/usr/local/bin/websockify',
|
|
|
|
'/opt/conda/bin/websockify',
|
|
|
|
'-v',
|
|
|
|
'--web', '/usr/share/novnc',
|
|
|
|
'5901',
|
|
|
|
'--',
|
|
|
|
'vncserver',
|
|
|
|
'-verbose',
|
2019-09-29 10:38:14 +02:00
|
|
|
'-xstartup', xstartup,
|
2019-09-27 20:30:44 +02:00
|
|
|
'-geometry', '1024x768',
|
|
|
|
'-SecurityTypes', 'None',
|
|
|
|
'-fg',
|
|
|
|
':1',
|
|
|
|
],
|
2019-09-26 19:55:21 +02:00
|
|
|
'absolute_url': False,
|
|
|
|
'port': 5901,
|
|
|
|
'timeout': 30,
|
|
|
|
'indexpage': 'vnc.html?autoconnect=true',
|
|
|
|
}
|
|
|
|
}
|