给笔记本换了1T的固态,终于可以随便装双系统了

命令

  1. # 打开文件夹
  2. nautilus /usr/share/themes

必备软件

  • qv2ray
  • chrome

主题

可在 GNOME-LOOK 上下载各种桌面主题、Shell 主题、图标(icon)主题
安装桌面或者 shell 主题

  1. # 解压下载的主题文件
  2. tar -xvf FileName.tar //解压
  3. # 将解压后的主题文件拷贝到 /usr/share/themes
  4. sudo cp -r FileName /usr/share/themes

**

  1. sudo cp -r WhiteSur-dark /usr/share/themes/
  2. sudo cp -r WhiteSur-dark-alt /usr/share/themes/
  3. sudo cp -r WhiteSur-dark-solid /usr/share/themes/
  4. sudo cp -r WhiteSur-dark-solid-alt /usr/share/themes/
  5. sudo cp -r WhiteSur-light /usr/share/themes/
  6. sudo cp -r WhiteSur-light-alt /usr/share/themes/
  7. sudo cp -r WhiteSur-light-solid /usr/share/themes/
  8. sudo cp -r WhiteSur-light-solid-alt /usr/share/themes/
  9. sudo cp -r Mojave-CT-Night-Mode /usr/share/icons/
  10. sudo cp -r McMojave-cursors /usr/share/icons/
  11. sudo cp -r '/home/zj/下载/WhiteSur/WhiteSur/contents/images/whiteSur.png' /usr/share/backgrounds/


安装 icon 主题**

  1. # 解压下载的主题文件
  2. tar -xvf FileName.tar //解压
  3. # 将解压后的主题文件拷贝到 /usr/share/icons
  4. sudo cp -r FileName /usr/share/icons

之后打开 Tweeks 选择安装的主题即可

配置vim和 zsh

  1. # 配置vim 和 zsh
  2. sudo apt update
  3. wget 47.93.11.51:88/install_vim.sh
  4. bash install_vim.sh
  5. sudo apt install zsh
  6. # 将 zsh 设置为系统默认 shell
  7. sudo chsh -s /bin/zsh
  8. wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
  9. # 安装zsh-syntax-highlighting
  10. git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
  11. ##命令自动补全插件
  12. mkdir ~/.oh-my-zsh/plugins/incr
  13. wget http://mimosa-pudica.net/src/incr-0.2.zsh -O ~/.oh-my-zsh/plugins/incr/incr.plugin.zsh
  14. ##命令自动推荐,根据历史记录
  15. git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
  16. ##目录自动跳转插件
  17. sudo apt install autojump

使用命令 vim .zshrc 打开.zshrc文件,找到 plugins=() 这一行,将zsh-syntax-highlighting
加进去

  1. plugins=(git zsh-syntax-highlighting)

使用命令 vim .zshrc,打开后在最后插入以下内容:

  1. #设置终端颜色,提示符,及上一条指令返回码提示
  2. autoload -U colors && colors
  3. PROMPT="%{$fg[red]%}%n%{$reset_color%}@%{$fg[blue]%}%m %{$fg[yellow]%}%1~ %{$reset_color%}%# "
  4. RPROMPT="[%{$fg[yellow]%}%?%{$reset_color%}]"
  5. # Useful support for interacting with Terminal.app or other terminal programs
  6. [ -r "/etc/zshrc_$TERM_PROGRAM" ] && . "/etc/zshrc_$TERM_PROGRAM"
  7. source ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions/zsh-autosuggestions.plugin.zsh
  8. source /usr/share/autojump/autojump.sh
  9. source ~/.oh-my-zsh/plugins/incr/incr*.zsh

用VScode配置LaTeX

首先是快捷键设置

  1. [
  2. {
  3. "key": "ctrl+alt+v",
  4. "command": "-latex-workshop.view",
  5. "when": "!config.latex-workshop.bind.altKeymap.enabled && editorLangId =~ /latex|rsweave|jlweave/"
  6. },
  7. {
  8. "key": "ctrl+l alt+j",
  9. "command": "-latex-workshop.synctex",
  10. "when": "config.latex-workshop.bind.altKeymap.enabled && editorTextFocus && editorLangId == 'latex'"
  11. },
  12. {
  13. "key": "ctrl+m",
  14. "command": "editor.action.insertSnippet",
  15. "when": "editorTextFocus",
  16. "args": {
  17. "snippet": " $$TM_SELECTED_TEXT$ "
  18. }
  19. }
  20. ]

然后是snippets

  1. "Input a figure": {
  2. "prefix": "figure",
  3. "body": [
  4. "\\begin{figure}[htp]",
  5. "\t\\centering",
  6. "\t\\includegraphics[width=0.7linewidth]{fig/$1}",
  7. "\t\\caption{$2}",
  8. "\t\\label{fig:$3}",
  9. "\\end{figure}",
  10. "$0"
  11. ],
  12. "description": "Input a figure"
  13. },
  14. "three horizontal lines": {
  15. "prefix": "3linetable",
  16. "body": [
  17. "\\begin{table}[htbp]",
  18. "\t\\centering\n\t\\caption{$1}",
  19. "\t\\label{tab:$2}",
  20. "\t\\begin{tabular}{ccc}",
  21. "\t\t\\toprule",
  22. "\t\t姓名 & 学号 & 性别 \\\\\\\\ \\midrule",
  23. "\t\tSteve Jobs & 001 & Male \\\\\\\\",
  24. "\t\tBill Gates & 002 & Female \\\\\\\\ \\bottomrule",
  25. "\t\\end{tabular}",
  26. "\\end{table}\n"
  27. ]
  28. }

然后是插件 paste image 的配置:

  1. "pasteImage.defaultName": "f-H-m-s",
  2. "pasteImage.path": "${currentFileDir}/fig",
  3. "pasteImage.filePathConfirmInputBoxMode": "onlyName",
  4. "pasteImage.showFilePathConfirmInputBox": true,
  5. "pasteImage.insertPattern": "\\begin{figure}[htp]\n\t\\centering\n\t\\includegraphics[width=0.7\\linewidth]{fig/${imageFileName}}\n\t\\caption{${imageFileName}}\n\t\\label{fig:${imageFileName}}\n\\end{figure}\n"

参考

https://zhuanlan.zhihu.com/p/176977192
写给工程师的 Ubuntu 20.04 最佳配置指南 - 张磊的文章 - 知乎 https://zhuanlan.zhihu.com/p/139305626
https://zhuanlan.zhihu.com/p/56253982
如何美化让你的 Ubuntu 看起来更像MacOS - linux265的文章 - 知乎 https://zhuanlan.zhihu.com/p/259297658
教程:为你的linux桌面带来Mac OS Mojave的体验 - 路灯等3248人的文章 - 知乎 https://zhuanlan.zhihu.com/p/37852274
Ubuntu 20.04 桌面美化 - Eglinux的文章 - 知乎 https://zhuanlan.zhihu.com/p/176977192