20.7 C
Texas
angeloma
Senior Writer and partner

Install R Studio Server on Ubuntu 20.04

Hello, folks. If you are a developer using R you might need to install R Studio Server at some point. And thanks to this post, you will learn how to do it quickly and easily.

R Server is commercial software that can run on a range of platforms, at larger scales and workloads, and in client/server topologies that support remote access over secure connections.

In this way, we can have on our server the tools to be able to program in the R language.

So, let’s get started.

Install R Studio Server on Ubuntu

- Advertisement -

The first thing we have to do is to install the R programming language and its tools.

For this, we have prepared a post that will help you with it.

How to install R programming on Ubuntu 20.04 /18.04?

Once you are done with the installation you can continue.

With R installed, we can install by downloading a DEB package.

To do this, use the wget command.

wget https://download2.rstudio.org/server/bionic/amd64/rstudio-server-1.4.1106-amd64.deb
--2021-04-17 00:18:34--  https://download2.rstudio.org/server/bionic/amd64/rstudio-server-1.4.1106-amd64.deb
Resolving download2.rstudio.org (download2.rstudio.org)... 2600:9000:215d:8800:6:4ff5:2540:93a1, 2600:9000:215d:8400:6:4ff5:2540:93a1, 2600:9000:215d:3400:6:4ff5:2540:93a1, ...
Connecting to download2.rstudio.org (download2.rstudio.org)|2600:9000:215d:8800:6:4ff5:2540:93a1|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 56222058 (54M) [application/x-deb]
Saving to: ‘rstudio-server-1.4.1106-amd64.deb’

rstudio-server-1.4.1106-amd64.deb          100%[=====================================================================================>]  53.62M  72.4MB/s    in 0.7s    

2021-04-17 00:18:35 (72.4 MB/s) - ‘rstudio-server-1.4.1106-amd64.deb’ saved [56222058/56222058]

At the time of writing this post, the latest stable version is 1.4.1106 so check the R Server website first to see what the latest version is.

The next step is to install it by using the APT command

sudo apt install ./rstudio-server-1.4.1106-amd64.deb
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'rstudio-server' instead of './rstudio-server-1.4.1106-amd64.deb'
The following additional packages will be installed:
  gcc-9-base lib32gcc-s1 lib32stdc++6 libasan5 libatomic1 libc-dev-bin libc6-dev libc6-i386 libclang-10-dev libclang-common-10-dev libclang-dev libclang1-10
  libcrypt-dev libgc1c2 libgcc-9-dev libitm1 libllvm10 liblsan0 libobjc-9-dev libobjc4 libpq5 libstdc++-9-dev libtsan0 libubsan1 linux-libc-dev
Suggested packages:
  glibc-doc manpages-dev libstdc++-9-doc
Recommended packages:
  manpages-dev
The following NEW packages will be installed:
  gcc-9-base lib32gcc-s1 lib32stdc++6 libasan5 libatomic1 libc-dev-bin libc6-dev libc6-i386 libclang-10-dev libclang-common-10-dev libclang-dev libclang1-10
  libcrypt-dev libgc1c2 libgcc-9-dev libitm1 libllvm10 liblsan0 libobjc-9-dev libobjc4 libpq5 libstdc++-9-dev libtsan0 libubsan1 linux-libc-dev rstudio-server
0 upgraded, 26 newly installed, 0 to remove and 47 not upgraded.
Need to get 60.0 MB/116 MB of archives.
After this operation, 1,015 MB of additional disk space will be used.
Do you want to continue? [Y/n]

This will install it on the system.

R Server is handled as a system service so we can start, restart or stop it using systemctl.

After installing it, you should then check if the service has been started correctly.

sudo systemctl status rstudio-server
● rstudio-server.service - RStudio Server
     Loaded: loaded (/lib/systemd/system/rstudio-server.service; enabled; vendor preset: enabled)
     Active: active (running) since Sat 2021-04-17 00:21:52 CEST; 1s ago
    Process: 5472 ExecStart=/usr/lib/rstudio-server/bin/rserver (code=exited, status=0/SUCCESS)
   Main PID: 5473 (rserver)
      Tasks: 3 (limit: 2286)
     Memory: 20.3M
     CGroup: /system.slice/rstudio-server.service
             └─5473 /usr/lib/rstudio-server/bin/rserver

Apr 17 00:21:52 osradar systemd[1]: Starting RStudio Server...
Apr 17 00:21:52 osradar systemd[1]: Started RStudio Server.

Now open a web browser and visit http://your-server:8787 to display the login screen.

1.- R Studio Server
1.- R Studio Server

You can log in with your system username and password.

After that, you can enjoy R Server.

2.- R Studio Server on Ubuntu 20.04
2.- R Studio Server on Ubuntu 20.04

Conclusion

With R Server it is possible to have the power of R in the cloud. This situation makes it quite useful in a variety of circumstances.

Share the post.

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

LEAVE A REPLY

Please enter your comment!
Please enter your name here



Latest article