• chevron_right

      How to fix i801 SMBus interrupt storm

      pubsub.slavino.sk / sleeplessbestie · Sunday, 17 April, 2022 - 20:36 edit

    Today I have installed Ubuntu Jammy Jellyfish (release 22.04) on Acer Aspire One (A114-32-P991), but the i801 SMBus interrupt storm made this system unusable. Operating system version. $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu Jammy Jellyfish (development branch) Release: 22.04 Codename: jammy Kernel version and architecture. $ uname -a […]

    Značky: #Linux, #DailyOps, #Ubuntu

    • chevron_right

      How to improve apt download times

      pubsub.slavino.sk / sleeplessbestie · Friday, 15 April, 2022 - 11:31 edit

    Improve apt download times by using apt-fast a shell-script wrapper for apt, apt-get or aptitude. At first install debconf utilities. $ sudo apt-get install debconf-utils Preconfigure apt-fast, all configuration options will be mentioned later. $ cat << EOF | sudo debconf-set-selections apt-fast apt-fast/aptmanager select apt apt-fast apt-fast/maxdownloads string 4 apt-fast apt-fast/dlflag boolean true EOF Search […]

    Značky: #DailyOps, #Ubuntu, #Linux

    • chevron_right

      How to upgrade Ubuntu 21.10 LTS to the latest development version of Ubuntu 22.04 release

      pubsub.slavino.sk / sleeplessbestie · Wednesday, 13 April, 2022 - 11:00 edit

    Upgrade Ubuntu 21.10 LTS (Long Term Support) to the latest development version of Ubuntu 22.04 release. Check operating system version before release upgrade. $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 21.10 Release: 21.10 Codename: impish Update package index. $ sudo apt update Upgrade operating system. $ sudo apt upgrade […]

    Značky: #DailyOps, #Linux, #Ubuntu

    • chevron_right

      How to convert text file in DOS format to Unix format

      pubsub.slavino.sk / sleeplessbestie · Tuesday, 12 April, 2022 - 11:00 edit

    Convert line endings inside text file from DOS to UNIX format. Try to execute shell script in DOS format. $ ./processes_bar_chart.sh bash: ./processes_bar_chart.sh: /bin/sh^M: bad interpreter: No such file or directory Install dos2unix utility. $ sudo apt install dos2unix Display usage information. $ dos2unix --help Usage: dos2unix [options] [file ...] [-n infile outfile ...] --allow-chown […]

    Značky: #DailyOps, #Linux, #Ubuntu

    • chevron_right

      How to install human-friendly apt front-end

      pubsub.slavino.sk / sleeplessbestie · Tuesday, 22 March, 2022 - 12:00 edit

    Install nala a human-friendly apt front-end using the python-apt API. Add a repository, which supports amd64, arm64, and armhf architectures. $ echo "deb [arch=amd64] http://deb.volian.org/volian/ scar main" | sudo tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list Install repository key. $ curl --silent --output - https://deb.volian.org/volian/scar.key | sudo tee /etc/apt/trusted.gpg.d/volian-archive-scar-unstable.gpg Update package index. $ sudo apt update Inspect package details. $ […]

    Značky: #Linux, #Ubuntu, #Debian, #DailyOps

    • chevron_right

      How to install cross-platform shell prompt

      pubsub.slavino.sk / sleeplessbestie · Friday, 4 March, 2022 - 12:00 edit

    Install rust-powered customizable prompt for any shell (bash in my case). Download recent release from GitHub. $ wget https://github.com/starship/starship/releases/download/v1.3.0/starship-x86_64-unknown-linux-gnu.tar.gz \ https://github.com/starship/starship/releases/download/v1.3.0/starship-x86_64-unknown-linux-gnu.tar.gz.sha256 Inspect file checksum. $ cat starship-x86_64-unknown-linux-gnu.tar.gz.sha256 d99fda409e1be96b07a8687bdbb1162e75c4a3c4301e7bf853dfd01dcb34a33d $ shasum --algorithm 256 starship-x86_64-unknown-linux-gnu.tar.gz d99fda409e1be96b07a8687bdbb1162e75c4a3c4301e7bf853dfd01dcb34a33d starship-x86_64-unknown-linux-gnu.tar.gz Inspect archive contents. $ tar --list --verbose --gzip --file starship-x86_64-unknown-linux-gnu.tar.gz -rwxr-xr-x runner/docker 7097824 2022-02-07 16:04 starship Extract released binary. $ […]

    Značky: #Linux, #DailyOps

    • chevron_right

      How to generate static website for an old ArchiveBox archive

      pubsub.slavino.sk / sleeplessbestie · Saturday, 26 February, 2022 - 12:00 edit

    I have an old archive that I want to keep, but I cannot import it to the new one due to changes in JSON files, so I will generate a static website. Inspect backup directory. $ ls archive Inspect ArchiveBox archive. $ ls archive/ 1561294668 1561294668.128 1561294668.159 1561294668.19 1561294668.22 1561294668.250 1561294668.281 1561294668.311 1561294668.342 1561294668.373 1561294668.403 […]

    Značky: #DailyOps, #Linux, #ArchiveBox

    • chevron_right

      How to handle low memory conditions on desktop

      pubsub.slavino.sk / sleeplessbestie · Friday, 25 February, 2022 - 13:00 edit

    Handle low memory conditions on desktop using a nohang a sophisticated low memory handler for Linux in Python. Inspect nohang utility package. $ apt info nohang Package: nohang Version: 0.2.0-1 Priority: optional Section: admin Maintainer: Yangfl Installed-Size: 269 kB Pre-Depends: init-system-helpers (>= 1.54~) Depends: python3:any Suggests: libnotify-bin, sudo Homepage: https://github.com/hakavlad/nohang Download-Size: 51.5 kB APT-Sources: http://deb.debian.org/debian […]

    Značky: #Bullseye, #Debian, #DailyOps, #Linux

    • chevron_right

      How to use DPMS to turn screen on or off

      pubsub.slavino.sk / sleeplessbestie · Tuesday, 8 February, 2022 - 12:00 edit

    Use DPMS (Display Power Management Signaling) to turn screen on or off. Display DPMS settings. $ xset q Keyboard Control: auto repeat: on key click percent: 0 LED mask: 00000002 XKB indicators: 00: Caps Lock: off 01: Num Lock: on 02: Scroll Lock: off 03: Compose: off 04: Kana: off 05: Sleep: off 06: Suspend: […]

    Značky: #DailyOps, #Ubuntu, #Linux