[Resolved] Executing startup script within rc.local Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
vincentjuan

[Resolved] Executing startup script within rc.local

Post by vincentjuan »

EDIT: Never mind it seems I had messed up rc.local with a keyboard misthit in nano and thus a missing piece of code made the whole script not working. (I deleted some from the line echoing default username and password for DietPi. Couldn't remember what was there before so I deleted the whole part and now it works. Starts DietPi services then connects to VPN.)


Hello people !

I just figured out how to properly use OpenVPN client mode with the provided DietPi package.

It's pretty straightforward :

1)

Code: Select all

cd /etc/openvpn
2)

Code: Select all

 nano login.txt
3) fill that txt with :
username
password
4) save

Code: Select all

wget *.opvn
and

Code: Select all

wget *.crt
5) to test it, use that command :

Code: Select all

openvpn --config /etc/openvpn/*.ovpn --auth-user-pass /etc/openvpn/login.txt
6) IT WORKS

Problem :

When I

Code: Select all

nano

Code: Select all

sleep 5
openvpn --config /etc/openvpn/*.ovpn --auth-user-pass /etc/openvpn/login.txt
at the bottom of rc.local before

Code: Select all

exit 0
and then save and reboot, it doesn't connect by itself.

Any ideas ?
Post Reply