I’m using Surfshark ,is it possible to start Surfshark automatically when I start my PC?
I use XFCE and have there in the “Settings” -> “Session and startup behavior” - there is certainly also for Gnome. There in the tab “Automatically started applications” I can create / place their own entries.
Is that what you are looking for?
I use KDE plasma?
Let’s try a web search:
and that leads to:
Wow, that was quick!
or a search from System Settings
That would imply the user knows that System Settings exists.
Let me tell first that I’m a beginner.And I know System Settings My problem is that have to start Surfshark in a terminal…first I must give my password,then I must chose the server and then I’ve to chose between TCP or UDP, so my question is how can I do that?
Oh, wait, this is a paid-for VPN service. That means they have their own customer support:
It’s likely you can set up a VPN profile using Network Manager, for example:
I had contact with customer support of Surfshark,they have only a method for Debian based distro’s.
Reading https://aur.archlinux.org/packages/surfshark-vpn it appears this VPN uses OpenVPN so you can configure it using Network Manager (via the
Ask customer support for the relevant OpenVPN settings.
If they don’t support Arch-based distributions then you might want to find a provider that does.
This is what they send me:
1. Create auth.txt file inside /etc/openvpn directory via this command: sudo gedit /etc/openvpn/auth.txt Fill it with your SurfShark Service Credentials: username password Save it. 2. Then open the file which you are using to establish a connection: sudo gedit /etc/openvpn/ca-mon.prod.surfshark.com_udp.ovpn And change this line: auth-user-pass into auth-user-pass auth.txt Save the file and change its name: sudo mv /etc/openvpn/ca-mon.prod.surfshark.com_udp.ovpn /etc/openvpn/ca-mon.conf 3. Then you will have to edit the startup on boot file via this command: sudo gedit /etc/default/openvpn When the text editor opens, add this line above #AUTOSTART=“all”: AUTOSTART=“ca-mon” Save the file and reboot your Linux device. 4. After the reboot - open the terminal and type in: sudo traceroute 18.104.22.168 The first hop address should be 10.8.8.1 and in ipleak.net you should see Canada Montreal servers IP address.
As long as you are using EndeavourOS replacing the word gedit with nano should work here.
I replaced gedit with nano, everything runs fine until point 3, if it opens openvnp, it’s empty, I entered 'AUTOSTART = “ca-mon” ,saved it and then when I execute point 4 (sudo traceroute 22.214.171.124) I get error “sudo: traceroute: command not found”
sudo pacman -Syu traceroute
Error is gone,but no connection with Surfshark ?
ip a show a tunnel?
something like :
3: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 500 link/none inet **.***.***.*/24 scope global tun0 valid_lft forever preferred_lft forever inet6 ****::****::****::****::****/64scope link stable-privacy
Is your user member of group
(Maybe the developer uses a different group entry, due to being proprietary as far as I understand)
[willy@willy-precisionworkstationt3500 ~]$ sudo traceroute 126.96.36.199 [sudo] wachtwoord voor willy: traceroute to 188.8.131.52 (184.108.40.206), 30 hops max, 60 byte packets 1 _gateway (192.168.0.1) 8.290 ms 8.260 ms 8.244 ms 2 * * * 3 * * * 4 * * * 5 dD5E0FA6D.access.telenet.be (220.127.116.11) 28.767 ms 33.466 ms 32.289 ms 6 dD5E07D03.access.telenet.be (18.104.22.168) 34.569 ms 30.714 ms 31.810 ms 7 22.214.171.124 (126.96.36.199) 31.793 ms 188.8.131.52 (184.108.40.206) 14.779 ms 220.127.116.11 (18.104.22.168) 20.056 ms 8 22.214.171.124 (126.96.36.199) 18.895 ms 188.8.131.52 (184.108.40.206) 24.307 ms 220.127.116.11 (18.104.22.168) 17.888 ms 9 dns.google (22.214.171.124) 22.448 ms 21.797 ms 20.371 ms [willy@willy-precisionworkstationt3500 ~]$ sudo surfshark-vpn status Not connected to Surfshark VPN
that is what I recive after ‘sudo traceroute 126.96.36.199’