arch: disable linux error beep

this beep comes up in terminals and for each error in matlab. just annoying…. fix this by disabling the right kernel module.

    1. append to /etc/modprobe.d/blacklist.conf:
      blacklist pcspkr
    2. include in /etc/mkinitcpio.conf:
      ...
      FILES="/etc/modprobe.d/blacklist.conf"
      ...
    3. Then rebuild the initramfs and reboot:
      $ mkinitcpio -p linux
      $ reboot
Advertisements

arch: pacman automatic download

This little post explains how to enable download for packages of pacman. It uses a systemd service.

Create the download service (note the option -w for just downloading the packages):

$ sudo vim /etc/systemd/system/pacman-downloader.service
[Unit]
 Description=Automatic Update
 After=network-online.target 

[Service]
 Type=simple
 ExecStart=/usr/bin/pacman -Syuwq --noconfirm
 TimeoutStopSec=180
 KillMode=process
 KillSignal=SIGINT

[Install]
 WantedBy=multi-user.target

Create a timer service to launch the downloader:

$ sudo vim /etc/systemd/system/pacman-downloader.timer
[Unit]
 Description=Automatic Update when booted up after 5 minutes then check the system for updates every 60 minutes

[Timer]
 OnBootSec=5min
 OnUnitActiveSec=60min
 Unit=pacman-downloader.service

[Install]
 WantedBy=multi-user.target

Enable and start the service using systemctl.


Source-link: www.techrapid.co.uk