File tree Expand file tree Collapse file tree 4 files changed +79
-0
lines changed
Expand file tree Collapse file tree 4 files changed +79
-0
lines changed Original file line number Diff line number Diff line change 169169 "script" : " pencilcode" ,
170170 "version" : " 1.0.0" ,
171171 "category" : " utilities"
172+ },
173+ "r-studio" : {
174+ "name" : " R Studio" ,
175+ "description" : " R is an open-source programming language and free environment that specializes in statistical computing and graphical representation." ,
176+ "script" : " r-studio" ,
177+ "version" : " 2022.07.1" ,
178+ "category" : " IDE"
172179 }
173180
174181 }
Original file line number Diff line number Diff line change 1+ # Server Configuration File
2+ www-frame-origin=any
Original file line number Diff line number Diff line change 1+ [Unit]
2+ Description =RStudio Server for Codio
3+ Wants =network-online.target
4+ After =network-online.target
5+
6+ [Service]
7+ Type =simple
8+ User =codio
9+ Group =codio
10+ WorkingDirectory =/home/codio/workspace
11+ ExecStartPre =/bin/rm -rf /home/codio/.rstudio/sessions/active
12+ ExecStart =/usr/lib/rstudio-server/bin/rserver --server-daemonize =0 --auth-none =1 --server-user =codio --server-pid-file =/tmp/rstudio.pid --server-data-dir =/home/codio/rserver/
13+ #ExecStop=/usr/bin/killall -TERM rserver
14+ #KillMode=none
15+ Restart =on-failure
16+
17+ [Install]
18+ WantedBy =multi-user.target
Original file line number Diff line number Diff line change 1+ ---
2+ - hosts : 127.0.0.1
3+ become : yes
4+ become_user : root
5+ tasks :
6+ - apt : update_cache=yes
7+ - apt : name=build-essential state=present
8+ - apt : name=software-properties-common state=present
9+ - apt : name=dirmngr state=present
10+
11+ - name : cpan apt key
12+ get_url :
13+ url : https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc
14+ dest : /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc
15+
16+ - name : Add R repository into sources list
17+ apt_repository :
18+ repo : deb https://cloud.r-project.org/bin/linux/ubuntu {{ ansible_distribution_release }}-cran40/
19+ state : present
20+
21+ - apt : update_cache=yes
22+ - apt : name=r-base state=present
23+ - name : Install r studio .deb package
24+ apt :
25+ deb : https://download2.rstudio.org/server/bionic/amd64/rstudio-server-2022.07.1-554-amd64.deb
26+
27+ - name : Systemd config
28+ copy : src=rstudio-server-codio.service dest=/etc/systemd/system/rstudio-server-codio.service
29+ - name : rstudio config config
30+ copy : src=rserver.conf dest=/etc/rstudio/rserver.conf
31+ - name : change permission
32+ file :
33+ path : /var/lib/rstudio-server/rstudio-os.sqlite
34+ owner : codio
35+ group : codio
36+
37+ - name : rstudio original disabled
38+ systemd :
39+ enabled : no
40+ state : stopped
41+ daemon_reload : yes
42+ name : rstudio-server
43+ - name : rstudio restarted
44+ systemd :
45+ enabled : yes
46+ state : restarted
47+ daemon_reload : yes
48+ name : rstudio-server-codio
49+ - name : Restart Instructions
50+ debug :
51+ msg :
52+ - " INFO: Access to the r studio uses 8787 port, use {%raw%}{{domain8787}}{%endraw%}!"
You can’t perform that action at this time.
0 commit comments