UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Edit VPN settings file

    Scheduled Pinned Locked Moved Support
    2 Posts 2 Posters 404 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • vokalizV Offline
        vokaliz
        last edited by vokaliz

        How to change (edit) this file?
        Ubports support:
        "in the /etc/NetworkManager/system-connections directory the vpn confige files are stored.
        If i edit the vpn config like this:

        password-flags=0
        And add the following:
        [vpn-secrets]
        password=YourPassword
        Now restart network manager by:
        service network-manager restart

        The connection could be established by shifting the key in the networking-manager gui."

        I cant open and copy this file, how can I edit vpn password?

        • from https://github.com/ubports/ubuntu-touch/issues/46
        1 Reply Last reply Reply Quote 0
        • A Offline
          air409
          last edited by

          I edited the file that was created specific to the VPN server I was using.

          After you navigate to the file as described in your post, type at the prompt:

          sudo nano filename

          "filename" will be that file name specific to the VPN server that was created. Change my generic "filename" to your specific filename. My VPN uses alot of servers in various places and I have to modify each Terminal file created if I want to use them.

          After you type that, you will be prompted for your password. I type in the password and press enter. Then I press enter again and the file appears using the editor app "nano".

          To the left of my Terminal screen near the bottom there are control keys that include an option to use "nano" specific keys. The option menu appears as three rows of horizontal short dashes stacked on each other. Press this, and while holding it down, slide your finger on the screen to select "nano" at the top. This will give you the control keys you can use for nano. I just use the control-x key to save and eventually exit. Follow the directions on the screen after your selections. It was described elsewhere that you cannot use your VPN editor to make changes after you save the Terminal file because it will write over the file and you have to start over. I did the VPN editor setup first, then the Terminal file mod and it has worked fine so far. You can use your finger on the screen to control the cursor. It took a little practice for me to get it right.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post