Ubuntu开荒

安装

确认磁盘格式是否为gpt

引导区500mb

内存交换区:比内存大一点

其他全根挂载/

同步时间

复制代码
sudo apt install ntpdate
sudo ntpdate time.windows.com
sudo hwclock --localtime --systohc
timedatectl set-local-rtc 1

开机默认开启windows

复制代码
sudo gedit /etc/default/grub
GRUB_DEFAULT=4
sudo update-grub

挂载移动硬盘

复制代码
sudo mount /dev/sda1 /mnt
sudo apt-get update
sudo apt-get install ntfs-3g
sudo apt install cifs-utils

下载gedit

复制代码
sudo apt update
sudo apt install gedit

配置git

复制代码
sudo apt inatall git
git --version
git config --global user.name "usnerName"
git config --global user.email "address
git config --list
ssh-keygen -t rsa -C "address"
cd ~/.ssh/
ls 
ssh git@github.com

pip国内加速

复制代码
清华:https://pypi.tuna.tsinghua.edu.cn/simple
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/

cuda安装地址

复制代码
https://developer.nvidia.com/cuda-toolkit-archive

Miniconda安装

复制代码
sudo apt update
 

sudo apt install -y wget
 

wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh


chmod +x Miniconda3-latest-Linux-x86_64.sh

bash ./Miniconda3-latest-Linux-x86_64.sh
 


安装过程中,它会要求你阅读许可协议并同意。按`Enter`键继续,然后输入`yes`同意安装。

export PATH="/home/你的用户名/miniconda3/bin:$PATH"
  
echo 'export PATH="/home/你的用户名/miniconda3/bin:$PATH"' >> ~/.bashrc

source ~/.bashrc
  

conda --version

conda update -n base -c defaults conda

安装cuda无法验证下列签名: NO_PUBKEY A4B469963BF863CC

复制代码
gpg --keyserver keyserver.ubuntu.com --recv-keys A4B469963BF863CC
gpg --export --armor A4B469963BF863CC | sudo apt-key add -

关闭系统自带驱动nouveau

复制代码
lsmod | grep nouveau
sudo gedit /etc/modprobe.d/blacklist.conf
blacklist nouveau
options nouveau modeset=0
sudo update-initramfs -u  #应用更改

配置CUDA的环境变量

复制代码
sudo gedit ~/.bashrc
export PATH=$PATH:/usr/local/cuda/bin  
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64  
export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/cuda/lib64
source ~/.bashrc

验证cuda

复制代码
./deviceQuery
相关推荐
少妇的美梦5 小时前
logstash教程
运维
chen9455 小时前
k8s集群部署vector日志采集器
运维
chen9456 小时前
aws ec2部署harbor,使用s3存储
运维
轻松Ai享生活10 小时前
5 节课深入学习Linux Cgroups
linux
christine-rr10 小时前
linux常用命令(4)——压缩命令
linux·服务器·redis
三坛海会大神55511 小时前
LVS与Keepalived详解(二)LVS负载均衡实现实操
linux·负载均衡·lvs
東雪蓮☆11 小时前
深入理解 LVS-DR 模式与 Keepalived 高可用集群
linux·运维·服务器·lvs
qq_2642208911 小时前
LVS负载均衡群集和LVS+Keepalived群集
运维·负载均衡·lvs
乌萨奇也要立志学C++11 小时前
【Linux】进程概念(二):进程查看与 fork 初探
linux·运维·服务器
雨落Liy11 小时前
Nginx 从入门到进阶:反向代理、负载均衡与高性能实战指南
运维·nginx·负载均衡