Linux

fzf

2024-04-24
Tutorial, Bash
Bash, Linux

fzf is a command-line fuzzy finder # The fuzzy finder of the fzf project is available as package in many distributions. Bash aliases are usefull, but you have to keep them organized. This can be done easily, if you use a separate file for all your aliases. Add the following block to the ~/.bashrc # assign keybindings, if fzf is available. # adjust the path to key-bindings.bash depending on your installation if [ -x "$(command -v fzf)" ] then source /usr/share/fzf/key-bindings. ...

Bash alias

2024-02-24
Tutorial, Bash
Bash, Linux

Organize Aliases # Bash aliases are usefull, but you have to keep them organized. This can be done easily, if you use a separate file for all your aliases. Add the following block to the ~/.bashrc # Add bash aliases. if [ -f ~/.bash_aliases ]; then source ~/.bash_aliases fi now you can add aliases to ~/.bash_aliases The following example adds an alias to activate python environments echo "alias activate=". . ...

Silent DVD Drive

2024-01-24
Default
Linux

DVD drives can be very noisy while watching a movie on DVD. hdparm can reduce the maximum speed of the DVD drive. # we assume /dev/sdx is the DVD drive hdparm -E 9 /dev/sdx

Update Kernel

2024-01-24
Default
Linux

Quick guide on how to update a kernel on Gentoo Linux manually. First copy the .config to the directory with the new kernel sources. Next update the config. The oldconfig script will ask the user how to configure the additional options of the new kernel. make oldconfig Finally build the kernel and its modules, install the kernel and the modules and update grub. make -j32 modules_prepare && make all -j32 && make modules_install && make install && grub-mkconfig -o /boot/grub/grub. ...