this post was submitted on 01 Jan 2024
162 points (81.9% liked)

Linux

55828 readers
843 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS
 

https://mullvad.net/en/help/install-mullvad-app-linux

Trying to install VPN and these are the instructions Mullvad is giving me. This is ridiculous. There must be a more simple way. I know how to follow the instructions but I have no idea what I'm doing here. Can't I just download a file and install it? I'm on Ubuntu.

(page 4) 50 comments
sorted by: hot top controversial new old
[–] brax@sh.itjust.works 2 points 2 years ago (5 children)

sudo synaptic for a graphical package manager.

Otherwise, just use sudo apt-get if the program you want isn't there, you may need to download the source and compile it yourself

load more comments (5 replies)
[–] DeaDvey@lemmy.ml 2 points 2 years ago

Not specific to Mullvad, but you can use flatpak or your distro's package manager (probably apt) to install programs, On Ubuntu, you can open the software program and search the programs to install it, that should be the first thing to do when you want to install something rather than going to the website.

[–] youpie@lemmy.emphisia.nl 2 points 2 years ago

my tactic if the site looks trustworthy is always:

  • find the explanation for the distribution I use
  • ignore literally all the text
  • just copy paste and execute everything that looks like a command in order in the terminal works like 8/10 times
[–] funkajunk@lemm.ee 1 points 2 years ago

Open the terminal and copy and paste the commands found in their install guide for Ubuntu:

# Download signing key 
sudo curl -fsSLo /usr/share/keyrings/mullvad-keyring.asc https://repository.mullvad.net/deb/mullvad-keyring.asc

# Add the stable repository
echo "deb [signed-by=/usr/share/keyrings/mullvad-keyring.asc arch=$( dpkg --print-architecture )] https://repository.mullvad.net/deb/stable $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/mullvad.list

# Install 
sudo apt update
sudo apt install mullvad-vpn
[–] Wulpo@lemm.ee 1 points 2 years ago

AFAIK, most distros will also have a package manager/software center where you install flatpaks (or snaps if you are on ubuntu). Think of flatpaks akin to mobile apps where everything needed is all together in one package. Not all apps will be flatpaked though, and VPNs tend to be nearly always direct binaries due to needing some higher level permissions than what flatpaks will allow.

Essentially, what im saying is no, not all apps need to be manually installed, but some might need to for one reason or another. And sometimes, knowing a little about how some of these apps are installed might actually help you understand linux a little more (it has in my case)

[–] rikudou 1 points 2 years ago* (last edited 2 years ago)

In general, yes.

Your system has repositories with packages on its own, but on Ubuntu they're rarely up to date (which is ok, Ubuntu has older, well tested versions).

So what this guide does is it installs a custom repository which contains the Mullvad VPN packages (and some additional stuff needed to make it work, like the signing key for the packages). After you install the repository you can install the packages the way you're used to (apt, software center).

This has some security implications. The default repository is well tested and checked for malware and so on. By adding 3rd party repositories you lower the security because now the system can install from other, less tested sources (and it can, for example, create a package with the same name as some system library and with newer version - ensuring their version is installed because it's newer). It doesn't mean that using 3rd party repositories is bad, in fact I'd do the same if I had Ubuntu and wanted to install Mullvad, it just means that you should really check whether you trust whoever created the repository.

The reason why they're doing this instead of just giving you a .deb file to double click is updates - if you add their repository, the next time you update packages (through apt or update center), you'll update Mullvad as well, ensuring you're on the latest version. Because of that mechanism, software rarely contains code to check for new versions - on Windows you'd get some notification that a new version is available, here you'll get nothing because auto update through repositories is assumed (or it's executed automatically like for example Firefox does).

Someone already provided instructions on how to download the .deb file, so you can go that route, but IMO the better way is installing the repository (if you trust Mullvad).

Step by step

sudo curl -fsSLo /usr/share/keyrings/mullvad-keyring.asc https://repository.mullvad.net/deb/mullvad-keyring.asc - downloads their repository signing key into /usr/share/keyrings/mullvad-keyring.asc

echo "deb [signed-by=/usr/share/keyrings/mullvad-keyring.asc arch=$( dpkg --print-architecture )] https://repository.mullvad.net/deb/stable $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/mullvad.list - creates a new file with the repository configuration in a location that apt expects

sudo apt update - after adding a repository, this command will download the information about all packages, versions and file locations so that apt install knows of their existence

sudo apt install mullvad-vpn - installs the Mullvad VPN itself


Hopefully I've cleared up things a bit, feel free to ask if something's unclear!

load more comments
view more: ‹ prev next ›