notes/updates.txt
2022-07-21 15:48:57 -07:00

65 lines
2 KiB
Text

Use this file as a post-it for packages to install on laptop/desktop.
add notation about awk as
Select everything but the second field:
awk '!($2="")'
add notation about tr (translate command):
replace every newline with a single space: tr '\n' ' '
add notation about using find to list only files in current directory and NOT subdirectory:
find $dir -maxdepth 1 -type f
add notation about using pick to parse through output, and pipe that using xargs to another command:
example:
ls | pick | xargs bat # will give you a choice of the files from ls, pick displays a menu to "pick" the file, which then is parsed to xargs bat (invokes bat on choice from ls | pick)
https://medium.com/techie-delight/top-25-algorithms-every-programmer-should-know-373246b4881b
Look up the select command (online, man page is not as helpful). It makes a nice simple selectio menu for your users in bash
Install expac
doas pacman -S expac
Install pkgtop
curl https://raw.githubusercontent.com/SharUpOff/pkgtop/main/dist/pkgtop.sh -so - | sudo tee /usr/local/bin/pkgtop > /dev/null
sudo chmod 755 /usr/local/bin/pkgtop
Finally figured out how to get language servers working neovim, you have to npm install -g each of them from ~/.local/nvim/share/lsp-servers
After updating your nvim, make sure to run :LspInstallerInfo and update your language servers
Update rustup
rustup update
***Set up apparmor (basic security measure)
doas pacman -S apparmor apparmor-runit audit audit-runit
doas ln -s /etc/runit/sv/auditd /run/runit/service/
doas sv start auditd
In /etc/rc/apparmor.conf, uncomment enforce mode
In /etc/default/grub, rewrite the line at CMDLINE as such (be exact and careful here):
GRUB_CMDLINE_LINUX="lsm=landlock,lockdown,yama,apparmor,bpf net.ifnames=0"
grub-mkconfig -o /boot/grub/grub.cfg
reboot
If all went well run aa-enabled, which should yield "Yes"
aa-enabled
Now load simple defaults:
doas apparmor_parser /usr/share/apparmor/extra-profiles/
And reboot again, you should have some sane security defaults now.