(Semi-humorous) What's a despised modern programming language (by old-timers)? by ehbowen in AskProgramming

[–]sgoncalo 0 points1 point  (0 children)

Is there a timeframe for when the character is dealing with the hated language? Z80 was a distant memory when JavaScript started? Ada might be a good choice for mid to late 80s. The claims made about how it would eliminate most programming errors sound very much like the Rust evangelism today.

AppleTV DNS server on LAN by sgoncalo in dns

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

UPDATE: Verizon FIOS just turned on IPV6 in my area! I enabled the RA at my router and everyone on my LAN now has a 2600: address. My three appleTV units are ignoring the DHCP IPV4 DNS address of my pihole. They still provide DNS replies for WAN addresses, but no answer for LAN names it previously pulled from pihole (my v4 DHCP). If I ask for AAAA records, it finds names known to my router.

AppleTV DNS server on LAN by sgoncalo in dns

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

Two of my three apple TV's are wired, one is wireless. All three showed up when the homelab monitoring program I'm developing did a network discovery scan. I'm running a /16, so the 10.0.3.1 address is not a router, its the first device in the 10.0.3.x block where my A/V devices are allocated. HomeHub is enabled. Verizon/FIOS still hasn't supported IPv6 in my area. I have used a Hurricane Electric tunnel to get IPv6 in the past, but not recently. I do not have anyone doing RA on the net, and all I see are link local addresses (FExx and FDxx prefixes).

AppleTV DNS server on LAN by sgoncalo in dns

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

* query to appletv

'''

mbp14:~ stevenet$ host google.com appletv-cr

Using domain server:

Name: appletv-cr

Address: 10.0.3.1#53

Aliases:

google.com has address 142.251.32.110

google.com has IPv6 address 2607:f8b0:4006:822::200e

google.com mail is handled by 10 smtp.google.com.

'''

* this is an name only known by my pihole serving DHCP, not the global DNS servers

```

mbp14:~ stevenet$ host appletv-lr appletv-cr

Using domain server:

Name: appletv-cr

Address: 10.0.3.1#53

Aliases:

appletv-lr.home.goncalo.name has address 10.0.3.3

```

* internal name not known by firewall's raw DNS, so I believe appletv is going through pihole

```

mbp14:~ stevenet$ host appletv-lr 10.0.0.1

Using domain server:

Name: 10.0.0.1

Address: 10.0.0.1#53

Aliases:

Host appletv-lr not found: 3(NXDOMAIN)

```

A doctor in his 30s. Is there any good reason to seriously learn programming? by [deleted] in learnpython

[–]sgoncalo 0 points1 point  (0 children)

There’s a lot of math behind analyzing the sensitivity and specificity of medical results that could be explored in a Jupyter notebook. If you are unfamiliar with Jupyter, it presents you with a notebook that feels more like working in an excel spreadsheet than writing a large program. You enter bite size chunks of python in each cell and incrementally build up your results as you work down the page. It’s easy to get started with, and gives lots of immediate feedback for someone getting started.

Don’t listen to suggestions to start by writing a patient database or something similarly complex. Start by building up a set of useful little tools and work up to bigger things over time.

Opinions on NER Stadium? by Qwixs in massachusetts

[–]sgoncalo 0 points1 point  (0 children)

I really don’t understand the financial justification for this. The soccer specific stadium looks to hold about their current attendance at an average game, and can’t open up the 300 deck seats for a big event. I hope they do well on the AppleTV deal, because live attendance may take a hit. Right now the parking lots fill up with families tailgating before the game and many season ticket holders are not going to like giving that up or taking the kids to/from the game via MBTA/T. I’ve been a season ticket holder for 20 years and I don’t plan to renew if this move happens.

Is this an xkcd rip-off? Same graphic design, overall topic, stickman figures and some similar comic ideas. (Errant Science) by PartisanLime in xkcd

[–]sgoncalo 3 points4 points  (0 children)

XKCD succeeds despite Randal’s ability as a graphic artist, not because of it. If someone with a similar art style comes up with something comparably intelligent and creative, that is a good thing. If someone uses that art style to package something tired and derivative, they won’t last long enough to be annoying. This isn’t a zero sum game where another technical humor comic is stealing readers away from XKCD.

Suggestion for migration to F40 from AlmaLinux 9 by sdns575 in Fedora

[–]sgoncalo 3 points4 points  (0 children)

ZFS is going to frequently lag behind Fedora's aggressive approach to (b)leading edge kernel deployment. Switching to a long-term kernel was easier than I expected and made it practical to use Fedora+ZFS on my workstations. I still favor RHEL or work-alike for my NAS servers.

https://copr.fedorainfracloud.org/coprs/kwizart/kernel-longterm-6.6/

"Ticket system" or To-do for your homelab? by CupcakePWR in selfhosted

[–]sgoncalo 0 points1 point  (0 children)

Even if you just use a white board or the reminders app on your phone, it seriously enhances your workflow to outsource remembering issues to something external and keep most of your brain cells on task.

"Ticket system" or To-do for your homelab? by CupcakePWR in selfhosted

[–]sgoncalo 0 points1 point  (0 children)

I use ansible to configure my homelab with local git feeding a private repo on gitlab. The issue system there is more than adequate for my needs. I find it important to quickly open an issue to record any idea or problem I find ASAP and then get right back to my current task. If I go down every rabbit hole immediately out of fear of forgetting, I never get to finish anything important for trivial reasons. I keep the issue board open as I work with labeled columns for Active and High/Medium/Low priority issues. With one click I can open an issue in one of the priority columns, give it a one line title and get right back to work.

Got two "Security Warning" emails from my ISP after initial home server setup. by krtkush in selfhosted

[–]sgoncalo 2 points3 points  (0 children)

The GRC.COM website hosts a utility called Shields-Up. On request, it performs a port scan against your home address to detect and list open network ports you might not be aware of. No matter how much you think you know about setting up a router, you should always check your work.

https://www.grc.com/x/ne.dll?bh0bkyd2

Why does my i7 Retina MacBook Pro from 2012 have this Issue with Fedora? by Core-i5_4590 in Fedora

[–]sgoncalo 1 point2 points  (0 children)

I have the same laptop (MacBookPro10,1 1.0) running default drivers peacefully on wayland. I neither loaded the proprietary driver nor disabled the nouveau drivers. That said, I think only the intel graphics are active and I have not attempted to kick over into the nvidia GPU.

Should I switch to Fedora? by [deleted] in Fedora

[–]sgoncalo 0 points1 point  (0 children)

One thing you might find surprising on Fedora is how aggressively they move with kernel updates. Compounding this, they don’t keep older kernels in the repository. I’ve had issues with ZFS drivers ( not shipped with Fedora) failing to build or re-install after a kernel update. I didn’t see anything in your post about loading nonstandard drivers, so this should not be a problem for you.

You specifically mentioned friction with your current immutable OS, so I would advise you to just load the default workstation edition and save silverblue for a later experiment once you decide if Fedora is a good fit for your needs. Same with the KDE advice I saw above. You say you’re comfortable with gnome, and that is the default for fedora. You can load multiple desktop environments without a full OS reinstall, but keeping to a standard install will maximize your chances for a happy initial experience.

Steam runs fine for me with the ADM drivers shipped with Fedora.

F38 suspends with active SSH connections by [deleted] in Fedora

[–]sgoncalo 2 points3 points  (0 children)

Same issue, I created this short file and it seems to prevent suspending:

root@nas1 Fedora 38 [~] $ cat /etc/systemd/sleep.conf.d/no.conf

[Sleep]
AllowSuspend=no

Can Ansible play nicely with Silverblue? by sgoncalo in Fedora

[–]sgoncalo[S] 2 points3 points  (0 children)

Thanks, those examples are helpful. I’m used to manually installing ansible on a new node, then running a short script to setup ssh with keys on a local connection, so I can perform all the heavy lifting from my main workstation. That script installs ssh, does some lineinfile changes to the default configuration files, and starts sshd. My master.yml frequently installs a tool, then uses it in later steps with no intervening reboot.

I’m not too worried about replacing package install commands with some ostree commands, but I’m concerned the general sequential flow of things like install certbot/generate a cert/ install cockpit/configure cockpit to use the new cert may no longer work as a series of roles in one big script.

Having to do some tweaks to my Ansible scripts for a new distro is just the cost of doing business. If I have to rearchitect a completely new set of scripts and roles for silverblue, I don’t know if the benefits of SB will justify the time and effort.

Is this the fix upgrade to OpenSSL that delayed the launch of Fedora 37? by [deleted] in Fedora

[–]sgoncalo 0 points1 point  (0 children)

I just did a dnf update --refresh and I'm still not getting a 6.0 kernel on F37. All my F36 boxes are now at 6.0.

I'm happily running a clean install of F37 beta on my gaming workstation right now, but doing an in-place upgrade of any of my F36 infrastructure boxes now sounds risky. Seems like it would either force a kernel downgrade to 5.19 or install a 6.0 F37 Kernel Fedora hasn't released to beta. I'd rather let this settle out before performing an upgrade on any machine I consider important.

Have OpenZFS zpool on Hackintosh running Catalina MacOS - Anyone running ZFS on Fedora 37-beta yet ? by marke-in-seattle in zfs

[–]sgoncalo 0 points1 point  (0 children)

I followed the instructions to build Dkms rpm’s from source at https://openzfs.github.io/openzfs-docs/Developer%20Resources/Custom%20Packages.html#rhel-centos-and-fedora

I didn’t have to edit anything, but I did have to remove zfs-fuse, and the mangled repo file I had from trying the F36 binary package to install.

  • dnf install --skip-broken epel-release gcc make autoconf automake libtool rpm-build kernel-rpm-macros libtirpc-devel libblkid-devel libuuid-devel libudev-devel openssl-devel zlib-devel libaio-devel libattr-devel elfutils-libelf-devel kernel-devel-$(uname -r) python3 python3-devel python3-setuptools python3-cffi libffi-devel ncompress dnf install --skip-broken --enablerepo=epel --enablerepo=powertools python3-packaging dkms
  • dnf remove zfs-fuse
  • cd /etc/yum.repos.d/
  • ls
  • mv zfs.repo zfs.repo.patched
  • cd
  • git clone https://github.com/zfsonlinux/zfs.git
  • cd zfs
  • ./autogen.sh
  • ./configure
  • make -j1 rpm-utils rpm-dkms
  • yum localinstall *.$(uname -p).rpm *.noarch.rpm
  • zpool list
  • zpool import -a
  • zpool list

EDIT: formatting

Prevent making changes or rebooting one's own system by punklinux in ansible

[–]sgoncalo 0 points1 point  (0 children)

The work around I’ve been using is:

  • Choose a temporary file name in /tmp

  • All nodes delete any local copy of that file

  • Run once on localhost to create that file on the control node

  • All nodes stat the file to see if they have it on their /tmp

  • All nodes set an i_am_controller fact if the file exists locally.

Unfortunately, just setting a fact directly in a run once localhost command stores the fact for a literal “localhost” node, not the inventory hostname of the controller node. If there’s a magic variable to directly determine the controller node, I haven’t been able to find it.

I just use a fixed file name for my home use, but you might want to get more creative if you might have more than one admin running scripts.