119 lines
3.7 KiB
Text
119 lines
3.7 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
|
|
|
|
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 (note that there is still work to be done here...)
|
|
|
|
Download and install in virtmanager Windows 10 iso (for purposes of software tests)
|
|
|
|
Use this site (microsoft only has .exe now... 64 bit, version 21H2)
|
|
https://www.itechtics.com/windows-10-download-iso/
|
|
|
|
To understand google-font-installer(gfi): visit: https://github.com/lordgiotto/google-font-installer
|
|
|
|
Check out artix-news on github and look at its source code to understand a basic web-scraper written in python: https://github.com/ryukinix/artix-news
|
|
|
|
SOLVED:Currently troubleshooting fail2ban to work with this, but due to no systemd, fail2ban needs further configuration that I have yet to figure out
|
|
|
|
ANSWER: In /etc/fail2ban/jail.conf, comment out the line that says 'polling' under the search for 'backend'
|
|
|
|
This will allow for logging to be done with a native logger instead of it searching for systemd's journald by default.
|
|
|
|
Then create a file called /etc/fail2ban/jail.d/sshd.local and input the following:
|
|
[sshd]
|
|
enabled = true
|
|
filter = sshd
|
|
banaction = ufw
|
|
backend = polling
|
|
maxretry = 3
|
|
findtime = 1d
|
|
bantime = 1d
|
|
ignoreip = 127.0.0.1/8
|
|
|
|
In /etc/ssh/sshd_config
|
|
Change LogLevel to VERBOSE
|
|
|
|
restart the fail2ban service and test it with:
|
|
|
|
doas fai2ban -client status
|
|
|
|
install paxtest
|
|
|
|
doas pacman -S paxtest
|
|
|
|
install firejail
|
|
|
|
doas pacman -S firejail
|
|
|
|
doas firecfg
|
|
|
|
doas apparmor_parser -r /etc/appamor.d/firejail-default
|
|
|
|
to disable certain applications in firejail, simply navigate to /usr/local/bin where you will find many of the soft links created by firejail:
|
|
|
|
doas mv someapp someapp_disabled (will break the link, simply name it back to its original to reenable it) rtorrent, newsboat, mpv, librewolf, chromium, links, steam, steam-runtime
|
|
|
|
also comment out in /etc/firejail/steam* all rules
|
|
|
|
cd /etc/firejail
|
|
|
|
doas nvim steam-native.profile
|
|
doas nvim steam.profile
|
|
doas nvim steam-runtime.profile
|
|
|
|
Install ncpamixer (ncurses pavu controller replacement)
|
|
|
|
paru ncpamixer (1st)
|
|
|
|
Install difftastic (better diff version with colors written in rust)
|
|
subtle change here
|
|
paru difftastic (only 1 option, very new program)
|
|
|
|
Install local network sniffer avahi:
|
|
|
|
doas pacman -S avahi avahi-runit nss-mdns
|
|
|
|
doas ln -s /etc/runit/sv/avahi-daemon /run/runit/service/
|
|
|
|
Install brother printer drivers
|
|
paru brother-mfc-j615w 1.1.3-2
|
|
|
|
Set up the printer using first by searching for all printers in the area:
|
|
|
|
lpinfo --include-schemes dnssd -v
|
|
|
|
This will provide you with the needed uri to name the printer:
|
|
|
|
lpadmin -p Brother
|
|
|
|
lpadmin -p Brother -E -v socket://10.0.0.251
|
|
|
|
Install ripdrag:
|
|
|
|
cargo install ripdrag
|
|
|
|
your zshrc has ~/.cargo/bin added to the $PATH variable to use ripdrag
|
|
|
|
Set difftastic as git diff default:
|
|
|
|
git config --global diff.external difft
|
|
|
|
Install glsxinfo (mesa-utils):
|
|
|
|
doas pacman -S glsxinfo
|