Not allowed to execute when using terminal to install HMA-VPN
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
8.8.8.8 is the Google public DNS server and is fine.
As for the permission issue, it's odd. You were able to execute the script through sudo, so it's not a problem with sudo access. Can you upload the screenshot you're talking about to Imgur and paste the link here?
- Available switches:
./hma-openvpn.sh -h = Show help
./hma-openvpn.sh -d = Daemonize OpenVPN
./hma-openvpn.sh -f = tests for and connects you to the fastest server
./hma-openvpn.sh -t = tests for and shows top 10 fastest servers
./hma-openvpn.sh -s = Shows OpenVPN status & IP
./hma-openvpn.sh -u = Updates this script
- This script requires the following packages:
curl, openvpn, wget, dialog
If I'm not permitted to view its content, is that also connected to why script is not working? That the script is not allowed to view the content of resolv.conf as I'm running it?
- You're supposed to modify /etc/resolv.conf while the script is running.
- Why did you choose that DNS server?
- You can't view the content of /etc/resolv.conf? "cat /etc/resolv.conf" doesn't work? Did you follow the directions in the link I sent you?
- Install the missing packages:
Dude, I had to figure out some real shit all by myself here ;-)
The "software" HMA has, to make my computer hide its ip and such, IS the SCRIPT!!! I didn't hear that anywhere by anyone and that is just f'ng ground breaking to me. You know, I expected the script to do something and leave something behind or leave some settings in my system so that VPN works once and for all, as I THOUGHT IT WOULD! Didn't I make it clear I'm a novis at this, a noob!? LOL
To realize that this itty bitty tiny little script is the actual ENGINE here made me face palm myself, AGAIN!, only this time I figure it's on you HAHA. You are so used to Linux, UNIX and the like that you could not see that I was looking for something more than just a running script in terminal since I come from Windows where we neither have or don't do things like this. When I had MSDOS 6.22 I was doing things like this but that was ages ago :-D
So now I'm figuring if I shouldn't give coding a try and for starters make this sorry little script some clothes, and making it do something more without me having to do it manually every day. Is that how you spark too?
In retrospect, this has been educating, and funny actually. Now I know how it works!
Thanks a million for your help on this, there is nothing more to do now I think.
Yeah, I don't think there was really much documentation about it on the HMA website, so I guess I can understand that. It's been a while since I was as new to Linux as you, so maybe I'm out of touch.
If you want to automate the script's operation, look into cron. It's a preinstalled program that can schedule tasks, including during the boot process, so if you schedule the script to run @reboot you should always be connected to the VPN unless you manually kill the process.
I'll leave how to do that up to you, since you seem willing to do some scripting.
I suspect that I'm not getting out of setting the passwords here and there during automated start so I'll just go with the manual proceeding until either I make something or the HMA comes up with a better solution.
I suspect that I'm not getting out of setting the passwords here and there during automated start so I'll just go with the manual proceeding until either I make something or the HMA comes up with a better solution.
If you edit root's crontab instead of a user crontab, I don't believe there will be permissions issues.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.