Linux - Reddit – Telegram
Linux - Reddit
752 subscribers
4.17K 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
Enhancing your internal notebook speakers without using an Equalizer (Easy Effects)
https://wwmm.github.io/easyeffects/guide_1.html

https://redd.it/1nxv8uz
@r_linux
How can someone have Git commits from 1998 if Git was created in 2005?

https://preview.redd.it/ut70xp3jj4tf1.png?width=1920&format=png&auto=webp&s=bdd7d0938b0a0fd7cb2186e90557ffb139b35d2b


I noticed that some GitHub repositories show a commit history starting from the late 1990s — even though Git was released in 2005 and GitHub launched in 2007.

How is that possible? Were those projects using a different version control system before Git and then imported the history, or can commit dates be manually faked somehow?

Curious to know how this works under the hood.

https://redd.it/1nxz0lr
@r_linux
What proprietary software do you use, and what open source alternatives have you tried using?

I recently watched this video: https://youtu.be/kiQif7dYBxY regarding some good quality closed source apps.

Do you have any that you can't live without? If you've used any open source alternatives to that software, what make you stick with the original?

https://redd.it/1nxyk5q
@r_linux
Many Debian/Ubuntu Packages for Intel Accelerators & Other Intel Software Have Been Orphaned

Source: Many Debian/Ubuntu Packages For Intel Accelerators & Other Intel Software Have Been Orphaned - Phoronix

Intro: "In addition to some Intel Linux kernel drivers being "orphaned" following the corporate restructuring at Intel between developers being laid off and others deciding to pursue opportunities elsewhere, these changes have also led to a number of Intel-related software packages within Debian being orphaned. In turn these Intel packages are also relied on by Ubuntu and other downstream Debian Linux distributions.

Around one dozen Intel packages within the Debian archive were recently orphaned, a.k.a. now being unmaintained following developer departures from Intel with no one currently taking up the new responsibility, with also needing to be a Debian Developer or Debian Maintainer to contribute".

https://redd.it/1nxyxab
@r_linux
Don't question it I just really love Linux.
https://redd.it/1ny7bd0
@r_linux
Did my drive just die on me?
https://redd.it/1ny9fjh
@r_linux
NFS at 40: Remembering the Sun Microsystems Network File System
https://nfs40.online/

https://redd.it/1nybe89
@r_linux
Found this funny meme and thought I’d share it
https://redd.it/1nydg0k
@r_linux
How Do I Make The Switch Smooth?
https://redd.it/1nykbji
@r_linux
Multiply kernels on one system.

There has been a new LWN article released on setting up multiple kernels so that they can run on different cores. (It's all a very early non-functioning prototype.) This to me at first sounded like a very low level gimmick with no applications for the average user but, I thought that if it may be possible to run the windows kernel on one of your cores and launch an anti cheat through it, maybe you'd be able to run games that require anti cheat on Linux?

If someone could explain how and if such a thing would be possible that would make my day.

I don't have any knowledge regarding kernels or how they work so correct my understanding, but what I'm picturing is that if you have an application like an AC run on a Windows kernel, all of it's syscalls would be picked up by the Windows kernel so it would think it's installed on a Windows OS. I see a lot of problems that I'm not knowledgeable enough to be able to think about. For one, how do you marry the different multitasking solutions of different kernels so that applications can communicate between each other? If one kernel has it's space in RAM where applications live, and takes care of context switches between it's apps how does it know that it can communicate with an app that's outside of it's own space. How does the AC detect that the game is running if it isn't a part of the RAM space/scheduler of it's kernel? I don't have a clue about any of this so if someone can explain some of this stuff to me I'd be very happy, I plan on learning more about operating systems and how they work when I have the time in the future.

https://lwn.net/Articles/1038847/

https://redd.it/1nytnb9
@r_linux
Linux/GRUB-based centralized selection of the booted system in the students' lab

I have a student's lab with many PCs that may boot one of a few operating systems.
When the classes start, students must ensure that the proper operating system is selected and booted in the GRUB menu.
However, when I or another teacher needs to do some maintenance work, it is a nightmare to switch all those machines one by one and select the right system.
It is also a problem when Windows must be updated, which requires multiple unattended reboots.
Therefore, we need a central management system enabling the selection of the right system to be booted.
The natural solution would be to use a network server from which those machines can get information on which system to boot. In our lab, there is one teacher's machine that runs Linux, so it is trivial to do in a certain directory:
`echo linux > bootsel; python3 -m http.server`
or
`echo windows > bootsel; python3 -m http.server`

The problem is how it can be handled in GRUB. I spent some time checking the documentation, searching the web, and finally discussing it with ChatGPT (see [https://chatgpt.com/share/68caeb90-d734-800c-b404-88bd71393528](https://chatgpt.com/share/68caeb90-d734-800c-b404-88bd71393528) ).

Grub may load the file from the HTTP server. The commands below display the contents of such a file (I assume that the server has IP [10.0.2.2](http://10.0.2.2) \- like in the case of a QEMU-emulated machine):
`insmod http`
`insmod net`
`insmod efinet`
`cat (http,10.0.2.2:8000)/bootsel`

The question is, how can we use the contents of this downloaded file? Grub does not allow storing that content in a variable so that it could be later compared with constants.
Theoretically, the standard solution should be getting the whole grub configuration from the server and using it via:
`configfile (http,10.0.2.2:8000)/bootsel`
Such an approach is, however, insecure. Just imagine what could happen if somebody injects a malicious grub configuration.
After some further experimenting, I have found the right solution. Possible boot options should be stored in files on the students' machines:

`echo windows > /opt/boot_win`
`echo debian > /opt/boot_debian`
`echo ubuntu > /opt/boot_ubuntu`

Then we should add getting the file from the server and setting the default grub menu entry.
That is achieved by creating the /etc/grub.d/04\_network file with the following contents (you may need to adjust the menu entry numbers):

#!/bin/sh
exec tail -n +3 $0
# Be careful not to change the 'exec tail' line above.

insmod http
insmod net
insmod efinet

net_bootp

set default=0
if cmp (http,10.0.2.2:8000)/bootsel /opt/boot_win; then
set default=2
fi

if cmp (http,10.0.2.2:8000)/bootsel /opt/boot_debian; then
set default=3
fi

# Ubuntu is the default menu entry 0, so I don't need to handle it there

The attributes of the file should be the same as of other files in /etc/grub.d. Of course, update-grub must be run after the above file is created.

Please note, that the selected approach still enables manual selecting of the booted system in the GRUB menu. It only changes the default system booted without the manual selection.

If the HTTP server is not started, the default menu entry will be used after some delay.

Please remember, that the network stack must be enabled in BIOS. Otherwise, GRUB won't be able to access the server.

https://redd.it/1njj42w
@r_linux
Switching from Arch to Fedora Kinoite after 8 years. Why and how it went.

**Intro**

About 10 years ago I ditched Windows and switched to Archlinux. I have been using Arch as my daily driver on my laptop for office usage as well as my HTPC / Homeserver. I chose Arch for those devices as I wanted to customize everything to my needs and was eager to learn. Additionally I was a fan of the rolling release cycle and thought of it being more secure as I would always and instantly get the latest updates. During that time I only encountered a "not booting after update" problem twice. While everything has been stable, it was not rock solid stable but fine after all. I then decided to switch to Fedora Kinoite and after using it for a few months I decided to stay with it.

**Thanks to Arch community and wiki**

First of all I want to say thanks to the Arch community. Their support on the forum is marvelous and exemplary. The wiki is golden. I would never have come to enjoy (Arch)Linux as much as I do without them. Even while being on Fedora Kinoite I still browser the Archwiki for explenations and guidance.

**Why Fedora**

I was looking for a distro which frequently gets updates and releases. I feel like Fedora Kinoite comes with all the required tweaks out of the box. The installation is super easy (nothing I value tbh but it is nice to have nevertheless). I believe it is quite the middle between something like Arch and Debian. Additionally Fedora always gave me the impression of being innovative and corporate business ready. Fedora is also supported by most major other brands e.g. crowdstrike, Bitdefender Gravityzone,... and seems generally most (or very) recognized out of all distros.

**Why Kinoite**

More secure, more stable, less risk of anything breaking. It honestly also just feels right and like every distro should behave in the future. One thing with Arch was that I customized the hell out of it and then 5 years later some updates actually required changes to my custom configurations which I didn't even remember of having them changed in the first place. Or my once optimized settings were now broken, obsolete or not so optimized anymore. Kinoite takes care of that as every update gives me the current golden standard. As I need it for my daily driver laptop at work, I need it to be reliable and I honestly wouldn't complain if it was less time intensive than Arch. Not because I don't like to play around with Arch but because I have less time available to do so.

**Installation / Migration**

Migrating to Fedora Kinoite (with dual boot Win 11) was a breeze.

1. New 4TB NVME
2. Enable secure boot
3. Install Win 11 LTSC IOT on a 250GB partition
4. Install Fedora Kinoite with LUKS encryption on the remaining disk space (everything done by the automatic installer)

I removed the native Firefox and tried to install everything as Flatpak from Flathub. The only things I layered were:

* Virt-Manager / qemu / KVM
* edk2-ovmf
* setroubleshoot (why the hell is this not added by default?)
* zsh
* zsh-autocomplete
* zsh-syntax-highlightin
* profile-daemon-sync

I ran syncthing via podman which works really well except a minor bug with selinux (newly created files can't be access by syncthing due to selinux label permission until restart, modified files work though).

I will soon try to get virt-manager in podman / toolbox to work as well. One thing less required to layer then.

I set the ruleset so that rpm-ostree install requires the admin/user password.

I enabled DoT in systemd-resolved.

**--------------**

There is a slight learning curve. E.g. setting up something for the first time in podman / toolbox since I never used docker or anything like it before.

Layering is not an issue and I don't notice any slow downs with it during my daily updates. rpm-ostree would be faster though if it used more than one CPU :S

Flathub is something new for me but I also really like it. I am able to easy restrict the permissions of flatpaks (thanks Gemini / ChatGPT for making great and secure profiles).

Lutris / Steam gaming works
flawless.

Also KeePassXC and it's Firefox Addon can't communicate with each other when using the Flatpak versions. There is a workaround, there even is a fix on the way but it also opened my eyes on security vs comfort so for now I am trying to live without the Firefox KeePassXC Addon.

I haven't setup DNSCrypt yet but I guess it will be another slight learning curve on how to run it in toolbox.

Due to higher security standards that come with Fedora, some things didn't work as before (e.g. OpenVPN Client requires 2048 RSA keysize where as on Arch 1024 was fine). But this is actually something I welcome a lot and makes me once more feel like it was a good decision to go for Fedora.

I noticed that DisplayCal from flathub isn't working.

Additionally I still struggle to get smb shared printers to work (how the hell do you install printer drivers on an immutable distro?)

**--------------**

Besides that everything is pretty straight forward and working.

I even get to enjoy some new KDE features that I didn't have on my old Arch setup because I decided to go for the most minimum KDE installation and customize it from there.

**--------------**

Fedora Kinoite just makes me feel like I have to worry less while still giving me tons of possibilities (if I want to worry ;-P). So I can highly recommend to give it a try :)

https://redd.it/1nyw87w
@r_linux
Windows 11 killed my laptop, so I killed Windows… and switched to Mint

I have a laptop from 2019, it was pretty high end at the time. It worked wonderfully for 5 years until I upgraded to windows 11 a few months ago. It took multiple minutes to log in, and 10-20 mins for my startup apps to actually start. In the meantime my fans would spin up like crazy, (on battery mind you, with wall power my laptop sounded more like a 747). I came to the logical conclusion of resetting the PC to see if it would help.

I spent an hour or so resetting my computer and giving it a total clean install of Windows 11. It made no difference at all.

I know my laptop is old, but it is not awful, it only has 8GB of RAM and the processor is old and slow by todays standards but I believe an OS should still function at a basic level with that. So long story short I decided to go for Linux. More specifically, Linux Mint XFCE. It was my last shot before I said goodbye to my binary buddy.

I am pleased to share that my laptop now is it’s old self again. No fan throttling, no annoying Windows AI slop, no bloatware. I am fully embracing linux, making my own custom noscripts, navigating with the terminal and enjoying the new life that linux gave my PC. All this to say, if you have an old computer, don’t be too quick to get rid of it. Linux might just bring it back, like it did mine.

https://redd.it/1nz054n
@r_linux