Linux - Reddit – Telegram
Linux - Reddit
760 subscribers
4.18K photos
207 videos
39.8K links
Stay up-to-date with everything Linux!
Content directly fetched from the subreddit just for you.

Powered by : @r_channels
Download Telegram
Does anyone know if ubuntu is planned to receive an integrated tiling option ?

I've been using i3 as my main WM and just discovered popOS and how well that works with gnome, I'm not going to change to pop just for this feature but it would be nice if the ubuntu team tried to implement it in the next LTS release as it already works out of the box for gnome.

https://redd.it/mv0t6k
@r_linux
Greg K-H: "And don't get me started on the inability for "executives" to fund other parts of Linux that they rely on, because they want "other companies" to do it instead. The tragedy-of-the-commons is a real threat to Linux, and always has been..."
https://lore.kernel.org/lkml/YH5tAqLr965MNZyW@kroah.com/

https://redd.it/mv1ck6
@r_linux
My first time installing Gentoo went wrong:')
https://redd.it/mv28ix
@r_linux
You don't need a bootloader

Back in the day of MBR (Legacy) BIOS systems, to boot the system would execute what was in the master boot record (the first 512 bytes of the disk). Since the Linux kernel is more than 512 bytes, an intermediate program called a bootloader had to be put in the MBR instead. The most common Linux bootloader is GRUB.

Almost any computer made in the last decade now uses the UEFI standard instead of the old legacy MBR one. The UEFI standard looks for certain files in a partition called the ESP, or EFI System Partition. Since this is just a normal FAT32 partition, it can be as large as 2 terabytes. Now that it's large enough to fit the whole kernel and initramfs in, some distros mount the ESP directly to /boot so the kernel and bootloader can be stored in the same partition, making the bootloader's job easier.

Many of the kernels that distros use as their default are compiled with the EFISTUB option enabled, which means that the kernel is capable of being launched directly by the UEFI the same way as a bootloader is. Since kernels can now be launched directly by the UEFI, bootloaders aren't needed anymore since their only job is to launch the kernel and that can now be done directly by the UEFI.

Hence, if your distro kernel has EFISTUB enabled, you can forego the bootloader entirely and set a boot entry in your UEFI to directly load the kernel with a tool called efibootmgr. A good tutorial for this is located here on the arch wiki. Now that this is possible, the only reason to use a bootloader nowdays is if you're using a legacy MBR machine, or if you're using multiple kernels/operating systems and your system's bios is annoying to navigate.

https://redd.it/mv3yz4
@r_linux
Using older kernels with newer OS

I've got Ubuntu 20.04 running on a Thinkpad E490s. My top priority is battery life. Given the capacity of the battery is only 85% left, I get at least 8 hours on kernel 4.18 and only 6 .5 hours with the newer kernel 5.8. What are the pros and cons of using an older kernel with a newer OS?

https://redd.it/mv54ne
@r_linux
Conky now has 3 versions with different calculations of RAM used (more in Comments)
https://redd.it/mv4fo8
@r_linux
i am trying to unlock my mi bootloader using xiaomitool-v2. i downloaded the tool from aur. but it is showing me error. (sorry for posting this here but xiaomi subreddit does not allow images)
https://redd.it/mv9hbh
@r_linux
Was Linus ever consider the development of an init system for Linux?

The init system is coupled with the Linux kernel in a close way, so it seems that this layer could be fitted and developed as a side project for the Linux Foundation.

Was this option consider in any time? Maybe before systemd?

https://redd.it/mvbb4z
@r_linux
When the school nerd becomes the popular kid
https://redd.it/mvc2lq
@r_linux
iptables masquerade being affected by router?

I have 2 identical servers in a data center. Same hardware, same OS (debian buster) and both running the same configuration from saltstack.

I have the same iptables masquerade rule set up on each to route out traffic for KVM guests running on a private address space.

On one server it works great, on another i get the Redirect Host Next Hop info and the gateway fails.

The difference between the 2 servers is that they are on a different subnet, and the non-working setup is on a VLAN.

Is there any possibility that the network upstream from my server is breaking this somehow?

https://redd.it/mve0sp
@r_linux
How Linux Works (3rd edition) is released

(Note: I am not the author of this book) I was a huge fan of the 2nd edition of this book: **How Linux Works**. I think the author explains current and relevant topics for Linux in modern day.

I'm definitely going to be picking up a copy of this new edition!

https://redd.it/mvfb1m
@r_linux
I am thinking of writing a tool for deleting files and saving hashes of deleted files, so that other versions of these files can be identified and deleted later

A lot of my files (e.g., photos) exist several times on several hard drives. If I want to delete a file (e.g., blurry image) I have to go to all hard drives and delete it there, otherwise I am wasting disk space. For individual files this is not really a problem, and also not a hige waste of space. But for many files this accumulates.

So my plan is to write an application which maintains a list of files that you don't want anymore. Files would be identified by their hash.

A possible workflow is (I haven't decided for a name yet):

app_name --delete file.jpg

This will delete the file and add the filename and hash (and maybe size) to a database (sqlite or simple text file) marked as "deleted". Then if I connect a storage device (mounted at /mnt) I would type:

app_name --delete-deleted-files /mnt

And the program would check for files which match a "deleted" file in the data base.

This last step would probably last rather long on large disks (folders), but one could run this as a maintenance task over night.

Before I start:

* Are there programs like this already? I couldn't find any.
* Does anyone else find this useful?
* Which features and interface would you expect?

https://redd.it/mvgd3q
@r_linux