I'm currently trying to set up a OpenVPN on a Debian GNU/Linux 7 (wheezy) server, via SSH. I haven't really used Linux before, so I'm completely new to the terminal etc.
However, in a guide that I followed, it said to run systemctl restart openvpn@server.
I got an error saying that systemctl wasn't found or so.. so I installed systemd. But now I get a different error: Failed to get D-Bus connection: Failed to connect to socket /run/systemd/private: No such file or directory
Any idea what that means? Is this issue even related to systemd? Or is it an OpenVPN issue?
Systemd is an "init system" for Linux -- this is the first process started by the kernel when the system boots, and it is responsible for starting everything else. Your system already had an init process on it, so installing and using systemd isn't necessary to do what you want.
The error you're seeing suggests that systemd isn't actually running, which means that it has either not been configured correctly or it may simply mean you need to reboot first.
I would suggest either:
Using a distribution that uses systemd "out of the box", like Fedora, CentOS, Arch Linux, etc, or
Find a guide for Debian that is not written around systemd.
Either of these options will substantially simplify what you're trying to do.
dbusinstalled? If not,
apt-get install dbusand then restart
Failed to get D-Bus connection: No connection to service manager.Any idea how to get rid of that?