Linux 101 stuff. Questions are encouraged, noobs are welcome!

!linux4noobs

@lemmy.world
Create post
Best TWM distros for beginners

I've been using ArcoLinux i3 flavor for a while, but they recently discontinued their flavors and instead just let 3 basic flavors, but as far as I know none of them comes with i3 already preconfigured. And yes, I know I can simply do it by myself with Arch Linux, but I don't have enough time to do it.

I have already tried Garuda Linux i3 flavor, but there's something in it that feels too mature to be user-friendly.

Changing the location of BTRFS snapshots ?

Can I change the location of BTRFS snapshots. I installed CachyOS, and it automatically setup BTRFS subvols.

This is the layout 👇

IDgenparenttop levelpath
258177355@root
259160155@srv
260178955@cache
261178555@tmp
262179755@log
26326377377var/lib/portables
26426377377var/lib/machines
2651791377377.snapshots
2661427378378@home/.snapshots
377179755@
378179755@home

According to Arch wiki https://wiki.archlinux.org/title/Snapper#Creating_a_new_configuration

Create a subvolume at /path/to/subvolume/.snapshots where future snapshots for this configuration will be stored. A snapshot's path is /path/to/subvolume/.snapshots/#/snapshot, where # is the snapshot number.

From which I understand that if I created a snap of /home (@home), it will save in /home/.snapshots (@home/.snapshots).

So, CachyOS configured to save snaps to separate subvol.

But, what I want to do is, Instead of just saving it in separate subvol, i want snaps to be saved on different btrfs partition. Maybe @home/.snapshots but on different partition.

Is that possible ?

Throwing all files in a .dot directory -- does it improves security of a docker container?

Throwing all files in a .dot directory -- does it improves security of a docker container?

Title. In other words, make a .dot directory, make it as $ROOTFS, in a distroless image, chown it to a specific user and group and then pack everything in it.

(TIP) Linux comes with lvmcache, which allows you to easily setup SSD caching.

(TIP) Linux comes with lvmcache, which allows you to easily setup SSD caching.

I'm not sure how widely known this is, I'm hoping at the least some other beginners will benefit :)

SSD caching is when an SSD stores the most frequently used contents of a slow (but usually larger) hard disk. When attempting to access something from your hard disk, it will be fetched from your SSD if available, otherwise getting it from your HDD. All the while you will be shielded from this complexity and pretend to work off of the HDD (transparent caching).

Linux comes with lvmcache, which lets you do this with surprisngly few incantations in your terminal.

I had fun installing a distro making use of this (as expected performance has benefited quite a bit). If you are, too:

  • Guides on lvmcache assume you already know the basics of Linux's logical volume manager (lvm). There don't seem to be any that bring it all together.

  • On setting lvmcache up, the lvmcache manpage was nice and clear. RedHat's guide was good too. Other sources meanwhile were lacking in one way or another.

  • A volume with lvmcache set up, I learn that Ubuntu's nice-looking new installer doesnt support installing on lvm logical volumes. Frustratingly, everything online was on using the old installer, leaving me wondering where I had messed up so that my lvm volume wasn't showing up on my installer. Heads up.

Thanks for reading!

What's the easiest way to update bios on my Ubuntu laptop without a USB?

What's the easiest way to update bios on my Ubuntu laptop without a USB?

cross-posted from: https://lemm.ee/post/41741300

As a lifelong Windows user I've just for the first time switched to Ubuntu and I'm learning how to navigate the system but I haven't found an easy way to update my Carbon's X1 Gen 6 BIOS from its hard disk and would appreciate any advice.

I'd be also happy to hear what I should do as a newcomer to Ubuntu to make my experience with it better and have an easier time overall.

Sanity Check: Installing Linux on a New Drive on an Old PC

Sanity Check: Installing Linux on a New Drive on an Old PC

cross-posted from: https://lemmy.world/post/19303104

I have an old HTPC that hasn't been used in about 4 years with Windows 7 on it. It ran fine with Windows 7 but didn't work well with 8 when that came out (or at least the Windows Media Center that we used as a DVR with a cable card didn't) so it's stayed on 7 ever since. I haven't actually used it in about 4 years and now of course don't want Windows 7 where it can connect to the Internet.

Recently I had the idea that I could install Linux on the computer and use it as a media server with Jellyfin, Plex, or something similar. Long-term when I have the finances I'd like to set up a NAS and server to build a self-hosted media library, but this should be a good starting point for now.

What I'm Working With

It's a pretty old computer. I bought most of the components in 2010/2011 anticipating moving out from my parents although I didn't actually assemble it until early 2012 when I finally moved out (and my brother actually assembled it as he moved in with me). Key components:

  • Intel Core i5-750 (this is the original Intel Core i5, generation 0 as it were)
  • Asus P7P55D-E Pro
  • Zotac ZT-20404-20L (Nvidia GT240 R)
  • 4GB DDR3
  • 64 GB SSD
  • 1.5 TB HD
  • 1 TB SSD <- this is blank, purchased last week and what I planned to install Linux on

What I'm Trying To Do

I searched the main components on linux-hardware.org and they all showed results for running Linux, usually several varieties. I downloaded the Live CD/Installer for Linux Mint 22 Cinnamon and burned it to a DVD. I went with Mint since it seems to be one frequently recommended for Linux beginners and has a "just works" reputation. I want to install it on the new 1TB SSD I picked up and be able to still dual boot into Windows 7 for now (and in any case I'm not sure I'd do much with a 64 GB drive anymore). This is an old motherboard; it only supports BIOS, not EFI, but it almost sounds like that will be easier for the dual boot because I won't have to worry about Secure Boot. Once that's installed I'll try out Jellyfin, Plex, and Emby to see which work best with the various devices I have on our TVs. I'll also probably use the computer to rip some of our DVDs/Blu-rays to use with the server.

Problems I'm Having

I've run into two main issues so far:

First, while the computer boots and runs from the DVD, about 5-and-a-half minutes after the taskbar appears and I can start trying to do anything it locks up. Usually it would just freeze and become totally unresponsive, but last night the two times I tried it actually rebooted the computer. It's really slow to load; when the taskbar appears I try to click the Installer as fast as possible and it takes a little over 3 minutes to reach a state where I can start clicking options for the install. It's also really slow just to boot. From the time I click to start Linux Mint from the Isolinux screen until I reach a usable desktop in Linux Mint is at least 10 minutes, if not more (haven't timed that directly). I'm really not sure what the problem is here; just slow from reading the optical disc? Should I try to find a USB stick and boot from there (the computer has a couple USB3 ports but I'll have to find a spare thumbdrive)? Does this all run in RAM and 4GB isn't enough and that's why it crashes? Is Cinnamon too much for the system and I should try the Xfce or MATE versions of Mint?

Second, I thought with the Linux Installation it would be able to format and install to the new SSD without needing to do anything else, either by selecting "Erase disk and install Linux Mint" or "Something else" but the time I was able to do it fast enough to get to "Something else" the disk doesn't show up at all. It looks like I should use a GParted live CD first to partition the new drive, and then I can install Linux Mint? As I'm looking at various documentation it looks like I should put 3 partitions on the SSD, one for "/" (100 GB recommended by the Linux Mint docs), one for "/home", and one for "swap" (4 GB to match the RAM size)?

I guess as a bonus third question, it looks like once I have Linux installed the Linux installation process should also give me a boot manager that I can use to switch between Linux and Windows? Or does that require extra steps to enable? I'm comfortable editing the boot order in the BIOS. My only prior experience with dual booting a computer is an old Mac Pro that could change the Boot system in Settings/Control Panel, or hold a button on startup to bring up a menu that would allow selecting the boot OS.

[SOLVED] ProtonVPN on Arch Linux (CachyOS) ?

[SOLVED] ProtonVPN on Arch Linux (CachyOS) ?

How to install ProtonVPN in Arch Linux (CachyOS) ?

Should I follow https://wiki.archlinux.org/title/ProtonVPN ?

OR

from flathub https://flathub.org/apps/com.protonvpn.www ?

This flatpak has Unverified tag, but according to this, this flatpak is safe.

Which one should I follow ?

Asking this because I'm because I'm a bit lazy to configure OpenVPN and all that stuff. (pls don't kill me :)

Also do you think using VPN from flatpak is a good idea?



Solved

I just installed aur mentioned in the wiki and it worked just fine. Didn't need to install anything else in my case.1.

Does making a tmpfs at $ROOTFS/tmp and then symlinking it with ~/.cache affects performance in any way?

Does making a tmpfs at $ROOTFS/tmp and then symlinking it with ~/.cache affects performance in any way?

Title. Because I just did it on my Orange pi zero 3 and performance feels a bit slower albeit more stable compared to making a tmpfs out of both directories. That, or I might be speaking gibberish, idk. Just curious.

Thanks in advance.

Best practices for organizing personal git repositories in /home folder?

Best practices for organizing personal git repositories in /home folder?

There’s a lot of detailed information if you’re dealing with running a git server (/srv/git) or dealing with development (follow your company’s policies), reams of information about how to organize files inside a repository, and some apps will handle their own repository location (chezmoi), but not much about just keeping your personal git repositories organized without cluttering up your home folder:

  • a lot of Youtube videos are just grabbing a couple files so end up cloning into ~/Downloads and cleaning up later
  • GitHub and GitLab tutorials just mention clone into the folder of your choice
  • Codeberg’s “Your First Repository” has you cloning into ~/repositories
  • so, what have you found to be the cleanest/simplest/most comfortable?
    • “top-level” folder like ~/repositories or ~/repos ?
    • move down a level like ~/Documents/repos ?
      • (make use of an unused XDG folder like ~/Public ? (doesn’t seem likely))
    • something else that everyone adopted ages ago ?
[SOLVED] Wifi adapter suddenly stopped working after 1 year

[SOLVED] Wifi adapter suddenly stopped working after 1 year

//Solution:

I installed this driver (https://github.com/morrownr/8821au-20210708).

The driver however, did not work until I ran a script called remove-driver.sh from the driver that I used to use (https://github.com/morrownr/8821cu-20210916). Then the wifi adapter started working again :)

Thanks a lot for the help - I am still not really sure what the problem actually was, but I'm very thankful for having my internet connection back :)

//Original post below:

Hey :)

I've been using a wifi adapter for my computer for about a year. A few days ago, it suddenly stopped working. It no longer shows up when I run 'nmcli device' in the terminal. When running 'lsusb' it still shows up as 'Realtek Semiconductor Corp. 802.11ac NIC'.

To my knowledge I hadn't updated anything before it stopped working. After it had stopped working, I used usb-tethering from my phone to do a system update, hoping it would fix the problem. I think one of the updates was a linux firmware update. Anyways, it didn't fix anything.

The adapter didn't work out of the box. It arrived with a driver called 'RTL88x2BU' and a document stating that it was compatible with the following chip drivers for linux: RTL8811AU RTL8811CU RTL8812BU RTL8814AU

I couldn't get the driver it arrived with to work, so instead I downloaded this driver and have been using it until it stopped working. https://github.com/morrownr/8821cu-20210916

this driver only states that it supports some linux kernel version. I'm using '6.8.0-40-generic', which it does not claim to suppport. I download this driver, which should support my kernel, but it didn̈́'t work either. https://github.com/morrownr/8821au-20210708

I've tried running lsmod on my system, and it seems to be, that no wifi driver even starts. The only thing I can remember doing just prior to my internet not working, was running 'systemctl disable jellyfin.service'. I doubt that has anything to do with this, but I'm not sure what else it could be. My only other theory is, maybe the usb wifi adapter hardware just gave up.

Any help is appreciated ^^