一、软件篇
1、安装并配置git
sudo apt install git
git config --global use.rname "cbj"
git config --global user.email "1041859043@qq.com"
2、安装pip3
sudo apt install python3-pip
3、安装vim
sudo apt-get install vim
4、安装miniconda
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
sudo chmod +x Miniconda3-latest-Linux-x86_64.sh
sudo ./Miniconda3-latest-Linux-x86_64.sh
同意协议
安装目录 /home/用户名
初始化
测试 conda
不行的话
vim ~/.bashrc
export PATH=$PATH:/home/用户名/miniconda3/bin
source ~/.bashrc
aarch64架构替换为
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-aarch64.sh
5 、安装python
6、安装eigen库
sudo apt-get install libeigen3-dev
二、设置
1、中文输入法
setting -> Language -> chinese -> input sources -> chinese
2、U盘挂载
fdisk -l 查看
mount -t vfat /dev/sdb /mnt/usb 其中-t vfat 是指的fat的格式,后两个分别为设备名和挂载点
umount /dev/sdb 取消挂载
三、Linux安装
1、制作启动盘
2、安装系统
分区
eif 500MB
/boot 500MB
/swap 根据内存
/ all in
3、可能遇到的问题
安装ubuntu时与RST冲突
解决方法:进bios后,将存储器控制协议改为AHCI(单系统只需要这样就可以了)
四、conda使用
1、安装使用mkl作为加速库的numpy
conda install -c intel numpy
conda install -c intel scipy
2、只删除一个包不影响其它
conda remove --force numpy
3、源
显示目前的源
conda config --show channels
恢复默认源
conda config --remove-key channels
阿里源
conda config --add channels https://mirrors.aliyun.com/anaconda/pkgs/main/
conda config --add channels https://mirrors.aliyun.com/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.aliyun.com/anaconda/cloud/bioconda/
在 aarch64 架构 linux 上运行时 conda 命令时“非法指令”
MINICONDA3=Miniconda3-py37_4.9.2-Linux-aarch64.sh
wget -nc https://repo.continuum.io/miniconda/$MINICONDA3 -P ~/Downloads
chmod +x ~/Downloads/$MINICONDA3
~/Downloads/$MINICONDA3 -bf
source ~/miniconda3/bin/activate base
conda create -n py39 python=3.9
conda activate py39
docker
docker run -i -t --privileged --name ubuntu -d arm64v8/ubuntu
git
X、常用命令
1、ping
2.查看cpu架构
windows systeminfo
Linux和MacOS uname -a
3.Linux (Ubuntu/CentOS) 下查看 GLIBC 版本
ldd --version
4.创建新用户并加入到sudo组
sudo adduser username
sudo usermod -aG sudo username
5.wget下载
wget -r -np -nH -R index.html http://url/including/files/you/want/to/download/
各个参数的含义:
-r : 遍历所有子目录
-np : 不到上一层子目录去
-nH : 不要将文件保存到主机名文件夹
-R index.html : 不下载 index.html 文件
5.zip unzip
zip -r html.zip /home/html #压缩指定目录下所有文件
unzip -d path-A file.zip #解压缩到指定目录下
总结
https://gitee.com/cbj57669/uunet.git
https://blog.csdn.net/u014264373/article/details/117417790