Linux - Reddit – Telegram
Linux - Reddit
771 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
is there any use for TPM on Linux?

Like the noscript suggests, I’m curious if there is any need or use for a TPM module. I’ve read enough that the module provides encryption. Is there any difference between TPM encryption and something like LUKS? And would TPM provide as much use as any other form of encryption?

https://redd.it/1lfvklv
@r_linux
What did I get my hands on here?
https://redd.it/1lfx1ph
@r_linux
Is it just me or is using a tiling window manager on a laptop painful without an external keyboard?

Hey folks,
I've been trying to get into tiling window managers (i3, Hyprland, etc.) because I love the idea of efficiency, keyboard-driven control, and a minimal setup. But honestly, using them on a laptop feels like a struggle.

My biggest issue? The keyboard is right up against the screen, and I constantly find myself hunched over or hitting the wrong keys because of the cramped layout. It feels awkward trying to do all these hotkey combos without a proper distance between me and the screen. And don't get me started on using Super + arrow or Super + shift + something combos while squished up against a 14-inch display.

It almost feels like tiling WMs are made for desktops with external keyboards and big monitors. Anyone else feel the same? Am I missing some ergonomic trick, or is an external keyboard just mandatory for a good experience?

Would love to hear how you laptop-only users manage it.

https://redd.it/1lg06ec
@r_linux
Looking for Linux smartphone for tinkering and maybe daily use. (EU)

So I want to try Linux smartphone, but I don't which one I should pick. I want to use it as tinkering phone and maybe use it daily. I also like to try out thinks. I only like to have a phone that I can with € and not the too overpriced. But it's also ok if not € or too expensive.


Edit: Also I found the OnePlus 6 and 6 and google pixel 3a and now I don't which is the best.

https://redd.it/1lg4cjm
@r_linux
Shoutout to nftables. Finally switched and never looking back.

Most people in the linux space has heard of nftables, or are vaguely aware of it's existence. If you're like me you probably thought something like "One day I'll go see what that's about". Recently I did that. I had to set up a router-like VM with some some fairly non standard firewalling. Nftables made this incredibly easy to do and understand. But before I continue singing it's praises, I'm not advocating anyone switching if whatever you are using is working. If your ufw/shorewall/firewalld/iptables setup is working and you are happy, keep on winning!

But if you're like me when you have to deal with firewalling and you always get a little feeling of "I am fairly sure I did this right, but I'm not super confident that it's precisely doing what I want." Or you set some firewall up and you aren't sure if it really is totally protecting you, then nftables is for you. Of course you can still make an insecure firewall setup with nftables, but what I am getting at is it makes the configuration a lot easier, and has much less of a mental burden for me, personally.


If you've done a bit of firewalling, particularly iptables, you can pick it up fairly quickly. I'd recommend going through their wiki in it's entirety, and the Red Hat docs on nftables is also pretty good.


But what I like about it is that it looks like most distro's I've checked it comes with a config file and a systemd unit that loads it on startup. A config file is nice for me because it makes life easier for me when I am using configuration management.

The config file also in my opinion seems simpler than what you'd get with iptables-save and the UFW files. Shorewall just confused me, but that's just a me problem. I haven't personally tried firewalld.


nftables has atomic config reloading. `nft -f /file/name`. If your config is valid, it will apply it. If not, it will keep the old config, no weird states. I know this isn't particularly spectacular, but It's nice.


nftables is pretty simple but it is incredibly powerful in my experience. Which means for me if I want a simple firewall setup, the config is going to be easy to read, and if I've got something complex, I don't have to reach for any other tools to get the job done.


Possibly the best feature in my limited opinion so far is sets and maps, and the ability to put expiry on them. These allow you to dynamically alter your firewall's behavior at "runtime" without reloading the firewall config. You can have lists of IPs in an allow list, or invert it and you have a deny list. You can do all kinds of crazy things with maps and sets.

For instance we had a client who wanted things blacklisted and whitelisted. Easy enough, with almost any firewall tech, but I like the fact that I could define a set in my config, and then the actual rule looks something like

ip daddr \@blocklist drop

You can then modify the set using code or cli commands, and your firewall's behavior will change accordingly, and you don't have to worry about possibly messing up a rule.

What sold me though was when the client came up with the requirement to have allowlists based on hostnames. As most of us know these days, and sort of large website is littered with CDN's for loading assets, JS, and all sorts of things. And CDN DNS usually has a TTL of 10s, their IPs change constantly and this would just be a pain to manage with most firewalling things I've used. But nftables made it a breeze. I set up a set of ip addresses, with a few minutes expiry, and just made a simple cron job to resolve the CDN hostnames and put the IPs in the set with an expiry. If IPs are added again, the expiry is refreshed. If they aren't seen again, eventually they are evicted from the list. This worked flawlessly and even the most wild CDNs are still accessible, giving our clients a very much not broken website to work with.

I had a similar setup with some of their hosts going through the routing VM that have to have different firewall rules based on what groups they
were assigned in a database. Unfortunately, these groups' clients don't nearly fall in any neat CIDR that I can cordon off to apply rules to (all of them were just spread across a /16 subnet), and hosts can be moved from groups at a moments notice. So again, I just made some sets for representing the groups, a little cron that queries the database and grabs the IPs, puts them in the appropriate set with a few minutes expiry. If the client moves a host from one group to another, it will be added to the other group and expired out of the other one. Of course you can have more complex logic to do this in a better way, but for our requirements this was sufficient.

I just had some rules. Group1 jumps to this chain, all of it's rules are there, group2 jumps to a different chain, and their rules are there. And the membership of these groups are constantly updated and in sync with our database.


TL;DR: If you aren't happy with how you are doing firewalling on linux, give nftables a shot. It turned firewalling from a fear inducing "will I open a vulnerability and bankrupt my company" process, to a "Bring it on, I can make this thing as complicated as you need without hurting my brain" process.



https://redd.it/1lg62i9
@r_linux
Flathub has passed 3 billion downloads
https://redd.it/1lgaz5z
@r_linux
Did you switch to Linux because you loved it?

I've noticed a common sentiment from many Linux users of "I switched to Linux because Windows sucks," and I don't really share that. I switched because I decided to give Linux a shot because it seemed interesting, and I ended up loving it so much that I just sorta decided to daily-drive it.

Am I alone in this? Has anyone else switched solely because they liked Linux?

https://redd.it/1lgcnt1
@r_linux
Aria2TUI: A TUI front-end for the Aria2c download utility.
https://redd.it/1lgf0g9
@r_linux
Which Linux is your favourite? For me, it’s fedora.
https://redd.it/1lgkwz1
@r_linux
Why isn't Debian recommended more often?

Everyone is happy to recommend Ubuntu/Debian based distros but never Debian itself. It's stable and up-to-date-ish. My only real complaint is that KDE isn't up to date and that you aren't Sudo out of the gate. But outside of that I have never had any real issues.

https://redd.it/1lgl87v
@r_linux
Another win for the FOSS community!
https://redd.it/1lgpu23
@r_linux
A little tweak to turbo charge Debian?

Hi everyone. I just wanted to share something that helped improve how responsive my Debian laptop feels. I’m not a kernel hacker, just someone running Linux on older hardware and exploring ways to make it run better.

I came across the BFQ I/O scheduler (Budget Fair Queueing), which is designed to make disk access fairer between programs. It’s not the default on most distros, but it can be enabled manually. On my system, switching to BFQ made the laptop feel less sluggish when apps were opening or background updates were running. It didn’t increase performance in benchmarks, but it reduced those small freezes or stutters during multitasking.

To check if BFQ is supported on your disk, run:

cat /sys/block/sdX/queue/scheduler

Replace sdX with your actual device (like sda or mmcblk0). If you see “bfq” in the list, you can try switching to it like this:

echo bfq | sudo tee /sys/block/sdX/queue/scheduler

This change is temporary until reboot. If it feels better and you want to make it permanent, you can add a simple udev rule or use a systemd service. Let me know if you want details.

This might not work on every system, and it may not make a difference for everyone. Use it at your own risk. But for me, it made things smoother without any downside so far.

Just thought I’d share in case someone else is using Linux on modest hardware and looking for quiet improvements. Happy to hear your input 😊


https://redd.it/1lgq0qn
@r_linux
Showcase: Diamond Ore KDE Fedora
https://redd.it/1lgrkxp
@r_linux
I made a frontend for the xsetwacom utility!
https://redd.it/1lgxtiq
@r_linux
My Conclusion after using Linux for 2 years: I was wrong.

Original Post: https://www.reddit.com/r/linux/comments/18607da/my\_desktoplinux\_experience\_so\_far/

TLDR: I have been using Linux for the last 2 years and at first my experience was ... horrible. But I stuck to it and after listening to some tips and recommendations I had a great time and would never switch back to Windows. However there are still some issues, that I want to adress.

About 2 years ago I have decided to finally switch to linux because I started my CS degree and wanted to go away from Windows anymays.

I've had many problems in the first few weeks and I reinstalled it several times just to run into the same or different problems again. So I vented on this subreddit and while I still stand behind some things I said, I thought it would be worth revisiting some of my statements. And give a summary of my journey afterwards.

>Let's begin on what Distros I have tried: Ubuntu and LMDE

Right off the bat I have some thoughts on these choices: IMO for a new user there are way better distros to use. I don't get why people still recommend Linux Mint for newcomers. The argument that it is very similar to Windows was true ... for Win 7 and early Win 10. Windows has changed over the years and Linux Mint has not so much which is fine, don't get me wrong. Using the Debian Edition didn't do me favors either.

My biggest gripe with both is that they don't really leverage the IMO best advantage of Linux compared to Windows: The way software is installed on Linux is just plain better and even MS is aware of that. However neither apt nor Snap achieve this adequately.

Apt lacks many desktop applications like Discord because as far as I'm aware it's not really designed for external packages (which is again fine). And Snap is just horrible, I think this is common knowledge by now and if not it should be.

>Everybody says you should split you root and home directory.

Just don't do this, it's almost never worth it.

>suddenly audio starts crackling

To this day I still don't know what caused this.

>It makes me so angry that Desktop-Linux is in the state it currently is because it should be better than Windows and if/when it works it really is much better. Sadly pretty often that just isn't the cse.

This is still kinda true, Linux is way better when it works but there are ways to make it work consistently.

>I would even go as far as to say that there should be a distro which can't be redistributed further so that everyone who want's to implement new features does that only on that distro.

This is lunacy, it is against the spirit of Linux and open source in general and most distros are unique enough to one another.

>I feel like Desktop-Linux suffers from there being too many distros (I mean in the end they all do the exact same thing). If all knowlegde and experience would be put into one AND I MEAN ONE distro, it surely would be the best experience ever.

While there is some truth to that in some aspects of Linux it's just an unrealistic expectation.

# So, what happened after this?

I read some insults, some general discussions and some tips and recommendations.

What caught my eye the most was EndeavourOS which was recommended by a few people, there was also a comment about timeshift+btrfs, which seemed amazing.

So I installed EndeavourOS with KDE on drive with btrfs and I had an absolute blast!

The install went smoothly and KDE is just so amazing to use. I have absolutely nothing negative to say about it, this is the modern Win 10/11 replacement.

Whenever I had a bigger problem or I messed something up I could just use timeshift to revert that change, it saved my ass so many times.

The archwiki is also just amazing and it contains the best and most up to date tutorials.

Using pacman and later yay is just so good. I really think this is the most immediatly obvious benefit of Linux compared to Windows.

I then started to gain more and more knowledge and a
deeper understanding how everything works. I want to especially mention Brodie Robertson because he was the best channel for me to stay up to date regarding Linux news and I also learnt many things about linux from his videos.

After some time I shifted more and more to wayland because I knew that it would eventually replace X11 and for me at least it felt snappier and less laggy.

I was intrigued by tiling window managers and after istalling using hyprland more and more often and working on my config there I decided it was time to make the full switch on a clean system and I have no regrets. Tiling window managers completely transformed the way I work on my PC and it's just great.

Right now I am thinking about trying an immutable Linux distro with niri because I really like idea of scrolling instead of or even in addition to seperate workspaces. I also want to have a more minimal and consistent system.

All in all I could never imagine going back to windows because if you spend some time with it Linux can just give you more... well everything.

# What are my recommendations for newcomers?

KISS - Keep it simple stupid

Distros & installing:

If you feel brave and you want to use arch, use EndeavourOS, otherwise use Fedora (I like the KDE version of it more)
For the stated reasons I would avoid any Debian based distros except maybe Kubuntu
Use btrfs as the file system and install timeshift to create snapshots of your drive

General:

For issues and tutorials the arch wiki is the best resource, if you're unsure then look for answers in reddit but be aware of some biased tips
Install software using the command of the distro (pacman for arch) or if you're unsure, have a bunch of storage space and don't mind updating regulary use flatpak
don't carelessly use sudo
try out new software and projects, especially if you have the ability to undo everything with timeshift

https://redd.it/1lgzn26
@r_linux
What your opinion about a Hyprland making a paid subnoscription?
https://redd.it/1lh1guv
@r_linux
Linus Torvalds & Bill Gates
https://redd.it/1lh34ox
@r_linux