Installing Homebrew on Linux: Debian, Ubuntu, and RedHat

how to install homebrew on Linux

Homebrew has become pretty much the standard on macOS, but these days you can install Homebrew on Linux too. On Debian and RedHat you can manage packages with apt or dnf (yum), but Homebrew makes it easier to install and update programs that are not in those packages and are not published as a repository. For example, tools I use often such as Hugo, Docker’s docker-compose, and lazydocker have to be downloaded from the official site and swapped out every time there is an update, but this can now be simplified to something like brew update hugo, just as on macOS. [Read More]

Installing Zsh 5.9 from Source on CentOS 7 and 8

zsh 5.9 manual install on CentOS

zsh5.9 is the latest right now, so I have updated this article The zsh on CentOS7/8 is old, so I installed the latest version at this point, 5.9, by hand Preparation Since we use commands such as wget and make, install the developer tools first Copy $ export LANG=C $ sudo yum groupinstall "Development Tools" $ sudo yum install ncurses-devel Downloading and installing /usr/bin/zsh and /bin/zsh already exist, so install into /usr/local [Read More]

Overriding the LDAP Login Shell on Debian and CentOS Clients

override LDAP login shell

There are cases where, on a particular LDAP client machine, you want to use a different shell rather than the one defined on the LDAP server (bash) This is possible by configuring the Linux (Debian/CentOS) client to override the shell Debian11(bullseye) Add the following to /etc/libnss-ldap.conf (look up the path to the shell beforehand) Copy nss_override_attribute_value loginShell /usr/bin/zsh Flush the nscd cache Copy # nscd -i passwd nscd CentOS8 Add the following to /etc/nslcd.conf [Read More]