• Sl chevron_right

      How to manage command history using text-based user interface

      pubsub.slavino.sk / sleeplessbestie · Saturday, 29 October, 2022 - 11:00 edit

    Manage command history using text-based user interface. Inspect hstr application. $ sudo apt info hstr Package: hstr Version: 2.3+ds-1 Priority: optional Section: utils Maintainer: Daniel Echeverri Installed-Size: 74.8 kB Depends: libc6 (>= 2.29), libncursesw6 (>= 6), libreadline8 (>= 6.0), libtinfo6 (>= 6) Homepage: https://github.com/dvorka/hstr Tag: uitoolkit::ncurses Download-Size: 26.9 kB APT-Sources: https://deb.debian.org/debian bullseye/main arm64 Packages Description: […]

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

    • Sl chevron_right

      How to install and configure NTP server

      pubsub.slavino.sk / sleeplessbestie · Friday, 14 October, 2022 - 11:00 edit

    Install and configure chrony NTP server. Inspect chrony package. $ apt info chrony Package: chrony Version: 4.0-8 Priority: optional Section: net Maintainer: Vincent Blut Installed-Size: 644 kB Provides: time-daemon Pre-Depends: init-system-helpers (>= 1.54~) Depends: adduser, iproute2, tzdata, ucf, libc6 (>= 2.29), libcap2 (>= 1:2.10), libedit2 (>= 2.11-20080614-0), libgnutls30 (>= 3.7.0), libnettle8, libseccomp2 (>= 2.4.3-1~) Suggests: […]

    Značky: #Chrony, #Linux, #SysOps, #Bullseye, #Debian

    • Sl chevron_right

      How to display active but disabled systemd services

      pubsub.slavino.sk / sleeplessbestie · Monday, 3 October, 2022 - 11:00 edit

    Display active but disabled systemd services. Use the following script to display active but disabled services. $ while read -r line; do unit=$(echo $line | awk '{print $1}') if [ "$(systemctl is-enabled $unit 2>/dev/null)" == "disabled" ]; then echo "Service $unit is active but disabled" fi done <

    Značky: #SysOps, #systemd, #Linux, #Debian, #Bullseye

    • Sl chevron_right

      How to access service socket as a regular user

      pubsub.slavino.sk / sleeplessbestie · Wednesday, 14 September, 2022 - 11:00 edit

    Create an exception for a regular user to access service socket using systemd. I will use HAProxy to show the standard group based technique and the systemd/ACLs approach. Prerequisites Create a dedicated user and group that will be used in this example. $ sudo groupadd --gid 2000 milosz $ sudo useradd --uid 2000 --gid 2000 […]

    Značky: #Bullseye, #HAProxy, #SysOps, #Linux, #systemd, #Debian

    • Sl chevron_right

      How to configure SSH access using Samba Active Directory

      pubsub.slavino.sk / sleeplessbestie · Friday, 20 May, 2022 - 11:00 edit

    Configure SSH access using Samba Active Directory. Preparations Ensure that a Fully Qualified Domain Name is defined. $ sudo hostnamectl --static set-hostname voyager.octocat.lab Read how to configure persistent DNS resolver to ensure that server is using DNS resolver provided by Samba Active Directory services. $ cat /etc/resolv.conf # Dynamic resolv.conf(5) file for glibc resolver(3) generated […]

    Značky: #Debian, #SysOps, #Linux, #Bullseye, #Samba

    • Sl chevron_right

      How to create Samba Active Directory server

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

    Create Samba Active Directory server using Debian Bullseye. Preparations Update package index. $ sudo apt update Upgrade operating system. $ sudo apt upgrade Ensure that hostname is defined. $ sudo hostnamectl --static set-hostname ad.octocat.lab Inspect hosts file which should be in its initial state. $ cat /etc/hosts 127.0.0.1 localhost #10.10.10.10 ad.octocat.lab ad # The following […]

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

    • Sl chevron_right

      How to fix failed dynamic DNS update with Samba Active Directory and System Security Services Daemon

      pubsub.slavino.sk / sleeplessbestie · Friday, 6 May, 2022 - 11:00 edit

    Fix failed dynamic DNS update with Samba Active Directory and System Security Services Daemon by upgrading internal Samba DNS to BIND. Issue DNS records are updated correctly, but dynamic DNS update process is marked as failed. $ dig s1.example.org +short 172.16.0.117 Sample sssd debug log indicating that there is a problem with dynamic DNS update. […]

    Značky: #sssd, #Samba, #Debian, #Linux, #SysOps, #Bullseye

    • Sl chevron_right

      How to determine fastest APT server using the ICMP

      pubsub.slavino.sk / sleeplessbestie · Wednesday, 4 May, 2022 - 11:00 edit

    Determine fastest APT server using the Internet Control Message Protocol (ICMP). Install netselect-apt utility. $ sudo apt install netselect netselect-apt Display usage information. $ netselect --help Usage: netselect-apt [OPTIONS] [ debian_release ] debian_release is one of stable, testing, unstable, experimental or a codename etch, lenny, squeeze, wheezy, jessie, stretch, sid Options: -a, --arch ARCH Use […]

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

    • Sl chevron_right

      How to determine mountpoint filesystem type

      pubsub.slavino.sk / sleeplessbestie · Friday, 8 April, 2022 - 11:00 edit

    Determine mountpoint filesystem type using core stat utility which is expected to exist on every operating system. Determine / mountpoint filesystem type. $ stat -c %T -f / ext2/ext3 Determine /mnt/userdata mountpoint filesystem type. $ stat -c %T -f /mnt/userdata btrfs Determine /proc mountpoint filesystem type. $ stat -c %T -f /proc proc Determine /run […]

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