VPN at startup / via terminal ?

Hi,
I have two problems I need to solve with VPN. I'm using the Tiger built-in stuff via Internet Connect to connect to a VPN. I'm doing this from a headless XServe via ARD right now. The reason for the VPN is related to software development which needs to connect to my clients network to access database servers.
1) In order to start the VPN connection, I need to login as a user, fire up internet connect and invoke the connection. What I'd like to do is to have the connection be establish as part of the bootup process in case I restart the server. So I wonder if there's a way to that via a startupitem or other and 'without' being 'logged in' as a user.
2) Sometimes the VPN connection drops, in which case I have to use ARD to re-establish it again. Is there a way to start the connection via the terminal?
I suppose if 2 works, 1 should be doable as well.
Any feedback would be highly appreciated.
- J

I haven't had need to use this, so can't speak from experience....
There's an option in the VPN setup to Enable VPN on Demand
This should bring-up the VPN connection whenever the domain is accessed, whether at start-up or if the vpn drops.
Jeff

Similar Messages

  • Did a clean install 10.9.4. on a stock Fusion HD.  When I run "diskutil list" via Terminal, everything is wrong.  I have "EFI" and "apple Boot Boot OSX in every dev/disk** How do I fix? Any help would be much appreciated, thank you

    Did a clean install 10.9.4. on a Apple Stock 1TB Fusion Hard Drive.  When I run "diskutil list" via Terminal, everything is wrong.  I have "EFI" and "apple Boot Boot OSX" in every dev/disk**  Everything is out of place, How can I repair? Im willing too reformat if need be, however thats what I did in the first place.  Any help would be much appreciated, thank you.
    I know this cannot be correct
    /dev/disk0
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *121.3 GB   disk0
       1:                        EFI EFI                     209.7 MB   disk0s1
       2:          Apple_CoreStorage                         121.0 GB   disk0s2
       3:                 Apple_Boot Boot OS X               134.2 MB   disk0s3
    /dev/disk1
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *1.0 TB     disk1
       1:                        EFI EFI                     209.7 MB   disk1s1
       2:          Apple_CoreStorage                         999.3 GB   disk1s2
       3:                 Apple_Boot Boot OS X               650.0 MB   disk1s3
    /dev/disk2
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:                  Apple_HFS Fusion                 *1.1 TB     disk2
    /dev/disk7
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:                                                   *121.9 GB   disk7

    It appears as if my startup disk has been reversed and not using the fusion ssd portion as it should.  At least its now reversed as to what it used to be originally before.  the 128gb ssd used to be on top.  Is my mac booting fusion correctly?  Thank you for responding as I was about to reformat.
    CoreStorage logical volume groups (1 found)
    |
    +-- Logical Volume Group C2619AFE-0EB5-4721-8C50-3F3DBA520D1B
        =========================================================
        Name:         fusion
        Status:       Online
        Size:         1120333979648 B (1.1 TB)
        Free Space:   114688 B (114.7 KB)
        |
        +-< Physical Volume 583AAEA9-E333-4A83-9BE3-E937396E9248
        |   ----------------------------------------------------
        |   Index:    0
        |   Disk:     disk0s2
        |   Status:   Online
        |   Size:     120988852224 B (121.0 GB)
        |
        +-< Physical Volume B0C1CB16-D46F-4387-A679-B55392BB7934
        |   ----------------------------------------------------
        |   Index:    1
        |   Disk:     disk1s2
        |   Status:   Online
        |   Size:     999345127424 B (999.3 GB)
        |
        +-> Logical Volume Family FB42B9F4-CB77-4162-831B-7DCB7816E760
            Encryption Status:       Unlocked
            Encryption Type:         None
            Conversion Status:       NoConversion
            Conversion Direction:    -none-
            Has Encrypted Extents:   No
            Fully Secure:            No
            Passphrase Required:     No
            |
            +-> Logical Volume C0B8479B-C51C-45BF-B59B-1AA5DF3A3B83
                Disk:                  disk2
                Status:                Online
                Size (Total):          1111826497536 B (1.1 TB)
                Conversion Progress:   -none-
                Revertible:            No
                LV Name:               Fusion
                Volume Name:           Fusion
                Content Hint:          Apple_HFS
    FoHeazys-Mac-mini:~ FoHeazy$ diskutil list
    /dev/disk0
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *121.3 GB   disk0
       1:                        EFI EFI                     209.7 MB   disk0s1
       2:          Apple_CoreStorage                         121.0 GB   disk0s2
       3:                 Apple_Boot Boot OS X               134.2 MB   disk0s3
    /dev/disk1
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *1.0 TB     disk1
       1:                        EFI EFI                     209.7 MB   disk1s1
       2:          Apple_CoreStorage                         999.3 GB   disk1s2
       3:                 Apple_Boot Boot OS X               650.0 MB   disk1s3
    /dev/disk2
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:                  Apple_HFS Fusion                 *1.1 TB     disk2

  • I have a problem when starting my Macbook. A message saying /Library/StartupItems/Icon has not been started due to not having the right security settings. So far it is not under HD og system folder, nor can't find via terminal. Any good suggestions?

    I have tried to delete it via terminal but no luck, have also run a disk permissions repair but no luck.
    I still shows when starting the mac or restarting it.
    Any of you have a good suggestion of what do??
    Just hate when it appears every time I start the Mac

    What items do you have in the Startup Items of your System Preference for your present login user?  Maybe removing and adding them back in will help?
    /Applications/iTunes.app/Contents/Resources
    includes the iTunes Helper application in case you need to reconnect it later.

  • Accessing SAP GUI via terminal services

    In my current project, it is proposed that all SAP development be done remotely via terminal services login to host machine. Does anuone have experience of this way of working? If so what problems were encountered (performance / response times?) and was this method of development successful?

    Paul,
    We did this for a short while for off hours development work and had to quit, but the reasons may be specific to us.  We are only doing ABAP development.
    1.  Support. Developers would be disconnected (for what ever reason) then when reconnect the terminal server would open another session, taking another key, and potentially loosing unsaved code.
    2.  Debugger.  The new debugger, as of ECC, really lends itself to a wide display or two screens, we were very limited to what display options we had by the terminal server (again this might be specific to the way the TS was setup here, but you might want to check)
    As I mentioned ours was for off hours support, so we setup the developers the ability to remote desktop to their desktops through VPN. 
    Good Luck.
    - Brian.

  • How to check folder sizes of the root directory on my VPS/Dedicated server via Terminal?

    Hi,
    I have following issue.
    I have a VPS with Linux OS and I'd like to check size of the folders as well as remaining space on my server.
    How can I do that via Terminal?
    I would appreciate any input.

    login into your VPS server via terminal and cd into the root of your hosted space.  Then use the df -h command to see the listing
    for i.e.
    df -h /volumes/volume_1
    Filesystem             Size   Used  Avail Capacity iused      ifree %iused  Mounted on
    //john@ds00/volume_1  457Gi   12Gi  445Gi     3%       0 18446744073709551615    0%   /Volumes/volume_1
    for you it would be something like:
    df -h [email protected]/share (ip address)

  • VPN auto startup after power cut

    Good evening
    I have set my server to auto start after a power outage. What I would like is have the vpn startup. So the server is auto logging in as a certain user, and then the user has a auto startup item. The server Admin.
    The issue is that the server admin needs to you to bring the window to the foreground in order for the vpn to startup.
    Is there another way to do this?

    Does it power back on after a power outage? auto-boot only covers the boot after the server powers on or is reset. I don't see an option in OpenBoot for auto power on after a power interruption.

  • USB P1505 not printing properly via Terminal Services

    I have problem printing to these printers via terminal services.  Other pinters print fine but these guys either print intermittently or not at all.  I have installed the latest drivers on the TS and the clients.  Sometimes sessions will be created and jobs would just remain in the queue or take a very long time to print.  They are the USB and not the N models.
    Any ideas?
    Win2k3 server
    Win2k Pro/WinXP clients

    The router is Zylex, the printer is an hp deskjet 3512. I first used the disk that came with the printer that did not work, so I uninstalled and downloaded off of this site thinking maybe it would be a more updated version. That did not work either. I have done all of the other troubleshooting that I have found on this site through other forums I unplugged the router, checked countless times to make sure the password and network were correct.
    My main issue at this point in time is that it will not print properly at all. I dont know if I need to download something to make it work. I am a full time student, work full time, and have children. I need my printer to work when I hook it up to usb, I dont have time to for all of these problems that I have had with this printer. I am actually in need of something printed at this very moment and my library is closed which is where I have had to go and pay .25 a page to print anything. So Please help!!!! 

  • Mapping to Windows Share via Terminal

    Any one know the syntax to map to a Windows share via Terminal?
    Thanks.

    You can use the terminal to mount a windows sharepoint using the samba protocol.
    This howto shows you the syntax for doing so.

  • How can I enable java applet plug-in and Web Start applications via terminal?

    Since the last Java update to Snow Leopard, I have found that the system periodically disables the Java applet plug-in after a period of disuse.  I know I can go to /Applications/Utilities/Java Preferences and just click to re-enable Java.  But I want to write a script which will do this periodically for a couple hundred Mac users where I work. 
    My question is - how can I reenable the Java applet plug-in and web start applications via Terminal command?  Is this possible?  Is there a plist file that can be modified, etc.?
    Bob Reed

    It is my understanding that Apple's most recent Java update automatically disables Java after a certain period of time that it hasn't been used.  We don't want users to have to keep re-enabling it.  So we wanted to find a way to do this via script either run by a Casper JSS server or stored locally on each workstation.   With the guidance provided by Mark Jalbert above and some text from a script written by Rich Trouton, I was able to make a script (with some minor changes) and a launch agent to re-run the script upon login.  So the preference is always enabled.
    For your reference, the script content is:
    #!/bin/sh
    # DYNAMICALLY SET THE UUID FOR THE BYHOST FILE NAMING
    if [[ `ioreg -rd1 -c IOPlatformExpertDevice | grep -i "UUID" | cut -c27-50` == "00000000-0000-1000-8000-" ]]; then
    MAC_UUID=`ioreg -rd1 -c IOPlatformExpertDevice | grep -i "UUID" | cut -c51-62 | awk {'print tolower()'}`
    elif [[ `ioreg -rd1 -c IOPlatformExpertDevice | grep -i "UUID" | cut -c27-50` != "00000000-0000-1000-8000-" ]]; then
    MAC_UUID=`ioreg -rd1 -c IOPlatformExpertDevice | grep -i "UUID" | cut -c27-62`
    fi
    # Set the the "Enable applet plug-in and Web Start Applications" setting in the Java Preferences for the current user.
    /usr/libexec/PlistBuddy -c "Delete :GeneralByTask:Any:WebComponentsEnabled" /Users/$USER/Library/Preferences/ByHost/com.apple.java.JavaPreferences.${MAC_UU ID}.plist
    /usr/libexec/PlistBuddy -c "Add :GeneralByTask:Any:WebComponentsEnabled bool true" /Users/$USER/Library/Preferences/ByHost/com.apple.java.JavaPreferences.${MAC_UU ID}.plist
    /usr/libexec/PlistBuddy -c "Delete :GeneralByTask:Any:WebComponentsLastUsed" /Users/$USER/Library/Preferences/ByHost/com.apple.java.JavaPreferences.${MAC_UU ID}.plist
    /usr/libexec/PlistBuddy -c "Add :GeneralByTask:Any:WebComponentsLastUsed real $(( $(date "+%s") - 978307200 ))" /Users/$USER/Library/Preferences/ByHost/com.apple.java.JavaPreferences.${MAC_UU ID}.plist
    The launch agent plist content is:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
              <key>Disabled</key>
              <false/>
              <key>Label</key>
              <string>org.XXXXX.enableJavaPlugin</string>
              <key>ProgramArguments</key>
              <array>
                        <string>sh</string>
                        <string>/Library/Scripts/XXXXX/enableJava_plugin.sh</string>
              </array>
              <key>RunAtLoad</key>
              <true/>
              <key>StartOnMount</key>
              <true/>
    </dict>
    </plist>
    I hope this is helpful to anyone wishing to keep the Java web plugin enabled.
    Bob
    Message was edited by: Robert Reed2

  • How is possible change an administrator user to standar via terminal?

    HI to all!
    How is possible change an administrator user to standar via terminal (unix command)?
    thanks a lot
    Simone

    Thank you Mr Hoffman!
    i have found this command:
    dscl . -append /Groups/admin GroupMembership shortname
    it's working, what do you think about it?

  • Installing Plugins via Terminal (Mac)

    I would like to be able to install plugins in Extension Manager via terminal and enable the installed plugins for a specific set of extensions (InCopy).  I have downloaded the Adobe Extension Manager Help and Tutorials document and it explains the process of installing plugins via terminal.  But when I run the install command, it actually launches Extension Manager in the console.
    I want to be able to install extensions and plugins silently and even when the user is not logged in.  Is this possible and can someone point me to a document which explains the process?
    Bob Reed
    AARP

    For your issue, please follow http://forums.adobe.com/thread/977043?tstart=0 to generate log files and send them to [email protected]
    For your coworker's issue, besides database file and plugin files, you also have to include files in EM Store folder and Mxi Flag folder.
    If your extension is per-machine extension (all files in extension will be installed to per-machine location), you have to include "/Library/Application Support/Adobe/Extension Manager CS6/Configuration/DB/ExMan.db", "/Library/Application Support/Adobe/Extension Manager CS6/EM Store/InCopy CS6/*.*" and "/Library/Application Support/Adobe/Extension Manager CS6/Mxi Flag/InCopy CS6/*.*"
    If your extension is per-user extension (all files in extension will be installed to folder under user home), you have to include "/Users/<UserName>/Library/Application Support/Adobe/Extension Manager CS6/Configuration/DB/ExManUser.db", "/Users/<UserName>/Library/Application Support/Adobe/Extension Manager CS6/EM Store/InCopy CS6/*.*" and "/Users/<UserName>/Library/Application Support/Adobe/Extension Manager CS6/Mxi Flag/InCopy CS6/*.*".
    You also have to ensure all the machines have the same user name.

  • I need help, How could I add Aliases to Local Administrator account via terminal commands???

    I need help, How could I add Aliases to Local Administrator account via terminal commands???
    I want to use commands to add alias for existing administrator account remotly by using ARD.
    Thanks.

    Hi,
    a Windows Domain Controller does not have any local user or groups. So you might add the user to the admin group at Domain level.
    B RGDS,
    Gregor
    Edited by: Gregor Gasper on Jan 9, 2009 1:44 PM

  • Installing STRUCTURE via Terminal

    I am attempting to install the program STRUCTURE via Terminal. I have installed other programs via Terminal w/ no problems. However, I now get the line:
    mkdir: /usr/local/Structure/: Permission denied
    I tried going into the script and replacing /usr/local w/ my own directory info. Permission is then not denied, however, the installation fails. What am I doing wrong?

    If you're not using sudo when you're running the installer, you need to use it.
    (42847)

  • How to assign Static IP via Terminal in Mountain Lion OSX?

    I have formatted by Macbook Pro 13 inch (2009 Oct) running on Mountain Lion OSX. I am trying to install the OSX via Ethernet at office network but I am unable to do so due to network restrictions. Macbook Pro picks the IP automatically when connected over Ethernet.
    In order to install the OSX over the same network I have to configure the Macbook to static IP (public netowork). Could you please guide me how to configure Static IP via Terminal? I mean the commands to feed in Terminal. Thanks!

    First get a list of your network services:
    networksetup -listallnetworkservices
    Then use the desired service name in the following command:
    networksetup -setmanual SERVICE IP SUBNET ROUTER
    For example, by default the Wi-Fi connection will be called "Wi-Fi," so you can use the following to set it to a classic private IP address:
    networksetup -setmanual Wi-Fi 192.168.1.2 255.255.255.0 192.168.1.1
    To set it back to DHCP, use the following command:
    networksetup -setdhcp SERVICE
    To keep DHCP services but only use a manually designated IP address, then use the following command:
    networksetup -setmanualwithdhcprouter SERVICE IP
    You may need to preceede these commands with "sudo" (followed by a single space) to run them with administrative privileges.

  • Send iMessages in OS X via Terminal

    Hello,
    i want to send pictures in iMessage via Terminal, Konsole / AppleScript.
    osascript -e 'tell application "Messages" to send "Hello World" to "John"'
    but there is an error:
    31:67: execution error: Messages got an error: Can’t make "John" into type buddy, text chat. (-1700)
    (John is a right contact)
    And how can I send pictures via Terminal?
    osascript -e 'tell application "Messages" to send "/pictures/pic01.png" to "John"'
    How can I tell OS X that I want to send a document and not a text?
    Thanks for your help!

    Hi,
    In the beginning iChat was AIM Only.
    Much of the AppleScript written for the app is written with this is mind.
    "picc-in-chars" are treated as Files whether they are sent as File Only with no Chat open or as Files within the Chat (which then displays the pics in most cases).
    The Auto Accept Script  may give some clues.
    It reads this for the Receipt of files and pic-in-Chats.
    To access this go to the Messages > Preferences > General section.
    At the bottom is  drop down for AppleScript with an option to show the Folder.
    This no longer displays the ~/Library/Scripts/Messages folder that Messages 7.x.x did (as did earlier version of iChat) that were used in the Alerts tab.
    If you open  the Script you can see it refers to "theBuddy" for some of the other Events.
    I am not sure this can be applied to the iMessages side of things.
    The Dictionary for Messages has this
    Your Script also appears to think you have a Pictures Folder at the top level of the Hard Drive (Along with Applications, Library, System, Users  etc.)
    Did you mean your home folder/Pictures (As In ~/Pictures)
    The Dictionary also defines "Buddies" as being related to specific Services
    this may include iMessages.
    I was once sent this script that displays  a Status messages that refers to who you are chatting with by using the name of the window (it has  section to exclued other windows)
    As text
    using terms from application "Messages"
        on av chat started
            tell application "Messages"
                set allChatWindows to every window
                set completed to false
                repeat with currentWindow in allChatWindows
                    set windowname to the name of currentWindow
                    if (not completed) then
                        if ((windowname is not ¬
                            "Audio/Video") and (windowname starts with ¬
                            "Audio" or windowname starts with ¬
                            "Video")) then
                            set status message to windowname
                            set completed to true
                        else if (windowname does not contain ¬
                            "General" and windowname does not contain ¬
                            "Doctor" and windowname does not contain ¬
                            "Activity" and windowname does not contain ¬
                            "File" and windowname does not contain ¬
                            "Accounts" and windowname does not contain ¬
                            "Messages" and windowname does not contain ¬
                            "Alerts" and windowname does not contain ¬
                            "Audio/Video" and windowname does not contain ¬
                            "Chax" and windowname does not contain ¬
                            "AIM" and windowname does not contain ¬
                            "Contacts" and windowname does not start with ¬
                            "Chat" and windowname does not contain ¬
                            "Chats" and windowname does not contain ¬
                            "Bonjour") then
                            set status message to "Audio Chat with " & windowname
                            set completed to true
                        end if
                        delay 0.2
                    end if
                end repeat
                set volume input volume 85
                delay 0.2
                set volume output volume 80
                delay 0.2
                set status to away
            end tell
        end av chat started
    end using terms from
    The end bit tweaks your volume Input and output from your regular settings.
    I hope that give you some clues.
    10:18 pm      Saturday; January 18, 2014
      iMac 2.5Ghz 5i 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

Maybe you are looking for

  • Imposto Retido na Fonte - Acumulatividade no Recebimento

    Bom dia, Gostaria de saber como funciona no SAP Business One a acumulatividade de IR para NF Entrada? O caso seria: o cliente emite NF serviços a seus clientes. Esses são PJ. Os impostos de Pis, Cofins e CSLL somente devem ser retiros quando o total

  • How do I create a zoom transition in Premiere Elements 9?

    Hello, Could you tell me how do I zoom in Adobe Premiere Elements 9? And I mean a slow zoom transition, not a non-transitioning zoom that "jumps" into zoom from one frame to the other. Thanks, Andrey

  • Safari SSl Issue with Online Grading Site

    I manage a department that offers grading of exams online. Users supply their answers and have the server grade the submissions. We randomly have an issue where Safari users will have their exams graded incorrectly. Basically failing the student even

  • AIR-WLC526-K9

    I have a AIR-WLC526-K9, but ive been wondering if the software is correct, because the normal cisco commands wont work. and there's no webserver page to the device The BootUp Process: GNU bash, version 3.2.25(1)-release (i686-redhat-linux-gnu) These

  • AE CC wont open. Last log message was: 140735211164432

    Last log message was: <140735211164432> <AppDirs> <5> Required Dir = /Applications/Adobe After Effects CC/Adobe After Effects CC.app/Contents/Required all the other cc apps works fine. i tried to uninstall and install but no change. i work with macbo