LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 01-28-2020, 03:34 PM   #16
andigena
Member
 
Registered: Sep 2019
Location: USA
Distribution: nixos, but i prefer plan 9
Posts: 141

Rep: Reputation: 66

Quote:
Originally Posted by affeman View Post
Ok, I'm back again, at it for the... whatever! I lost count. Anyway, here goes:

I've been in contact with the HMA support and I still have issues, as usual ;-) and my last reply from them came about some minutes ago and I find it, as usual, a bit confusing. Read below, with comments from me I made now (*):

------------------------------

Again, you are not performing all proper steps. If your scripts are unzipped on Desktop, you shouldn't be running these commands from Downloads folder. (* Well I moved them first so that I know where they are, not good I guess) Please access folder where scripts are via Terminal, and with cd command. (* Now, I did that, unzipped them onto the Desktop and then I'm told to run the command "sudo ./hma-openvpn.sh" which I did and get "command not found")

Also, re install doesn't mean that user permissions are fine (* Well I had to since I screwed it up earlier), and you need to create sudo user (* Ok, I need help with that because instructions I found didn't work, I don't really know what I'm doing and what is wrong.) If you remember, you have been declined for DNS changes. Please follow all recommendations precisely and you will be fine. (* Well, I think I do, at least I try :-/) There is no point that we are going back and forward with the same steps. (* I strongly agree on that :-D)

---------------------------------

So that's the story of my current life. At least I've actually learned a little in this process but I need a some more assistance. So what do you say, am I f'd or is there still hope? :-o
Did you run the command
Code:
sudo hma-openvpn.sh
Or did you run the command
Code:
sudo ./hma-openvpn.sh
If you did the former, bash thinks you're trying to access a command. The latter executes the script in the current folder. To do it properly, you must have the ./ in front of it. You also have to be in the directory that the script is in. For example:
Code:
cd /home/yufi/Desktop
wget [whatever url]
unzip hma-linux.zip
cd hma-linux
sudo ./hma-openvpn.zip
 
Old 01-28-2020, 03:49 PM   #17
affeman
Member
 
Registered: Jan 2020
Posts: 37

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by andigena View Post
Did you run the command
Code:
sudo hma-openvpn.sh
Or did you run the command
Code:
sudo ./hma-openvpn.sh
If you did the former, bash thinks you're trying to access a command. The latter executes the script in the current folder. To do it properly, you must have the ./ in front of it. You also have to be in the directory that the script is in. For example:
Code:
cd /home/yufi/Desktop
wget [whatever url]
unzip hma-linux.zip
cd hma-linux
sudo ./hma-openvpn.zip
I used the latter command "sudo ./hma-linux.sh

Here you have the print from the terminal:

yufi@yufi-K53SM:~/Desktop$ ls -l
total 4
drwx------ 2 yufi yufi 4096 maj 15 2018 hma-linux
yufi@yufi-K53SM:~/Desktop$ cd hma-linux
yufi@yufi-K53SM:~/Desktop/hma-linux$ ls -l
total 48
-rw-rw-r-- 1 yufi yufi 10298 maj 15 2018 hma-openvpn.sh
-rw-rw-r-- 1 yufi yufi 17536 maj 15 2018 hma-vpn.sh
yufi@yufi-K53SM:~/Desktop/hma-linux$ sudo ./hma-openvpn.sh
sudo: ./hma-openvpn.sh: command not found
yufi@yufi-K53SM:~/Desktop/hma-linux$
 
Old 01-28-2020, 05:51 PM   #18
andigena
Member
 
Registered: Sep 2019
Location: USA
Distribution: nixos, but i prefer plan 9
Posts: 141

Rep: Reputation: 66
Quote:
Originally Posted by affeman View Post
I used the latter command "sudo ./hma-linux.sh

Here you have the print from the terminal:

yufi@yufi-K53SM:~/Desktop$ ls -l
total 4
drwx------ 2 yufi yufi 4096 maj 15 2018 hma-linux
yufi@yufi-K53SM:~/Desktop$ cd hma-linux
yufi@yufi-K53SM:~/Desktop/hma-linux$ ls -l
total 48
-rw-rw-r-- 1 yufi yufi 10298 maj 15 2018 hma-openvpn.sh
-rw-rw-r-- 1 yufi yufi 17536 maj 15 2018 hma-vpn.sh
yufi@yufi-K53SM:~/Desktop/hma-linux$ sudo ./hma-openvpn.sh
sudo: ./hma-openvpn.sh: command not found
yufi@yufi-K53SM:~/Desktop/hma-linux$
Try the following two options:
Code:
chmod +x ./hma-openvpn.sh
sudo ./hma-openvpn.sh
(Though that isn't an error I've seen when a script lacks exec permissions)
Code:
sudo /bin/bash /home/yufi/Desktop/hma-linux/hma-openvpn.sh
Output?
 
Old 01-29-2020, 03:42 AM   #19
affeman
Member
 
Registered: Jan 2020
Posts: 37

Original Poster
Rep: Reputation: Disabled
*yawn* Sorry, just woke up ;-), had a cup of coffee and am now up and running your suggestions.

First option done:

chmod +x ./hma-openvpn.sh
sudo ./hma-openvpn.sh

The first line of command didn't return anything to see. The second line started the hma script and it stops with the last line "Initialization Sequence Completed" and seems to be waiting with a blinking marker.

- Getting .ovpn template...

- Current IP:
83.251.225.44

- Starting OpenVPN connection to:
Sweden, Stockholm, Nacka - se.hma.rocks : 553 (udp) ...
(Please enter your HMA! Pro VPN account username and password when asked)

Wed Jan 29 09:45:21 2020 OpenVPN 2.4.4 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on May 14 2019
Wed Jan 29 09:45:21 2020 library versions: OpenSSL 1.1.1 11 Sep 2018, LZO 2.08
Enter Auth Username: peterafzelius
Enter Auth Password: ***************
Wed Jan 29 09:45:44 2020 WARNING: --ns-cert-type is DEPRECATED. Use --remote-cert-tls instead.
Wed Jan 29 09:45:44 2020 TCP/UDP: Preserving recently used remote address: [AF_INET]37.46.121.240:553
Wed Jan 29 09:45:44 2020 UDP link local: (not bound)
Wed Jan 29 09:45:44 2020 UDP link remote: [AF_INET]37.46.121.240:553
Wed Jan 29 09:45:44 2020 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Wed Jan 29 09:45:44 2020 VERIFY OK: depth=1, C=UK, ST=London, L=London, O=Privax Ltd, OU=HMA Pro VPN, CN=hidemyass.com, emailAddress=info@privax.com
Wed Jan 29 09:45:44 2020 VERIFY OK: nsCertType=SERVER
Wed Jan 29 09:45:44 2020 VERIFY OK: depth=0, C=UK, ST=London, L=London, O=Privax Ltd, OU=HMA Pro VPN, CN=server, emailAddress=info@privax.com
Wed Jan 29 09:45:44 2020 WARNING: 'link-mtu' is used inconsistently, local='link-mtu 1590', remote='link-mtu 1558'
Wed Jan 29 09:45:44 2020 WARNING: 'tun-mtu' is used inconsistently, local='tun-mtu 1532', remote='tun-mtu 1500'
Wed Jan 29 09:45:44 2020 Control Channel: TLSv1.2, cipher TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384, 2048 bit RSA
Wed Jan 29 09:45:44 2020 [server] Peer Connection Initiated with [AF_INET]37.46.121.240:553
Wed Jan 29 09:45:45 2020 Option 'explicit-exit-notify' in [PUSH-OPTIONS]:5 is ignored by previous <connection> blocks
Wed Jan 29 09:45:45 2020 Option 'explicit-exit-notify' in [PUSH-OPTIONS]:13 is ignored by previous <connection> blocks
Wed Jan 29 09:45:45 2020 Data Channel: using negotiated cipher 'AES-256-GCM'
Wed Jan 29 09:45:45 2020 Outgoing Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Wed Jan 29 09:45:45 2020 Incoming Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Wed Jan 29 09:45:45 2020 TUN/TAP device tun0 opened
Wed Jan 29 09:45:45 2020 do_ifconfig, tt->did_ifconfig_ipv6_setup=1
Wed Jan 29 09:45:45 2020 /sbin/ip link set dev tun0 up mtu 1500
Wed Jan 29 09:45:45 2020 /sbin/ip addr add dev tun0 100.120.76.208/21 broadcast 100.120.79.255
Wed Jan 29 09:45:45 2020 /sbin/ip -6 addr add 2001:db8:123::2/64 dev tun0
Wed Jan 29 09:45:45 2020 add_route_ipv6(2000::/3 -> 2001:db8:123::1 metric -1) dev tun0
Wed Jan 29 09:45:45 2020 Initialization Sequence Completed

----------------------------------

This I have done several times and I eventually need to kill the process as it seems to wait indefinitely. I break it with ctrl+c and below you have the result of that + adding the last line from previous output above. In addition, the internet connection is broken during and after this try:

Wed Jan 29 09:45:45 2020 Initialization Sequence Completed
^CWed Jan 29 09:54:52 2020 event_wait : Interrupted system call (code=4)
Wed Jan 29 09:54:52 2020 SIGTERM received, sending exit notification to peer
Wed Jan 29 09:54:54 2020 delete_route_ipv6(2000::/3)
Wed Jan 29 09:54:54 2020 Closing TUN/TAP interface
Wed Jan 29 09:54:54 2020 /sbin/ip addr del dev tun0 100.120.76.208/21
Wed Jan 29 09:54:54 2020 /sbin/ip -6 addr del 2001:db8:123::2/64 dev tun0
Wed Jan 29 09:54:54 2020 SIGTERM[soft,exit-with-notification] received, process exiting

Exiting script...

yufi@yufi-K53SM:~/Desktop/hma-linux$

Second option done with output as follows and I'm doing it now with the broken internet connection. If it turns out the same, I'll reboot and try it again and give you the ouput on that aswell:

- Getting .ovpn template...

- Current IP:
83.251.225.44

- Starting OpenVPN connection to:
Sweden, Stockholm, Nacka - se.hma.rocks : 553 (udp) ...
(Please enter your HMA! Pro VPN account username and password when asked)

Wed Jan 29 09:58:00 2020 OpenVPN 2.4.4 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on May 14 2019
Wed Jan 29 09:58:00 2020 library versions: OpenSSL 1.1.1 11 Sep 2018, LZO 2.08
Enter Auth Username: peterafzelius
Enter Auth Password: ***************
Wed Jan 29 09:58:23 2020 WARNING: --ns-cert-type is DEPRECATED. Use --remote-cert-tls instead.
Wed Jan 29 09:58:23 2020 TCP/UDP: Preserving recently used remote address: [AF_INET]31.3.152.98:553
Wed Jan 29 09:58:23 2020 UDP link local: (not bound)
Wed Jan 29 09:58:23 2020 UDP link remote: [AF_INET]31.3.152.98:553
Wed Jan 29 09:58:23 2020 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Wed Jan 29 09:58:23 2020 VERIFY OK: depth=1, C=UK, ST=London, L=London, O=Privax Ltd, OU=HMA Pro VPN, CN=hidemyass.com, emailAddress=info@privax.com
Wed Jan 29 09:58:23 2020 VERIFY OK: nsCertType=SERVER
Wed Jan 29 09:58:23 2020 VERIFY OK: depth=0, C=UK, ST=London, L=London, O=Privax Ltd, OU=HMA Pro VPN, CN=server, emailAddress=info@privax.com
Wed Jan 29 09:58:23 2020 WARNING: 'link-mtu' is used inconsistently, local='link-mtu 1590', remote='link-mtu 1558'
Wed Jan 29 09:58:23 2020 WARNING: 'tun-mtu' is used inconsistently, local='tun-mtu 1532', remote='tun-mtu 1500'
Wed Jan 29 09:58:23 2020 Control Channel: TLSv1.2, cipher TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384, 2048 bit RSA
Wed Jan 29 09:58:23 2020 [server] Peer Connection Initiated with [AF_INET]31.3.152.98:553
Wed Jan 29 09:58:25 2020 Option 'explicit-exit-notify' in [PUSH-OPTIONS]:5 is ignored by previous <connection> blocks
Wed Jan 29 09:58:25 2020 Option 'explicit-exit-notify' in [PUSH-OPTIONS]:13 is ignored by previous <connection> blocks
Wed Jan 29 09:58:25 2020 Data Channel: using negotiated cipher 'AES-256-GCM'
Wed Jan 29 09:58:25 2020 Outgoing Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Wed Jan 29 09:58:25 2020 Incoming Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Wed Jan 29 09:58:25 2020 TUN/TAP device tun0 opened
Wed Jan 29 09:58:25 2020 do_ifconfig, tt->did_ifconfig_ipv6_setup=1
Wed Jan 29 09:58:25 2020 /sbin/ip link set dev tun0 up mtu 1500
Wed Jan 29 09:58:25 2020 /sbin/ip addr add dev tun0 100.120.5.7/21 broadcast 100.120.7.255
Wed Jan 29 09:58:25 2020 /sbin/ip -6 addr add 2001:db8:123::2/64 dev tun0
Wed Jan 29 09:58:25 2020 add_route_ipv6(2000::/3 -> 2001:db8:123::1 metric -1) dev tun0
Wed Jan 29 09:58:25 2020 Initialization Sequence Completed

It could not proceed, same procedure as last time. Turns out though I didn't have to reboot this time as the connection got up again when I killed the script the first time so I'll run with that. Here's the result of the second option:

- Getting .ovpn template...

- Current IP:
83.251.225.44

- Starting OpenVPN connection to:
Sweden, Stockholm, Nacka - se.hma.rocks : 553 (udp) ...
(Please enter your HMA! Pro VPN account username and password when asked)

Wed Jan 29 10:09:19 2020 OpenVPN 2.4.4 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on May 14 2019
Wed Jan 29 10:09:19 2020 library versions: OpenSSL 1.1.1 11 Sep 2018, LZO 2.08
Enter Auth Username: peterafzelius
Enter Auth Password: ***************
Wed Jan 29 10:09:48 2020 WARNING: --ns-cert-type is DEPRECATED. Use --remote-cert-tls instead.
Wed Jan 29 10:09:48 2020 TCP/UDP: Preserving recently used remote address: [AF_INET]128.127.105.164:553
Wed Jan 29 10:09:48 2020 UDP link local: (not bound)
Wed Jan 29 10:09:48 2020 UDP link remote: [AF_INET]128.127.105.164:553
Wed Jan 29 10:09:48 2020 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Wed Jan 29 10:09:48 2020 VERIFY OK: depth=1, C=UK, ST=London, L=London, O=Privax Ltd, OU=HMA Pro VPN, CN=hidemyass.com, emailAddress=info@privax.com
Wed Jan 29 10:09:48 2020 VERIFY OK: nsCertType=SERVER
Wed Jan 29 10:09:48 2020 VERIFY OK: depth=0, C=UK, ST=London, L=London, O=Privax Ltd, OU=HMA Pro VPN, CN=server, emailAddress=info@privax.com
Wed Jan 29 10:09:48 2020 WARNING: 'link-mtu' is used inconsistently, local='link-mtu 1590', remote='link-mtu 1558'
Wed Jan 29 10:09:48 2020 WARNING: 'tun-mtu' is used inconsistently, local='tun-mtu 1532', remote='tun-mtu 1500'
Wed Jan 29 10:09:48 2020 Control Channel: TLSv1.2, cipher TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384, 2048 bit RSA
Wed Jan 29 10:09:48 2020 [server] Peer Connection Initiated with [AF_INET]128.127.105.164:553
Wed Jan 29 10:09:49 2020 Option 'explicit-exit-notify' in [PUSH-OPTIONS]:5 is ignored by previous <connection> blocks
Wed Jan 29 10:09:49 2020 Option 'explicit-exit-notify' in [PUSH-OPTIONS]:13 is ignored by previous <connection> blocks
Wed Jan 29 10:09:49 2020 Data Channel: using negotiated cipher 'AES-256-GCM'
Wed Jan 29 10:09:49 2020 Outgoing Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Wed Jan 29 10:09:49 2020 Incoming Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Wed Jan 29 10:09:49 2020 TUN/TAP device tun0 opened
Wed Jan 29 10:09:49 2020 do_ifconfig, tt->did_ifconfig_ipv6_setup=1
Wed Jan 29 10:09:49 2020 /sbin/ip link set dev tun0 up mtu 1500
Wed Jan 29 10:09:49 2020 /sbin/ip addr add dev tun0 100.120.125.109/21 broadcast 100.120.127.255
Wed Jan 29 10:09:49 2020 /sbin/ip -6 addr add 2001:db8:123::2/64 dev tun0
Wed Jan 29 10:09:49 2020 add_route_ipv6(2000::/3 -> 2001:db8:123::1 metric -1) dev tun0
Wed Jan 29 10:09:49 2020 Initialization Sequence Completed


I'll wait for it as you can see from the time stamp, I'll wait for +10 minutes before I do something, below is the result of me again killing the script. The internet connection is again broken:

Wed Jan 29 10:09:49 2020 Initialization Sequence Completed
^CWed Jan 29 10:20:04 2020 event_wait : Interrupted system call (code=4)
Wed Jan 29 10:20:04 2020 SIGTERM received, sending exit notification to peer
Wed Jan 29 10:20:06 2020 delete_route_ipv6(2000::/3)
Wed Jan 29 10:20:06 2020 Closing TUN/TAP interface
Wed Jan 29 10:20:06 2020 /sbin/ip addr del dev tun0 100.120.125.109/21
Wed Jan 29 10:20:06 2020 /sbin/ip -6 addr del 2001:db8:123::2/64 dev tun0
Wed Jan 29 10:20:06 2020 SIGTERM[soft,exit-with-notification] received, process exiting

Exiting script...

yufi@yufi-K53SM:~$

The connection got up instantly right after I ended the script as I had a youtube video I tried earlier to see if the connection was up or not.

I might add some additional information to you to clear up some probable confusion you may have of what and how I installed my system

Previously I downloaded a version of Linux as an ISO file, burned it to a cd-rom and installed my computer using the oem version. I did that with the mindset of a Windows user as I saw that as my only option to have it installed on the computer.

I got a tip about which version I should download and try again so I did that. Turns out it was the exact same file but I used that instead of my previous downloads just for the spite of it ;-). This time I made a bootable USB drive instead since I was out of cd's and it worked great. This time I stood with the same option again. It looked exactly the same as with the cd but instead I chose the "Start Linux Mint" option to see if there was something more to it, and of course it did. On my desktop there was a mounted cd with the text "Install Linux Mint" so I went with that.

I followed the instructions during install and went on to activate all the extra security options I could except the overwriting of free disk space as I didn't know what it does and if it has any effect on my computers performance.

I ended up with a fresh install with one user "yufi" and I didn't fiddle with any permissions what so ever. After that I rebooted the computer and went into the BIOS and maximized the security even there. If anyone lays their hand on my computer without me knowing about it they will have a world of work to try and penetrate any information on it. I think they will fail miserably and that is exactly how I want it to be.

So the last thing I want up is the VPN and then I'm all set and done! I didn't expect it to be so difficult as it has been but I'm confident that we'll solve that too :-D
 
Old 01-29-2020, 09:48 AM   #20
andigena
Member
 
Registered: Sep 2019
Location: USA
Distribution: nixos, but i prefer plan 9
Posts: 141

Rep: Reputation: 66
I haven't used HMA, but it looks to me just from that output and description that you are getting the VPN running. Is there some output that you expected to see after "Initialization Sequence Completed"? You can easily check whether it works by opening whatismyip.com and checking if your IP is 83.251.225.44.
 
Old 01-29-2020, 11:36 AM   #21
affeman
Member
 
Registered: Jan 2020
Posts: 37

Original Poster
Rep: Reputation: Disabled
Well, I don't know really but I suspect that the script should finish and that I'd have some kind of icon on the bar telling me I'm connected to the VPN. The internet cuts off when I run the script and it doesn't return and the script has not finished, it just sit there and wait for something and eventually I have to kill it in order to get my connection back.
 
Old 01-29-2020, 12:54 PM   #22
andigena
Member
 
Registered: Sep 2019
Location: USA
Distribution: nixos, but i prefer plan 9
Posts: 141

Rep: Reputation: 66
Quote:
Originally Posted by affeman View Post
Well, I don't know really but I suspect that the script should finish and that I'd have some kind of icon on the bar telling me I'm connected to the VPN. The internet cuts off when I run the script and it doesn't return and the script has not finished, it just sit there and wait for something and eventually I have to kill it in order to get my connection back.
CLI programs virtually never create app icons in the taskbar, so don't wait for that. Otherwise, I have no idea why it's doing that and can't find a solution online (did find a similar issue on Win7, but the solutions were all exclusive to Windows). I'd get back in contact with HMA support if nobody else here knows this issue.
 
Old 01-29-2020, 01:21 PM   #23
affeman
Member
 
Registered: Jan 2020
Posts: 37

Original Poster
Rep: Reputation: Disabled
Thumbs up

Quote:
Originally Posted by andigena View Post
CLI programs virtually never create app icons in the taskbar, so don't wait for that. Otherwise, I have no idea why it's doing that and can't find a solution online (did find a similar issue on Win7, but the solutions were all exclusive to Windows). I'd get back in contact with HMA support if nobody else here knows this issue.
Yeah, I'll do that and see what he says. I'll give him all of what we have accomplished here so he can get himself up to speed on what the hell is going on here ;-)

I'll get back to you on how it goes. Thanks for your effort on this, very much appreciated. I can fairly say that we've done what we could on this. We'll see what happens on their part!

Cheers!
 
Old 01-30-2020, 10:27 AM   #24
affeman
Member
 
Registered: Jan 2020
Posts: 37

Original Poster
Rep: Reputation: Disabled
Sorry, I'll make it easier for you to follow this. I haven't thought about quotes until now! So I re-edited it all.

Ok, I did not get much help this from the HMA-support this time. I did unload a boat load of info from the conversations here with all the outputs so he could see if there was something he missed or I missed, he said:

Quote:
Hello Peter,

Thank you for sharing details.

However, sorry, it is impossible to go through all of these logs. You simply need to connect, and once you are connected you will see a message " Initialization Sequence Completed" . At that moment, if you are unable to browse, just open the new terminal without disconnecting first one and fix DNS with next command:

sudo echo 'nameserver 185.228.168.168' > /etc/resolv.conf

If you are not able to modify DNS, that means that you need to create sudo user, and to login as a sudo. Then start this process again.

Cheers!
I think he's just lazy because nothing is impossible unless your state of mind tells you so! ;-)

The command he gave me that supposedly should work gives below output:

Quote:
yufi@yufi-K53SM:~/Desktop/hma-linux$ sudo ./hma-openvpn.sh
[sudo] password for yufi:
sudo: ./hma-openvpn.sh: command not found
yufi@yufi-K53SM:~/Desktop/hma-linux$
But! The commands you gave me made something work.

chmod +x ./hma-openvpn.sh
sudo ./hma-openvpn.sh

Explain to me what the chmod-line did because that made the sudo-line work. I'd like to understand the workings here :-)



Then he said:

Quote:
if you are unable to browse, just open the new terminal without disconnecting first one and fix DNS with next command:

sudo echo 'nameserver 185.228.168.168' > /etc/resolv.conf
So I did and that command-line gives me following output:
Quote:
yufi@yufi-K53SM:~$ sudo echo 'nameserver 185.228.168.168' > /etc/resolv.conf
bash: /etc/resolv.conf: Permission denied

I think this last command is the key to make it all work. What is missing here, I don't understand? Do I have to create a sudo user and log in with it like the support says?

Thanks guys, I know you do the best you can, sorry if I repeat myself like a parrot on above information.

Last edited by affeman; 01-30-2020 at 10:41 AM.
 
Old 01-30-2020, 12:12 PM   #25
andigena
Member
 
Registered: Sep 2019
Location: USA
Distribution: nixos, but i prefer plan 9
Posts: 141

Rep: Reputation: 66
chmod +x [filename] makes a file executable (in this case, the VPN script). You shouldn't have to do it multiple times on the same file, though...
It looks like you're in the right directory - check if hma-openvpn.sh is still in there:
Code:
if [ -f /home/yufi/Desktop/hma-linux/hma-openvpn.sh ]; then
    echo "File exists"
else
    echo "File doesn't exist"
fi
If that says it doesn't exist, download the scripts again + unzip them, then cd to the folder they're in and run the same commands:
Code:
chmod +x hma-openvpn.sh
sudo ./hma-openvpn.sh
That should fix your inability to run the script.
However, there is a larger issue here: the tech support person appears to be pranking you, as that DNS server is for a service called "CleanBrowsing Family Filter" that blocks VPNs/proxies and adult content (also malware and phishing sites, which probably wouldn't be as much of an issue).

Last edited by andigena; 01-30-2020 at 12:12 PM. Reason: grammar
 
Old 01-30-2020, 12:29 PM   #26
affeman
Member
 
Registered: Jan 2020
Posts: 37

Original Poster
Rep: Reputation: Disabled
Ok, now I understand a bit of that. No I don't have to run the chmod again, the command works and the script fires up.
Quote:
However, there is a larger issue here: the tech support person appears to be pranking you - that DNS server is for a service called "CleanBrowsing Family Filter" that blocks VPNs/proxies and adult content (also malware and phishing sites, which probably wouldn't be as much of an issue).
You really think they would prank me like that? For what reason would that be? If that is the case then he could be fired for doing so considering how much time I've spent on this as a paying customer to them and with no results, just mockery!

I told him about what you said so we'll see what he comes up with ;-)
 
Old 01-30-2020, 12:41 PM   #27
andigena
Member
 
Registered: Sep 2019
Location: USA
Distribution: nixos, but i prefer plan 9
Posts: 141

Rep: Reputation: 66
Quote:
Originally Posted by affeman View Post
Ok, now I understand a bit of that. No I don't have to run the chmod again, the command works and the script fires up.

You really think they would prank me like that? For what reason would that be? If that is the case then he could be fired for doing so considering how much time I've spent on this as a paying customer to them and with no results, just mockery!

I told him about what you said so we'll see what he comes up with ;-)
Yeah, I highly doubt that was approved by management.
According to the HMA website, they use OpenDNS servers. I think their advice could actually help with the exception of the DNS server; maybe try 208.67.222.222 (OpenDNS) instead. Admittedly, this is getting into territory with which I'm quite unfamiliar.
 
Old 01-31-2020, 04:25 AM   #28
affeman
Member
 
Registered: Jan 2020
Posts: 37

Original Poster
Rep: Reputation: Disabled
This was the reply i got:

Quote:
Hello Peter,

I am not sure who is advising you, but what do you mean when you see that I am pranking you? I am official HMA support, so my interest is to resolve issues for you, not to prank you.

If you do not want to use this DNS, you can simply use Google DNS. In that case command will be:

sudo echo 'nameserver 8.8.8.8' > /etc/resolv.conf

Have a nice day!
I actually said this
Quote:
Besides them thinking you might prank me, is it true that the DNS server is what they say? Thengive me another DNS server and we'll see if that works better, without the blockings, ok?
I tested the command-line he gave me and I don't have permission to run it. There is something with the sudo here, like he said, I have to make an account and then run it.

Last edited by affeman; 01-31-2020 at 04:28 AM.
 
Old 01-31-2020, 06:29 AM   #29
affeman
Member
 
Registered: Jan 2020
Posts: 37

Original Poster
Rep: Reputation: Disabled
I have picture here, maybe something's missing?

/home/yufi/Pictures/yufi account permissions.png

Can I add pics here in the forum?

Last edited by affeman; 01-31-2020 at 06:31 AM.
 
Old 01-31-2020, 06:50 AM   #30
affeman
Member
 
Registered: Jan 2020
Posts: 37

Original Poster
Rep: Reputation: Disabled
It appears that there is a permission problem from my part, let's find out why it is so and how to fix it. I didn't create any other users during install of my OS that I can think of, yufi is the only one I know of. So I figure the others are hidden from view.
 
  


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
Sorry, user deploy is not allowed to execute '/bin/mkdir 1' as root on localhost sunnysthakur Linux - General 1 09-08-2012 04:42 PM
Method Not Allowed: The requested method POST is not allowed for the URL /writedhcp.p WiWa Linux - Networking 15 01-06-2011 01:20 PM
sudo: "user not allowed to execute" jjonas Linux - Security 6 07-05-2007 05:46 AM
Tracking user logins that was allowed and not allowed eswanepoel Linux - Security 3 08-02-2006 04:37 AM
SlackWare :Method Not Allowed The requested method POST is not allowed for the URL slack31337 Linux - Software 0 04-08-2006 06:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:36 PM.

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