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
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 | 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
获取下载链接
1 2 | 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 |
作者:太一吾鱼水
文章未经说明均属原创,学习笔记可能有大段的引用,一般会注明参考文献。
欢迎大家留言交流,转载请注明出处。
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· .NET10 - 预览版1新功能体验(一)
2015-10-14 matlab将多条曲线绘制在一起