Skip to content

Instantly share code, notes, and snippets.

@sxiii
Created September 26, 2021 22:51
Show Gist options
  • Save sxiii/3384fc2e4d516840a8f9f7733294377a to your computer and use it in GitHub Desktop.
Save sxiii/3384fc2e4d516840a8f9f7733294377a to your computer and use it in GitHub Desktop.
How to add Windscribe VPN to OpenRC (rc init service, rc-service)

Using Artix Linux or any other OpenRC-based distro?

It's pretty easy to add Windscribe to OpenRC:

  1. sudo nano /etc/init.d/windscribe Paste the following into the file and save it with ctrl+o; enter:
#!/usr/bin/openrc-run

name=$RC_SVCNAME
description="Windscribe VPN CLI Service"
supervisor="supervise-daemon"
command="/usr/bin/windscribe"
command_args="start"

depend() {
        after syslog net netmount dns
}

stop() {
        ebegin "Stopping $RC_SVCNAME"
        /usr/bin/windscribe stop
        eend $?
}
  1. Make it executable: sudo chmod +x /etc/init.d/windscribe
  2. Add the service to default run level (if you want it running automatically on boot): sudo rc-update add windscribe
  3. Run it right away: sudo rc-service windscribe start
  4. Try to log-in into windscribe: windscribe login (then type-in username and pass)
  5. Check the locations: windscribe locations
  6. Connect to see if it works for you (in this example, to "Hops"): windscribe connect Hops

That's it!

@sxiii
Copy link
Author

sxiii commented Sep 26, 2021

Otherwise, you can also install my package from AUR called windscribe-openrc (you need some kind of AUR helper to install it; I use pikaur):

pikaur -S windscribe-openrc

After you install this package, the following command should be available:

rc-service windscribe start

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment