A
Anonymous
Gast
Hallo zusammen,
dank meines neuen Hiwi-Jobs darf ich mich mit NoMachine NX beschäftigen. Installation usw. lief bzw. läuft einwandfrei. Ein kleines Problem habe ich aber noch:
Auf meinem NoMachine-Server läuft compiz als WM. Laut Tante Google geht das dann nicht auf dem Client. Auch mit conky klappt es nicht so ganz. Jetzt möchte ich, dass wenn der Client sich verbindet, compiz und conky abgeschaltet und kwin gestartet wird.
Ich habe nur keine Ahnung, wie so ein Skript ausschauen muss. Bisher sieht es so aus:
Meine server.cfg:
Was ich nicht verstehe:
Kann mir bitte jemand helfen? Im I-Net hab ich nichts gefunden.
Cu
dank meines neuen Hiwi-Jobs darf ich mich mit NoMachine NX beschäftigen. Installation usw. lief bzw. läuft einwandfrei. Ein kleines Problem habe ich aber noch:
Auf meinem NoMachine-Server läuft compiz als WM. Laut Tante Google geht das dann nicht auf dem Client. Auch mit conky klappt es nicht so ganz. Jetzt möchte ich, dass wenn der Client sich verbindet, compiz und conky abgeschaltet und kwin gestartet wird.
Ich habe nur keine Ahnung, wie so ein Skript ausschauen muss. Bisher sieht es so aus:
Code:
Herbie@RossTheBoss:~> cat Programme/nxkwin
#! /bin/sh
kdialog --passivepopup 'NoMachine: Es wird von Compiz zu Kwin gewechselt und Conky wird beendet!'
sleep 3
kwin --replace&
killall conky
exit 0
Meine server.cfg:
Code:
#
# Specify absolute path of the custom script to be executed before
# the user logs in. The script can accept remote IP of the user's
# machine as its input.
#
# E.g. UserScriptBeforeLogin = "/tmp/nxscript/script.sh"
#
#UserScriptBeforeLogin = "sh /home/Herbie/Programme/nxkwin"
#
# Specify absolute path of the custom script to be executed after
# the user logs in. The script can accept username as its input.
#
#UserScriptAfterLogin = ""
#
# Specify absolute path of the custom script to be executed before
# the session start-up. The script can accept session ID, username,
# node host and node port as its input.
#
UserScriptBeforeSessionStart = "sh /home/Herbie/Programme/nxkwin"
#
# Specify absolute path of the custom script to be executed after the
# session start-up. The script can accept session ID, username, node
# host and node port as its input.
#
#UserScriptAfterSessionStart = ""
#
# Specify absolute path of the custom script to be executed before
# the session is closed. The script can accept session ID, username,
# node host and node port as its input.
#
#UserScriptBeforeSessionClose = ""
#
# Specify absolute path of the custom script to be executed after the
# session is closed. The script can accept session ID, username, node
# host and node port as its input.
#
#UserScriptAfterSessionClose = ""
#
# Specify absolute path of the custom script to be executed before
# the session is reconnected. The script can accept session ID user-
# name, node host and node port as its input.
#
#UserScriptBeforeSessionReconnect = ""
#
# Specify absolute path of the custom script to be executed after the
# session is reconnected. The script can accept session ID username
# node host and node port as its input.
#
#UserScriptAfterSessionReconnect = ""
#
# Specify absolute path of the custom script to be executed before
# the session is suspended. The script can accept session ID, user-
# name, node host and node port as its input.
#
#UserScriptBeforeSessionSuspend = ""
#
# Specify absolute path of the custom script to be executed after
# the session is suspended. The script can accept session ID, user-
# name, node host and node port as its input.
#
#UserScriptAfterSessionSuspend = ""
#
# Specify absolute path of the custom script to be executed before
# session failure. The script can accept session ID username, node
# host and node port as its input.
#
#UserScriptBeforeSessionFailure = ""
#
# Specify absolute path of the custom script to be executed after
# session failure. The script can accept session ID username, node
# host and node port as its input.
#
#UserScriptAfterSessionFailure = ""
#
# Specify absolute path of the custom script to be executed before
# NX Server creates the new account. The script can accept username
# as its input.
#
#UserScriptBeforeCreateUser = ""
#
# Specify absolute path of the custom script to be executed after
# NX Server has created the new account. The script can accept user-
# name as its input.
#
#UserScriptAfterCreateUser = ""
#
# Specify absolute path of the custom script to be executed before
# NX Server removes the account. The script can accept username as
# its input.
#
#UserScriptBeforeDeleteUser = ""
#
# Specify absolute path of the custom script to be executed after
# NX Server has removed the account. The script can accept username
# as its input.
#
#UserScriptAfterDeleteUser = ""
#
# Specify absolute path of the custom script to be executed before
# NX Server disables the user. The script can accept username as its
# input.
#
#UserScriptBeforeDisableUser = ""
#
# Specify absolute path of the custom script to be executed after
# NX Server has disabled the user. The script can accept username
# as its input.
#
#UserScriptAfterDisableUser = ""
#
# Specify absolute path of the custom script to be executed before
# NX Server enables the user. The script can accept username as its
# input.
#
#UserScriptBeforeEnableUser = ""
#
# Specify absolute path of the custom script to be executed after
# NX Server has enabled the user. The script can accept username
# as its input.
#
#UserScriptAfterEnableUser = ""
Was ich nicht verstehe:
Wie baue ich das ein?The script can accept session ID, username,
# node host and node port as its input.
Kann mir bitte jemand helfen? Im I-Net hab ich nichts gefunden.
Cu