this post was submitted on 30 May 2024
86 points (97.8% liked)

Linux

54337 readers
270 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
 

I'm a regular user of Linux systems but apart from a couple of test Ubuntu installs many years ago they've always been containers or VMs with no DE which I can throw away when I break them. The Steam Deck showcasing how far Wine/Proton has come combined with Windows being Windows has given me the push; I've made a Mint live USB and it's running beautifully on my desktop. I come to you, the masters, with questions before I hit install:

  1. What do you recommend I do about disk partitions? I'm keeping a Windows install for the few things that demand it, does Windows still occasionally destroy Linux partitions? Do I need separate partitions for data and OS? Is it straightforward to add additional distros as new partitions or is that asking for trouble?
  2. Is disk encryption straightforward? And is that likely to upset the Windows partition?
  3. Is cloud storage sync straightforward? It's my off-site backup solution on Android and Windows (using Cryptomator with Dropbox, Google Drive, etc) but I don't think that many providers have Linux clients. Is something like rclone recommended?
  4. Should I just use apt to install software? I know there's some kind of graphical package manager (synaptic?), does that use apt under the covers or is it separate? Is it recommended to install something like Flathub too?
  5. Any other pearls of wisdom? How do I keep everything tidy? Any warnings about what not to do? Should I use a particular terminal emulator or Firefox fork?
top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 3 points 11 months ago (1 children)
  1. What do you recommend I do about disk partitions?

The basic is /home split from / that way you don't lose your data should you need to reinstall.

I'm keeping a Windows install for the few things that demand it, does Windows still occasionally destroy Linux partitions?

Not asuch as before, but I think it still sometimes it does. I think the recommendation is to use UEFI and have a /boot sp ok it from the Windows EFI one, but I haven't used Windows in a long time so better check this

Do I need separate partitions for data and OS?

You don't need to, but it's better for you if you do, since that allows you to not lose data should you want to switch distros or reinstall the system.

Is it straightforward to add additional distros as new partitions or is that asking for trouble?

Only time I tried that (many years ago) I fucked up everything, but in theory it should be doable.

  1. Is disk encryption straightforward? And is that likely to upset the Windows partition?

It's straightforward (a checkbox on most distros installer) and Windows won't care about it.

  1. Is cloud storage sync straightforward? It's my off-site backup solution on Android and Windows (using Cryptomator with Dropbox, Google Drive, etc) but I don't think that many providers have Linux clients. Is something like rclone recommended?

Drive doesn't provide Linux client, Dropbox does. Like you mentioned there are other tools, such as rclone, for accessing drive if you want to.

  1. Should I just use apt to install software? I know there's some kind of graphical package manager (synaptic?), does that use apt under the covers or is it separate? Is it recommended to install something like Flathub too?

The GUI (like usually on Linux) just uses the CLI tools, so yeah, the graphical package manager just uses apt under the hood. However it also uses snap/flathub as well. Should you care about those? Maybe, some software is only available there because the devs don't want to maintain multiple distro packages. But I wouldn't use snap/flathub as my default (especially not at the beginning) even if they are theoretically more secure (especially because they are more secure, meaning they need control access to other stuff, e.g. zoom unable to detect you have a camera, or Firefox not able to download things to the download folder because of bad permission configurations)

  1. Any other pearls of wisdom? How do I keep everything tidy? Any warnings about what not to do? Should I use a particular terminal emulator or Firefox fork?

Just a note on hardware compatibility, some cards are not very compatible. If you like to game (you did mention a steam deck) and you have an Nvidia you MUST use the proprietary driver. However the proprietary driver SUCKS on Wayland, so you're stuck on X11 for the time being.

Besides that some wireless cards are not properly recognized, you will realize this quickly when you boot the live iso if that's your case.

Finally I would recommend Mint instead of Ubuntu, they're still on X11 and are not forcing Snaps down everyone's throats.

[–] [email protected] 3 points 11 months ago

Comprehensive answers, cheers!

[–] [email protected] 3 points 11 months ago

For dual booting with windows, I find this guide from System76 to be pretty good. https://support.system76.com/articles/windows/

[–] [email protected] 7 points 11 months ago

Mint do have software center preinstalled, which supporta flatpaks. Synaptic is a wrapper around apt afaik and it is useful for people who want to use apt without knowing the commands.

[–] [email protected] 2 points 11 months ago (1 children)

What do you recommend I do about disk partitions?

I usually put the OS on a separate partition from /home/user, so if I want to reinstall I can do it without losing my home stuff. Once you've settled into a distro you may want to keep /var separate too, in case it ever gets filled up it won't affect your root.

A desktop distro will take up more disk space than a server one, where you can typically fit a server into 20 GB you might want to set aside at least 50-60 GB for a desktop. And that's just software and package caches, not counting games and such. If you split root and /var then 30/30GB would do.

Yes Windows can occasionally mess with your bootloaders if it's installed on the same drive.

Linux distros will typically recognize each other and add each other to the grub boot menu. Also typically you get a choice of whether you want them to do this during install so you should be able to refuse this from secondary distros and re-generate the menu on your main distro to pick up the others.

Is cloud storage sync straightforward?

I think Dropbox is the only one that has an actively maintained desktop client. But rclone will deal with almost anything else.

Should I just use apt to install software?

No, but be careful what you use, and about apt too. The dependency tree can develop issues if you add 3rd party .deb repos that overwrite native packages. Some repos are curteous (Docker is one of them) and publish packages under distinct names, most are not.

Debian native packages can grow long in the tooth because Debian only releases stuff once every two years (next one in 2025). This is where something like Flatpak comes in; the Flathub offer is tiny (under 3k packages) but it's chock-full of useful desktop apps, in case you need a more recent version of anything. Steam or Firefox will be a strong candidates for Flatpak installation, for example.

I use the normal Firefox btw. Never saw a compelling enough argument for the clones and all kinds of downsides.

If you want a package manager learn to use aptitude on the CLI. It has a menu and everything, just takes a bit getting used to. It's the best there is.

Any other pearls of wisdom?

If you want to keep things tidy I would strongly recommend sticking to native packages for all important stuff like system things, desktop environments, drivers. Avoid 3rd party repos if not well-behaved. For anything you're missing or not new enough try Flatpak first. For CLI, programming languages, servers etc. I would strongly recommend installing Docker from their official repo (it's well-behaved) and installing stuff in Docker containers.

You need a swap but it doesn't have to be a partition. You can make it a file on /. You can also use zram and make it a compressed, dynamically sized piece of RAM and then forget about it. Check out the package systemd-zram-generator.

[–] [email protected] 1 points 11 months ago

Thanks for the detailed response!

[–] [email protected] 0 points 11 months ago (1 children)

Is it recommended to install something like Flathub too?

Flathub is awesome

[–] [email protected] 1 points 11 months ago (1 children)

Not recommended for security. Use your distros package manager

[–] [email protected] 0 points 11 months ago (3 children)

Flathub programs has some basic permissions management, which is a major upgrade.

[–] [email protected] 1 points 11 months ago (1 children)

You can use firejail or other sandoxes with any application packaged in any distribution.

[–] [email protected] 0 points 11 months ago

you can, but flatpak is easier

[–] [email protected] 2 points 11 months ago

Qubes is a major upgrade that makes this feature not worth the cons of lacking cryptographic authenticity checks.

[–] [email protected] 2 points 11 months ago

I think they meant the outdated dependencies that flatpaks use, which can cause issues.

Also, the flatpak sandbox is a essentially a lie, because pretty much every app you install will be granted full home directory access during the installation process (because the dev decided the app needed it) and that permission stays on unless you override it with Flatseal or via the command line.

[–] [email protected] 3 points 11 months ago
  1. Cryptomator has native Linux port. They distribute AppImage, but there’s also a Flatpak: https://flathub.org/apps/org.cryptomator.Cryptomator Dropbox itself also has native Linux app: https://flathub.org/pl/apps/com.dropbox.Client

I personally use Nextcloud with self-hosted storage and highly recommend it - again, with native Linux app.

You won’t get official support for OneDrive, Google or iCloud, but there are always some 3rd party clients you can try. I’d advise migrating out of those solutions in favor of something more FOSS friendly if you want to get good reliable experience and privacy.

[–] [email protected] 5 points 11 months ago* (last edited 11 months ago) (1 children)
  1. Use a separate bootloader partition for every OS. Windows is known for destroying non-windows bootloaders. It rarely, if ever, touches anything else. Many distros have a /boot partition with initramfs since grub might not support booting from the root partition's filesystem. Integrity is ensured with secure boot, /boot encryption is optional.

  2. LUKS is straightforward, and most non-DIY distros have encrypted root support built-in.

  3. Gnome has Google drive support in the file manager itself, although it's not exposed to CLI yet.

  4. If you're not short on storage, I personally highly recommend Flatpaks as they are containerised whilst also come with a sandbox solution. Avoid non-default frontends when using system packages.

  5. Check out immutable/image-based distros like Fedora Silverblue. They are proved to be extremely reliable and need little to no manual maintenance since all changes are atomic and generate a brand new OS.

  6. Avoid Nvidia GPUs. Their proprietary drivers are compatibility nightmares.

[–] [email protected] 1 points 11 months ago
[–] [email protected] 3 points 11 months ago (1 children)

I've recently been working on this kind of migration as well (but to Fedora instead), so I can speak from my own experiences:

  • Cloud storage: I've heard fewer issues with Google Drive and Dropbox, but I had tried syncing OneDrive and ran into some issues. I ended up purchasing a license to Insync a while back, which was a bit overkill for what I needed it to do. I'm still working on weaning myself off OneDrive entirely and instead going to self-hosted cloud sync.
  • Software installs: there are a ton of different methods to do software installs on Linux these days. I think Synaptic only does apt (it's in the name!), but a lot of apps are distributed through flatpak, AppImage, or even Snaps.
    • Native packages tend to work better with your desktop environment in terms of theming but any library dependencies will get installed with them, while the others are easier to distribute and include the dependencies with them.
  • Other advice:
    • Play around with different distros and desktop environments until you find something you're really comfortable in.
    • Make a list of your required apps and verify which distro's native capabilities may or may not meet your needs.
    • It took me a few tries before settling on Fedora KDE spin, particularly because KDE had a feature I really wanted: per monitor wallpaper settings without having to install a separate app. I've found that many other KDE apps are really nice too, so I'm sticking with it. KDE also puts me in a familiar desktop environment coming from Windows as well.
    • One irritation I've experienced: gaming-centric hardware is designed for Windows and if you have stuff designed around that, it's going to become very obvious. Yes, there's open source projects that help adapt them for Linux. But they are nowhere near equivalent and generally they lack maintainers to keep them going.
      • I have a Stream Deck that on Windows, I used it for monitoring hardware temps. On Linux, you get app launcher buttons at best.
      • My mouse is a Logitech G604 Lightspeed. Piper + libratbag does a pretty good job at trying to support it, but it's middling at best and unfortunately looking at the repo, they're in pretty desperate need of maintainers.

This is my own personal (and recent) experiences and I'm pretty new to using a Linux DE for a main OS too, so anything I say could be incorrect and I welcome suggestions/corrections.

[–] [email protected] 1 points 7 months ago (1 children)

Apologies for the very late reply and thanks for all the suggestions! Have you tried Solaar with your mouse? I have a different Logitech one, can't remember the name but it works perfectly for gestures.

[–] [email protected] 2 points 7 months ago

I did not, had no idea about it. Unfortunately the mouse started to fall apart a bit and Logitech has very few MMO mice meeting my needs, so I decided to switch to Razer Naga Pro V2. I haven’t tried configuring it on Linux yet, as I’m pretty sure the major supporting app doesn’t have V2 support yet.

I might actually contribute back based on the steps listed in the open issue for it. It just requires time, effort, and motivation I don’t have right now.

[–] [email protected] 9 points 11 months ago* (last edited 11 months ago) (1 children)

Use the software manager to install flatpaks. Flatpaks will be newer and run in there own environments.

I would personally run Windows in KVM (virtualization) as it will run with good performance and be isolated so it can't blowup your system.

[–] [email protected] 1 points 11 months ago (1 children)

Any disadvantages to just virtualising Windows?

[–] [email protected] 2 points 11 months ago (1 children)

It will be virtualized and you probably will be unable to play games in Windows

[–] [email protected] 1 points 11 months ago

Noted, thanks

[–] [email protected] 8 points 11 months ago (1 children)
  1. Just shrink windows and install Linux.

Use either BTRFS (no idea if Mint supports that) or LVM with EXT4 or F2FS. F2FS is used in Android, stable, fast, simple, flash optimized. Ext4 is also based.

Dont separate / from /home if you dont use the above setup. If you do, partitions can resize dynamically so no problems here.

Installing multiple OSses is messy, avoid it.

Windows Updates may remove GRUB and eat the partition. If the partition is still there, you could reflash GRUB with dd.

  1. Disk encryption is a single checkbox in every installer I tried. It doesnt use the TPM so it works everywhere, while not as fancy as Android on a Google Pixel.

Absolutely do it.

Most often you only encrypt the / partition and not the boot. And no you dont touch Windows so no issues.

  1. Tons of people use GDrive and Dropbox. It supposedly works.

  2. On a traditional Distro I would leave the system as it is and install everything from Flathub. It is preinstalled and configured on Linux.

Traditional Distros are extremely messy and build up Entropy, i.e. randomness. You just do random shit everywhere and after a few months or years you have issues that nobody can reproduce and you need to reinstall.

That is why I am happily on Fedora Atomic Desktops (Kinoite, KDE). OSTree is heaven.

If you stick to Flatpaks you will not change the system at all, the apps are separated. So it will likely not break at all.

Ironically, while the "immutable" (managed) systems are used with Flatpak a lot, it is the traditional ones that should use it, as they dont have mechanisms like rpm-ostree reset.

So yes, absolutely.

Have a look at my list of recommended apps (which I planned on updating today and a damn browser crash destroyed 2 hours of work...)

  1. Use an atomic system. Use Flatpaks. Change as little crazy stuff as possible (if you are on KDE, lol).

I recommend Librewolf, great project with good usability.

Meanwhile I will some day fix up my arkenfox automation which makes any Firefox version as secure and private.

[–] [email protected] 4 points 11 months ago (2 children)

Don't recommend btrfs 💀 especially to newcomers

[–] [email protected] 1 points 11 months ago (1 children)

BTRFS is simpler to setup than LVM and does the same. On Fedora it just works.

But I want to do speed comparisons and may switch to LVM with F2FS

[–] [email protected] 1 points 11 months ago (1 children)
[–] [email protected] 1 points 11 months ago* (last edited 11 months ago)

That site is down

Okay not anymore. Interesting and for sure problematic. I never had this issue and it may already be resolved.

This seems like a very specific bug and they were using Debian 12, which to be fair was okay-ish new back then.

[–] [email protected] 4 points 11 months ago (1 children)

If it is the default on the distro they intend to use, then, by all means, they should definitely go with it. Btrfs has been really stable for a pretty long time anyways. Just don't use it for RAID 5/6 and you'd be absolutely fine.

[–] [email protected] 3 points 11 months ago* (last edited 11 months ago)

You don't even need raid for everything to shit the bed https://rsc.vet/board/viewtopic.php?t=133

[–] [email protected] 3 points 11 months ago (1 children)

Speaking from my experience with fedora and windows 10 and 11 within the same system.

  1. As others have stated here, If you can, please keep each operating system on it's own physical disk. Disconnect others if you perform a new Windows install on any, as it'll attempt to store its bootloader on disk 0 regardless of the OS destination drive.

  2. LUKS2 is part of the fedora workstation setup, I imagine it will be presented to you upon install with Mint. If you're on separate physical disks, you shouldn't have much to worry about, but as far as I'm aware, you're okay to use disk encryption on drives partitioned with two systems.

  3. There's a Dropbox .deb and .rpm for linux as far as I can tell, but I cannot attest to its quality or how well it integrates with a given file manager. Cloud accounts are generally well supported amongst the key desktop environments, for which I'd consider Cinnamon to be a part of.

  4. Modern, mainstream distributions are pretty GUI friendly. I fully expect you to be able to get by on Mint without needing to touch the command line much if at all. That said, I grab CLI oriented tools from the terminal and graphical apps from the app store. Enabling flathub will give you access to a broad selection of graphical software so by all means, go for it.

  5. I'm not wise so I'll hold back here. I will say that Fedora has allowed me to approach linux as an absolute casual for nearly 6 years now.

[–] [email protected] 2 points 11 months ago* (last edited 11 months ago)
  1. There's a Dropbox .deb and .rpm for linux as far as I can tell, but I cannot attest to its quality or how well it integrates with a given file manager. Cloud accounts are generally well supported amongst the key desktop environments, for which I'd consider Cinnamon to be a part of.

In 2018 Dropbox dropped support for running/syncing on encrypted partitions, in my case ext4 on encfs. Don't ask me why.

I don't know if that's still the case.