LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-29-2008, 07:24 PM   #1
Shwick
Member
 
Registered: Jun 2008
Posts: 111

Rep: Reputation: 15
OpenVPN trouble installing (beginning)


I'm running ubuntu 8.04 and openVPN 2.1_rc7.

I'm stuck on running the vars script in the openVPN setup, http://openvpn.net/index.php/documen...howto.html#pki.

I've run the vars script a number of ways, but it never creates the keys directory.

I've tried,
sudo sh vars
sudo sh ./vars
source vars
source ./vars
sudo /bin/bash ./vars

It seems that the vars script attempts to export environment variables, but when I call env or sudo env I don't see them.

If I try to execute the next install script, sudo sh clean-all, it tells me "Please source the vars script first (i.e. "source ./vars")".

I know it's something simple, but I can't figure it out right now.
 
Old 10-30-2008, 02:54 PM   #2
linux-qa
LQ Newbie
 
Registered: Oct 2008
Posts: 15

Rep: Reputation: 0
vars file should be executed as below
Quote:
. ./vars
first a dot (.), then space, then ./vars. This will execute the vars file. You can copy/paste the above line on your server and hit enter.
 
Old 10-30-2008, 09:49 PM   #3
Shwick
Member
 
Registered: Jun 2008
Posts: 111

Original Poster
Rep: Reputation: 15
Thanks, that works for when I run it with priveleged user.

The script has to be run as sudo because the environment variables need to be set for the root account.

The problem is you can't execute "sudo source vars", or "sudo . ./vars". How do I execute "source vars" as sudo, or root user?

I already tried "sudo /bin/bash ./vars".

Last edited by Shwick; 10-30-2008 at 10:34 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenVPN client has not default gateway when connect to OpenVPN server sailershen Linux - Security 3 03-04-2010 02:20 AM
OpenVPN: trouble sourcing vars file blckspder Linux - Software 2 09-22-2008 02:33 PM
GCC on intel iBook with OS X 10.4.11 - installing openvpn billymayday Other *NIX 2 06-16-2008 08:58 PM
Installing OPENVPN on Fedora core 4 nbnamp Linux - Software 5 02-08-2008 02:46 AM
OpenVPN Question : connecting 5-6 comps with OpenVPN duryodhan Linux - Networking 7 02-15-2007 10:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration