Elixir is a dynamic, functional programming language designed for building scalable and maintainable applications. To install Elixir on Kali Linux, follow these steps:
Before installing any new package, it's always a good idea to update your system. Open up your terminal and run the following commands:
sudo apt update
sudo apt upgrade
Elixir runs on top of the BEAM Virtual Machine, which is the same runtime system used by the Erlang programming language. So, first, we need to install Erlang. Run the following command to install the Erlang programming language:
sudo apt-get install erlang
Go to the Elixir download page and download the tarball for your system. For Kali Linux, you need to download the Linux x64 distribution.
Once the tarball is downloaded, extract it using the following command:
tar -xf elixir-<version>.tar.gz
Replace <version>
with the version number of the Elixir package you downloaded.
/usr/local
directoryTo make Elixir available system-wide, copy the extracted files to the /usr/local
directory using the following command:
sudo mv elixir-<version> /usr/local/
Again, replace <version>
with the version number of the Elixir package you downloaded.
Now that the Elixir package is installed, we need to modify the $PATH
environment variable to add Elixir's executable path. To do that, open the .bashrc
file in your home directory using any text editor of your choice:
nano ~/.bashrc
At the end of the file, add the following line:
export PATH="$PATH:/usr/local/elixir-<version>/bin"
Again, replace <version>
with the version number of the Elixir package you downloaded.
.bashrc
fileReload your .bashrc
file using the following command:
source ~/.bashrc
To verify that Elixir is installed correctly, open up your terminal and run the following command:
elixir --version
This should display the version number of the Elixir package you installed.
Congratulations, you have successfully installed Elixir on Kali Linux! Now you can start building awesome applications with Elixir.
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!