今天也是記流水賬的一天奢方,下載安裝了 conda 颁督,了解了一下 conda 環(huán)境单雾,今天的任務(wù)還挺輕松的赚哗,但是讓我對(duì)linux服務(wù)器上的軟件安裝好像認(rèn)識(shí)得更直觀了一點(diǎn)點(diǎn)。不過還是不完全明白硅堆,我們?cè)诜?wù)器上能調(diào)用哪些范圍內(nèi)的軟件屿储?比如一個(gè)組每個(gè)同學(xué)有自己的賬號(hào),但是大家的目錄都在課題組目錄下硬萍,組里別的同學(xué)下載安裝的軟件我也能用,這是為什么呢围详,我們能調(diào)用到哪個(gè)層級(jí)的目錄下的軟件是取決于什么呀朴乖?
- 登錄服務(wù)器,查看服務(wù)器是多少位的助赞,
bio04@VM-0-6-ubuntu:~$ uname -a Linux VM-0-6-ubuntu 4.15.0-118-generic #119-Ubuntu SMP Tue Sep 8 12:30:01 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
- 看樣子是 64 位的买羞,然后去找miniconda for Linux 64的最新版本,順利下載到了 biosoft 目錄下
bio04@VM-0-6-ubuntu:~/biosoft$ wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-latest-Linux-x86_64.sh --2022-05-11 17:50:14-- https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-latest-Linux-x86_64.sh Resolving mirrors.tuna.tsinghua.edu.cn (mirrors.tuna.tsinghua.edu.cn)... 101.6.15.130, 2402:f000:1:400::2 Connecting to mirrors.tuna.tsinghua.edu.cn (mirrors.tuna.tsinghua.edu.cn)|101.6.15.130|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 75660608 (72M) [application/octet-stream] Saving to: ‘Miniconda3-latest-Linux-x86_64.sh’ Miniconda3-latest-Linux-x86_64.sh 100%[==================================================================================>] 72.16M 1.19MB/s in 70s 2022-05-11 17:51:25 (1.03 MB/s) - ‘Miniconda3-latest-Linux-x86_64.sh’ saved [75660608/75660608]
- 重要步驟之安裝
輸入bash Miniconda3-latest-Linux-x86_64.sh
之后enter了超多遍過了很多條款雹食,終于到了Do you accept the license terms? [yes|no]
畜普,yes
了兩下,成功安裝群叶!==> For changes to take effect, close and re-open your current shell. <== If you'd prefer that conda's base environment not be activated on startup, set the auto_activate_base parameter to false: conda config --set auto_activate_base false Thank you for installing Miniconda3! ```
- 重要步驟之激活
聽話地關(guān)閉了 Xshell 重新打開吃挑,結(jié)果發(fā)現(xiàn)沒注意把conda3 安裝到 biosoft 下,一不小心直接安裝到了自己的主目錄下街立。問題不大舶衬,繼續(xù)激活。直接在主目錄下輸入source ~/.bashrc
赎离,之后在隨便哪個(gè)文件夾下輸入conda都能出來conda的基本信息逛犹,不太懂它的作用范圍,查了一下安裝路徑梁剔,是在conda里面虽画,所以是在我的主目錄下都可以調(diào)用的意思嗎?(base) bio04@VM-0-6-ubuntu:~/tmp$ whereis conda conda: /home/bio04/miniconda3/bin/conda /home/bio04/miniconda3/condabin/conda
- 添加鏡像:輸入后沒有什么反饋荣病,應(yīng)該就沒事了吧
- 正式使用conda:
試了不加-y
直接conda install fastqc
码撰,結(jié)果就是自己輸了一個(gè)y
,別的似乎沒啥个盆,試了一些fastqc -help
能看到幫助文檔灸拍,到這里就安裝好 fastqc 啦做祝,也順便看了看它安裝到了哪里(base) bio04@VM-0-6-ubuntu:~$ whereis fastqc fastqc: /home/bio04/miniconda3/bin/fastqc
- conda環(huán)境
(base) bio04@VM-0-6-ubuntu:~$ conda info --envs # conda environments: # base * /home/bio04/miniconda3 (base) bio04@VM-0-6-ubuntu:~$ conda create -n rna-seq python=3 fastqc trimmomatic -y (base) bio04@VM-0-6-ubuntu:~$ conda info --envs # conda environments: # base * /home/bio04/miniconda3 rna-seq /home/bio04/miniconda3/envs/rna-seq (base) bio04@VM-0-6-ubuntu:~$ conda activate rna-seq (rna-seq) bio04@VM-0-6-ubuntu:~$ conda info --envs # conda environments: # base /home/bio04/miniconda3 rna-seq * /home/bio04/miniconda3/envs/rna-seq
- 見識(shí)了一次掉線)
Socket error Event: 32 Error: 10053. Connection closing...Socket close. Connection closed by foreign host. Disconnected from remote host(linux) at 19:58:12. Type `help' to learn how to use Xshell prompt. [D:\~]$
那就到這里吧~