📕 subnode [[@bmann/ubuntu]] in 📚 node [[ubuntu]]

Add a user to sudo group

usermod -aG sudo <username>

Count files recursively in a directory

find <directory> -type f | wc -l

Also suppress permission denied errors:

find <directory> -type f 2> /dev/null | wc -l

Reference Articles

Installing node / yarn on Ubuntu 18

https://linuxize.com/post/how-to-install-yarn-on-ubuntu-18-04/

  • #push [[ubuntu]]
    • I upgraded [[nostromo]] to [[ubuntu 22.04]] and, again, I ended up with no sound.
      • I needed to run the following to recover it:
      • sudo touch /usr/share/pipewire/media-session.d/with-pulseaudio && systemctl --user restart pipewire-session-manager
      • Also I had to fix sources.list by hand again before being able to do-release-upgrade because I missed the "upgrade window" for 21.10 so it was completely gone from repositories (?).
      • Both of these are very surprising to me, in this day and age. I don't quite get in particular how a less technical user should be expected to update sources.list by hand because they didn't upgrade for half a year or so?
📖 stoas
⥱ context