Skip to content

Instantly share code, notes, and snippets.

@robotamer
Last active May 11, 2024 19:12
Show Gist options
  • Select an option

  • Save robotamer/918d0f1dbfcf88e6ed8abb103d1336b6 to your computer and use it in GitHub Desktop.

Select an option

Save robotamer/918d0f1dbfcf88e6ed8abb103d1336b6 to your computer and use it in GitHub Desktop.

Revisions

  1. robotamer revised this gist Jan 30, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion void.md
    Original file line number Diff line number Diff line change
    @@ -82,7 +82,7 @@ TODO:
    #### Profile Sync Daemon (PSD)

    PSD is a service that symlinks & syncs browser profile directories to RAM, thus reducing HDD/SSD calls & speeding up browsers.
    You can get it from here. This helps Firefox & Chromium reduce ram usage.
    You can get it from [here](https://github.com/graysky2/profile-sync-daemon). This helps Firefox & Chromium reduce ram usage.

    git clone https://github.com/madand/runit-services
    cd runit-services
  2. robotamer revised this gist Jan 30, 2023. 1 changed file with 0 additions and 3 deletions.
    3 changes: 0 additions & 3 deletions void.md
    Original file line number Diff line number Diff line change
    @@ -51,11 +51,8 @@ ____
    xbps-install lua
    xbps-install marker
    xbps-install liteide
    xbps-install scite
    xbps-install vlc
    xbps-install tree
    xbps-install void-repo-nonfree
    xbps-install linux-firmware-amd
    xbps-install okular
    xbps-install age
    xbps-install qalculate-qt
  3. robotamer revised this gist Jan 30, 2023. 1 changed file with 12 additions and 11 deletions.
    23 changes: 12 additions & 11 deletions void.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # Void Linux
    # Void Linux Cheatsheet

    ## Service

    @@ -19,7 +19,7 @@ https://docs.voidlinux.org/config/services/index.html

    xbps-install -Su

    #### Upgrade System && Install app:
    #### Upgrade System && Install apps:

    xbps-install -Su appname

    @@ -37,32 +37,33 @@ ___
    xbps-install -Su void-repo-nonfree
    xbps-install linux-firmware-amd
    xbps-install base-devel
    xbps-install -Su libatomic_ops-devel
    xbps-install -Su plocate
    xbps-install libatomic_ops-devel
    xbps-install plocate
    ___
    Activate Logging Daemon
    #### Logging Daemon
    By default, Void comes with no logging daemon. There are different implementations available, socklog is simplistic and easy to use:

    xbps-install -Rs socklog-void
    xbps-install socklog-void
    ln -s /etc/sv/socklog-unix /var/service/
    ln -s /etc/sv/nanoklogd /var/service/
    ____
    xbps-install git
    xbps-install lua
    xbps-install -S marker
    xbps-install marker
    xbps-install liteide
    xbps-install scite
    xbps-install -Su vlc
    xbps-install vlc
    xbps-install tree
    xbps-install void-repo-nonfree
    xbps-install linux-firmware-amd
    xbps-install okular
    xbps-install age
    xbps-install qalculate-qt
    xbps-install -Su lxd
    xbps-install lxd
    xbps-install libreoffice
    ___
    xbps-install -S openntpd
    #### ntpd (System time update)
    xbps-install openntpd
    ln -s /etc/sv/ntpd /var/service/
    ntpctl -s all # Check status

    @@ -78,7 +79,7 @@ ___
    /dev/sda4 partition 4140352 89384 -2
    /dev/zram0 partition 853916 0 32767


    ___
    TODO:

    #### Profile Sync Daemon (PSD)
  4. robotamer renamed this gist Jan 30, 2023. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  5. robotamer created this gist Jan 30, 2023.
    96 changes: 96 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,96 @@
    # Void Linux

    ## Service

    sv up <services>
    sv down <services>
    sv restart <services>
    sv status <services>

    #### Service status
    sv status /var/service/*
    sv status ntpd

    https://docs.voidlinux.org/config/services/index.html

    ## Package Manager

    #### Upgrade System:

    xbps-install -Su

    #### Upgrade System && Install app:

    xbps-install -Su appname

    #### Remove App:

    xbps-remove appname

    #### Remove Orphans:

    xbps-remove -o

    ___
    ## Install pkg

    xbps-install -Su void-repo-nonfree
    xbps-install linux-firmware-amd
    xbps-install base-devel
    xbps-install -Su libatomic_ops-devel
    xbps-install -Su plocate
    ___
    Activate Logging Daemon
    By default, Void comes with no logging daemon. There are different implementations available, socklog is simplistic and easy to use:

    xbps-install -Rs socklog-void
    ln -s /etc/sv/socklog-unix /var/service/
    ln -s /etc/sv/nanoklogd /var/service/
    ____
    xbps-install git
    xbps-install lua
    xbps-install -S marker
    xbps-install liteide
    xbps-install scite
    xbps-install -Su vlc
    xbps-install tree
    xbps-install void-repo-nonfree
    xbps-install linux-firmware-amd
    xbps-install okular
    xbps-install age
    xbps-install qalculate-qt
    xbps-install -Su lxd
    xbps-install libreoffice
    ___
    xbps-install -S openntpd
    ln -s /etc/sv/ntpd /var/service/
    ntpctl -s all # Check status

    #### Install & enable zram

    xbps-install zramen
    ln -s /etc/sv/zramen /var/service
    nano /etc/sv/zramen/conf

    ##### check zram status
    # cat /proc/swaps
    Filename Type Size Used Priority
    /dev/sda4 partition 4140352 89384 -2
    /dev/zram0 partition 853916 0 32767


    TODO:

    #### Profile Sync Daemon (PSD)

    PSD is a service that symlinks & syncs browser profile directories to RAM, thus reducing HDD/SSD calls & speeding up browsers.
    You can get it from here. This helps Firefox & Chromium reduce ram usage.

    git clone https://github.com/madand/runit-services
    cd runit-services
    mv psd /etc/sv/
    ln -s /etc/sv/psd /var/service/
    chmod +x etc/sv/psd/*
    ____