RStudio is a free and open-source integrated development environment (IDE) for R programming language. RStudio Server is the server edition of RStudio, which allows users to access RStudio through a web browser. In this tutorial, we will guide you on how to install RStudio Server on Manjaro, a popular Linux distribution.
Before installing RStudio Server on Manjaro, ensure the following prerequisites are met:
First, we need to update our Manjaro system's package list and upgrade any existing packages to their latest versions.
Run the following command in the terminal:
sudo pacman -Syu
Enter your password when prompted to proceed with the system update. This process may take a few minutes to complete.
Before downloading and installing RStudio Server, we need to install some dependencies required by RStudio.
Run the following command in the terminal:
sudo pacman -S glibc pango cairo pandoc
This command will install the required dependencies for RStudio Server.
Visit the RStudio Server download page at https://www.rstudio.com/products/rstudio/download-server/ and copy the download link for the latest version of RStudio Server for Linux.
In the terminal, navigate to a directory where you want to download RStudio Server, and run the following command:
wget https://download2.rstudio.org/server/bionic/amd64/rstudio-server-1.4.1717-amd64.deb
In this example, we are downloading version 1.4.1717 of RStudio Server for 64-bit Linux. Replace the URL with the link to the latest version of RStudio Server available on the download page.
With the RStudio Server package downloaded, we can now install it on our Manjaro system.
Run the following command in the terminal:
sudo gdebi rstudio-server-1.4.1717-amd64.deb
This command will prompt you with a confirmation message to proceed with the installation. Type "Y" and press Enter to continue.
Wait for the installation process to complete. This may take a few minutes to install the required dependencies and setup RStudio Server on your system.
Now that RStudio Server is installed, we need to start it.
Run the following command in the terminal to start RStudio Server:
sudo systemctl start rstudio-server
Check the status of RStudio Server using the following command:
sudo systemctl status rstudio-server
This should display the status of RStudio Server and confirm that it is running.
Open a web browser and type in the IP address of your Manjaro system followed by ":8787" to access RStudio Server.
http://<manjaro-ip-address>:8787
Replace <manjaro-ip-address>
with the IP address of your Manjaro system.
You should see the RStudio login page. Enter your username and password, and you will be redirected to the RStudio dashboard.
Congratulations! You have successfully installed RStudio Server on Manjaro. You can now access RStudio Server through a web browser and start using it for R programming.
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!