深度操作系统 Deepin 20.9 安装配置

记录一下折腾 Deepin 20.9 的物理机的过程与相关的配置。

安装与配置

新手教学影片:

网络代理

新手教学文档: Ubuntu 22.04LTS 相关配置

在境内可以使用 gitclone 镜像站来加快 clone 的速度。

编辑器: VS Code

新手教学文档: 编辑器: Visual Studio Code [HackMD]

本人的一些注解: GNU/Linux 开发工具

这里列举一下本人配置的插件:

  • Even Better TOML
  • CodeLLDB 用于调试 Rust
  • Git History
  • Native Debug 用于调试 C/C++
  • rust-analyzer
  • Tokyo Night 挺好看的一个主题
  • Vim
  • VSCode Great Icons 文件图标主题
问题
rust5-analyzer 插件可能会因为新版本要求 glibc 2.29 而导致启动失败,请参考这个 issue 来解决。

终端和 Vim

新手教学文档: 終端機和 Vim 設定 [HackMD]

本人的一些注解: GNU/Linux 开发工具

 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
" Specify a directory for plugins (for Neovim: ~/.local/share/nvim/plugged)                          
call plug#begin('~/.vim/plugged')

Plug 'Shougo/neocomplcache'
Plug 'scrooloose/nerdtree'
map <F5> :NERDTreeToggle<CR>

call plug#end()

let g:neocomplcache_enable_at_startup = 1 
let g:neocomplcache_enable_smart_case = 1 
inoremap <expr><TAB> pumvisible()?"\<C-n>" : "\<TAB>"

syntax on
set number
set cursorline
colorscheme default
set bg=dark
set tabstop=4
set expandtab
set shiftwidth=4
set ai
set hlsearch
set smartindent
map <F4> : set nu!<BAR>set nonu?<CR>

" autocomplete dropdown list colorscheme
hi Pmenu ctermfg=0 ctermbg=7 
hi PmenuSel ctermfg=7 ctermbg=4

系统语言: Rust

安装教程:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# install rust
$ curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
# install nightly toolchain
$ rustup toolchain install nightly
# change to nightly toolchain
$ rustup default nightly
# list installed toolchain
$ rustup toolchain list
# update installed toolchain
$ rustup update

个人偏向于使用 nightly toolchain

tldr

The tldr-pages project is a collection of community-maintained help pages for command-line tools, that aims to be a simpler, more approachable complement to traditional man pages.

安装 tldr:

1
$ sudo apt install tldr

效果展示

Deepin Terminial Vim
Deepin DDE Desktop

FAQ

问题

重启后可能会出现,输入密码无法进入图形界面重新返回登录界面,这一循环状况。这个是 deepin 的默认 shell 是 dash 造成的,只需将默认的 shell 改为 bash 即可解决问题:

1
2
3
4
$ ls -l /bin/sh
lrwxrwxrwx 1 root root 9 xx月  xx xx:xx /bin/sh -> /bin/dash
$ sudo rm /bin/sh
$ sudo ln -s /bin/bash /bin/sh

如果你已经处于无限登录界面循环这一状况,可以通过 Ctrl + Alt + <F2> 进入 tty2 界面进行修改:

1
2
3
# 先查看问题日志,判断是不是 shell 导致的问题
$ cat .xsession-errors
# 如果是,则重复上面的操作即可
0%