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 [email protected]

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
相关推荐
IT小饕餮8 分钟前
linux系统安全
linux·运维·系统安全
小峰编程9 分钟前
Python数据类型进阶——详解
linux·运维·服务器·开发语言·python·pycharm·swift
百年孤独百年23 分钟前
docker的anythingllm和open-webui压缩包分享(国内镜像拉取,百度云压缩包分享)
运维·docker·容器·anythingllm·open-webui·docker国内镜像
掘了33 分钟前
C++ 程序员应该了解的 Linux 命令
linux·c++·后端
安於宿命37 分钟前
【Linux】线程
linux·服务器·信息与通信
芷栀夏43 分钟前
零成本本地化搭建开源AI神器LocalAI支持CPU推理运行部署方案
linux·人工智能·ai·开源
c无序1 小时前
【Linux-传输层协议TCP】TCP协议段格式+确认应答+超时重传+连接管理机制(三次握手、四次挥手、理解TIME_WAIT + CLOSE_WAIT)
linux·网络·tcp/ip
Fanmeang1 小时前
OSPF-2 邻接建立关系
运维·网络·华为·抓包·ensp·ospf·邻居状态
卡卡东~2 小时前
JConsole 在 Linux 上的使用
linux·服务器
一代...2 小时前
【Linux】浅谈冯诺依曼和进程
linux·运维·服务器