Linux使用记录

Y430 F12 select boot order

Install Ubuntu, select third party drivers.

select tsinghua source

apt-get update

apt-get upgrade

wire-less driver.

1.安装git

yhexie@Y430P:~$ add-apt-repository ppa:git-core/ppa
错误: 必须使用 root 身份运行
yhexie@Y430P:~$ sudo passwd
[sudo] yhexie 的密码: 
输入新的 UNIX 密码: 
重新输入新的 UNIX 密码: 
passwd:已成功更新密码
yhexie@Y430P:~$ su
密码: 
root@Y430P:/home/yhexie# add-apt-repository ppa:git-core/ppa

 The most current stable version of Git for Ubuntu.

For release candidates, go to https://launchpad.net/~git-core/+archive/candidate .
 更多信息: https://launchpad.net/~git-core/+archive/ubuntu/ppa
按 [ENTER] 继续或 Ctrl-c 取消安装。
命中:1 http://cn.archive.ubuntu.com/ubuntu bionic InRelease                    
获取:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]   
获取:3 http://cn.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]  
获取:4 http://ppa.launchpad.net/git-core/ppa/ubuntu bionic InRelease [20.8 kB] 
获取:5 http://cn.archive.ubuntu.com/ubuntu bionic-backports InRelease [83.3 kB]
获取:6 http://security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [55.3 kB]
获取:7 http://cn.archive.ubuntu.com/ubuntu bionic-updates/main amd64 DEP-11 Metadata [297 kB]
获取:8 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [61.0 kB]
获取:9 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 DEP-11 Metadata [2,468 B]
获取:10 http://ppa.launchpad.net/git-core/ppa/ubuntu bionic/main i386 Packages [4,236 B]
获取:11 http://cn.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 DEP-11 Metadata [302 kB]
获取:12 http://cn.archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 DEP-11 Metadata [2,468 B]
获取:13 http://cn.archive.ubuntu.com/ubuntu bionic-backports/main amd64 DEP-11 Metadata [8,108 B]
获取:14 http://cn.archive.ubuntu.com/ubuntu bionic-backports/universe amd64 DEP-11 Metadata [10.1 kB]
获取:15 http://ppa.launchpad.net/git-core/ppa/ubuntu bionic/main amd64 Packages [4,236 B]
获取:16 http://ppa.launchpad.net/git-core/ppa/ubuntu bionic/main Translation-en [2,252 B]
已下载 1,031 kB,耗时 4秒 (263 kB/s)         
正在读取软件包列表... 完成
root@Y430P:/home/yhexie# apt update; apt install git
命中:1 http://security.ubuntu.com/ubuntu bionic-security InRelease
命中:2 http://cn.archive.ubuntu.com/ubuntu bionic InRelease            
命中:3 http://ppa.launchpad.net/git-core/ppa/ubuntu bionic InRelease   
命中:4 http://cn.archive.ubuntu.com/ubuntu bionic-updates InRelease
命中:5 http://cn.archive.ubuntu.com/ubuntu bionic-backports InRelease
正在读取软件包列表... 完成   
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
所有软件包均为最新。
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
将会同时安装下列软件:
  git-man liberror-perl libpcre2-8-0
建议安装:
  git-daemon-run | git-daemon-sysvinit git-doc git-email git-gui gitk gitweb
  git-cvs git-mediawiki git-svn
下列【新】软件包将被安装:
  git git-man liberror-perl libpcre2-8-0
升级了 0 个软件包,新安装了 4 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
需要下载 9,346 kB 的归档。
解压缩后会消耗 47.7 MB 的额外空间。
您希望继续执行吗? [Y/n] Y
获取:1 http://cn.archive.ubuntu.com/ubuntu bionic/universe amd64 libpcre2-8-0 amd64 10.31-2 [179 kB]
获取:2 http://ppa.launchpad.net/git-core/ppa/ubuntu bionic/main amd64 git-man all 1:2.38.0-0ppa1~ubuntu18.04.1 [2,062 kB]
获取:3 http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 liberror-perl all 0.17025-1 [22.8 kB]
获取:4 http://ppa.launchpad.net/git-core/ppa/ubuntu bionic/main amd64 git amd64 1:2.38.0-0ppa1~ubuntu18.04.1 [7,082 kB]
已下载 9,346 kB,耗时 23秒 (406 kB/s)                                          
正在选中未选择的软件包 libpcre2-8-0:amd64。
(正在读取数据库 ... 系统当前共安装有 173854 个文件和目录。)
正准备解包 .../libpcre2-8-0_10.31-2_amd64.deb  ...
正在解包 libpcre2-8-0:amd64 (10.31-2) ...
正在选中未选择的软件包 liberror-perl。
正准备解包 .../liberror-perl_0.17025-1_all.deb  ...
正在解包 liberror-perl (0.17025-1) ...
正在选中未选择的软件包 git-man。
正准备解包 .../git-man_1%3a2.38.0-0ppa1~ubuntu18.04.1_all.deb  ...
正在解包 git-man (1:2.38.0-0ppa1~ubuntu18.04.1) ...
正在选中未选择的软件包 git。
正准备解包 .../git_1%3a2.38.0-0ppa1~ubuntu18.04.1_amd64.deb  ...
正在解包 git (1:2.38.0-0ppa1~ubuntu18.04.1) ...
正在设置 git-man (1:2.38.0-0ppa1~ubuntu18.04.1) ...
正在设置 liberror-perl (0.17025-1) ...
正在设置 libpcre2-8-0:amd64 (10.31-2) ...
正在设置 git (1:2.38.0-0ppa1~ubuntu18.04.1) ...
正在处理用于 man-db (2.8.3-2ubuntu0.1) 的触发器 ...
正在处理用于 libc-bin (2.27-3ubuntu1.6) 的触发器 ...

 2.python

默认情况下,Linux会自带安装Python

sudo apt update
sudo apt -y upgrade
yhexie@Y430P:~$ python3 -V
Python 3.6.9
sudo apt install -y python3-pip

安装CUDA

版本信息

CUDA版本下载页面:

 https://developer.nvidia.com/cuda-toolkit-archive

 获取下载链接

wget https://developer.download.nvidia.com/compute/cuda/11.6.2/local_installers/cuda_11.6.2_510.47.03_linux.run
sudo sh cuda_11.6.2_510.47.03_linux.run

  

posted @ 2022-10-14 10:58  太一吾鱼水  阅读(71)  评论(0编辑  收藏  举报