• {{article.mytitle}}
  • deepin操作记录

    1. deepin操作记录

    1.1. 返回主页

    主页地址 https://kz16.top/

    所有软件都使用英文版本

    1.2. win10下deepin双系统安装

    • 准备材料

    • 安装过程

      • 制作deepin的U盘启动
      • 插上U盘,进入bios界面,选择U盘启动,按照相关提示一步步点下去就可以了,没有任何难度,不会用很长时间

    体验效果可看下面这个视频
    https://www.bilibili.com/video/BV1uj411f791

    1.3. 常用操作

    • 关闭开机启动cd ~/.config/autostart 把不要开机启动的那个文件删除就OK了, 参考https://bbs.deepin.org/forum.php?mod=viewthread&tid=169824

    • 7z压缩, 安装sudo apt install p7zip-full
      创建压缩7z文件7za a -t7z -mx=9 test.7z test-dir

    • 查看内核信息
      uname -a

    • 查看硬件和系统版本信息
      screenfetch -s
      如果没有安装screenfetch可通过命令
      sudo apt install screenfetch 安装

    • 查看操作系信息以及版本lsb_release -a

    1.4. deepin相关工具安装记录

    1.4.1. 安装常用软件记录

    • 安装时选择语言为英文,所有软件只安装英文版本

    • 安装时选择语言为英文,所有软件只安装英文版本

    • 应用商店找输入法: iFLY Input Method,安装好了之后要用Fcitx设置一下

    • 远程连服务器:打开终端,点对话框右上角三横形状图标,再选Remote;远程传文件应用商店下载FileZilla

    • 聊天工具:QQ用应用商店中的Tim版,WeChat可用, 钉钉sudo apt install dingtalk

    • 会议:zoom直接在官网下

    • 解压和压缩可直接用自带的,很方便,

    • 视频编辑软件flowblade, https://github.com/jliljebl/flowblade

    • 办公软件自带wps,凑合用用

    • 文本编辑器notepadqq与Visual Studio Code直接在应用商店安装,其它文本编辑器例如Code::Blocks的安装sudo apt install codeblocks-contrib

    • 写英语论文神器: Artha,应用商店可下载

    • 文献管理zotero要官网下载,可以同步文献,很方便的,只有300M免费空间,得省着用

    • 公式扫描(收费),一个月免费用50次,可邀请好友获取月用上限

      sudo apt install snapd
      sudo snap install mathpix-snipping-tool
      
      
      

      运行snap run install mathpix-snipping-tool

    • 录屏软件用Kazam或者自带的Deepin Screen Recorder。比较好的一个是obs,直接去官网下载就好,别去商店下载。声音去噪参考了https://blog.csdn.net/weixin_37272286/article/details/81200494效果很好。具体做法是在/etc/pulse/default.pa文件后面添加代码

      ###Active Noise Removal
      .ifexists module-echo-cancel.so
      load-module module-echo-cancel aec_method=webrtc source_name=mic source_properties=device.description=MicHD
      set-default-source "mic"
      .endif
      
      

      然后重启,声音设置里Advance->Input->Microphone

    • 总之:商店找软件要看评论和下载量,多做对比

    1.4.2. 打印机和数位板

    • 我的惠普打印机2132直接可以直接连线使用
    • HUION数位板没找到相关驱动

    1.4.3. C++科学计算包

    • 安装g++, sudo apt install g++
    • 安装gfortran, sudo apt install gfortran
    • 需要重新下载sparselib++解压后,改文件名,输入make all没报错就OK了
    • 可选安装umfpack
      sudo apt-get install libsuitesparse-dev
      sudo apt-get install libsuitesparse-doc

    1.4.4. git相关安装

    • 安装git:sudo apt install git

    • 安装图形化工具:sudo apt install git-gui

    • 启动图形化工具:git gui

    • 配置账号

      git config --global user.name  xxxx  
      git config --global user.email xxxxx
      ssh-keygen -t rsa  // 三次回车,生成公钥
      cat ~/.ssh/id_rsa.pub //选中并复制里面的内容
      
      
      
    • 连接github
      github-> Accounting settings图标-> SSH key-> Add SSH key-> 填写SSH key的名称,将~/.ssh/id_rsa.pub文件中内容粘帖-> add key

    • 上传提交,启动图形界面git gui,按钮一个个点下去即可

    1.4.5. node.js相关安装

    • sudo apt install node
    • 查看版本node -v以及npm -v
    • 安装electron
      sudo npm install electron -g --unsafe-perm
    • 安装yarn
      sudo npm install yarn -g
    • 安装electron-builder
      sudo npm install electron-builder -g
      yarn add electron-builder --dev

    1.4.6. java相关安装

    • 先从java官网下载linux包 ,解压安装即可,

    • 环境变量配置:在~/.bashrc文件的最后一行添加代码

      PATH=$PATH:/usr/lib/jvm/jdk-14/bin/
      export PATH=$PATH:/home/用户名/.local/bin
      
      

      最后命令行输入source ~/.bashrc

    1.4.7. python相关安装

    deepin15.11 系统自带python3.5,终端输入python3可查看具体版本号

    1.4.7.1. 切换版本

    不太建议用这个,因为可能有些程序基于python2,这样修改容易出BUG

    • 终端输入
      sudo vi ~/.bashrc

    • 按i进入编写模式,最后一行加入代码
      alias python=‘python3‘

    • Esc退出编写模式,Shift + z +z保存退出

    • 更新配置
      source ~/.bashrc

    1.4.7.2. 软件包的安装

    • 安装pip
      sudo apt install python3-pip

    • 安装科学计算包

      python3 -m pip install numpy
      python3 -m pip install sympy
      python3 -m pip install scipy
      python3 -m pip install matplotlib==3.0.1
      
      
    • mayavi绘制三维图显示有点不正常,在win下是正常的

    1.5. 常用到的在线工具

    一些工具用得不多,实在没必要安装,或者它本身就基于浏览器,因此可以选择在线工具

    1.6. ssh远程连接相关

    1.6.1. 查看服务器ip

    • 查看公网ip

      sudo apt install curl
      curl ifconfig.me
      
      
    • 查看内网ip
      ifconfig
      会出现一大串的字符,inet后面的地址就是内网地址

    1.6.2. ping测试

    ping ip地址 -c 4
    
    

    上面的命令用于linux系统,后面的-c 4表示次数为4

    1.6.3. ssh安装

    查看服务器是否安装ssh
    命令行输入ssh
    如果已经出现错误结果,说还没安装,否则需要输入命令安装
    sudo apt install openssh-server
    查看ssh的状态
    service ssh statussudo ps -e |grep ssh
    开启、关闭和重启ssh的命令分别为

    service ssh start
    service ssh stop
    service ssh restart
    
    

    开机自动启动
    sudo systemctl enable ssh

    禁止开机启动
    sudo systemctl disable ssh

    查看ssh开机启动状态
    sudo chkconfig | grep ssh

    1.7. latex的安装

    1.7.1. 安装

    • 安装texlive,需要网络好,安装时间长,需要的空间大约6G
      sudo apt install texlive-full
      中途如果出现网络问题,Ctrl +C中断掉,然后重新输入安装命令 sudo apt install texlive-full,前面下载好的文件可以不用继续下载

    • 安装 texstudio,别去商店,要去官网
      http://texstudio.sourceforge.net/

      个人经验感觉latex在deepin下,比win表现效果要好很多

    1.7.2. latex 模板

    建议用xelatex编译,设置顺序依次为
    options->configure->bulid->Default Complier
    latex 论文模板https://github.com/mohuangrui/ucasthesis
    latex 常用模板,显示中文并且有书签,比较实用,
    建议文件名或文件夹的名字用英文,
    建议文件名或文件夹的名字用英文,

    \documentclass{ctexart}
    %\documentclass{article}
    
    \usepackage{xeCJK} %中文字体
    \usepackage{tabularx}
    \usepackage{graphicx}
    \usepackage{algorithm} %format of the algorithm 
    \usepackage{algorithmic} %format of the algorithm 
    \usepackage{multirow} %multirow for format oftable 
    \usepackage{amsmath} 
    \usepackage{xcolor}
    \usepackage{amssymb,version,fancybox,mathrsfs,multirow}
    \usepackage[bookmarksnumbered, bookmarksopen, 
    colorlinks, citecolor=blue, 
    linkcolor=blue, unicode]{hyperref}
    \usepackage{geometry}
    \geometry{a4paper,left=3cm,right=3cm,top=2cm,bottom=2cm}
    \makeatletter\@addtoreset{equation}{section}\makeatother
    %\catcode`\@=11 \theoremstyle{plain}
    \renewcommand{\theequation}{\thesection.\arabic{equation}}
    \makeatletter
    \@addtoreset{figure}{section}
    \renewcommand\thefigure{\thesection.\@arabic\c@figure}
    \newcommand{\comm}[1]{\marginpar{%
    		\vskip-\baselineskip %raise the marginpar a bit
    		\raggedright\footnotesize
    		\itshape\hrule\smallskip#1\par\smallskip\hrule}}
    %\renewcommand{\theequation}{\thesection.\arabic{equation}}
    \renewcommand{\theequation}{\thesection.\arabic{equation}}
    \newtheorem{lemma}{引理}[section]
    \newtheorem{theorem}{定理}[section]
    \newtheorem{corollary}{推论}[section]
    \newtheorem{proposition}{性质}[section]
    \newtheorem{definition}{定义}[section]
    \newtheorem{remark}{}[section]
    \newtheorem{example}{}[section]
    \newtheorem{proof}{证明}[section]
    \newcommand{\bs}[1]{\boldsymbol{#1}}
    \def \ri {{\rm i}}
    \def \ds {{\Delta s}}
    \renewcommand{\arraystretch}{1.5}
    \makeatletter
    \@addtoreset{figure}{section}
    \renewcommand\thefigure{\thesection.\@arabic\c@figure}
    
    \title{总标题}
    \author{Bingzhen Zhou}
    \begin{document}
    \maketitle
    \tableofcontents
    \newpage
    \section{大标题}
    
    n hello, \LaTeX! 你好这是一个很好的测试
    n hello, \LaTeX! 你好这是一个很好的测试
    n hello, \LaTeX! 你好这是一个很好的测试
    
    \subsection{小标题$\beta$}
    公式测试
    \begin{equation}\label{11}
    x + \theta = \beta
    \end{equation}
    上面的公式\eqref{11}
    
    \section{大标题}
    
    n hello, \LaTeX! 你好这是一个很好的测试
    n hello, \LaTeX! 你好这是一个很好的测试
    n hello, \LaTeX! 你好这是一个很好的测试
    
    \subsection{小标题}
    公式测试
    \begin{equation}\label{22}
    x + \theta = \beta
    \end{equation}
    上面的公式\eqref{22}
    
    \end{document}
    
    

    1.8. Vscode写LaTex与Markdown

    1.8.1. 插件

    File --> Preference --> Extensions

    • Markdown参考终极教程

    • English support for LT

    • LaTeX Workshop

    • Markdown All in One

    • Markdown PDF

    • Markdown Preview Enhanced

    • Markdown Preview Mermaid Support

    • Markdown TOC

    • Spell Right

      • 下载语言包
      • 创建文件 Linux: $HOME/.config/Code/Dictionaries/
      • ln -s /usr/share/hunspell ~/.config/Code/Dictionaries

    1.8.2. 配置

    File --> Preference --> Settings --> Opening Settings

    LaTex的配置参考https://tex.stackexchange.com/questions/462365/how-to-use-latex-on-vs-code

    该配置文件它会自动运行bibtex, 为了保证参考文献不出现[?], 需要多运行两次, 保存就可以运行, 快捷键Ctrl+S, 不建议自动保存, 推荐没事就手动保存, 保证写代码和文档的Hits不断

    {
        "extensions.ignoreRecommendations": true,
        // "editor.fontSize": 17,
        "workbench.activityBar.visible": false,
        // "workbench.startupEditor": "newUntitledFile",
        // "window.zoomLevel": 1,
        "editor.wordWrap": "on",
        "editor.cursorBlinking": "solid",
        "editor.wordWrapColumn": 80,
        "editor.wrappingIndent": "same",
    
    	"workbench.colorCustomizations": {
    	// 设置光标颜色
    	"editorCursor.foreground": "#FF0000",},
    
        "spellright.latexSpellParameters": [
          "author",
          "title",
          "date",
          "chapter",
          "section\\*?",
          "subsection\\*?",
          "subsubsection\\*?",
          "part",
          "paragraph",
          "subparagraph",
          "text(rm|sf|tt|md|bf|up|it|sl|sc|normal)",
          "underline",
          "emph",
          "item",
          "footnote(text)?",
          "caption(of)?",
          "multicolumn",
          "href",
          "hyperref",
          "begin\\{frame\\}"
      ],
    
        "telemetry.enableCrashReporter": false,
        "telemetry.enableTelemetry": false,
        "latex-workshop.showContextMenu":true, //右键菜单 
        "latex-workshop.intellisense.package.enabled": true, //根据加载的包,自动完成命令或包 
    
        "latex-workshop.latex.recipes": [
      {
        "name": "xelatex -> bibtex",
        "tools": [
            "xelatex",
            "bibtex"
        ]
      }
      ],
      "latex-workshop.latex.tools": [{
      "name": "latexmk",
      "command": "latexmk",
      "args": [
        "-synctex=1",
        "-interaction=nonstopmode",
        "-file-line-error",
        "-pdf",
        "%DOC%"
      ]
      }, {
      "name": "xelatex",
      "command": "xelatex",
      "args": [
        "-synctex=1",
        "-interaction=nonstopmode",
        "-file-line-error",
        "%DOC%"
      ]
      }, {
      "name": "pdflatex",
      "command": "pdflatex",
      "args": [
        "-synctex=1",
        "-interaction=nonstopmode",
        "-file-line-error",
        "%DOC%"
      ]
      }, {
      "name": "bibtex",
      "command": "bibtex",
      "args": [
        "%DOCFILE%"
      ]
      }],
      "latex-workshop.view.pdf.viewer": "tab",
      "latex-workshop.latex.clean.fileTypes": [
      "*.aux",
      "*.bbl",
      "*.blg",
      "*.idx",
      "*.ind",
      "*.lof",
      "*.lot",
      "*.out",
      "*.toc",
      "*.acn",
      "*.acr",
      "*.alg",
      "*.glg",
      "*.glo",
      "*.gls",
      "*.ist",
      "*.fls",
      "*.log",
      "*.fdb_latexmk"
      ],
      "editor.minimap.enabled": false,
      "breadcrumbs.enabled": false,
      "spellright.language": [
        "English (American)"
      ],
      "spellright.documentTypes": [],
      "window.zoomLevel": 1,
      "diffEditor.ignoreTrimWhitespace": true,
      }
    
    

    1.9. 返回主页

    主页地址 https://kz16.top/


    欢迎非商业转载,转载请指明来源,
    本文来源 https://kz16.top/deepin