Linux新系统装机一键配置

最近经常帮人装双系统,每次都要搞很多配置,搜很多博客很麻烦,所以写一个随笔做个总结

在desktop系统采用minimum安装完后

修改系统时间

timedatectl set-local-rtc 1

然后卸载snap为可选项。

修改apt源

图形化修改,在software&updates,选择阿里源

安装一点工具

sudo apt install build-essential

源码安装git

来自https://zhuanlan.zhihu.com/p/638407228

sudo apt-get remove git
wget "https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.9.5.tar.xz"
tar -xvf git-2.9.5.tar.xz
sudo apt-get update
sudo apt-get install curl jq -y
sudo apt-get install build-essential autoconf dh-autoreconf -y
sudo apt-get install libcurl4-openssl-dev tcl-dev gettext asciidoc libexpat1-dev libz-dev -y
make configure
./configure --prefix=/usr --with-openssl
make -j12
sudo make install
wget "https://github.com/git-lfs/git-lfs/releases/download/v3.3.0/git-lfs-linux-amd64-v3.3.0.tar.gz"
tar -xvf git-lfs-linux-amd64-v3.3.0.tar.gz
sudo bash ./install.sh

nvcc路径

从官网下载cuda toolkit之后

在~/.bashrc里添加

export PATH=/usr/local/cuda/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
export CUDA_HOME=/usr/local/cuda

然后 source ~/.bashrc

即可使用nvcc

posted @ 2024-04-03 19:05  千陌  阅读(9)  评论(0编辑  收藏  举报