Die Mac OS hat eine Reihe von weitgehend unbekannt und fast geheime Funktionen, die Benutzer komplett gestalten Aspekte ihres Computers , einschließlich dessen, was passiert, wenn Sie sich anmelden oder abmelden können. Erstellen einer Anmeldung Haken können Sie eine bestimmte ausführbare Programm automatisch gestartet, wenn Sie sich anmelden Das Programm hat den zusätzlichen Vorteil, läuft als root , das heißt es unter einem Administrator des Systems geöffnet und wird keine Beschränkungen gesetzt . Anleitung
Mac OS X 10.3, 10.4 oder höher
1
Öffnen Sie Ihre Anwendungen-Menü auf " Utilities" klicken und öffnen Sie das Terminal .
2
Typ "sudo defaults write com.apple.loginwindow LoginHook /path /to /script " in der Klemme Textfenster .
3
Ersetzen Sie den Text " /path /to /script " mit dem Skript der Programm, das Sie ausführen möchten , wenn Sie sich einloggen Öffnen Sie das Terminal und geben Sie in " denen ", gefolgt von dem Namen des Programms , um das Skript Standort jedes ausführbare Programm zu finden. Zum Beispiel, wenn Sie das Skript für das Spiel finden wollte " Plants Vs. Zombies ", würden Sie in " welche Pflanzen vs Zombies " im Terminal eingeben.
4
Geben Sie Ihr Passwort , wenn Sie gefragt , um die Änderung zu genehmigen.
Mac OS X 10.2.x , 10.3.x , 10.4.2 oder später
5
Öffnen Sie im Finder-Menü , suchen Sie nach " /etc /" und klicken Sie auf" Zurück ".
6
Klicken Sie auf die Schaltfläche" tty "-Datei und öffnen Sie sie mit Ihrem bevorzugten Textverarbeitungsprogramm wie TextEdit .
7
Suche durch den Text -Datei , bis Sie die Zeile: # Konsole " /System /Library /CoreServices /loginwindow.app /Contents /MacOS /loginwindow " vt100 auf sicheren window = /System /Library /CoreServices /WindowServer onoption = "/usr /libexec /getty std.9600 "
8
ändern Sie die Zeile Text , so dass er lautet: # console" . /System /Library /CoreServices /loginwindow.app /Contents /MacOS /loginwindow - LoginHook /path /to /script " vt100 auf sicheren window = /System /Library /CoreServices /WindowServer onoption =" /usr /libexec /getty std.9600 " ohne Pausen zwischen den Text. Stellen Sie " /path /to /script " zum Speicherort der ausführbaren Datei, die Sie geöffnet haben , wenn Sie in. Sie bestimmen können, die ausführbare Datei die Lage die gleiche Weise , wie in Abschnitt 1, Schritt 3 beschrieben anmelden.
< Br > 9
Speichern Sie die Textdatei , um die Anmeldung abzuschließen Haken .