📚 node [[ubuntu]]
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/
- For nodejs,
sudo apt-get install nodejs
gets you node8 (which is old) - So, need
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
- which leads us to yarn
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn
sudo apt-get install -y nodejs
📄
pushed from garden/flancian/journal/2022-09-17.md by @flancian
-
#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?
-
I upgraded [[nostromo]] to [[ubuntu 22.04]] and, again, I ended up with no sound.
📖 stoas
- public document at doc.anagora.org/ubuntu
- video call at meet.jit.si/ubuntu
⥱ context
→ forward
(none)
(none)
⥅ related node [[the ubuntu training corpus]]
⥅ related node [[ubuntu 20 04 basic server setup]]
⥅ related node [[ubuntu 20 04 server setup at greenhost]]
⥅ related node [[ubuntu rationality]]
🔎 full text search for 'ubuntu'