2023-02-27: Install grub into EFI system partition

sudo mount /dev/sda5 /mnt sudo mount /dev/sda2 /mnt/boot for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done sudo chroot /mnt mount -t efivarfs none /sys/firmware/efi/efivars grub-install --efi-directory=/boot --bootloader-id=GRUB update-grub exit

2021-05-21: Move linux system to new hard disk

Create partitions using fdisk
Change partition labels using gdisk

# fdisk -l /dev/sdb Disk /dev/sdb: 5.5 TiB, 6001175126016 bytes, 11721045168 sectors Disk model: WDC WD60EZAZ-00S Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: gpt Disk identifier: C51453C8-6D7F-1448-BCB8-612AB956B905 Device Start End Sectors Size Type /dev/sdb1 2048 4095 2048 1M BIOS boot /dev/sdb2 4096 1052671 1048576 512M EFI System /dev/sdb3 1052672 1462271 409600 200M Linux filesystem /dev/sdb4 1462272 9850879 8388608 4G Linux swap /dev/sdb5 9850880 97656831 87805952 41.9G Linux filesystem /dev/sdb6 97656832 11721045134 11623388303 5.4T Linux filesystem # mkswap -L swap /dev/sdb4 # mkfs.ext4 /dev/sdb3 -L boot # mkfs.ext4 /dev/sdb5 -L linux-os # mkfs.ext4 /dev/sdb6 -L data
Stop processes and timers
# mkdir /mnt/new # mount /dev/sdb5 /mnt/new # mkdir /mnt/new/boot # mount /dev/sdb3 /mnt/new/boot # rsync -a / /mnt/new/ --exclude /sys --exclude /proc --exclude /dev --exclude /tmp --exclude /media --exclude /mnt --exclude /run --exclude /boot --exclude /data --exclude /lost+found # rsync -a /boot/ /mnt/new/boot/ # rm -rf /mnt/new/boot/grub # cd /mnt/new # mkdir sys proc dev tmp media mnt mnt/backup mnt/backup/tori run # mount -t proc none /mnt/new/proc # mount -o bind /dev /mnt/new/dev # mount -t sysfs sys /mnt/new/sys # chroot /mnt/new # grub-install /dev/sdb # update-grub # exit # shutdown -r now # update-initramfs -u

2021-01-20: Using Ziggo with Tvheadend

Network:
Network ID: 5555

Mux:
Frequency: 474000000 Hz
Symbol rate: 6875000 Sym/sec
Constellation: QAM/64

2020-12-27: Switch from nvidia to nouveau driver

apt install xserver-xorg-video-nouveau mesa-va-drivers apt purge *nvidia* mv /etc/X11/xorg.conf /etc/X11/xorg.conf.bak systemctl reboot
Notes:
  • Make sure nouveau is not blacklisted in /etc/modprobe.d/
  • Hardware acceleration in chromium can be enabled via chrome://flags

  • 2020-05-03: PulseAudio does not detect all devices

    With the MCP78S chipset, ALSA correctly detects all 3 devices (shown by aplay -l) but PulseAudio only detects the HDMI output (shown by pactl list sinks). Consequently, the other devices are not available in Xfce nor in KDE/Phonon. This is not caused by the devices being in use by other processes.

    Workaround: Remove PulseAudio and use ALSA directly:
    apt purge pulseaudio pulseaudio-utils libpulsedsp

    2020-04-18: Install Widevine as Chromium component on Debian

    wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb dpkg -x google-chrome-stable_current_amd64.deb . cd opt/google/chrome cp -r WidevineCdm /usr/lib/chromium/ chown -R root:root /usr/lib/chromium/WidevineCdm

    2019-12-07: Debian: hdparm -S 120 does not work

    /lib/udev/rules.d/85-hdparm.rules calls the script /lib/udev/hdparm, which for some reason inserts -B254 to the options defined in /etc/hdparm.conf.
    Workaround: Override de udev rule by creating /etc/udev/rules.d/85-hdparm.rules with content:
    ACTION=="add", SUBSYSTEM=="block", KERNEL=="sda", RUN+="/sbin/hdparm -S 120 /dev/sda"

    2019-11-24: Install Netflix add-on for Kodi

    apt install python-future python3-future python-pycryptodome python3-pycryptodome cd ~/.kodi/addons wget https://mirrors.kodi.tv/addons/leia/script.module.addon.signals/script.module.addon.signals-0.0.4.zip unzip script.module.addon.signals-0.0.4.zip rm script.module.addon.signals-0.0.4.zip git clone https://github.com/CastagnaIT/plugin.video.netflix
    Enable Signals and Netflix add-ons in Kodi

    2019-11-17: Install Kodi on Raspberry Pi

    sudo apt install xserver-xorg x11-xserver-utils lightdm kodi kodi-inputstream-adaptive kodi-pvr-hts echo "exec /usr/bin/kodi-standalone" > ~/.xsession wget https://dl.google.com/dl/edgedl/chromeos/recovery/chromeos_12371.75.0_elm_recovery_stable-channel_mp-v2.bin.zip unzip https://dl.google.com/dl/edgedl/chromeos/recovery/chromeos_12371.75.0_elm_recovery_stable-channel_mp-v2.bin.zip udisksctl loop-setup -rf chromeos_12371.75.0_elm_recovery_stable-channel_mp-v2.bin udisksctl mount -b /dev/loop0p3 cp /media/$USER/ROOT-A/opt/google/chrome/libwidevinecdm.so ~/.kodi/cdm/ udisksctl unmount -b /dev/loop0p3

    2019-10-04: Tvheadend: stable amd64 packages for Debian Buster

    Forum: stable amd64 packages for Debian Buster

    2019-09-15: Osmand: Overlay map settings are not stored per mode

    Osmand issue: Feature request: Navigation profile to save Overlay,Underlay

    2019-09-15: Osmand: Cycle route node not displayed

    Osmand issue: Cycle route node not displayed

    2019-09-08: Raspbian: Kodi is broken in Raspbian Buster

    Forum: Kodi is broken on raspbian buster

    2019-09-01: Debian: Horde tabs broken in Debian Buster

    Debian bug: #931255: regexps used seems to be incompatible with libpcre2 10.32

    2019-09-01: Debian: Horde IMP in combination with Courier IMAP broken in Debian Buster

    Debian bug: #939129: Charset incorrectly omitted from SORT command
    Package tracker: php-horde-imap-client
    Workaround: Disable message sorting in IMP.

    2019-02-04: nvidia-legacy-340xx crashes the system

    nvidia-legacy-340xx crashes the system; disable MSI to avoid this.
    Add to /etc/modprobe.d/nvidia-options.conf:
    options nvidia NVreg_EnableMSI=01
    See: https://bbs.archlinux.org/viewtopic.php?id=168040

    2013-09-01: Debian: php-horde package installation fails

    Debian bug: #711591: php-horde: fails to install: post-installation script returned error exit status 1