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
相关推荐
chlk1231 小时前
Linux文件权限完全图解:读懂 ls -l 和 chmod 755 背后的秘密
linux·操作系统
舒一笑1 小时前
Ubuntu系统安装CodeX出现问题
linux·后端
改一下配置文件2 小时前
Ubuntu24.04安装NVIDIA驱动完整指南(含Secure Boot解决方案)
linux
碳基沙盒3 小时前
OpenClaw 多 Agent 配置实战指南
运维
深紫色的三北六号12 小时前
Linux 服务器磁盘扩容与目录迁移:rsync + bind mount 实现服务无感迁移(无需修改配置)
linux·扩容·服务迁移
SudosuBash16 小时前
[CS:APP 3e] 关于对 第 12 章 读/写者的一点思考和题解 (作业 12.19,12.20,12.21)
linux·并发·操作系统(os)
哈基咪怎么可能是AI1 天前
为什么我就想要「线性历史 + Signed Commits」GitHub 却把我当猴耍 🤬🎙️
linux·github
十日十行2 天前
Linux和window共享文件夹
linux
木心月转码ing2 天前
WSL+Cpp开发环境配置
linux
蝎子莱莱爱打怪3 天前
Centos7中一键安装K8s集群以及Rancher安装记录
运维·后端·kubernetes