8 Misc
8.1 Installing Google fonts
# Original author: Michalis Georgiou <mechmg93@gmail.comr>
# Modified by Andrew http://www.webupd8.org <andrew@webupd8.org>
_wgeturl="https://github.com/google/fonts/archive/master.tar.gz"
_gf="google-fonts"
# install wget
sudo apt-get install wget
# make sure a file with the same name doesn't already exist
rm -f $_gf.tar.gz
echo "Connecting to Github server..."
wget $_wgeturl -O $_gf.tar.gz
echo "Extracting the downloaded archive..."
tar -xf $_gf.tar.gz
echo "Creating the /usr/share/fonts/truetype/$_gf folder"
sudo mkdir -p /usr/share/fonts/truetype/$_gf
echo "Installing all .ttf fonts in /usr/share/fonts/truetype/$_gf"
find $PWD/fonts-main/ -name "*.ttf" -exec sudo install -m644 {} /usr/share/fonts/truetype/google-fonts/ \; || return 1
echo "Updating the font cache"
fc-cache -f >/dev/null
# clean up, but only the .tar.gz, the user may need the folder
rm -f $_gf.tar.gz
echo "Done."
8.2 Swapiness (swap usage)
Change the value of the swapiness
, so the kernel use memory primarily instead of the disk.
8.3 Zotero
8.3.1 Installation
https://linux.how2shout.com/how-to-install-zotero-on-ubuntu-22-04-or-20-04-lts/
-sL https://raw.githubusercontent.com/retorquere/zotero-deb/master/install.sh | sudo bash
curl
sudo apt update sudo apt install zotero
8.3.2 Citation key
- Use better bibtex and set the citation key format as
auth.capitalize+year
.
8.4 act
8.5 Make using multiple cores
Open the .zshrc
file and set the number of core to be used with make
. This will also work when installing R packages from source.
nvim ~/.zshrc
export MAKE="make -j24"
R packages will install much faster.
8.6 Image viewer
8.7 duckdb
https://duckdb.org/docs/installation/index
wget https://github.com/duckdb/duckdb/releases/download/v1.0.0/duckdb_cli-linux-amd64.zip
sudo unzip duckdb_cli-linux-amd64.zip -d /usr/local/bin/
rm duckdb_cli-linux-amd64.zip
8.7.1 Using duckfetch
To install it from crates.io:
cargo install duckfetch
Or the development version:
cargo install --git https://github.com/pmassicotte/duckfetch
8.8 Keyboard
- Configure using VIA: https://github.com/the-via/releases/releases/
- https://config.qmk.fm/#/test
- http://keyboards.jargon-file.org/
Download this file:
sudo cp altinter.klc /usr/share/X11/xkb/symbols/
Update the XKB configuration: After copying the file, you may need to update the XKB configuration cache. You can do this by running:
sudo dpkg-reconfigure xkb-data
Not, the dead key is set up to AtlGr (right Alt).
8.9 cbonsai
cbonsai -l -i -p -m "Be right back"
8.10 Everforest cursor
https://github.com/talwat/everforest-cursors
8.11 Zen browser
Install with:
bash <(curl https://updates.zen-browser.app/appimage.sh)
8.12 csvlens
Install with:
cargo install csvlens