• 0 Posts
  • 25 Comments
Joined 3 years ago
cake
Cake day: September 14th, 2023

help-circle




  • Mikelius@lemmy.mltoLinux@lemmy.mlX11 vs Wayland
    link
    fedilink
    arrow-up
    5
    ·
    2 months ago

    I personally haven’t really seen much difference between the two except Wayland eating more CPU and being rather tedious for hybrid (Ryzen/Nvidia) setups (still haven’t resolved it crashing when I change TTY). I’d personally say stick to whatever default your desktop environment runs on…XWayland helps with the whole compatibility concerns at least.

    Just my experience though, yours could be different depending on your machine and general setup


  • Speaking from personal experience: get a spare laptop or external drive and jump right into it.

    Gentoo is where I learned Linux. The handbook is so good and is my highest recommended source of getting into Linux, assuming you take it slow to understand it.

    While a VM might be an option, I think you’ll have less problems on a direct system… But maybe I’m wrong, I’ve never tried installing Gentoo on a VM before.

    Just know, this system will need care… Keep Gentoo updated frequently, else you’ll have issues with dependencies. If this is your first time digging into Linux, you’ll goof. But don’t fret, for there’s always a fix!

    If you find yourself needing something less demanding, my go to has been Mint for that. However these days I’ve actually been re creating my laptop on Gentoo with an external USB C. Turns out even on that it runs games better, so can’t wait to move it to an nvme lol


  • This is exactly how my network is setup. All devices log to my syslog server which I feed into a database with a self made python app, and Grafana goes from there. It’s been running nonstop for like 5 years without any problems, so I’d say your in the right path!

    It’s also helped me catch things like:

    • finding out android leaked IPs outside VPN tunnels on connect (prior to headlines claiming this)
    • finding out nslookup on termux ignores the phone’s DNS settings and tries to use Google instead
    • finding other devices that ignore my DNS server settings
    • noticing that my work Mac will turn itself on in some weird silent passive mode in the middle of the night to try and send data to apple (sleep or powered off don’t matter) - caught this from the logs sent by my router


  • My response to the other person kind of explains some of the things I do to keep my devices secure. As for what it means to me: being able to control everything to be able to define level of access. I try to treat every device on my network as though it’s already compromised. How can I block the scope of the devices from spreading on the network? How can I limit the scope of damage for what’s available on the compromised device to a minimum? Heavy firewall configurations help limit the devices spread to. Encrypting private data such as contracts, government docs, etc into their own containers or partitions helps limit leaks. Alerts and dashboards on unexpected changes of any devices allows me to react quickly, of automation hasn’t already reacted for me.

    You’re right in the fact I’m not going to look at millions of lines of code for many tools and such I use. It doesn’t mean I don’t look though. Being given the option to look at what I’m running is always better to me than not having it, in my opinion


  • I have template iptables/nftables rules on my devices on the network that I can just copy and paste to a machine to have a firewall that works (with tweaks specific to that device). With it I can tell it to send all logs of my choice through syslog-ng to my server just by installing it and telling it the destination, allowing me to have (already made) alerts and dashboards on every device on my internal network. My router runs Linux (openwrt) and allows me to do something other routers can’t do because I’m able to add a module into the kernel: permit switch-level firewall access. What this means is I don’t need (but do still have) VLAN to restrict traffic between devices. I can block firewall access completely at the router level before a device is tweaked to also add additional security (e.g. helps prevent my smart tv from probing every device on my network to gather information. Or if I purchase a malicious hardware online, it won’t know the rest of the network exists because the router doesn’t tell it unless I say it’s okay).

    That’s firewall stuff. System security: can compile and modify the kernel to just the modules and such I want, lowering the scope of issues from a kernel level vulnerability. I can be very granular with file and directory permissions with a single command in the terminal. I can easily track file metadata changes down to just about anything you can think of with simple tools, like aide. Python scripts through cron and inotify can help me monitor when something sus happens on my machines.

    Most of all this being done on Windows or Mac would require extra effort to work correctly, and not to mention probably cost money for software that can do the same but isn’t free. Also not entirely sure a router can be setup on either of those OS.




  • I bought a separate laptop and set it up with an encrypted password that both my wife and I know. It contains instructions on everything from my self hosted stuff to anything else related to my personal life that she would need. It’s 100% offline to keep it safe from a network compromise. This whole thing was especially important since I wanted to make sure my family could access all photos, calendar, contacts, etc for the last decade that are stored on my server.

    It takes time to transfer everything to it (all in Obsidian) since it’s a brain dump… But it actually benefits me too. I’ve had a few times where I was like “how the hell did I set that up?” and had some instructions on there the helped lol.

    Definitely recommend this to others to consider.



  • I’ve got it setup automated on all my external domains, but trying to automate it on my internal-only domain is rather tedious since not only do I NOT want to open a port for it to confirm, but I have 2 other devices/services on the network not behind my primary reverse proxy that share the same cert.

    What In need to do is setup my own custom cron that hits the hosting provider to update the DNS txt entries. Then I need to have it write and restart the services that use the cert. I’ve tried to automate this once before and it did not go so smoothly so I’ve been hesitant on wasting time to try it again… But maybe it’s time to.

    What would be ideal is if I could allow it to be automated just by getting a one time dns approval and storing a local private/public key to prove to them that I’m the owner of the domain or something. Not aware of this being possible though.



  • Unnecessary rant: I actually just had to downgrade my 575(?) driver after spending a few days trying to troubleshoot a freezing laptop. One day I walked away when it happen and that actually gave me the logs I needed to find the Nvidia driver was freezing the machine and then spitting logs out after giving up 10 minutes later (but still keeping things frozen). Was driving me nuts, thinking my hard drive was seeing the light, even though all tests for it were passing with flying colors!

    I’m hesitant to try this new version since I didn’t see anything in the changelog about freeze fixes lol.


  • Daily on my Gentoo server, through a Cronjob every morning. It’s a custom script though, so there’s more than just doing an emerge update. It’ll send me ntfy notifications for the update results, if there are new news items, and if there are any time config merge updates to make. A few other things as well but that’s the main stuff.

    Other servers, typically weekly or only manually when I ssh into them (for the ones I don’t really feel the need to update frequently).


  • I use it for my media server and have been for a long time.

    Tldr: started so I could learn and understand Linux, still use it since I’m comfortable with it and it’s familiar/fast for my needs.

    How it started: I kept going back and forth between windows and Linux, but never truly understood Linux like I did Windows. I eventually decided that I should try to install a Linux distro from scratch and learn the entire process manually so that I could understand it at a strong level. Gentoo has some of the best, if not the best, documentation for this. After spending several days going through the entire install process to finally get that login screen and UI up and running, I had learned more about Linux in those few days than I did the previous 3 years. I wanted to keep going, so I kept it on that laptop and continued to learn and become way more efficient than even Windows.

    Why I still use it, specifically for my media server: partly because I understand Gentoo more than any other distro I’ve used, so I’m extremely comfortable with it. But mostly because I know every little thing on my server. I never find things I don’t recognize, because I installed it. I made the explicit decision to all the software I installed on my system. And I truly do feel like I’m in absolute control of the entire thing, in and out. On top of this, it’s truly as high in performance as it sounds.

    As I type this, my media server is running 76 docker containers (no, not 76 services), 4 of which are game servers I host 24/7 for friends, and I’m only using 32GB of memory. CPU is rarely, if ever, above 20% (12 core Ryzen). The need to upgrade is really far out there, so that just adds to my reasons to continue using it. That being said, I’ve never run something like a Debian media server with all the same stuff on it… It’s very possible it’s just as good, but I really don’t know. I’m too comfortable where I am to spend time finding out lol.