Environment-modules Lmod is an alternative to the traditional Tcl-based Environment-modules system for dynamically managing your shell environment on a per-application basis. This tutorial will provide step-by-step instructions on how to install Environment-modules Lmod on Manjaro.
The first step is to make sure your system is up to date.
sudo pacman -Syu
Install the packages required to build Lmod:
sudo pacman -S lua readline
Clone the Lmod repository:
git clone https://github.com/TACC/Lmod
Build and install Lmod:
cd Lmod
./configure --prefix=/usr
make
sudo make install
Lmod is not yet integrated with Manjaro's system-wide environment. To use Lmod, you'll need to add the following lines to your shell configuration file:
source /etc/profile.d/z00_lmod.sh
alias module='source /etc/profile.d/z00_lmod.sh ; module'
For Bash users, run this command:
echo -e "\nsource /etc/profile.d/z00_lmod.sh" >> ~/.bashrc
echo -e "\nalias module='source /etc/profile.d/z00_lmod.sh ; module'\n" >> ~/.bashrc
For Zsh users, run this command:
echo -e "\nsource /etc/profile.d/z00_lmod.sh" >> ~/.zshrc
echo -e "\nalias module='source /etc/profile.d/z00_lmod.sh ; module'\n" >> ~/.zshrc
Source your shell config file or open a new terminal window and type:
module avail
If Lmod is installed correctly, you should see a list of available modules.
Congratulations, you have successfully installed Environment-modules Lmod on Manjaro.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!