Category: Linux

ZFS – Good to know

## Links:https://ruvi-d.medium.com/zfs-on-ubuntu-20-04-lts-53728f3bc9e9 https://wiki.ubuntu.com/Kernel/Reference/ZFS https://jrs-s.net/2016/09/15/zfs-snapshots-and-cold-storage/ https://didrocks.fr/2020/05/26/zfs-focus-on-ubuntu-20.04-lts-zsys-general-presentation/ https://wiki.archlinux.org/index.php/ZFS ## on Linux install ZFS on Linux > sudo apt install zfsutils-linux ## Commands: ### List the Pools > zpool list ### Unmount Pool/Dataset > zfs unmount <pool>/<dataset> ### Show parameters of pool > zpool get all <pool> ### List the DataSets > zfs list ### Create a Pool (easy/test) > zpool create -f...

tmux – Good to know

Why tmux? 1) Because it makes life easier: https://opensource.com/article/20/5/split-terminal 2) Because it’s beautiful: [tmux] is my WM on OS x from unixporn For a beginners guide see: https://www.hamvocke.com/blog/a-quick-and-easy-guide-to-tmux/ https://www.golinuxcloud.com/tmux-commands/ Cheat-Sheet: use “prefix key” “Ctrl + a” (changed in my config, standard is “Ctrl + b”), release, then press “command key”. You can get help with: “prefix kex” + ? command...

Apache2 https and .htaccess Rewrite Engine

Problem: After installing Apache2 some local site, which has a .htaccess-file cannot be opened, and shows the error message: “Internal Server Error. The server encountered an internal error or misconfiguration and was unable to complete your request.” The logfile /var/log/apache2/error.log says “/path/.htaccess: Invalid command ‘RewriteEngine’, perhaps misspelled or defined by a module not included in the server configuration”. .htaccess has...

Customize Linux after fresh installation

Run “bootstrap_system.sh” from $HOME Following things to check: 1) Repair the IBUS-error “/usr/share/im-config/data/21_ibus.rc” – no such file or directory sudo apt-get install ibus 2) Set zsh as default shell chsh -s $(which zsh) 3) Change GRUB-Settings – Always show GRUB and show boot-messages (edit in /etc/defaults/grub) GRUB_TIMEOUT_STYLE=menu GRUB_TIMEOUT=5 GRUB_CMDLINE_LINUX_DEFAULT=”” 4) Set Transparency of the Panel https://ubuntuforums.org/showthread.php?t=2400831 5) Mount USB-Stick in...

Linux Mint blackscreen on boot

Problem: Black screen on boot System: Linux Mint 19.3 Kernel 5.4.0-47 Nvidia 340 Solution: add: “nvidia.modeset=0” at the end of the grub boot-entry. When the Nouveau is activated: “nouveau.modeset=0” see: https://community.linuxmint.com/tutorial/view/842 add: https://forums.linuxmint.com/viewtopic.php?t=309784

Linux Mint

Recently i switched the OS on my main mashine to Linux Mint 19.3 Tricia. Before i was using Ubuntu for about 6 years, when moving away from Macos, which was getting to cumbersome, proprietary and slow on the mac. Now, Ubuntu was not getting to slow, but there are good reasons to slowly leave canonical – namely Snap.. Slowly, because...

xfce – change panel icon size

in File: ~/.config/gtk-3.0/gtk.css eg: #pulseaudio-button image{ -gtk-icon-transform: scale(0.7); } #xapp-status-plugin-5 image{ -gtk-icon-transform: scale(0.7); } #weather-11 image{ -gtk-icon-transform: scale(0.7); } Then restart panel: xfce4-panel -r

Change Apache2 Webfolder

Problem: I have stored my local Websites in ~/Documents/Sites/ however the standard Apache2 Directory is /var/www/html. To change this: 1) vi /etc/apache2/sites-available/000-default.conf 2) Change DocumentRoot to desired location: /path/to/my/project 3) vi /etc/apache2/apache2.conf 4) Change directory setting to: < Directory /> Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Require all granted < /Directory> 5) Restart Apache: sudo service apache2 restart In...

Set Default Kernel entry in GRUB2

Problem: After installing Wireguard in Ubuntu 18.04. the kernel vesrion 5.3.0.1026.13 (linux-image-gke-5.3) is automatically installed, as well. However on my system it broke several things like display-resolution and keyboard… So i’d like to reset the former kernel linux-image-generic 4.15.0.106.94 as the new default kernel in GRUB 2 again. Solution: 1) Backup grub config file: > sudo cp /etc/default/grub /etc/default/grub.bak 2)...