Skip to content
    • About
    • Contact

/root

  • The most important command: chroot

    September 5th, 2023

    “A chroot is an operation that changes the apparent root directory for the current running process and their children. A program that is run in such a modified environment cannot access files and commands outside that environmental directory tree. This modified environment is called a chroot jail.”

    I always have a spare USB device with an Arch Linux bootable iso just in case my system does not boot or after a package update that totally breaks my system.

    In August 2022 there was a major GRUB bug that caused many systems failing to boot. At that time I was not in a home setting so chroot from a USB literally saved me.

    Another case was using ibt=off in /etc/default/grub that turns off the Indirect Branch Tracking security feature, after a bug affected Nvidia drivers.

    https://github.com/NVIDIA/open-gpu-kernel-modules/issues/256

    https://wiki.archlinux.org/title/chroot

  • Manjaro 23.0 Uranos released

    September 5th, 2023

    With Gnome 44 and Plasma KDE 5.27 LTS with KDE Gear 23.08

    https://forum.manjaro.org/t/manjaro-23-0-uranos-released/147448

    https://www.phoronix.com/news/Manjaro-23.0-Released

  • One small step for man, one giant leap for mankind. FSRS Optimizer integrated into Anki

    September 5th, 2023

    https://github.com/ankitects/anki/commit/0c6e3eaa93a469577f66139774f0521be4c173e9

  • Anki reviews using a PS5 controller

    September 5th, 2023

    Using Anki at the beginning can be pretty unconfortable, as pressing the spacebar and 1,2,3,4 keys a million times can lead to tendonitis and makes reviews not enjoyable 😦

    Instead using a PS4, Xbox or PS4 game controller gives a gaming character to your daily reviews, is easy and can be used while connecting your Laptop with an Ultra HDTV

    Installing AntiMicroX, a graphical program used to map gamepad keys to keyboard, mouse, scripts and macros in Arch Linux Distros:

    > yay -Ss antimicrox
    aur/antimicrox-git 3.3.3.r2.g7a39dc43-1 (+4 0.05)  
       Map keyboard and mouse actions to gamepad buttons, inspired by qjoypad.
    Antimicro fork
    aur/antimicrox 3.3.4-1 (+115 0.26) (Installed)
       Graphical program used to map keyboard buttons and mouse controls to a
    gamepad
    

    antimicrox is the stable release while antimicrox-git is the cutting edge, with the latest commits version.

  • Setting aliases in Z Shell (ZSH)

    September 5th, 2023

    2 of the most common commands that I use all the time is sudo pacman -Syu for updating packages and sudo pacman -Scc for clearing the package cache

    Setting aliases saves a lot of time 🙂

    #Aliases

    alias update="sudo pacman -Syu && yay -Syu"

    alias clearcache="sudo pacman -Scc && yay -Scc"

    # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
    # Initialization code that may require console input (password prompts, [y/n]
    # confirmations, etc.) must go above this block; everything else may go below.
    if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
      source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
    fi
    
    # Use powerline
    USE_POWERLINE="true"
    # Source manjaro-zsh-configuration
    if [[ -e /usr/share/zsh/manjaro-zsh-config ]]; then
      source /usr/share/zsh/manjaro-zsh-config
    fi
    # Use manjaro zsh prompt
    if [[ -e /usr/share/zsh/manjaro-zsh-prompt ]]; then
      source /usr/share/zsh/manjaro-zsh-prompt
    fi
    
    # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
    [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
    
    
    #Aliases
    alias update="sudo pacman -Syu && yay -Syu"
    alias clearcache="sudo pacman -Scc && yay -Scc"
    
    
  • Sharing my /etc/pacman.conf, the Pacman configuration file

    September 5th, 2023

    Pacman is the default package manager of Arch Linux and Arch Linux based distributions. It is considered as the most robust binary package manager along with Portage of Gentoo, a powerful source code package manager.

    One of the most important modifications of my setup is the number of parallel downloads and kde-unstable repository

    #
    # /etc/pacman.conf
    #
    # See the pacman.conf(5) manpage for option and repository directives
    
    #
    # GENERAL OPTIONS
    #
    [options]
    # The following paths are commented out with their default values listed.
    # If you wish to use different paths, uncomment and update the paths.
    #RootDir     = /
    #DBPath      = /var/lib/pacman/
    CacheDir = /var/cache/pacman/pkg/
    #LogFile     = /var/log/pacman.log
    #GPGDir      = /etc/pacman.d/gnupg/
    #HookDir     = /etc/pacman.d/hooks/
    HoldPkg      = pacman glibc manjaro-system
    # If upgrades are available for these packages they will be asked for first
    SyncFirst    = manjaro-system archlinux-keyring manjaro-keyring
    #XferCommand = /usr/bin/curl -L -C - -f -o %o %u
    #XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
    #CleanMethod = KeepInstalled
    #UseDelta    = 0.7
    Architecture = auto
    
    # Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
    #IgnorePkg   =
    #IgnoreGroup =
    
    #NoUpgrade   =
    #NoExtract   =
    
    # Misc options
    #UseSyslog
    Color
    #NoProgressBar
    # We cannot check disk space from within a chroot environment
    CheckSpace
    VerbosePkgLists
    ParallelDownloads = 5
    
    # By default, pacman accepts packages signed by keys that its local keyring
    # trusts (see pacman-key and its man page), as well as unsigned packages.
    SigLevel    = Required DatabaseOptional
    LocalFileSigLevel = Optional
    #RemoteFileSigLevel = Required
    
    # NOTE: You must run `pacman-key --init` before first using pacman; the local
    # keyring can then be populated with the keys of all official Manjaro Linux
    # packagers with `pacman-key --populate archlinux manjaro`.
    
    #
    # REPOSITORIES
    #   - can be defined here or included from another file
    #   - pacman will search repositories in the order defined here
    #   - local/custom mirrors can be added here or in separate files
    #   - repositories listed first will take precedence when packages
    #     have identical names, regardless of version number
    #   - URLs will have $repo replaced by the name of the current repo
    #   - URLs will have $arch replaced by the name of the architecture
    #
    # Repository entries are of the format:
    #       [repo-name]
    #       Server = ServerName
    #       Include = IncludePath
    #
    # The header [repo-name] is crucial - it must be present and
    # uncommented to enable the repo.
    #
    
    # The testing repositories are disabled by default. To enable, uncomment the
    # repo name header and Include lines. You can add preferred servers immediately
    # after the header, and they will be used before the default mirrors.
    
    
    #[kde-unstable]
    #Include = /etc/pacman.d/mirrorlist
    
    [core]
    SigLevel = PackageRequired
    Include = /etc/pacman.d/mirrorlist
    
    [extra]
    SigLevel = PackageRequired
    Include = /etc/pacman.d/mirrorlist
    
    [community]
    SigLevel = PackageRequired
    Include = /etc/pacman.d/mirrorlist
    
    # If you want to run 32 bit applications on your x86_64 system,
    # enable the multilib repositories as required here.
    
    [multilib]
    SigLevel = PackageRequired
    Include = /etc/pacman.d/mirrorlist
    
    # An example of a custom package repository.  See the pacman manpage for
    # tips on creating your own repositories.
    #[custom]
    #SigLevel = Optional TrustAll
    #Server = file:///home/custompkgs
    
    
  • “No Anki 3.0, as the version numbering system is likely to change soon”

    September 5th, 2023

    According to Damien Elmes, the author of Anki

  • Testing Arch Linux ISO 1.9.2023 in Virtual Box

    September 5th, 2023

    Comes with 6.4.12 Kernel and archinstall 2.6.0-1, a python installation script

  • Best online resources for understanding UNIX/Linux and filesystems in general

    August 28th, 2023
    1. Arch Linux Wiki (https://wiki.archlinux.org/)
    2. Arch Linux man pages (https://man.archlinux.org/)
    3. FreeBSD Handbook (https://docs.freebsd.org/en/books/handbook/)
    4. FreeBSD man pages https://man.freebsd.org/cgi/man.cgi
    5. https://vermaden.wordpress.com/
    6. https://klarasystems.com/articles/
    7. https://openzfs.github.io/openzfs-docs/
    8. https://btrfs.readthedocs.io/en/latest/

    These are only the resources that come to mind in a couple of seconds. Will update them later 🙂

  • Installed the new 6.5 kernel today :)

    August 28th, 2023
  • FreeBSD 14 stable branch created in GitHub

    August 28th, 2023

    https://github.com/freebsd/freebsd-src/tree/stable/14

  • Anki 2.1.66 released with default v3 scheduling

    August 28th, 2023

    For further changes, features and bug fixes visit https://github.com/ankitects/anki/releases/tag/2.1.66

  • KDE Gear 23.08

    August 25th, 2023

    https://kde.org/announcements/gear/23.08.0/?fbclid=IwAR1wtdOAww7rzzfAyT643WSlVzaBC1999Z15EQs7q3T3_2sCdiHL-Crjq9Y

  • Version numbering system change of LibreOffice

    August 25th, 2023

    Devs will leave semantic versioning behind and will adopt a year.month system

    At least not like Firefox’s development system 🙂

    https://www.phoronix.com/news/LibreOffice-24.2-Up-Next

  • FreeBSD 14 Alpha 3 available for download

    August 25th, 2023

    https://download.freebsd.org/snapshots/amd64/amd64/ISO-IMAGES/14.0/

←Previous Page
1 … 132 133 134 135 136 … 139
Next Page→

Blog at WordPress.com.

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
 

Loading Comments...
 

    • Subscribe Subscribed
      • /root
      • Already have a WordPress.com account? Log in now.
      • /root
      • Subscribe Subscribed
      • Sign up
      • Log in
      • Report this content
      • View site in Reader
      • Manage subscriptions
      • Collapse this bar