Shell script error

Hey! I tried to run a shell script of a vpn called hide.me and gave me this error

cp: cannot stat 'hide.me': No such file or directory
cp: cannot stat 'CA.pem': No such file or directory
cp: cannot stat 'hide.me@.service': No such file or directory
cp: cannot stat 'config': No such file or directory
chmod: cannot access '/opt/hide.me/hide.me': No such file or directory
Binary, CA certificate, SystemD service and config file installed in /opt/hide.me
Hide.me CLI needs to fetch a token. Please, provide your hide.me credentials
/home/pablo/Downloads/hide.me-linux-amd64-0.9.8/install.sh: line 20: ./hide.me: No such file or directory
Using SystemD
Failed to link unit: Unit file /opt/hide.me/hide.me@.service does not exist.
In order to set up and start a connection execute:
  systemctl enable hide.me@SERVER
  systemctl start hide.me@SERVER
Where SERVER is a server name ( e.g. amsterdam-1 ) or a region ( e.g. nl )
Finished

is this my problem or a problem from the app?

talk to the provider - they willl know …

Hi @PABLO_666,

If you are the only one with the issue, and considering those messages, I’d say you missed one, or more steps installing this…

But that is just a guess…

Seems like an odd place to put a systemd service, but sure…

We have no idea how you installed it or what that application is doing when you install it.
You have to ask the devs of the application.

before ./install.sh, run cd /home/pablo/Downloads/hide.me-linux-amd64-0.9.8/

This is their download and install instruction:
curl -L https://hide.me/download/linux-amd64 | tar -xz && sudo ./install.sh

I was curious and used the download and unpack part:

mkdir test
cd ./test
curl -L https://hide.me/download/linux-amd64 | tar -xz

and ended up with 5 files:

ls -hl
total 9.7M
-rw-r--r-- 1 jo jo 3.5K Nov 22 11:36 CA.pem
-rwxr-xr-x 1 jo jo 9.7M Nov 22 11:36 hide.me
-rw-r--r-- 1 jo jo  718 Nov 22 11:36 hide.me@.service
-rwxr-xr-x 1 jo jo 1.1K Nov 22 11:36 install.sh
-rwxr-xr-x 1 jo jo  399 Nov 22 11:36 uninstall.sh

So:
the script is flawed because it tries to copy a file named “config” - which does not exist
but otherwise it seems ok.
The files are there and only one of the messages you gave should have occured:

Likely a typo or something on your end …

Y’know…well, everyone(including me)

It is in the AUR:

$ pamac search hide
[...]
hide-client  0.9.3-1                                                                                                                                                                                                                                      AUR
Hide.me CLI VPN client for Linux

So you could try simply using that:

pamac build hide-client

And seeing if that works. I hope it does!

2 Likes

It gave me this output

cp: cannot stat 'config': No such file or directory
Binary, CA certificate, SystemD service and config file installed in /opt/hide.me
Hide.me CLI needs to fetch a token. Please, provide your hide.me credentials
Username: pablo
Password: 
Name: Resolved free.hideservers.net to 217.138.194.226
Pins: Hide.Me Server CA #1 pin OK
Pins: Hide.Me Root CA pin OK
Rest: [ERR] Bad HTTP response ( 401 )
AcTo: [ERR] Access-Token request failed: bad HTTP status
Using SystemD
Created symlink /etc/systemd/system/hide.me@.service → /opt/hide.me/hide.me@.service.
In order to set up and start a connection execute:
  systemctl enable hide.me@SERVER
  systemctl start hide.me@SERVER
Where SERVER is a server name ( e.g. amsterdam-1 ) or a region ( e.g. nl )
Finished

idk if it is good or not

Corrupted database :frowning: or invalid

Not yet - you need to:

set up and start a connection
like the message describes it



as for the next remark:

That is not the whole message and it lacks context.

Before you try and install using the PKGBUILD, remove/uninstall what the script did.
Run the script with the uninstall option (sudo ./uninstall.sh)

If the PKGBUILD failed with the above message - search the forum for the error and fix the database.