How to Set Up and Configure RStudio on Ubuntu

Choosing the Right Instance Type

Prerequisites

  1. A valid account on Alibaba Cloud. Sign up for a Free Trial if you don’t have one already.
  2. A new Alibaba Cloud ECS instance with Ubuntu 14.04/16.04 server installed.
  3. A public IP address is configured on the instance (via console).
  4. A Root password is setup on the instance (via console).

Launch an Alibaba Cloud ECS Instance

ssh root@<Your Public Ip>
# apt-get update -y

Install Base R and RStudio

# apt-get install r-base
# apt-get install gdebi-core
# wget https://download2.rstudio.org/rstudio-server-1.1.456-amd64.deb
# sudo gdebi rstudio-server-1.1.456-amd64.deb
root@iZgw87jn58ajcwb3gjnupwZ:/usr/sbin# rstudio-server status
rstudio-server start/running, process 6982

Network Configuration in Alibaba Cloud

http://<server-ip>:8787

Configure and Manage RStudio

# adduser rstudio_user1
  1. Configurations can be made with “rserver.conf” and “rsession.conf” files under “/etc/rstudio/”
  2. Administrative work is also being done with the “rstudio-server” service under “/usr/sbin/”
# /usr/sbin/rstudio-server start
# /usr/sbin/rstudio-server stop
# /usr/sbin/rstudio-server restart
# /usr/sbin/rstudio-server status
# /usr/sbin/rstudio-server active-sessions
PID     TIME COMMAND
24878 00:00:00 /usr/lib/rstudio-server/bin/rsession -u rstudio_user1 --launcher-token 8C830F0
24895 00:00:00 /usr/lib/rstudio-server/bin/rsession -u rstudio --launcher-token 8C830F0
www-port=<Defined Port>
limit-xfs-disk-quota=1
# df -hT

Conclusion

--

--

--

Follow me to keep abreast with the latest technology news, industry insights, and developer trends. Alibaba Cloud website:https://www.alibabacloud.com

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Object Oriented Design Practices

Johnny Pi, I am your father — part 7: son, we need to talk

3 Reasons Better JavaScript Won’t Improve Your Career

How I got Internship at NVIDIA

Welcome. This page simply aims to establish in the reader a stimulus on Project Management to then…

Cloud Run with Github Actions

Make the switch to Ubuntu

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alibaba Cloud

Alibaba Cloud

Follow me to keep abreast with the latest technology news, industry insights, and developer trends. Alibaba Cloud website:https://www.alibabacloud.com

More from Medium

A Practical Guide to App Monitoring with Datadog for Python APIs

How we made our integration tests delightful by optimizing our GitHub Actions workflow

Good Design Practices with Python — Defensive Programming

kafkaVision: An open-source monitoring tool for Apache Kafka