mysteriumnetwork / mysterium-vpn-desktop

Mysterium VPN is a Desktop VPN client for Windows, macOS and Linux
https://mysterium.network/apps
MIT License
199 stars 41 forks source link

Linux version of desktop app #17

Closed wuniversales closed 3 years ago

wuniversales commented 4 years ago

Please add Linux compatibility.

chompomonim commented 4 years ago

Yes, this is on our roadmap. But first, we'd like to release MacOS and Windows versions as most of the users are requesting apps for these platforms.

dpellegr commented 4 years ago

I am running a node from a small Linux server, and I would like to tunnel the traffic of a network namespace through the dVPN so that selected applications can use it.

Following the instruction in the README, I managed to build the code. I can also launch the app and I get a window with the Mysterium graphics and a loading prompt. But then it just keeps printing

Connecting to the supervisor...

to the terminal, without moving any further. Is this expected?

Also please consider having a couple of API commands to list the available nodes and connect to one of them.

chompomonim commented 4 years ago

@dpellegr supervisor is still not ported to Linux. That is a reason why we don't have official Linux desktop app. On Linux you can try using myst cli.

dpellegr commented 4 years ago

On Linux you can try using myst cli.

Oh, this looks very cool!

I had some issues understanding what it is and how to use it. So basically it comes together with the node. You fire it up and then interact with it through the http requests documented here: https://tequilapi.mysterium.network/

Am I right?

PS. I may want to run the node natively, dropping the docker container...

chompomonim commented 4 years ago

Yes, you're correct. myst cli comes together with node. Node can work in consumer and in provider modes and both modes can be controlled via cli. CLI communicates with node via tequilla api.

arpitjindal97 commented 4 years ago

I'm having hard time using myst cli . My use case is I want to connect to a Myst node just like a normal Desktop app

chompomonim commented 4 years ago

@arpitjindal97 cli improvements are in our backlog for October!

merlinjk commented 3 years ago

Hi is it possible to use myst cli as client and not nodes on linux / docker ?

dpellegr commented 3 years ago

Hi is it possible to use myst cli as client and not nodes on linux / docker ?

Sure! Instead of running /usr/bin/myst service (which is to run a node providing your connection to the network) use /usr/bin/myst daemon to just boot up the node without any activity. Then myst cli commands will be available to register a new identity (only once), unlock it and connect to a provider.

Here is a full command stack example:

/usr/bin/myst --config-dir=/etc/mysterium-node --data-dir=/var/lib/mysterium-node --runtime-dir=/var/run/mysterium-node --keystore.lightweight --agreed-terms-and-conditions daemon

Then in another terminal:

/usr/bin/myst cli identities unlock $MY_IDENTITY
/usr/bin/myst cli connect $MY_IDENTITY $PROPOSAL wireguard

Check /usr/bin/myst cli help to see how to register the new identity and how to obtain the proposal list.

With docker it will be something like this:

docker run --cap-add NET_ADMIN -d \
    --restart unless-stopped \
        --name $NAME \
        -v $PATH_TO_SOME_LOCATION_FOR_LOCAL_STORAGE_OF_NODE_STUFF:/var/lib/mysterium-node \
        mysteriumnetwork/myst \
        daemon

docker exec -it $NAME myst cli identities unlock $MY_IDENTITY
docker exec -it $NAME myst cli connect $MY_IDENTITY $PROPOSAL wireguard
merlinjk commented 3 years ago

did you know why i don't get the same proposal as windows client ? like if i filter the proposal list on only residential i have nothing and i have only 95 proposal without filters , and when i check whindows their is 200 residential ^^

merlinjk commented 3 years ago

and i get this error when im trying to connect 2021-01-07T21:37:06.507 ERR tequilapi/client/http_client.go:109 > error="Put http://127.0.0.1:4050/connection: dial tcp 0.0.0.0:0->127.0.0.1:4050: connect: connection refused

( On ubuntu 20.04)

chompomonim commented 3 years ago

Hi is it possible to use myst cli as client and not nodes on linux / docker ?

@merlinjk check this guide: https://docs.mysterium.network/user-guide/

Please make sure that you're using v0.41.0+ (you can get it from ppa:mysteriumnetwork/node-pre)

chompomonim commented 3 years ago

Now anyone can download .deb package with Linux client. https://github.com/mysteriumnetwork/mysterium-vpn-desktop/releases/latest