§2024-12-16
- git clone
$ git clone https://github.com/rstudio/rstudio.git
$ cd rstudio
$ cd ddependencies/linux/ <-- run from this directory
$./install-dependencies-jammy
(R-4.4) alexlai@JetsonOrinNano:~/build/rstudio/dependencies$ cd cd linux/
-bash: cd: too many arguments
(R-4.4) alexlai@JetsonOrinNano:~/build/rstudio/dependencies$ cd linux/
(R-4.4) alexlai@JetsonOrinNano:~/build/rstudio/dependencies/linux$ ls ..
common linux osx tools windows
(R-4.4) alexlai@JetsonOrinNano:~/build/rstudio/dependencies/linux$ ./install-dependencies-jammy
Installing RStudio dependencies for Ubuntu Jammy
Get:1 file:/var/cuda-tegra-repo-ubuntu2204-12-6-local InRelease [1572 B]
Get:2 file:/var/cudnn-local-tegra-repo-ubuntu2204-9.6.0 InRelease [1572 B]
Get:1 file:/var/cuda-tegra-repo-ubuntu2204-12-6-local InRelease [1572 B]
Get:2 file:/var/cudnn-local-tegra-repo-ubuntu2204-9.6.0 InRelease [1572 B]
Hit:3 https://repo.download.nvidia.com/jetson/common r36.4 InRelease
Hit:4 https://repo.download.nvidia.com/jetson/t234 r36.4 InRelease
Hit:5 https://download.docker.com/linux/ubuntu jammy InRelease
Hit:6 https://repo.download.nvidia.com/jetson/ffmpeg r36.4 InRelease
Hit:7 http://ports.ubuntu.com/ubuntu-ports jammy InRelease
Hit:8 http://ports.ubuntu.com/ubuntu-ports jammy-updates InRelease
Hit:9 http://ports.ubuntu.com/ubuntu-ports jammy-backports InRelease
Hit:10 http://ports.ubuntu.com/ubuntu-ports jammy-security InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'libpam0g-dev' instead of 'libpam-dev'
build-essential is already the newest version (12.9ubuntu3).
fakeroot is already the newest version (1.28-1ubuntu1).
jq is already the newest version (1.6-2.1ubuntu3).
libacl1-dev is already the newest version (2.3.1-1).
libattr1-dev is already the newest version (1:2.5.1-1build1).
libbz2-dev is already the newest version (1.0.8-5build1).
lsof is already the newest version (4.93.2+dfsg-1.1build2).
pkg-config is already the newest version (0.29.2-1ubuntu3).
rrdtool is already the newest version (1.7.2-3ubuntu6).
whois is already the newest version (5.5.13).
ant is already the newest version (1.10.12-1).
clang is already the newest version (1:14.0-55~exp2).
debsigs is already the newest version (0.1.26).
dpkg-sig is already the newest version (0.13.1+nmu4).
expect is already the newest version (5.45.4-2build1).
gnupg1 is already the newest version (1.4.23-1.1build1).
libclang-dev is already the newest version (1:14.0-55~exp2).
libfuse2 is already the newest version (2.9.9-5ubuntu3).
libuser1-dev is already the newest version (1:0.63~dfsg-4build1).
ninja-build is already the newest version (1.10.1-1).
p7zip-full is already the newest version (16.02+dfsg-8).
patchelf is already the newest version (0.14.3-1).
r-base-dev is already the newest version (4.1.2-1ubuntu2).
curl is already the newest version (7.81.0-1ubuntu1.19).
git is already the newest version (1:2.34.1-1ubuntu1.11).
libcap-dev is already the newest version (1:2.44-1ubuntu0.22.04.1).
libcurl4-openssl-dev is already the newest version (7.81.0-1ubuntu1.19).
libgl1-mesa-dev is already the newest version (23.2.1-1ubuntu3.1~22.04.3).
libgtk-3-0 is already the newest version (3.24.33-1ubuntu2.2).
libpam0g-dev is already the newest version (1.4.0-11ubuntu2.4).
libpango1.0-dev is already the newest version (1.50.6+ds-2ubuntu1).
libpq-dev is already the newest version (14.15-0ubuntu0.22.04.1).
libsqlite3-dev is already the newest version (3.37.2-2ubuntu0.3).
libssl-dev is already the newest version (3.0.2-0ubuntu1.18).
libxslt1-dev is already the newest version (1.1.34-4ubuntu0.22.04.1).
openjdk-11-jdk is already the newest version (11.0.25+9-1ubuntu1~22.04).
python3 is already the newest version (3.10.6-1~22.04.1).
software-properties-common is already the newest version (0.99.22.9).
unzip is already the newest version (6.0-26ubuntu3.2).
uuid-dev is already the newest version (2.37.2-4ubuntu3.4).
wget is already the newest version (1.21.2-2ubuntu1.1).
zlib1g-dev is already the newest version (1:1.2.11.dfsg-2ubuntu9.2).
libegl1-mesa is already the newest version (23.0.4-0ubuntu1~22.04.1).
openjdk-8-jdk is already the newest version (8u432-ga~us1-0ubuntu2~22.04).
python3-venv is already the newest version (3.10.6-1~22.04.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
==> Installing Crashpad
Skipping crashpad install (not yet supported on aarch64)
==> Installing R Packages
[I] Lockfile ./lockfiles/jammy/renv.lock doesn't exist; using latest versions of packages.
# R version ----
_
platform aarch64-conda-linux-gnu
arch aarch64
os linux-gnu
system aarch64, linux-gnu
status
major 4
minor 4.2
year 2024
month 10
day 31
svn rev 87279
language R
version.string R version 4.4.2 (2024-10-31)
nickname Pile of Leaves
# System information ----
List of 8
$ sysname : chr "Linux"
$ release : chr "5.15.148-tegra"
$ version : chr "#1 SMP PREEMPT Thu Sep 12 21:01:54 PDT 2024"
$ nodename : chr "JetsonOrinNano"
$ machine : chr "aarch64"
$ login : chr "alexlai"
$ user : chr "alexlai"
$ effective_user: chr "alexlai"
# Library paths ----
- /home/alexlai/R/aarch64-conda-linux-gnu-library/4.4
- /home/alexlai/anaconda3/envs/R-4.4/lib/R/library
Installing latest version of renv ...
Installing package into ‘/home/alexlai/R/aarch64-conda-linux-gnu-library/4.4’
(as ‘lib’ is unspecified)
trying URL 'https://rstudio.r-universe.dev/src/contrib/renv_1.0.11.9000.tar.gz'
Content type 'application/gzip' length 1525072 bytes (1.5 MB)
==================================================
downloaded 1.5 MB
* installing *source* package ‘renv’ ...
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
** libs
using C compiler: ‘aarch64-conda-linux-gnu-cc (conda-forge gcc 14.2.0-1) 14.2.0’
aarch64-conda-linux-gnu-cc -I"/home/alexlai/anaconda3/envs/R-4.4/lib/R/include" -DNDEBUG -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/alexlai/anaconda3/envs/R-4.4/include -I/home/alexlai/anaconda3/envs/R-4.4/include -Wl,-rpath-link,/home/alexlai/anaconda3/envs/R-4.4/lib -fPIC -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -pipe -isystem /home/alexlai/anaconda3/envs/R-4.4/include -fdebug-prefix-map=/home/conda/feedstock_root/build_artifacts/r-base-split_1732138567493/work=/usr/local/src/conda/r-base-4.4.2 -fdebug-prefix-map=/home/alexlai/anaconda3/envs/R-4.4=/usr/local/src/conda-prefix -c renv.c -o renv.o
aarch64-conda-linux-gnu-cc -shared -L/home/alexlai/anaconda3/envs/R-4.4/lib/R/lib -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--allow-shlib-undefined -Wl,-rpath,/home/alexlai/anaconda3/envs/R-4.4/lib -Wl,-rpath-link,/home/alexlai/anaconda3/envs/R-4.4/lib -L/home/alexlai/anaconda3/envs/R-4.4/lib -o renv.so renv.o -L/home/alexlai/anaconda3/envs/R-4.4/lib/R/lib -lR
** help
*** installing help indices
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (renv)
The downloaded source packages are in
‘/tmp/RtmpSozMDB/downloaded_packages’
Read 6 items
Installing packages: digest, purrr, rmarkdown, testthat, xml2, yaml
# Downloading packages -------------------------------------------------------
- Downloading digest from CRAN ... OK [226.9 Kb]
- Downloading purrr from CRAN ... OK [215.7 Kb]
- Downloading rmarkdown from CRAN ... OK [2.1 Mb in 0.32s]
- Downloading bslib from CRAN ... OK [4.9 Mb in 0.51s]
- Downloading base64enc from CRAN ... OK [7.6 Kb]
- Downloading cachem from CRAN ... OK [26.6 Kb]
- Downloading fastmap from CRAN ... OK [45.6 Kb]
- Downloading htmltools from CRAN ... OK [132 Kb]
- Downloading jquerylib from CRAN ... OK [508 Kb in 0.13s]
- Downloading memoise from CRAN ... OK [17.4 Kb]
- Downloading mime from CRAN ... OK [12.3 Kb]
- Downloading sass from CRAN ... OK [2.9 Mb in 0.33s]
- Downloading fs from CRAN ... OK [1.1 Mb in 0.17s]
- Downloading rappdirs from CRAN ... OK [12 Kb]
- Downloading evaluate from CRAN ... OK [34.1 Kb]
- Downloading fontawesome from CRAN ... OK [1.3 Mb in 0.18s]
- Downloading knitr from CRAN ... OK [533 Kb in 0.15s]
- Downloading highr from CRAN ... OK [13.5 Kb]
- Downloading xfun from CRAN ... OK [162.5 Kb]
- Downloading yaml from CRAN ... OK [92.3 Kb]
- Downloading tinytex from CRAN ... OK [34.8 Kb]
- Downloading testthat from CRAN ... OK [721.6 Kb in 0.17s]
- Downloading brio from CRAN ... OK [12.9 Kb]
- Downloading callr from CRAN ... OK [101.9 Kb]
- Downloading processx from CRAN ... OK [160.1 Kb]
- Downloading ps from CRAN ... OK [160.5 Kb]
- Downloading desc from CRAN ... OK [78.2 Kb]
- Downloading pkgload from CRAN ... OK [83.7 Kb]
- Downloading pkgbuild from CRAN ... OK [47 Kb]
- Downloading rprojroot from CRAN ... OK [58.5 Kb]
- Downloading praise from CRAN ... OK [6 Kb]
- Downloading waldo from CRAN ... OK [44.1 Kb]
- Downloading diffobj from CRAN ... OK [468 Kb in 0.11s]
- Downloading xml2 from CRAN ... OK [287.8 Kb]
Successfully downloaded 34 packages in 11 seconds.
The following package(s) will be installed:
- base64enc [0.1-3]
- brio [1.1.5]
- bslib [0.8.0]
- cachem [1.1.0]
- callr [3.7.6]
- desc [1.4.3]
- diffobj [0.3.5]
- digest [0.6.37]
- evaluate [1.0.1]
- fastmap [1.2.0]
- fontawesome [0.5.3]
- fs [1.6.5]
- highr [0.11]
- htmltools [0.5.8.1]
- jquerylib [0.1.4]
- knitr [1.49]
- memoise [2.0.1]
- mime [0.12]
- pkgbuild [1.4.5]
- pkgload [1.4.0]
- praise [1.0.0]
- processx [3.8.4]
- ps [1.8.1]
- purrr [1.0.2]
- rappdirs [0.3.3]
- rmarkdown [2.29]
- rprojroot [2.0.4]
- sass [0.4.9]
- testthat [3.2.2]
- tinytex [0.54]
- waldo [0.6.1]
- xfun [0.49]
- xml2 [1.3.6]
- yaml [2.3.10]
These packages will be installed into "~/R/aarch64-conda-linux-gnu-library/4.4".
# Installing packages --------------------------------------------------------
- Installing digest ... OK [built from source and cached in 16s]
- Installing purrr ... OK [built from source and cached in 8.6s]
- Installing base64enc ... OK [built from source and cached in 2.6s]
- Installing fastmap ... OK [built from source and cached in 6.6s]
- Installing cachem ... OK [built from source and cached in 3.4s]
- Installing htmltools ... OK [built from source and cached in 7.7s]
- Installing jquerylib ... OK [built from source and cached in 2.5s]
- Installing memoise ... OK [built from source and cached in 2.8s]
- Installing mime ... OK [built from source and cached in 2.4s]
- Installing fs ... OK [built from source and cached in 58s]
- Installing rappdirs ... OK [built from source and cached in 2.3s]
- Installing sass ... OK [built from source and cached in 4.5m]
- Installing bslib ... OK [built from source and cached in 8.4s]
- Installing evaluate ... OK [built from source and cached in 2.7s]
- Installing fontawesome ... OK [built from source and cached in 3.1s]
- Installing xfun ... OK [built from source and cached in 7.9s]
- Installing highr ... OK [built from source and cached in 2.0s]
- Installing yaml ... OK [built from source and cached in 12s]
- Installing knitr ... OK [built from source and cached in 12s]
- Installing tinytex ... OK [built from source and cached in 3.2s]
- Installing rmarkdown ... OK [built from source and cached in 11s]
- Installing brio ... OK [built from source and cached in 3.0s]
- Installing ps ... OK [built from source and cached in 11s]
- Installing processx ... OK [built from source and cached in 9.9s]
- Installing callr ... OK [built from source and cached in 8.4s]
- Installing desc ... OK [built from source and cached in 5.3s]
- Installing pkgbuild ... OK [built from source and cached in 4.8s]
- Installing rprojroot ... OK [built from source and cached in 2.5s]
- Installing pkgload ... OK [built from source and cached in 6.0s]
- Installing praise ... OK [built from source and cached in 1.8s]
- Installing diffobj ... OK [built from source and cached in 17s]
- Installing waldo ... OK [built from source and cached in 4.5s]
- Installing testthat ... OK [built from source and cached in 52s]
- Installing xml2 ... FAILED
Error: Error installing package 'xml2':
================================
$ sudo apt libsecret-1-dev girl-2-secret-1
$ git tag
$ git checkout -b compile v1.4.1743
(base) alexlai@JetsonOrinNano:~/build/rstudio$ git branch
* compile
main
$ mkdir build && cd $_
$ sudo mkdir /opt/rstudio <-- has to be created first for using CMAKE_INSTALL_PREFIX
$ sudo chown -R alexlai:alexlai /opt/rstudio/
--> X $ cmake .. -DRSTUDIO_TARGET=Server -DCMAKE_BUILD_TYPE=Release CMAKE_INSTALL_PREFIX=/opt/rstudio
he error you're seeing indicates that CMake is interpreting the CMAKE_INSTALL_PREFIX=/opt/rstudio as part of the source directory path, rather than as a configuration option.
$ sudo apt-get update && sudo apt-get install ant build-essential cmake git libboost-dev libcurl4-openssl-dev \
libssl-dev libxml2-dev libclang-dev
$ cmake .. -DRSTUDIO_TARGET=Server -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/opt/rstudio
(base) alexlai@JetsonOrinNano:~/build/rstudio/build$
git clone https://github.com/jbeder/yaml-cpp.git
cd yaml-cpp
mkdir build
cd build
$ cmake ..
-- The CXX compiler identification is GNU 11.4.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/alexlai/build/yaml-cpp/build
$ time make -j 6
real 0m8.288s
user 0m32.446s
sys 0m4.956s
sudo make install
$ sudo make install
Consolidate compiler generated dependencies of target yaml-cpp
[ 84%] Built target yaml-cpp
Consolidate compiler generated dependencies of target yaml-cpp-sandbox
[ 89%] Built target yaml-cpp-sandbox
Consolidate compiler generated dependencies of target yaml-cpp-parse
[ 94%] Built target yaml-cpp-parse
Consolidate compiler generated dependencies of target yaml-cpp-read
[100%] Built target yaml-cpp-read
Install the project...
-- Install configuration: ""
-- Installing: /usr/local/lib/libyaml-cpp.a
-- Up-to-date: /usr/local/include
-- Installing: /usr/local/include/yaml-cpp
-- Installing: /usr/local/include/yaml-cpp/ostream_wrapper.h
-- Installing: /usr/local/include/yaml-cpp/fptostring.h
-- Installing: /usr/local/include/yaml-cpp/yaml.h
-- Installing: /usr/local/include/yaml-cpp/traits.h
-- Installing: /usr/local/include/yaml-cpp/dll.h
-- Installing: /usr/local/include/yaml-cpp/mark.h
-- Installing: /usr/local/include/yaml-cpp/null.h
-- Installing: /usr/local/include/yaml-cpp/emitterdef.h
-- Installing: /usr/local/include/yaml-cpp/eventhandler.h
-- Installing: /usr/local/include/yaml-cpp/node
-- Installing: /usr/local/include/yaml-cpp/node/ptr.h
-- Installing: /usr/local/include/yaml-cpp/node/emit.h
-- Installing: /usr/local/include/yaml-cpp/node/impl.h
-- Installing: /usr/local/include/yaml-cpp/node/iterator.h
-- Installing: /usr/local/include/yaml-cpp/node/detail
-- Installing: /usr/local/include/yaml-cpp/node/detail/memory.h
-- Installing: /usr/local/include/yaml-cpp/node/detail/impl.h
-- Installing: /usr/local/include/yaml-cpp/node/detail/iterator_fwd.h
-- Installing: /usr/local/include/yaml-cpp/node/detail/iterator.h
-- Installing: /usr/local/include/yaml-cpp/node/detail/node_data.h
-- Installing: /usr/local/include/yaml-cpp/node/detail/node_iterator.h
-- Installing: /usr/local/include/yaml-cpp/node/detail/node.h
-- Installing: /usr/local/include/yaml-cpp/node/detail/node_ref.h
-- Installing: /usr/local/include/yaml-cpp/node/node.h
-- Installing: /usr/local/include/yaml-cpp/node/convert.h
-- Installing: /usr/local/include/yaml-cpp/node/parse.h
-- Installing: /usr/local/include/yaml-cpp/node/type.h
-- Installing: /usr/local/include/yaml-cpp/stlemitter.h
-- Installing: /usr/local/include/yaml-cpp/depthguard.h
-- Installing: /usr/local/include/yaml-cpp/contrib
-- Installing: /usr/local/include/yaml-cpp/contrib/anchordict.h
-- Installing: /usr/local/include/yaml-cpp/contrib/graphbuilder.h
-- Installing: /usr/local/include/yaml-cpp/anchor.h
-- Installing: /usr/local/include/yaml-cpp/emitter.h
-- Installing: /usr/local/include/yaml-cpp/parser.h
-- Installing: /usr/local/include/yaml-cpp/binary.h
-- Installing: /usr/local/include/yaml-cpp/emitfromevents.h
-- Installing: /usr/local/include/yaml-cpp/emittermanip.h
-- Installing: /usr/local/include/yaml-cpp/noexcept.h
-- Installing: /usr/local/include/yaml-cpp/emitterstyle.h
-- Installing: /usr/local/include/yaml-cpp/exceptions.h
-- Installing: /usr/local/lib/cmake/yaml-cpp/yaml-cpp-targets.cmake
-- Installing: /usr/local/lib/cmake/yaml-cpp/yaml-cpp-targets-noconfig.cmake
-- Installing: /usr/local/lib/cmake/yaml-cpp/yaml-cpp-config.cmake
-- Installing: /usr/local/lib/cmake/yaml-cpp/yaml-cpp-config-version.cmake
-- Installing: /usr/local/lib/pkgconfig/yaml-cpp.pc
sudo apt update
sudo apt install -y \
build-essential \
cmake \
git \
libcurl4-openssl-dev \
libssl-dev \
libxml2-dev \
libgit2-dev \
libicu-dev \
libsqlite3-dev \
pkg-config \
g++ \
gfortran \
libclang-dev \
libgtk-3-dev \
libnotify-dev \
libxt-dev \
libv8-dev \
libprotobuf-dev \
protobuf-compiler \
libprotobuf-c-dev \
libssl-dev \
clang
Installing RStudio from Source
This document describes how to build and install RStudio from the source distribution. Information on obtaining the RStudio source code can be found in the file SOURCE. Note that precompiled binaries are also available for Windows, OSX, as well as recent versions of various Linux distributions.
- Installing Dependencies
Building RStudio requires a number of dependencies (including R itself). There are platform-specific instructions for satisfying these dependencies within the following directories
dependencies linux osx windows
Please see the README file contained within the root of each platform's directory for specific instructions.
- Configuring the Build Environment
a) From the root of the RStudio tree create a build directory and then change to it:
mkdir build cd build
b) Configure the build using cmake as appropriate, e.g.
cmake .. -DRSTUDIO_TARGET=Server -DCMAKE_BUILD_TYPE=Release
Variables that control configuration include:
RSTUDIO_TARGET Desktop or Server
CMAKE_BUILD_TYPE Debug, Release, RelMinSize, or RelWithDebInfo
CMAKE_INSTALL_PREFIX Defaults: Linux (Desktop): /usr/local/lib/rstudio Linux (Server): /usr/local/lib/rstudio-server OSX: /Applications/RStudio Windows: C:\Program Files\RStudio
c) There are a couple of additional considerations on Windows. First, RStudio Server is not supported on Windows so the configuration always defaults to Desktop. Second, you need to add an extra -G parameter to specify MinGW as the build toolchain, for example:
cmake .. -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release
- Building and Installing
a) Acquire administrative rights (if necessary). If you have configured RStudio to be installed in a protected directory (the default on all platforms) then you need to run the build/install command as an administrator (e.g. "su -", "sudo sh", or running a console as an Administrator on Windows)
b) Change to the build directory where you configured RStudio
c) Run the "make install" command:
Linux & OSX: sudo make install OR Windows: mingw32-make install
NOTE: For RStudio Desktop on Linux, make install automatically creates an entry in the Applications -> Programming menu for RStudio.
d) If you are installing RStudio Server some additional configuration steps are required to complete the installation. These steps are detailed in the section below.
- RStudio Server Configuration
If you have installed RStudio Server from source there are a number of other steps (some required, some optional) you should take to complete your installation. Note that these steps are taken automatically by the DEB and RPM pre-built binary distributions of RStudio Server.
a) Create an rstudio-server system user account (RStudio will automatically run under this account if it is present). You can do this with:
sudo useradd -r rstudio-server
b) RStudio Server uses PAM to authenticate users. Some Unix systems (such as Debian and Ubuntu) use default PAM settings for applications which aren't explicitly registered with PAM, so don't require additional PAM configuration. If however your system requires explicit registration (i.e. Redhat, Fedora, openSUSE) then you need to add an /etc/pam.d/rstudio file to your configuration. You can find a default version of this file at:
extras /pam rstudio
c) Register RStudio as a daemon using an init.d (for most systems) or systemd(for Ubuntu from 15.04, RHEL from 7) or upstart (for Ubuntu before 15.04) or launchd plist (for Mac OSX) script appropriate to your system. The rstudio/server/extras directory contains the following scripts:
extras /init.d /debian rstudio-server /redhat rstudio-server /suse rstudio-server /systemd rstudio-server.redhat.service rstudio-server.service /upstart rstudio-server.redhat.conf rstudio-server.conf /launchd com.rstudio.launchd.rserver.plist
NOTE: installation of init.d scripts require both copying them into /etc/init.d, making them executable (chmod +x), as well as executing a system dependent command to ensure that the service is registered with the appropriate runlevels. For example:
Debian: sudo update-rc.d rstudio-server defaults Redhat/SUSE: sudo /sbin/chkconfig --add rstudio-server
d) Create a soft link in /usr/sbin to the server administrative script
sudo ln -f -s /usr/local/lib/rstudio-server/bin/rstudio-server /usr/sbin/rstudio-server
Assuming you have previously installed an init.d or upstart script (as described above) then you should now be able start the server with the following command:
sudo rstudio-server start
Additional commands include stop, restart, offline, online, and others
e) Create /var directories required for RStudio to run. This can be done with:
mkdir -p /var/run/rstudio-server mkdir -p /var/lock/rstudio-server mkdir -p /var/log/rstudio-server mkdir -p /var/lib/rstudio-server
f) If your system supports AppArmor you may wish to add an AppArmor profile for RStudio Server. You can find one which is compatible with the Ubuntu implementation of AppArmor here:
extras /apparmor rstudio-server