再別康橋賞析(再別康橋的詩(shī)詞鑒賞)
2023-05-18
更新時(shí)間:2023-05-12 18:02:27作者:未知
R官網(wǎng):https://www.r-project.org/RStudio:https://www.rstudio.com/環(huán)境:windows11子系統(tǒng)(Ubuntu)R安裝添加R下載源# update indicessudo apt update -qq# install two helper packages we needsudo apt install --no-install-recommends software-properties-common dirmngr# add the signing key (by Michael Rutter) for these repos# To verify key, run gpg --show-keys /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc # Fingerprint: E298A3A825C0D65DFD57CBB651716619E084DAB9wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | sudo tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc# add the R 4.0 repo from CRAN -- adjust 'focal' to 'groovy' or 'bionic' as neededsudo add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/"執(zhí)行安裝命令sudo apt install --no-install-recommends r-base輸入R命令出現(xiàn)如下輸出表示R安裝成功
root@DKQNI3:~# RR version 4.1.2 (2021-11-01) -- "Bird Hippie"Copyright (C) 2021 The R Foundation for Statistical ComputingPlatform: x86_64-pc-linux-gnu (64-bit)R是自由軟件,不帶任何擔(dān)保。在某些條件下你可以將其自由散布。用'license()'或'licence()'來看散布的詳細(xì)條件。R是個(gè)合作計(jì)劃,有許多人為之做出了貢獻(xiàn).用'contributors()'來看合作者的詳細(xì)情況用'citation()'會(huì)告訴你如何在出版物中正確地引用R或R程序包。用'demo()'來看一些示范程序,用'help()'來閱讀在線幫助文件,或用'help.start()'通過HTML瀏覽器來看幫助文件。用'q()'退出R.> 安裝RStudio Server下載安裝包
https://www.rstudio.com/products/rstudio/download-server/
Download RStudio Server v2022.07.1+554
https://www.rstudio.com/products/rstudio/download-server/debian-ubuntu/
Install for Debian 10 / Ubuntu 18 / Ubuntu 20
sudo apt-get install gdebi-corewget https://download2.rstudio.org/server/bionic/amd64/rstudio-server-2022.07.1-554-amd64.debsudo gdebi rstudio-server-2022.07.1-554-amd64.deb
apt-get install安裝gdebi-core包:sudo apt-get install gdebi-corewget下載rstudio-server安裝包:wget https://download2.rstudio.org/server/bionic/amd64/rstudio-server-2022.07.1-554-amd64.deb使用gdebi安裝rstudio-server:sudo gdebi rstudio-server-2022.07.1-554-amd64.deb創(chuàng)建Ubuntu用戶默認(rèn)不允許root用戶登錄rstudio-server
創(chuàng)建用戶命令
useradd username不會(huì)在/home下建立一個(gè)文件夾usernameadduser username會(huì)在/home下建立一個(gè)文件夾usernameuseradd -m username跟adduser一樣,可以建立一個(gè)文件夾usernameuseradd -m username# username為創(chuàng)建的用戶名,用于rstudio-server登錄修改用戶密碼命令
passwd username# 輸入兩遍密碼即可啟動(dòng)rstudio-serverrstudio-server start或重啟rstudio-server restart使用rstudio-server打開瀏覽器輸入地址:http://127.0.0.2:8787
127.0.0.1:8787
輸入創(chuàng)建的Ubuntu用戶名和密碼登錄
rstudio-server