Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Use iTunes 9's Home Sharing over the Internet' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use iTunes 9's Home Sharing over the Internet
Authored by: quangdiggity on Oct 26, '09 06:42:06AM
I forgot about that quirk with KEYS_DIR when creating keys for Open VPN according to the howto. The HOWTO says to execute

. ./vars
./clean-all
./build-ca


The problem is that your etc/openvpn directory probably is only writable by root, so you will try to run the above with sudo. However, the vars script sets the KEYS_DIR environment variable that clean-all and build-ca depend on, so you will need to make sure that it gets passed to them. This is what I did:

. ./vars
sudo -E ./clean-all
sudo -E ./build-ca


The -E option tells sudo to preserve your environment. Otherwise, clean-all and build-ca will be run in a fresh environment that does not have the KEYS_DIR variable set.

As for the backslash problem. I donít know. Have you tried running openvpn in the foreground with your current directory set to /etc/openvpn? i.e.

cd /etc/openvpn
openvpn2 --config server.conf


[ Reply to This | # ]