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

How to fail your CK{A,S} Kubernetes Certifications

Office Mac Standard 2016 V15 13.3 Dmg

A Brief Analysis of Consensus Protocol: From Logical Clock to Raft

Uninstall Cisco AnyConnect VPN on MAC

Won’t someone please think of the users?

How to manage several SSH Config files on Mac and Linux (quick-note)

An Overview on App Development with Flutter

How to make changes the right way

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

Apache Airflow(四) start_date & schedule_interval

Up and Running with Kafka (installation) in Simplest way

How to install Apache Airflow on k8s in 30 minutes

Apache Airflow: Write your first DAG in Apache Airflow