There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

linux

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

M500 , in Help on BTRFS setup

Are you sure you can use a swap file with btrfs? I did not think you could do that. Maybe I was on old software last time I tried.

actual_patience OP ,

Yeah it’s supported. It’s listed in the docs for btrfs and arch.

Atemu ,
@Atemu@lemmy.ml avatar

I’d highly recommend setting up a swap partition instead.

Supermariofan67 ,

Why?

recursive_recursion ,
@recursive_recursion@programming.dev avatar

As swap is recommended just in case all RAM is maxed it’s better to have a swap partition as swap files have certain limitations when in combined use with BTRFS:

  • "subvolume - cannot be snapshotted if it contains any active swapfiles"
  • has a chance to fragment
  • has issues with hibernation (that I’ve personally encountered multiple times)

here’s the link for more info: man.archlinux.org/man/btrfs.5#SWAPFILE_SUPPORT

after switching to a swap partition with BTRFS I’ve experienced no issues for a user configuration

actual_patience OP ,

“subvolume - cannot be snapshotted if it contains any active swapfiles”

Make a subvolume only for the swapfile.

has a chance to fragment

This is true for all files. Is it a bigger problem for swap?

has issues with hibernation (that I’ve personally encountered multiple times)

This one I can’t refute. How long ago did you have these issues?

recursive_recursion , (edited )
@recursive_recursion@programming.dev avatar

Make a subvolume only for the swapfile.

doesn’t this kinda defeat the purpose/benefits of using a swapfile?

This is true for all files. Is it a bigger problem for swap?

specificly swapfiles yes, for swap partitions nope

How long ago did you have these issues?

Dec 2022, was still using and testing with swapfiles then and said fuck it as it caused too much problems.

I can’t rule out user error till I retest and strictly “follow the guide to the T” as I made modifications while following the same Arch guide for swapfile with BTRFS

edit:
also for clarification, I’m still not sure which one is optimal/best as I initially thought that using swapfile was forward thinking for the future, I’m using and recommending swap partitions as it seems to be the easiest to implement once and use continuously without any problems atm.

Supermariofan67 ,

The reason I use a swap file is so that I can have only one partition backed by LUKS disk encryption, rather than having to screw around with lvm which comes with its own performance overhead and all. I’ve personally never had issues hibernating to.it, but given how much buggy uefi firmware is out there I’m not surprised to hear that other have issues

rotopenguin ,
@rotopenguin@infosec.pub avatar

I don’t see how swap has much chance to fragment. A swapfile has to be fully allocated up front and cannot be CoW. If it’s allocated well in the first place, it will stay that way.

The swap code doesn’t really do I/O through the filesystem. AIUI, it locks the file, gets the disk block #s from the FS, and after that it accesses those blocks directly.

recursive_recursion ,
@recursive_recursion@programming.dev avatar

From the BTRFS manual:

“Nodatacow implies nodatasum, and disables compression.”

“Datasum implies datacow”

Based on these notes I’d assume that since swapfile disables COW that it also disables checksumming which is where the risk of fragmentation occurs

I could be wrong tho

Atemu ,
@Atemu@lemmy.ml avatar

If you need to set up a special dedicated subvolume, might aswell set up a partition instead; it’s just simpler.

With a swapfile you also can’t do multi-device setups which is a limitation I personally couldn’t live with.

Supermariofan67 ,

It’s been supported for several years now

EponymousBosh , in What distros have you tried and thought, "Nope, this one's not for me"?
@EponymousBosh@beehaw.org avatar

I’m currently using Linux Mint as well. I tried Garuda out and I did really like it, but the rolling release kept breaking NVIDIA.

I used Ubuntu back in the day but it sucks now. Snaps are the devil’s work.

Opisek , in Terminal Utility Mega list!

I’d like to suggest:

Alborlin , in New Linux user here. Is this really how I'm supposed to install apps on Linux?

My advice is get zorin or popos and see if there is installer in their software store. I am a new user like you are well and this sense to be common, i resroted to keep it on old laptop ,as server so in install and thin necessary things and then dinner user it at all. Linux Community on Lemmy is humbug, they will downvote as soon as you say Linux is not for regular person

ikidd , in Terminal Utility Mega list!
@ikidd@lemmy.world avatar

I’ve been playing with SSHwifty for a centralized browser based terminal gateway. You set up the docker and can then use it as a central gateway for ssh servers in your networks.

The setup is a bit opaque but the maintainer looks really helpful in the Issues pages.

flashgnash , in Terminal Utility Mega list!

I love that the terminal based browser depends on firefox

technologicalcaveman , in New Linux user here. Is this really how I'm supposed to install apps on Linux?

I know you're on ubuntu, but installing programs depends on your distribution. Some programs are in your software library, some aren't. But there will always be a way to get the program. For instance, I use Gentoo and Mullvad. The way I set it up is with Wireguard so I control it through the terminal, this is because Gentoo has no mullvad app. Otherwise, you can often add new libraries to your system. Again, on Gentoo Steam is not in my repository by default. So, I added the steam repository to my system so I could get it. For Mullvad, I'm pretty sure they offer a deb package, which Ubuntu can use. Otherwise, some other distributions offer a mullvad app in their repository by default. Try other distributions and see what clicks. A lot of linux is experimentation. I personally prefer doing a lot of things fairly manully, so I use Gentoo with essentially only a terminal for control. Linux Mint, Devian, Arch, Void, Nix, Gentoo; there's tons of choices so there's going to be something that you click with.

chayleaf , in How would you ship a GUI for a fzf based application written in Bash?

I wouldn’t change anything, maybe make it more generic so the user could e.g. pick dmenu or rofi instead of alacritty+fzf

desentizised , in New Linux user here. Is this really how I'm supposed to install apps on Linux?

If Mullvad is not available as a Snap or Flatpak (2 ways of installing self-sufficient auto-updateable packages without dependencies on other packages) then youre probably stuck with either adding this 3rd party repository (something which isn’t always recommendable either) which gives you automatic updates or using a .deb installation file like you would probably prefer and then manually retrieving updates when needed.

Anyways, others have told you as much already anyways. What I’d like to add is that it is definitely worth it to learn to work the terminal. I get that there are many people looking for an alternative to Windows or just an open approach to computing in general without looking for added complexity. Who wants complexity right? Whether such an experience exists in the Linux world is probably subjective. Ubuntu has definitely been a safe bet for the flattest learning curve required since its inception in 2004. But its still a niche thing that won’t experience user-friendly support from everyone (ie Mullvad).

So one could conclude that in order to truly be “free” (as in Free Software freedom) one needs to claim that freedom. You will fuck things up. You will learn from your mistakes. You will regroup and you will grow as a user and dare I say PC-curious person.

Kierunkowy74 , in New Linux user here. Is this really how I'm supposed to install apps on Linux?
@Kierunkowy74@kbin.social avatar

Change your distribution to MX Linux and use MX Package Installer there. Select Mullvad VPN from "Popular Apps" tab there and MXPI will do all these steps for you.

fckgwrhqq2yxrkt ,

Probably easier to learn a few commands than it is to switch distros though.

rufus , (edited ) in New Linux user here. Is this really how I'm supposed to install apps on Linux?

More or less: yes.

It’s copy and pasting 5 lines into the terminal and hitting enter. It’s not that hard. If it’s not worth the 15 seconds of ‘work’ you probably don’t need the software that badly.

And it’s not the default. Usually you shouldn’t add random software sources and download software from some websites. Your Linux package manager should be the source for software. (Software Manager / Store / Synaptics, … whatever Ubuntu calls it) It installs software with one or two clicks with the mouse, the software there is tested and tied into the rest of the systems and tens of thousands of packages are available. No malware guaranteed, and updates are handled automatically.

And with other Operating systems it’s also ridiculous: You need to find the website of some software, avoid malware and copycats that advertise similar software with ads, click download, click ‘yes’ I accept a download with a harmful extension. Then you need to open the file manager and double click on it. Then a window opens and you need to click ‘next’. Accept the terms. Give permission to install and maybe remove a few ticks and choose a location. I’d say it’s about the same amount of work and the downside is it doesn’t necessarily handle updates and security fixes.

I think Ubuntu doesn’t have Mullvad available in their own repository. I took another approach and imported their settings/profile into the VPN/network manager that is available per default on many Linux distributions. No install required at all. But importing the settings isn’t easier, so YMMV here. And I think you have to create a profile for each and every country/endpoint which is a bit cumbersome, depending on what you’re trying to do with the VPN.

Critical_Insight OP ,

It’s copy and pasting 5 lines into the terminal and hitting enter. It’s not that hard. If it’s not worth the 15 seconds of ‘work’ you probably don’t need the software that badly.

Telling people to just run random code they found on the internet and don’t understand is really bad advice.

rufus ,

That statement is certainly true.

But how do you think you install software on Windows? You download a random installer from the internet and double-click it. The installer is an executable file and runs some code on your computer to set up the software. I’d argue it’s exactly the same.

In the one instance you copy and paste code and run it. In the other instance you execute an installer that also contains the random code. And you can’t even have a look what happens.

The real issue is: You have to trust the vendor. If you don’t trust Mullvad, don’t run their 5 lines of code. But you then also shouldn’t install their software and not run their windows installer. I don’t see a way around this ‘trust’ issue.

The proper way of course would be a standardised process that also confines the software into containers with minimal permissions. Something like Android Apps. In theory you could add a default update process so the vendor just needs to define an update server in the (apk) installer file. Google didn’t do this, but they want people to use their Play Store. And I don’t think we have a permission system that is actively used on any of the major desktop operating systems, anyways.

jack , in Happy 1704067200 seconds since 1970

A gnu really is an exceptionally weak mascot, thank god we have the penguin.

Wulpo , in New Linux user here. Is this really how I'm supposed to install apps on Linux?

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)

funkajunk , in New Linux user here. Is this really how I'm supposed to install apps on Linux?
@funkajunk@lemm.ee avatar

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


<span style="color:#323232;"># Download signing key 
</span><span style="color:#323232;">sudo curl -fsSLo /usr/share/keyrings/mullvad-keyring.asc https://repository.mullvad.net/deb/mullvad-keyring.asc
</span><span style="color:#323232;">
</span><span style="color:#323232;"># Add the stable repository
</span><span style="color:#323232;">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
</span><span style="color:#323232;">
</span><span style="color:#323232;"># Install 
</span><span style="color:#323232;">sudo apt update
</span><span style="color:#323232;">sudo apt install mullvad-vpn
</span>
possiblylinux127 , in Videos stuttering across all applications

Do you know what changed a month ago. It sounds like maybe a hardware issue or a bad update.

Lars OP ,

I had moved to a new house but my setup is the same as it was prior. I run updates regularly but I’m pretty sure the issue started after moving and before updating

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines