2

Elementary os 重装小记

 2 years ago
source link: http://i.lckiss.com/?p=7758
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

之前的虚拟机用途仅为测试,相关配置做得不太合适,重新调整了下,因为目前 Elementary 6 还没那么的稳定,暂不考虑,为方便后续重装,记录下大概步骤。

GPT 磁盘格式,头部 300M EFI,给 /home 单独 100G 或者更多,根目录 / 分 35 ~ 40g 即可,再分 4g 给到 swap。

其他安装没啥,非要说就是因为网络问题,尽量离线安装,这也导致目前 E 6 装不上,当然如果有路由级的代理那另当别论~

安装完进行源替换

源是一定要换的,因为网络情况,1m 都需要下半天。

直接移步:https://mirrors.ustc.edu.cn/help/ubuntu.html

官方的 launchpad 源文件与 source.list 是分离的,所以可以直接对原有 source.list 进行替换。

sudo mv /etc/apt/sources.list /etc/apt/sources.list.bk
sudo nano /etc/apt/sources.list
# 默认注释了源码仓库,如有需要可自行取消注释
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
# deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse

deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
# deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse

deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
# deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse

deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
# deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse

默认那个写了一堆,实际上也就上面几个,大多是重复的。

鼠标滚轮脚本配置

重新装发现也还是慢,搬一下,之前写过:Elementary OS(Ubuntu) 系统鼠标滚轮速度调整

sudo apt install imwheel
nano ~/.imwheelrc

填充内容:

".*"
None,      Up,   Button4, 3
None,      Down, Button5, 3
Control_L, Up,   Control_L|Button4
Control_L, Down, Control_L|Button5
Shift_L,   Up,   Shift_L|Button4
Shift_L,   Down, Shift_L|Button5

将命令 imwheel kill 加入到设置中开机自启即可

安装部分开发环境

主要是 Git Zsh ,装完再 装 ohmyzsh / p10k,配置好 auto-suggestion 搭建一个基础的 zsh 环境。

完成后就可以装一些常用软件了,比如 docker、搜狗、谷歌、火狐、IDEA、Android studio 、VSCode

部分直接去下载 deb 进行安装,然后执行 -f 修复相关依赖:

sudo apt install -f

安装日常维护软件

主要是一些辅助相关的工具:

AppEditer:启动器图标编辑,在 elementary os 6 上不适用。

Eddy:取代 dpkg -i 进行 deb 安装的图形工具。

Fondo:勉强算个壁纸。

MeldDiff:文件对比,beyondcompare 替代。

Monitor:资源监视器。

Gnome磁盘:分区啥的偶尔用用。

以上可以从 elementary os 的商店里直接安装,需要捐赠的也可以将价钱改为 0 再安装。

Utools:搜索一下就知道了,官网下载即可。

一般来说开发环境没必要全部备份,就备份一个 home 就行,主要是排除缓存,

sudo tar -cpzvf /home/lckiss/Develop/backup/EOS5_2022_1_12_buckup.tgz \
--exclude='/home/lckiss/Develop' \
--exclude='/home/lckiss/.android' \
--exclude='/home/lckiss/.cache' \
--exclude='/home/lckiss/.gradle' \
--exclude='/home/lckiss/.config/Code/Cache*' \
--exclude='/home/lckiss/.config/Code/logs' \
--exclude='*/GPUCache' \
/home/lckiss

可以排除的还有很多,比如 Chrome 的缓存还可以清一清,VS Code 除了插件以外的基本上不用保留,需求可以满足就不费心了,等哪天升到 elementary 6 了,还是得再细调,备份仅做个参考。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK