I want to install openvpn server but sudo su not working

İ want to run this script under the root permission on my rpi zero w

(First step) Sudo su

(Second step) wget git.io/vpn --no-check-certificate -O openvpn-install.sh && bash openvpn-install.sh

But osmc latest version givinme error first step…

If you need to get a root shell, you need to:

sudo bash

You should also consider using Brian Hornsby’s script: https://discourse.osmc.tv/t/howto-osmc-rasp-pi-as-openvpn-client

Thank you for responding
Sudo bash after sudo su working?

First step is

sudo bash

You don’t do sudo su.

The actual way you are supposed to get a shell with sudo is:

sudo -i

This gives you the root login shell, which may not be bash. In Linux It almost always is bash, but if you want to make sure you have everything that root needs to do stuff (like correct path, etc.), don’t specify the shell, and just use -i.

Guys you are life safer bash is worked… Thanks

I’ve always used sudo su - interesting to see the other ways to do it.

1 Like