|
|
Automatically establish internetconnections via the Cisco VPNClient on start- and wake-up
I was annoyed by always being forced to reestablish the Internetconnection by the Cisco-GUI after waking up my machine. Now, by the help of SleepWatcher (btw: thanx for the great hint and thanx for the software) the connection is always being reestablished automatically w no need of using the GUI anymore. Here is, what I did:
1. Installed the Files "SleepWatcher" and "SleepWatcher StartupItem" from the downloaded SleepWatcher File. 2. Wrote a little script (I used Textedit) containing just the following two lines:
(whereas PROFILE has to be replaced by the Name of the File your Cisco VPNClient works with located in …/private/etc/opt/cisco-vpnclient/Profiles/ – btw the path is invisible but can be made visible with e.g. MacExplorer) 3. Saved the such created Texteditfile as ".wakeup" (w/o anything written before the stopmark and w/o the quotes) in my Homedirectory where it is being placed as an invisible file (but with e.g. MacExplorer easily to find if you need to edit it). 4. Opened the Terminal and made the ".wakeup"-file an executable Unix-file by typing the following line:
(whereas MYNAME has to be replaced by the name of your Homedirectory). 5. Restarted my machine. And that did it. Now, whenever I startup my machine or wake it up, the internetconnection is automatically being (re)established. Another advantage: You won´t need the Cisco-GUI anymore and therefore will have a bit more space in your dock for something else ;-)
Automatically establish internetconnections via the Cisco VPNClient on start- and wake-up
Forgot one thing to mention:
This hint only works if there is no prompt for your password on login to the Cisco-Network. To get rid of the prompt, there will be some editing necessary on the Connection-Profile placed in the folder …/private/etc/opt/cisco-vpnclient/Profiles/ (you can browse hidden folders with e.g. MacExplorer):
1. Shut down the VPN-Connection and quit the GUI (because it will override all of the following, when being closed later). 2. Open the YourProfile.pcf in e.g. Textedit (whereas "YourProfile" is the Profilename the Cisco-GUI shows when connecting).
3. Find the line
4. Find the line
5. Now, find the line 6. Close Textedit and browse to the file (YourProfile.pcf (see above)) in the folder named above (again with e.g. MacExplorer). 7. Select the pcf-file you just edited and press command-i to get the file information. 8. Make sure the item "locked" is being highlighted. This way your editing won´t be lost after using the Cisco-GUI at a later time. Now, the former posted hint should work. To make sure, that your editing was fine you might want to use the Cisco-GUI to see if you got rid of the prompt for your account and your password. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.34 seconds |
|