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

Powered by : @r_channels
Download Telegram
We need a GUI recovery mode on Linux
https://redd.it/1my01xi
@r_linux
God I Love Zram Swap

Nothing feels good like seeing a near 4:1 compression ratio on lightly used memory.

zramctl
NAME ALGORITHM DISKSIZE DATA COMPR TOTAL STREAMS MOUNTPOINT
/dev/zram0 zstd 7.5G 1.6G 441.2M 452.5M SWAP


A few weeks ago I was destroying my machine. It was becoming near unresponsive. We're talking music skipping, window manager chugging levels of thrash. With RustAnalyzer analyzing, Nix building containers, and my dev server watching and rebuilding, it was disruptive to the point that I was turning things off just to get a prototype shipped.

I hadn't really done much tuning on this machine. My Gentoo days were in the past. Well, it was becoming unavoidable. Overall changes that stacked up:

- zramswap
- tuned kernel (a particular process launch went from 0.27 to 0.2s)
- preemptable kernel
- tuned disk parameters to get rid of atime etc
- automatic trimming
- synchronized all my nixpkgs versions so that my disk use is about 30GB

And for non-Linux things, I switched out my terminal for vterm (Emacs) and am currently running some FDO/PLO on Emacs after getting almost a 30% speed bump from just recompiling it with -march and -mtune flags on LLVM.

I also split up my Rust crates, which was a massive benefit for some of them regardless of full vs incremental rebuild.

And as a result, I just built two Nix containers at the same time while developing and the system was buttery smooth the whole time. My Rust web dev is back to near real-time.

I wish I had benchmarks at each step along the way, but in any case, the end, I was able to build everything quickly, enabling me to find that logins were completely broken on PrizeForge and that I need to fix the error logging to debug it, so I have to crash before my brain liquifies from lack of sleep.

https://redd.it/1my8c3o
@r_linux
EXT4 to BTRFS

I just changed my file system from a combination of LVM/EXT4 to BTRFS mostly for root volumes. My backup server and media volumes which span disks are still LVM/EXT4. The servers however have their root volumes as BTRFS now. I upgraded the root volumes with a fresh install of Debian Trixie when it was released. I think they went back to Debian 10 and I also wanted to increase the EFI volume size on each for use with systemd-boot so it became an upgrade opportunity. So once the server root volumes were upgraded I decided to do the same thing with my workstation.

My workstation root volume was LVM/EXT4 with a half dozen different Linux distributions with their own root partitions and a separate data volume which they all link to. I basically recreated that with a subvolume for each root partition labeled "@Debian" or "@Mint" or whatever the distribution was. The Data volume was "@Data". I use rsync noscripts for backup and restore and know that they work because that's how I moved everything from my old partitions to new BTRFS partitions. One thing that I believe BTRFS will give me is the ability to do a read-only snapshot and rsync it rather than having to boot to a different Linux distro to do the same since it would otherwise be mounted/changing.

I do know that BTRFS has the ability to make backup/restores easier between common BTRFS systems with BTRFS send/receive but am not ready to change my EXT4 backup volumes yet so will continue to use rsync. I think there's some value in using different file systems in case an issue comes up with the file system itself. I do like the look of btrbk though so may come back to something like this in the future.

I use systemd-boot for my boot manager and am comfortable making modifications to it and the /etc/fstab to accommodate most scenarios. I don't intend to go back to Grub for something like grub-btrfs. If I make a snapshot and want to boot off from it, I'll manually make the changes to the files.

Since I just duplicated what I was doing with LVM, I probably don't have things configured optimally for BTRFS. I see people mentioning subvolumes for "@var", "@cache", "@tmp", "@log". What do I gain by using them? I also haven't used any compression attributes yet for the data volume. Is it worth enabling? What about on the root volumes? Any other things I should consider? Obviously BTRFS is new to me since I haven't been using it except in a basic test environment.

https://redd.it/1mycz26
@r_linux
How can my GPU usage be over 100 percent
https://redd.it/1myebff
@r_linux
I made a Window Decoration

Screenshot of the Decoration

I made a Window Decoration. I was kinda going for a mix between the Windows 7 aero style and the Windows XP captions. The style is made up of pixmaps and can be ported anywhere. Right now the theme shown is using emerald (since I use compiz) and because it is nice and easy to implement. This is really just a demo, however if anyone is interested I could provide downloads, and perhaps port it to other things such as metacity, kwin, etc.

Mods: Let me know if this sounds too self-promotion-like, I could always change it, but my goal is to just see if anyone cares. If you don't like this, remove it.

Reddit crops the image so it may need to be expanded to see the whole thing.

https://redd.it/1mycyl4
@r_linux
Why is the "Unknown" OS market share in India spiking?

Hey fellow Indian Linux users,

StatCounter data for India shows our market share is dropping while the "Unknown" category is spiking. Correct me if I'm wrong, but I'm curious if this could be related to privacy tools or ad-blockers that might be obscuring your OS info.

Are you using anything that would do this?

https://preview.redd.it/j9qqrdxh7vkf1.png?width=1556&format=png&auto=webp&s=66b2aa0badd7b9b79472a9c2eaacef4bc0e5fd4d



https://redd.it/1myi3xu
@r_linux
CachyOS #1 on DistroWatch!
https://redd.it/1myr10x
@r_linux
Help me find a Tux with a lightsaber wallpaper
https://redd.it/1mz2hfq
@r_linux
Happy 34th birthday Linux!
https://redd.it/1mz4gb4
@r_linux
A thank you letter.

To whatever subreddit's reading this, i'd like to give a thank you to the community behind it. In a few hours, it'll be my 20th birthday, and within the course of just a month, even though the world feels like it's started to go to shit more so than ever, the things i've done in that short period of time have not only kept me sane but have genuinely made me the most happy i've been in fucking years.

Thank you Linux, for lifting me away from Windows. I already kinda knew what to expect due to SteamOS nurturing me initially, but there has not been a single moment while i've been using Linux that hasn't made me feel a sense of excitement i didn't know i was missing in my life.

Thank you Garry's Mod, for letting me move away from using Roblox as my main source for animation, on top of making the move away from it as a whole a thousand times easier. You've scratched an itch i've been trying to scratch for 7 years now.

Thank you BitView for accepting me into your community with open arms and being a far more user friendly experience than YouTube could ever dream to be.

There's more people i have to thank, but those are the big three. Considering the state of the world right now, i'd probably be an emotional wreck had it not been for all of this happening in one month, but in dire times, we adapt. I genuinely haven't felt this free in fucking years.

https://redd.it/1mz93rm
@r_linux
ZFSBootMenu with / and /boot on separate datasets

I have / and /boot on separate datasets. I have all the properties set at the dataset for /. It cannot find kernels, so I have to boot via command line.

Will I be able boot using ZFSBootMenu with this setup? Can anyone relate?

Or should I must copy over the contents of /boot and drop the dataset for /boot?

https://redd.it/1mzdfg8
@r_linux
This is an excellent patch review by an expert, i.e., Thomas :) And it should be like this. Oh, a few days back I saw one from Greg too, a similar kind.... in turn, we ordinary people learn.
https://lore.kernel.org/all/871pp14pkr.ffs@tglx/

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