Livebook is an interactive notebook for Elixir programming language. It is a web-based tool that provides users with a clean interface for writing and executing Elixir code. In this tutorial, we will learn to install Livebook on Manjaro.
Before proceeding with the installation process, ensure that the following requirements are met:
We can install Livebook on Manjaro using the following steps:
Before installing any new software on your system, it is always recommended to update your existing packages to their latest versions. Therefore, we will execute the following command in the terminal:
sudo pacman -Syu
Livebook requires Erlang and Elixir to run. Therefore, we will install these packages using the following command:
sudo pacman -S erlang elixir
Mix is a build tool for Elixir that helps create project structures and manage dependencies. It is also required for installing and running Livebook. We will use the following command to install Mix:
sudo pacman -S mix
Phoenix is a web development framework for Elixir that provides the infrastructure for Livebook. We can install Phoenix using the following command:
mix archive.install hex phx_new 1.5.13
Livebook uses Nodejs and NPM to manage JavaScript dependencies. Execute the following command to install Nodejs and NPM:
sudo pacman -S nodejs npm
We can now install Livebook by running the following command in the terminal:
mix archive.install hex livebook
Once Livebook is installed, we can run it using the following command:
mix livebook.server
This will start a web server on your system. We can now access Livebook using a web browser.
Open any web browser and type the following URL in the address bar:
http://localhost:8080
This will open the Livebook interface, where you can create and execute Elixir code.
In this tutorial, we learned how to install Livebook on Manjaro Linux. Now that Livebook is installed, you can use it to write and execute Elixir code through your web browser.
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!