Auto connect vpn

Looking for a way to auto start PrivateVPN at startup. I’ve tried some command lines but didn’t work. PrivateVPN is open on setup

Hello @Hedgie

If you want to autostart PrivateVPN (or any application) on your Ubuntu-based Zorin OS, you can use the built-in Startup Applications feature. Here’s a step-by-step guide:

  1. Startup Applications:

    Go to the main menu and search for “Startup Applications”. Open the application.

  2. Add New Entry:

    Click on the “Add” button to create a new startup entry.

  3. Command:

    You’ll need to specify the command to run PrivateVPN at startup. If you’ve been trying command lines before, this might be similar. Typically, it might be something like privatevpn or the full path to the application’s executable. If you’re not sure about the exact command, you can usually find it out by:

    a. Searching for the application in the system menu.

    b. Right-clicking the application icon and choosing Properties.

    c. Checking the “Command” field for the exact command.

  4. Name and Comment:

    Give the startup entry a name (like “PrivateVPN”) and optionally provide a comment to remind yourself what it does.

  5. Save and Close:

    Click “Add” to save your new startup entry. Close the “Startup Applications” utility.

  6. Restart:

    To test if it works, you might want to restart your system. Upon login, PrivateVPN should automatically start.

  7. Troubleshooting:

    If the app doesn’t start as expected, ensure the following:

    a. The command is correct. Sometimes, desktop applications also have a .desktop file in /usr/share/applications/ or ~/.local/share/applications/. You can check the contents of these files (with the app’s name) to determine the correct command.

    b. The application doesn’t require elevated (root) privileges to run. If it does, you might need to set up a different method, like a systemd service, to start it, or reconsider if you really want to run it as root at startup due to potential security concerns.

Remember, Zorin OS, while being based on Ubuntu, might have some small differences in behavior or UI elements, but the general procedure should be quite similar.