• Hallo Gast!
    Noch bis zum 20.07. kannst Du an unserer Umfrage zum Hersteller des Jahres teilnehmen! Als Gewinn verlosen wir unter allen Teilnehmern dieses Mal eine Grafikkarte Eurer Wahl für bis zu 1.000 EUR - über eine Teilnahme würden wir uns sehr freuen!

Synergy Autostart vor dem Login?

L

lamodus04

Guest
Hi zusammen
Da ich momentan mit XP und Ubuntu 9.04 parallel arbeite, habe ich Synergy im Einsatz. So kann ich übers Netzwerk mit einer Tastatur und Maus beide PCs bedienen.
Ubuntu (Client), XP (Server)

Soweit funktioniert alles perfekt.

Da ich jedoch nicht jedes mal zuerst auf beiden PCs das Programm starten will, wollte ich mir ein Autostart einrichten.

Auf dem Windows PC wars ganz einfach. Auf dem Ubuntu 9.04 System hab ichs noch nicht ganz hingekriegt. Nach langem googlen habe ich eine Beschreibung gefunden, wie man das machen muss:

Code:
Unix

Synergy requires an X server. That means a server must be running and synergy must be authorized to connect to that server. It's best to have the display manager start synergy. You'll need the necessary (probably root) permission to modify the display manager configuration files. If you don't have that permission you can start synergy after logging in via the .xsession file.

Typically, you need to edit three script files. The first file will start synergy before a user logs in, the second will kill that copy of synergy, and the third will start it again after the user logs in.

The contents of the scripts varies greatly between systems so there's no one definite place where you should insert your edits. However, these scripts often exit before reaching the bottom so put the edits near the top of the script.

The location and names of these files depend on the operating system and display manager you're using. A good guess for the location is /etc/X11. If you use kdm then try looking in /etc/kde3 or /usr/kde/version/share/config. Typical file names are:

   	   	xdm 	   	kdm 	   	gdm
1 		xdm/Xsetup 		kdm/Xsetup 		gdm/Init/Default (*)
2 		xdm/Xstartup 		kdm/Xstartup 		gdm/PostLogin/Default (*)
3 		xdm/Xsession 		kdm/Xsession 		gdm/Sessions/Default (*, **)

*) The Default file is used if no other suitable file is found. gdm will try displayname (e.g. :0) and hostname (e.g. somehost), in that order, before and instead of Default.
**) gdm may use gdm/Xsession, xdm/Xsession or dm/Xsession if gdm/Sessions/Default doesn't exist.

For a synergy client, add the following to the first file: /usr/bin/killall synergyc sleep 1 /usr/bin/synergyc [<options>] synergy-server-hostname Of course, the path to synergyc depends on where you installed it so adjust as necessary.

Add to the second file: /usr/bin/killall synergyc sleep 1

And to the third file: /usr/bin/killall synergyc sleep 1 /usr/bin/synergyc [<options>] synergy-server-hostname Note that <options> must not include -f or --no-daemon or the script will never exit and you won't be able to log in.

The changes are the same for the synergy server except replace synergyc with synergys and use the appropriate synergys command line options. Note that the first script is run as root so synergys will look for the configuration file in root's home directory then in /etc. Make sure it exists in one of those places or use the --config config-pathname option to specify its location.

Note that some display managers (xdm and kdm, but not gdm) grab the keyboard and do not release it until the user logs in for security reasons. This prevents a synergy server from sharing the mouse and keyboard until the user logs in. It doesn't prevent a synergy client from synthesizing mouse and keyboard input, though.

If you're configuring synergy to start only after you log in then edit your .xsession file. Add just what you would add to the third file above.

Ich habe also

gdm/Init/Default
gdm/PostLogin/Default
gdm/PreSessions/Default

Entsprechend editiert. Das Problem ist jetzt aber, dass das Programm erst autostartet (dafür aber dann innerhalb von ein paar Augenblicken) wenn ich Benutzername und Passwort eingegeben habe. Das bringt mir nicht viel. Dann muss ich ja trotzdem immer noch eine Tastatur angeschlossen haben, um mich anzumelden und erst danach kann ich dann beide PCs mit einer Tastatur und Maus bedienen.

Also: Wie krieg ich es hin, dass ich schon VOR dem Login das Ubuntu System mit der Tastatur steuern kann, die am XP System angeschlossen ist.

Laut dieser Beschreibung oben sollte es ja so gehen, aber wie gesagt, es funktioniert nicht.

mfg lamodus
 
Wenn Du diese Anzeige nicht sehen willst, registriere Dich und/oder logge Dich ein.
Um es einfach zu umgehen:

Richte doch einfach einen automatischen Login bei Ubuntu ein. Dann meldet sich dein User beim Systemstart automatisch an und demzufolge startet auch Synergy ;)

mfg
foxxx :wink:
 
ich möchte den passwortschutz aber.

edit: das mach ich erst, wenn wirklcih keine chance besteht, dass das irgendwie funktionieren könnte. und ich bin mir ziemlich sicher, dass es irgendwie geht!
 
Zuletzt bearbeitet:
Gibt ein bestimmtes Script oder Programm, mit dem du Synergy manuell starten kannst, wenn es nicht im Autostart drin ist ?

Wen ja, könntest du deine Änderungen am Autostart wieder rückgängig machen, und dieses Script mit entsprechenden Parametern nach /etc/init.d/synergyboot (z.b.) verlinken ;)

mfg
foxxx :wink:
 
Hardwareluxx setzt keine externen Werbe- und Tracking-Cookies ein. Auf unserer Webseite finden Sie nur noch Cookies nach berechtigtem Interesse (Art. 6 Abs. 1 Satz 1 lit. f DSGVO) oder eigene funktionelle Cookies. Durch die Nutzung unserer Webseite erklären Sie sich damit einverstanden, dass wir diese Cookies setzen. Mehr Informationen und Möglichkeiten zur Einstellung unserer Cookies finden Sie in unserer Datenschutzerklärung.


Zurück
Oben Unten refresh