Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Athan

macrumors newbie
Original poster
Feb 28, 2009
2
0
So, I was exploring with synergy and found about this LoginHook. I made a script as advised here: http://synergy2.sourceforge.net/autostart.html (Second method for OSX).

At first script provided in tutorial didn't work out, as synergy started without -f (no-daemon) seemingly does nothing, and does not even give an error message.. So without giving it a proper thought I added the -f flag. Now as I do login on any user, screen hangs as it runs the script (and I can move the mouse around over synergy client, so at least that works... )

So how can I get my hands on that script without normal login? Safe Boot mode didn't help, and I wasn't able to connect via SSH. Is there any way besides reinstalling the whole system?

Oh and I'm running with Leopard on oldish G5 powermac, if that helps
 
Ah worked it out myself, with a little help from someone who mentioned how to start from disk on startup ;)

So solution worked as follows:

1. Inserted installation DVD
2. Booted up, with C pressed to start up from disk
3. Opened terminal within the installer
4. $ diskutil mountDisk /Volume/<hdd name>
5. Navigated to my script and removed it.
6. reboot

So thanks for the help, and hope this helps anyone who might try their luck
 
Ah worked it out myself, with a little help from someone who mentioned how to start from disk on startup ;)

So solution worked as follows:

1. Inserted installation DVD
2. Booted up, with C pressed to start up from disk
3. Opened terminal within the installer
4. $ diskutil mountDisk /Volume/<hdd name>
5. Navigated to my script and removed it.
6. reboot

So thanks for the help, and hope this helps anyone who might try their luck

Still no luck, I get to the utility, start Terminal, type "diskutil mountDisk /Volumes/<hdd name>" then cd /Volumes/<hdd name>/Library/LoginWindow then I did an ls to make sure the file is there, then "rm LoginHook.sh" then ls again to see if it worked, file gone. Hold power button to hardboot.

Rebooted, system comes back up, still hangs. - Reboot back in to install cd, remount hdd, cd to LoginWindow... LoginHook.sh is still there.. how do I make sure my delete command is actually written to the disk? :/

---

Oops.. I had a feeling a *hard boot* wasn't the answer after deleting the LoginHook.sh... if you just type restart in the terminal it will write the delete to the disk and reboot the system. :)
 
Okay so I have been frantically searching this forum for this answer, but I cannot find the file... LoginHook.sh

Any ideas???
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.