Skip to content

console/terminal-only setup (no X/DE/WM/Wayland): How do I connect to openvpn automatically on start-up?

I have installed networkmanager + networkmanager-openvpn packages during installation. I then enabled networkmanager via systemctl enable NetworkManager.

​

I just restarted the PC (first boot) and I can ping www.google.com. What service/daemon do I need to run/enable so I can connect to a VPN server on boot? I've looked around the net and all I found is using nmcli to activate a connection.

​

Or perhaps I'm better off using the openvpn package?

​

Thanks

1 points2 comments
Open on Reddit
About this post
Posted
Archived
Score
1 · 100% up
Kind
Text
ID
bb4dqa

Author

59
posts
47
comments
5
media
View profile

2 comments

Check the wiki and find your answer. You basically need to create a systemd unit and enable it

5 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.