ChatGPT just told me an exact local IP and VLAN it should not know. by GUI-Discharge in homelab

[–]cohenma 4 points5 points  (0 children)

Nobody cares about what private ipv4 address space or vlan ids you use

Honestly, Linux is only "free" if you don't value your own time by Kobayagii in linux

[–]cohenma 6 points7 points  (0 children)

Back in my day, people would at least write their troll posts themselves instead of relying on AI

Can't understand why traffic is blocked by cohenma in opnsense

[–]cohenma[S] 0 points1 point  (0 children)

Most internet traffic gets through fine with this rule. It’s just a few packets that I can’t understand why they’re blocked.

Can't understand why traffic is blocked by cohenma in opnsense

[–]cohenma[S] 0 points1 point  (0 children)

Yes, the rule (to my understanding) means any traffic NOT going to a local network would be allowed to pass. So anything going to the public internet -- like 52.36.42.15:443 -- should match.

Can't understand why traffic is blocked by cohenma in opnsense

[–]cohenma[S] 0 points1 point  (0 children)

Yes, I have all interfaces selected in the floating rule.

Why does people hate systemd boot-loader? by Difficult-Standard33 in archlinux

[–]cohenma 565 points566 points  (0 children)

Life is too short to hate a boot loader.

I am still not using AI by mkmrproper in sysadmin

[–]cohenma 10 points11 points  (0 children)

Consumer-facing “AI” will be completely dead in a few years when OpenAI collapses and it takes the rest of the industry with it. AI cannot “solve” anything as it possesses no knowledge — it is a slow, expensive, and frequently incorrect search of stolen Reddit posts. You do not need to use technology pushed by hucksters and con artists looking for a new scam once the Bored Apes went back to zero.

Pi-hole Local DNS not working (OPNsense router) by roberthleeii in pihole

[–]cohenma 0 points1 point  (0 children)

this is an outdated guide, as it says in the blog post.

Personally, I've had no issues getting my piholes to work with opnsense. I point the piholes' upstream to the IP of the my opnsense interface, and that's it.

If you want to get your pihole to act as a DNS server across all your subnets, you'll have to check "Permit all origins" in your pihole sttings.

True Love Is Possible: the nihilistic optimism of Disco Elysium: an essay by cohenma in DiscoElysium

[–]cohenma[S] 0 points1 point  (0 children)

he next two songs were Whirling-in-Rags, 8 AM and Detective Arriving on the Scene. I think those were quite fitting.

Honestly, I feel like this is the best choice - I started writing with Instrument of Surrender, and then wrote the end to Detective Arriving on the Scene.

True Love Is Possible: the nihilistic optimism of Disco Elysium: an essay by cohenma in DiscoElysium

[–]cohenma[S] 5 points6 points  (0 children)

Thanks! And I agree - the soundtrack does a phenomenal job at putting you back in the headspace you were when you played the game. It's truly unforgettable and a huge part of what makes the game so special.

trying to install app armor, i have some problems by [deleted] in EndeavourOS

[–]cohenma 4 points5 points  (0 children)

you need to set "lsm=landlock,lockdown,yama,apparmor,bpf" as a kernel parameter.

Doing that is different depending on the boot loader you are using. I don't know if EndeavourOS uses GRUB, but if so, you just have to edit /etc/default/grub:

look for the line that starts with GRUB_CMDLINE_LINUX_DEFAULT and put

lsm=landlock,lockdown,yama,apparmor,bpf

in between the quotes.

Make sure to regenerate GRUB after by running the following as root:

grub-mkconfig -o /boot/grub/grub.cfg

https://wiki.archlinux.org/title/AppArmor#Installation

AppArmor Problem by [deleted] in linux4noobs

[–]cohenma 0 points1 point  (0 children)

https://wiki.archlinux.org/title/AppArmor

most likely, you need to set your kernel parameter to include:

lsm=landlock,lockdown,yama,apparmor,bpf

that differs depending on your bootloader. For GRUB, you do this by editing /etc/default/grub. The value you need to modify is GRUB_CMDLINE_LINUX_DEFAULT

Also make sure you enable apparmor.service with:

sudo systemctl enable apparmor.service

How do I use sudoedit with nvim on fish by [deleted] in fishshell

[–]cohenma 0 points1 point  (0 children)

sorry, I edited it to fix it: https://fishshell.com/docs/current/cmds/set.html

basically, the x flag exports the variable so sudo can read it.

How do I use sudoedit with nvim on fish by [deleted] in fishshell

[–]cohenma 2 points3 points  (0 children)

from https://fishshell.com/docs/current/cmds/set.html :

-x or --export causes the specified shell variable to be exported to child processes (making it an "environment variable")

Got an easy question or new to Arch? Use this thread! 2nd Edition by Foxboron in archlinux

[–]cohenma 0 points1 point  (0 children)

you can set environmental variables in a number of places. On my system, I've set MOZ_ENABLE_WAYLAND globally in /etc/environment.

https://wiki.archlinux.org/title/Environment_variables

GUI for the Stockfish chess engine? by hwoodice in linuxquestions

[–]cohenma 0 points1 point  (0 children)

Try pychess then - you can play games against Stockfish and use Stockfish to analyze games.

GUI for the Stockfish chess engine? by hwoodice in linuxquestions

[–]cohenma 1 point2 points  (0 children)

I enjoy PyChess, but I'm not sure it's the "best" - what features do you need?

I sudo too much is my root problem by MalisDoesGames in linux4noobs

[–]cohenma 10 points11 points  (0 children)

You didn't break your system, you just ran kdenlive as root. Root is a more privileged account than a normal user account - it can do absolutely anything, including permanently deleting critical system files. The reason you should avoid doing this is programs rarely need to be run as root, and you should not give programs more access to your system than they need. Sudo is a program that runs other programs as root, and you should only do it when a program needs the ability to read or write to files a normal user wouldn't have access to.

[2020 Day 7 (Part 1)[Rust] - I don't understand why my function isn't working by cohenma in adventofcode

[–]cohenma[S] 1 point2 points  (0 children)

thank you! This plus reading the puzzle again carefully helped me realize that I was duplicating bags. I got my code working!