home.social

#ziktips — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #ziktips, aggregated by home.social.

fetched live
  1. 💡 TIP: Control and quickly adjust your audio output volume directly from the Linux command line using "wpctl" (WirePlumber Control CLI). You do not need to look up the default sink ID. Just use the built-in @DEFAULT_AUDIO_SINK@ alias:

    wpctl set-volume @DEFAULT_AUDIO_SINK@ 40%

    Verify:

    wpctl get-volume @DEFAULT_AUDIO_SINK@
    Volume: 0.40

    NB. On PipeWire-based Linux systems like @fedora @opensuse etc

    #ZikTIPS #Linux #LinuxTips #PipeWire #WirePlumber #CommandLine #CLI #OpenSource #FOSS #SysAdmin

  2. 💡 TIP: Control and quickly adjust your audio output volume directly from the Linux command line using "wpctl" (WirePlumber Control CLI). You do not need to look up the default sink ID. Just use the built-in @DEFAULT_AUDIO_SINK@ alias:

    wpctl set-volume @DEFAULT_AUDIO_SINK@ 40%

    Verify:

    wpctl get-volume @DEFAULT_AUDIO_SINK@
    Volume: 0.40

    NB. On PipeWire-based Linux systems like @fedora @opensuse etc

    #ZikTIPS #Linux #LinuxTips #PipeWire #WirePlumber #CommandLine #CLI #OpenSource #FOSS #SysAdmin

  3. 💡 TIP: On a Linux system using bash, you can compare text strings without worrying about upper or lowercase by using the ,, (lowercase) or ^^ (uppercase) parameter expansion modifiers e.g.

    EDITION=CommUNITY

    if [[ ${EDITION,,} = community ]]; then
    echo "Community"
    fi

    ${EDITION,,} converts the value to lowercase.

    @opensuse @fedora @debian
    #ZikTIPs #bash #scripting #linuxtips #techtips #feditips #Linux #opensource

  4. 💡 TIP: On a Linux system using bash, you can compare text strings without worrying about upper or lowercase by using the ,, (lowercase) or ^^ (uppercase) parameter expansion modifiers e.g.

    EDITION=CommUNITY

    if [[ ${EDITION,,} = community ]]; then
    echo "Community"
    fi

    ${EDITION,,} converts the value to lowercase.

    @opensuse @fedora @debian
    #ZikTIPs #bash #scripting #linuxtips #techtips #feditips #Linux #opensource

  5. TIP: 💡Check the remaining battery level for your connected bluetooth device on a typical Linux system using the following command:

    bluetoothctl info AA:BB:CC:DD:00:11 | awk '/Battery Percentage:/ {print $4}' | tr -d '()'

    * Replace "AA:BB:CC:DD:00:11" with the MAC address of your bluetooth device

    @openSUSE  @fedora @debian  #ZikTIPS #Bluetooth #Audio #TechTips #SysAdmin #LinuxTips #CLI #OpenSUSE #Fedora #Debian #Linux #opensource

  6. TIP: 💡Check the remaining battery level for your connected bluetooth device on a typical Linux system using the following command:

    bluetoothctl info AA:BB:CC:DD:00:11 | awk '/Battery Percentage:/ {print $4}' | tr -d '()'

    * Replace "AA:BB:CC:DD:00:11" with the MAC address of your bluetooth device

    @openSUSE  @fedora @debian  #ZikTIPS #Bluetooth #Audio #TechTips #SysAdmin #LinuxTips #CLI #OpenSUSE #Fedora #Debian #Linux #opensource

  7. 💡 On a typical Linux system, you can find bluetooth devices that are paired, connected, and trusted using the following command line:

    bluetoothctl devices [ Paired | Connected | Trusted ]

    For example: List currently paired bluetooth devices:

    $ bluetoothctl devices Paired

    Device 00:42:XX:YY:ZZ:YY XXBK85
    Device 00:FD:AA:XX:YY:X8 D-26

    @opensuse @fedora @debian #ZikTIPS #TechTips #SysAdmin #LinuxTips #CLI #OpenSUSE #Fedora #Debian #Linux #opensource

  8. 💡 On a typical Linux system, you can find bluetooth devices that are paired, connected, and trusted using the following command line:

    bluetoothctl devices [ Paired | Connected | Trusted ]

    For example: List currently paired bluetooth devices:

    $ bluetoothctl devices Paired

    Device 00:42:XX:YY:ZZ:YY XXBK85
    Device 00:FD:AA:XX:YY:X8 D-26

    @opensuse @fedora @debian #ZikTIPS #TechTips #SysAdmin #LinuxTips #CLI #OpenSUSE #Fedora #Debian #Linux #opensource

  9. For anyone interested in using Kea DHCP server on buildroot, I have submitted a new package patch that is currently awaiting upstream review. You can check it out here:

    patchwork.ozlabs.org/project/b

    @iscdotorg
    #ZikTIPS #buildroot #dhcp #networking #linux #opensource

  10. For anyone interested in using Kea DHCP server on buildroot, I have submitted a new package patch that is currently awaiting upstream review. You can check it out here:

    patchwork.ozlabs.org/project/b

    @iscdotorg
    #ZikTIPS #buildroot #dhcp #networking #linux #opensource

  11. 💡 Calculate the number of days since a given date (e.g. 30 June 2025) on a Linux system:

    echo $(( ( $(date +%s) - $(date -d "2025-06-30" +%s) ) / 86400 ))

    @opensuse @fedora @debian #ZikTIPs #Linuxtips #LinuxTechTips #Linux #FOSS #Opensource

  12. 💡 Calculate the number of days since a given date (e.g. 30 June 2025) on a Linux system:

    echo $(( ( $(date +%s) - $(date -d "2025-06-30" +%s) ) / 86400 ))

    @opensuse @fedora @debian #ZikTIPs #Linuxtips #LinuxTechTips #Linux #FOSS #Opensource

  13. 💡Did you know you can just run the mount command with -m flag to create a non-existent mount point instead of first creating it.

    e.g. mount -m /dev/sdc1 /myflash

    #ZikTIPs #linuxtips #techti #Linux #OpenSource

  14. 💡Did you know you can just run the mount command with -m flag to create a non-existent mount point instead of first creating it.

    e.g. mount -m /dev/sdc1 /myflash

    #ZikTIPs #linuxtips #techti #Linux #OpenSource

  15. 💡 It's conference 🎤 season! Impress your audience with a slick QR code using these easy commands on Linux

    ✅ Add your content to a text file:
    printf " Name: Zik Joseph\n Blog: zikusooka.com \n" > my_contacts.txt

    ✅ Convert text file (and contents) into QR code image:
    qrencode -o zik.png -r my_contacts.txt

    Thats all! Add zik.png to your slides. Easy, classy.

    #ZikTIPS #TechTips #LinuxTips #Conference #Linux #FOSS #OpenSource

  16. 💡 It's conference 🎤 season! Impress your audience with a slick QR code using these easy commands on Linux

    ✅ Add your content to a text file:
    printf " Name: Zik Joseph\n Blog: zikusooka.com \n" > my_contacts.txt

    ✅ Convert text file (and contents) into QR code image:
    qrencode -o zik.png -r my_contacts.txt

    Thats all! Add zik.png to your slides. Easy, classy.

    #ZikTIPS #TechTips #LinuxTips #Conference #Linux #FOSS #OpenSource

  17. 💡 Use the following command line to generate a list of security advisories on Fedora and RedHat Linux based systems #ZikTIPs #TechTips #Fedora #Redhat #Linux #Security #Opensource
    @fedora @redhat

    sudo dnf advisory list

  18. 💡 Use the following command line to generate a list of security advisories on Fedora and RedHat Linux based systems #ZikTIPs #TechTips #Fedora #Redhat #Linux #Security #Opensource
    @fedora @redhat

    sudo dnf advisory list

  19. If you’re like me and enjoy watching streams or listening to multiple audio sources, check out my newly updated @pipewire based script! It makes muting or unmuting sound from different sources really easy.

    Find it here:
    github.com/zikusooka/toggle-pw
    Context: joseph.zikusooka.com/?p=2637

    #ZikTIPs #Linux #PipeWire #Multimedia

  20. If you’re like me and enjoy watching streams or listening to multiple audio sources, check out my newly updated @pipewire based script! It makes muting or unmuting sound from different sources really easy.

    Find it here:
    github.com/zikusooka/toggle-pw
    Context: joseph.zikusooka.com/?p=2637

    #ZikTIPs #Linux #PipeWire #Multimedia

  21. 💡Use iperf3 to measure the network throughput between two Linux nodes effortlessly as follows: @fedora @opensuse

    On server: iperf3 -s

    On client: iperf3 -c <SERVER_IP>

    #ZikTIPS #Linuxtips $Networking #LinuxTechTips #Linux #Opensource

  22. 💡Use iperf3 to measure the network throughput between two Linux nodes effortlessly as follows: @fedora @opensuse

    On server: iperf3 -s

    On client: iperf3 -c <SERVER_IP>

    #ZikTIPS #Linuxtips $Networking #LinuxTechTips #Linux #Opensource

  23. 💡 Record audio from a microphone on a Linux system using gstreamer @gstreamer @fedora @opensuse @archlinux

    gst-launch-1.0 alsasrc ! audioconvert ! lamemp3enc ! filesink location=recorded.mp3

    #ZikTIPs #pipewire #pulseaudio #techtips #Linuxtips #LinuxTechTips #Linux #Opensource

  24. 💡 Record audio from a microphone on a Linux system using gstreamer @gstreamer @fedora @opensuse @archlinux

    gst-launch-1.0 alsasrc ! audioconvert ! lamemp3enc ! filesink location=recorded.mp3

    #ZikTIPs #pipewire #pulseaudio #techtips #Linuxtips #LinuxTechTips #Linux #Opensource

  25. 💡On a Linux system, use the "nohup" utility to execute one-time commands or scripts that can run later, even after you log out of your terminal session @opensuse
    @fedora @debian

    Example: To schedule a one-time script to run 15 minutes after you disconnect from the terminal:

    nohup bash -c "(sleep 900 && ./myscript.sh)" &

    #ZikTIPS #linuxtips #techtips #sysadmin #Fedora #OpenSUSE #Linux #Opensource

  26. 💡On a Linux system, use the "nohup" utility to execute one-time commands or scripts that can run later, even after you log out of your terminal session @opensuse
    @fedora @debian

    Example: To schedule a one-time script to run 15 minutes after you disconnect from the terminal:

    nohup bash -c "(sleep 900 && ./myscript.sh)" &

    #ZikTIPS #linuxtips #techtips #sysadmin #Fedora #OpenSUSE #Linux #Opensource

  27. 💡 Use the following Linux command to create a file with a specific access and modification timestamp @fedora @opensuse @archlinux

    touch -t [FILE]

    e.g. For a file named mytalk.txt March 10, 2025 at 9AM:

    touch -t 202503100900 mytalk.txt

    To verify:
    stat -c "%x%y" mytalk.txt.

    #ZikTIPs #Linuxtips #LinuxTechTips #Linux #Opensource

  28. 💡 Use the following Linux command to create a file with a specific access and modification timestamp @fedora @opensuse @archlinux

    touch -t [FILE]

    e.g. For a file named mytalk.txt March 10, 2025 at 9AM:

    touch -t 202503100900 mytalk.txt

    To verify:
    stat -c "%x%y" mytalk.txt.

    #ZikTIPs #Linuxtips #LinuxTechTips #Linux #Opensource

  29. 💡 You can simultaneously query multiple domain name records using the dig command in Linux as follows:

    dig OPTIONS @server -f BATCH_FILE

    Example:
    dig +nocmd +noquestion +nostats +nocomments @8.8.8.8 -f mydomains.txt

    cat mydomains.txt
    example.com A
    example.net MX
    example.org NS

    TIP: dig is part of the dns/bind utilities package depending on your distribution

    #ZikTIPS #DNS #Bind #SysAdmins #CLI #Linux #Opensource

  30. 💡 You can simultaneously query multiple domain name records using the dig command in Linux as follows:

    dig OPTIONS @server -f BATCH_FILE

    Example:
    dig +nocmd +noquestion +nostats +nocomments @8.8.8.8 -f mydomains.txt

    cat mydomains.txt
    example.com A
    example.net MX
    example.org NS

    TIP: dig is part of the dns/bind utilities package depending on your distribution

    #ZikTIPS #DNS #Bind #SysAdmins #CLI #Linux #Opensource

  31. 🎉 Excited to share HASS Core Installer, a tool that simplifies installing and upgrading Home Assistant Core in a Python 3 virtual environment! @homeassistant @jambulatv @jambula

    🚀 Works online & offline, complementing existing methods for diverse setups.

    🥦 Check it out on GitHub:
    github.com/zikusooka/hass-core

    #HomeAssistant #SmartHome #ZikTIPs #Linux #opensource

  32. 🎉 Excited to share HASS Core Installer, a tool that simplifies installing and upgrading Home Assistant Core in a Python 3 virtual environment! @homeassistant @jambulatv @jambula

    🚀 Works online & offline, complementing existing methods for diverse setups.

    🥦 Check it out on GitHub:
    github.com/zikusooka/hass-core

    #HomeAssistant #SmartHome #ZikTIPs #Linux #opensource

  33. 💡To display the DHCP IPv4 options assigned to a Linux client, use the following command line @opensuse @fedora @NetworkManager #ZikTIPs #CLI #Networking #Linux #OpenSource

    nmcli -f DHCP4 device show "$INTERFACE"

    e.g. nmcli -f DHCP4 device show eth0

  34. 💡To display the DHCP IPv4 options assigned to a Linux client, use the following command line @opensuse @fedora @NetworkManager #ZikTIPs #CLI #Networking #Linux #OpenSource

    nmcli -f DHCP4 device show "$INTERFACE"

    e.g. nmcli -f DHCP4 device show eth0

  35. 💡 Use the 'lsof' command to quickly identify the ports that a specific service is listening on within a Linux system @opensuse @fedora @climagic

    Example:
    SERVICE=sshd; lsof -i -P -n | grep $SERVICE | awk '/LISTEN/ {print $9}' | uniq

    #ZikTIPs #SysAdmins #Linux #Opensource

  36. 💡 Use the 'lsof' command to quickly identify the ports that a specific service is listening on within a Linux system @opensuse @fedora @climagic

    Example:
    SERVICE=sshd; lsof -i -P -n | grep $SERVICE | awk '/LISTEN/ {print $9}' | uniq

    #ZikTIPs #SysAdmins #Linux #Opensource

  37. 💡 Use the following command to quickly check how much space you have left on your Linux filesystem
    @opensuse @fedora @debian #ZikTIPs #Linux #CLI #Opensource #linux

    df -h --output=avail /

  38. 💡 Use the following command to quickly check how much space you have left on your Linux filesystem
    @opensuse @fedora @debian #ZikTIPs #Linux #CLI #Opensource #linux

    df -h --output=avail /

  39. 💡 If you have SELinux enabled on your Linux system, you can view the context of an object as follows @opensuse @fedora #ZikTIPS #Sysadmin #SELinux #CLI #OpenSUSE #Linux

    For a file:
    ls -Z [FILE] e.g.
    ls -Z /etc/selinux/config

    For a process:
    ps -eZ | grep [PROCESS_NAME] e.g.
    ps -eZ | grep apache2

  40. 💡 If you have SELinux enabled on your Linux system, you can view the context of an object as follows @opensuse @fedora #ZikTIPS #Sysadmin #SELinux #CLI #OpenSUSE #Linux

    For a file:
    ls -Z [FILE] e.g.
    ls -Z /etc/selinux/config

    For a process:
    ps -eZ | grep [PROCESS_NAME] e.g.
    ps -eZ | grep apache2

  41. 💡Get the inode number of a file using this simple command line on Linux @opensuse @fedora @archlinux

    ls -i [FILENAME] e.g.

    ls -i /etc/fstab

    #ZikTIPs #CLI #Fedora #OpenSUSE #Debian #Linux #opensource

  42. 💡Get the inode number of a file using this simple command line on Linux @opensuse @fedora @archlinux

    ls -i [FILENAME] e.g.

    ls -i /etc/fstab

    #ZikTIPs #CLI #Fedora #OpenSUSE #Debian #Linux #opensource

  43. 💡 Display a list of all users on a Linux system using the following command @opensuse @fedora @ubuntu #ZikTIPs #CLI #Fedora #OpenSUSE #Ubuntu #Linux #opensource

    getent passwd | cut -d ":" -f1

  44. 💡 Display a list of all users on a Linux system using the following command @opensuse @fedora @ubuntu #ZikTIPs #CLI #Fedora #OpenSUSE #Ubuntu #Linux #opensource

    getent passwd | cut -d ":" -f1

  45. 💡 Quickly inspect the contents of a systemd unit file in Linux using the following command #ZikTIPS #CLI #Fedora #Ubuntu #Linux #Opensource
    @opensuse @fedora @debian

    systemctl cat [UNIT] e.g.

    systemctl cat sshd.service

  46. 💡 Quickly inspect the contents of a systemd unit file in Linux using the following command #ZikTIPS #CLI #Fedora #Ubuntu #Linux #Opensource
    @opensuse @fedora @debian

    systemctl cat [UNIT] e.g.

    systemctl cat sshd.service

  47. 💡Display the active WiFi connection using the following command in Linux #ZikTIPs #CLI #WiFi #Linux #Opensource
    @NetworkManager @opensuse @fedora @debian

    nmcli connection show --active

    NOTE: Works on distributions that use #networkmanager

  48. 💡Display the active WiFi connection using the following command in Linux #ZikTIPs #CLI #WiFi #Linux #Opensource
    @NetworkManager @opensuse @fedora @debian

    nmcli connection show --active

    NOTE: Works on distributions that use #networkmanager

  49. 💡️On a Linux system, you can retrieve logging information for a specific service within a designated date range
    #ZikTIPS #CLI #Systemd #Linux #Opensource @fedora @opensuse

    journalctl -u [UNIT] -S [DATE-START] -U [DATE-END]

    e.g.
    journalctl -u sshd -S 2024-10-04 -U 2024-10-12

  50. 💡️On a Linux system, you can retrieve logging information for a specific service within a designated date range
    #ZikTIPS #CLI #Systemd #Linux #Opensource @fedora @opensuse

    journalctl -u [UNIT] -S [DATE-START] -U [DATE-END]

    e.g.
    journalctl -u sshd -S 2024-10-04 -U 2024-10-12

  51. 💡 Search for webcams on a Linux system using the following command line @fedora @opensuse #ZikTIPS #Linux #CLI #Multimedia #Video #Audio #Opensource

    v4l2-ctl --list-devices

  52. 💡 Search for webcams on a Linux system using the following command line @fedora @opensuse #ZikTIPS #Linux #CLI #Multimedia #Video #Audio #Opensource

    v4l2-ctl --list-devices

  53. 💡️ Display the actual target path of a symbolic link in Linux
    #ZikTIPs #CLI #Linux #Opensource

    readlink -f [LINK]

  54. 💡️ Display the actual target path of a symbolic link in Linux
    #ZikTIPs #CLI #Linux #Opensource

    readlink -f [LINK]

  55. 💡️Quickly change the bluetooth name advertised by your Linux device such as a raspberrypi @debian @opensuse @fedora

    bluetoothctl system-alias "NEW-NAME"

    #ZikTIPs #Bluetooth #Raspberrypi #Linux #Opensource

  56. 💡️Quickly change the bluetooth name advertised by your Linux device such as a raspberrypi @debian @opensuse @fedora

    bluetoothctl system-alias "NEW-NAME"

    #ZikTIPs #Bluetooth #Raspberrypi #Linux #Opensource