Quantcast
Channel: sleeplessbeastie's notes
Browsing all 770 articles
Browse latest View live
↧

How to determine fastest APT server using the ICMP

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...

View Article


How to fix failed dynamic DNS update with Samba Active Directory and System...

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...

View Article


How to improve dnf download times

Improve dnf download times. Inspect current dnf configuration. $ cat /etc/dnf/dnf.conf [main] gpgcheck=1 installonly_limit=3 clean_requirements_on_remove=True best=True skip_if_unavailable=False...

View Article

How to parse the fastest available dnf mirror data

Parse the fastest available dnf mirror data. Inspect fastest available mirror data. $ cat /var/cache/dnf/fastestmirror.cache [:_librepo_:] version=1 [https://centos-stream.koyanet.lv] ts=1649548443...

View Article

How to create Samba Active Directory server

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...

View Article


How to archive entire web page in a single HTML file

Use SingleFile to archive entire web page in a single HTML file. Browser extension Install browser extension for Firefox, Chrome or Edge. This is enough for occasional use, quick and clean solution,...

View Article

How to manage UNIX groups and users in Samba Active Directory

Manage UNIX groups and users in Samba Active Directory. Create groups. $ sudo samba-tool group add cats --gid-number 8000 --nis-domain OCTOCAT --description "Cats group" Added group cats $ sudo...

View Article

How to manage global password policy settings in Samba Active Directory

Manage global password policy settings in Samba Active Directory. Display current password settings for the domain. $ sudo samba-tool domain passwordsettings show Password information for domain...

View Article


How to configure SSH access using Samba Active Directory

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...

View Article


How to access wireless network on Raspberry Pi

Configure wireless network on Raspberry Pi 4. Inspect ISO 3166 alpha-2 country codes. $ cat /usr/share/zoneinfo/iso3166.tab # ISO 3166 alpha-2 country codes # # This file is in the public domain, so...

View Article

How to configure static IP address on Raspberry Pi

Configure static IP address on Raspberry Pi 4 device. IP address on Raspberry Pi 4 device is controlled by a DHCP client service. $ sudo systemctl status dhcpcd.service * dhcpcd.service - DHCP Client...

View Article

How to unlock user account in Samba Active Directory

Unlock user account in Samba Active Directory User account can get locked out after a number of failed login attempts. $ samba-tool domain passwordsettings show Password information for domain...

View Article

How to specify the exact list of enabled PAM profiles

Specify the exact list of enabled PAM profiles using a simple workaround. You can use pam-auth-update utility interactively. You can also enable a specific profile in a non-interactive way. This is...

View Article


How to configure minimal MIT Kerberos server

Configure minimal MIT Kerberos server. Preparations Update package index. $ sudo apt update Upgrade operating system. $ sudo apt upgrade Ensure that hostname is defined. $ sudo hostnamectl --static...

View Article

How to disable onboard WiFi and Bluetooth on Raspberry Pi 4

Disable onboard WiFi and Bluetooth on Raspberry Pi 4 device. List Bluetooth devices. $ hcitool dev Devices: hci0 E4:5F:01:42:3A:4B List wireless devices $ iw dev phy#0 Unnamed/non-netdev interface wdev...

View Article


How to display BIND version and hide it

Display the BIND version and learn how to hide it. Query a specific BIND server for a TXT resource record in class 3 (CHAOS) for the version.bind domain name using nslookup utility. $ nslookup -q=txt...

View Article

How to set the title for GNOME terminal emulator

Set the title for GNOME terminal emulator. Define the title for the current terminal tab Inspect GNOME terminal source code to identify the escape characters. [...] TerminalScreen * terminal_screen_new...

View Article


How to display wget downloaded content on standard output

Display wget downloaded content on standard output. $ wget --quiet --output-document - gentoo.org/robots.txt User-agent: AhrefsBot Disallow: / User-agent: * Allow: / Excerpt from the manual page. [...]...

View Article

How to mount host directory inside LXD container

Mount host directory inside LXD container. Create a directory on a host operating system. $ sudo mkdir /mnt/disk/archivebox Look for subuid and subgid files. $ ls /snap/lxd/current/etc/...

View Article

How to renew Kerberos ticket

Renew Kerberos ticket. List cached Kerberos tickets. $ klist Ticket cache: KEYRING:persistent:10000:krb_ccache_Nv2FjQZ Default principal: octo@OCTOCAT.LAB Valid starting Expires Service principal...

View Article
Browsing all 770 articles
Browse latest View live