Deepin v20 系统配置优化
更换图标
说实话,Deepin 自带的图标主题真的都不怎么好看,于是我选择安装 MacOS 的图标主题,只是可惜不能应用于全部图标。
- 下载图标主题
- 解压,并移动到
/usr/share/icons下 - 给予权限
sudo chmod -R 755 <xxx> - 设置里更换图标主题
双系统时间同步
- 在 Deepin 中查看
timedatectl status会得到Local time、Universal time、RTC time等参数。 - 如果
RTC time和Local time相同,RTC 为准时时间,在 Linux 网络校准时间后,则在 win10 中打开运行窗口(快捷键
Win+R)输入
regedit启动注册表编辑器找到目录位置
1
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/TimeZoneInformation/1
删去命名为
RealTimeIsUniversal,值为 1 的项重启问题解决(注意只要 Linux 中时间正确,这样操作之后 win10 时间也正确)
- 如果
RTC time和Universal time相同,RTC 为准时时间 - 8 ,Local 时间比 RTC 时间多 8 个小时,则在 win10 中打开运行窗口(快捷键
Win+R)输入
regedit启动注册表编辑器找到目录位置
1
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/TimeZoneInformation/1
添加一项类型为
REG_DWORD的键值,命名为RealTimeIsUniversal,值为 1重启问题解决 注意只要 Linux 中 Local 时间正确,这样操作之后 win10 时间也正确
Firefox 安装
解压:
tar -xvf firefox-xx.x.x.tar.bz2移动到
opt文件夹下:sudo mv firefox /opt/firefox创建图标:
sudo touch /usr/share/applications/firefox.desktop
并写入以下内容:1
2
3
4
5
6
7
8
9
10
11
12
13
14[Desktop Entry]
Name=Firefox
Comment=Browse the World Wide Web
GenericName=Web Browser
X-GNOME-FullName=Firefox Web Browser
Exec=/opt/firefox/firefox %u
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=firefox
Categories=Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/vnd.mozilla.xul+xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;
StartupWMClass=Firefox
StartupNotify=true
设置命令行中打开 VS Code
- 查看
/usr/share/applications/com.visualstudio.code.desktop文件内容 - 找到执行路径,即
Exec参数内容,如/opt/apps/com.visualstudio.code/files/share/code/code - 执行
sudo ln -s /opt/apps/com.visualstudio.code/files/share/code/code /usr/local/bin/code
pip 安装
- Python 2:
sudo apt install python-pip - Python 3:
sudo apt install python3-venv python3-pip
Oh-My-Zsh Agnoster 颜色调整
Deepin 的终端其实设计的还挺不错,但是安装完 Oh-My-Zsh 后 Agnoster 主题中的蓝色实际显示成了深蓝色,非常难看需要修改一下:
编辑 ~/.oh-my-zsh/themes/agnoster.zsh-theme 文件,找到 blue 字段,修改成浅色系,如 075 。
窗口标题栏高度设置
Deepin 最丑的设计就是窗口标题栏了!说实话,其他如系统交互设计虽然同时支持 Windows 和 MacOS 两套逻辑,但是设计得丑,这我能忍,但是应用窗口的标题栏高度设计得这么大,看起来实在是丑到爆炸,尤其是使用 VS Code 时,不忍直视!
这个问题没有完美的解决方案,当前的方法是:
创建目录
1
2
3
4# 默认的亮色主题
mkdir -p ~/.local/share/deepin/themes/deepin/light
# 深色主题
mkdir -p ~/.local/share/deepin/themes/deepin/dark在不同主题下创建文件
1
2cd ~/.local/share/deepin/themes/deepin/light
vim titlebar.ini设定宽度
1
2
3
4
5[Active]
height=30
[Inactive]
height=30注销系统后即可生效
以上设置能解决大部分软件标题栏太丑的问题,但是少部分软件的标题栏在修改后会遇到无法适配缩放的问题。
Deepin v20 系统换源
Deepin 默认的官方源有时速度非常慢,这时需要换源。
Deepin v20 默认代号 apricot ,官方软件源链接分为三部分:
- 官方软件源商店,文件路径为
/etc/apt/sources.list.d/appstore.list - 官方软件源打印机驱动,文件路径
/etc/apt/sources.list.d/printer.list - 官方软件源仓库,文件路径
/etc/apt/sources.list
要修改的就是这个第三部分,官方软件源仓库:
编辑并替换 /etc/apt/sources.list 中的内容为
阿里源
1
deb [by-hash=force] https://mirrors.aliyun.com/deepin/ apricot main contrib non-free
清华源
1
deb [by-hash=force] https://mirrors.tuna.tsinghua.edu.cn/deepin/ apricot main contrib non-free