Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I am trying to install Openvpn on Ubuntu 12.10 I get only problems. The config files are all empty and I only get error.

When I have installed it for first time it was not empty config files. but i did something wrong so I had to apt-get purge openvpn and rm -rf /etc/openvpn/ . after that I have installed it again, then the real problems started. I can't finish the guide.

I have used the ubuntuguide instructions for installingOpenVPN_server and when I come to Edit /etc/openvpn/server.conf: its nothing in there. What can I do?

share|improve this question
Hugely minor point but don't you mean /etc/openvpn/server.conf ? I seem to think the / in front is important – Journeyman Geek Feb 17 '13 at 9:26
that was a type error here ;) but thanks for putting that out. and the /etc/openvpn/easy-rsa/vars is all empty too – Thomas Håvarstein Feb 17 '13 at 9:33
Added that to my suggested edit then, I didn't want to edit it in case that was actually that was your problem – Journeyman Geek Feb 17 '13 at 9:44

/etc/openvpn/ is empty by default (ok, except for update-resolv-conf). The server.conf file is copied from /usr/share. From that page:

sudo cp /usr/share/doc/openvpn/examples/sample-config-files/server.conf.gz /etc/openvpn/
sudo gzip -d /etc/openvpn/server.conf.gz

Depending on your goals, this guide may also be of interest to you:

share|improve this answer
thanks will have a look on it :) – Thomas Håvarstein Feb 17 '13 at 11:23

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.