Skip to content

Latest commit

 

History

History
executable file
·
109 lines (76 loc) · 5.25 KB

ubuntu20_setup_notes.md

File metadata and controls

executable file
·
109 lines (76 loc) · 5.25 KB

Ubuntu20.04重装系统后的软件安装指南

如何解决Ubuntu20.04与Windows系统时间不同步

  • timedatectl set-local-rtc true

在“Software & Updates”中,修改软件源为科大源,更新

system monitor

  • sudo add-apt-repository ppa:fossfreedom/indicator-sysmonitor
  • sudo apt update
  • sudo apt install indicator-sysmonitor
  • 启动,右击设置"Run on startup",添加network

显卡驱动

在“Software & Updates”的additional drivers安装即可,使用tested版本。安装后可能需要重启

  • 解决关机慢、有光标闪烁问题,参考。似乎是因为英伟达显卡驱动引起的

中文输入法

按照sougou for linux的官方教程安装即可。如果系统找不到搜狗输入法,需要在“Input Method”中添加。

科学上网

  • 使用.deb文件安装qv2ray,官网。并设置开机自动重启、自动连接;开机自动重启可能失效,此时需要手动添加到startup application中
  • 从github下载v2ray core到qv2ray的默认路径,官网。并通过检查。
  • 添加自己的翻墙服务器
  • 有时候会出现无法翻墙的情况(outbound traffic), 大多数是qv2ray版本不对,目前测试成功的版本是2.6.3

Google Chrome

  • 翻墙后很容易安装

更换Terminal

终端采用zsh和oh-my-zsh,美观且功能强大!!!ZSH, also called the Z shell

  • 首先,安装zsh:

sudo apt install zsh

  • 将默认终端由bash换成zsh

chsh -s /bin/zsh #注意:不要使用sudo

  • 安装oh-my-zsh 项目来帮我们配置 zsh,采用wget安装:
cd ~/Downloads
wget https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh
chmod +x install.sh
./install.sh
  • 安装语法高亮插件和自动补全插件
git clone https://gitee.com/lxgyChen/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

git clone https://gitee.com/pocmon/zsh-autosuggestions.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

再将~/.zshrc中的plugins=(git)改为plugins=(git zsh-syntax-highlighting zsh-autosuggestions), 最后运行source ~/.zshrc

  • 修改透明度为10%
  • 分屏工具teminator, sudo apt install terminator;在preference->profiles->general中,设置不显示titlebar;unfocused terminal font brightness设置成80%.

设置git

参考廖雪峰的网站

日常工具

  • Eigen

    • sudo apt install libeigen3-dev;
    • 查看Eigen库的版本,gedit /usr/include/eigen3/Eigen/src/Core/util/Macros.h
    • 头文件位置:/usr/include/eigen3
  • Sophus

    • git clone http://github.com/strasdat/Sophus , 用cmake安装

    • find_package(fmt)报警告; git clone https://github.com/fmtlib/fmt.git, 使用cmake安装即可。fmt是Ubuntu20.04才有的,注意使用,否则会报错。

    • Pangolin, git clone https://github.com/stevenlovegrove/Pangolin.git, 使用cmake安装即可。

    • Sophus头文件的位置/usr/local/include/sophus

  • Cere

    • 安装依赖:sudo apt install liblapack-dev libsuitesparse-dev libcxsparse3 libgflags-dev libgoogle-glog-dev libgtest-dev
    • git clone https://github.com/ceres-solver/ceres-solver.git,使用cmake安装即可
    • 头文件位置:/usr/local/include/ceres; 库文件/usr/local/lib/libceres.a
  • g2o

    • 安装依赖: sudo apt install qt5-qmake qt5-default libqglviewer-dev-qt5 libsuitesparse-dev libcxsparse3 libcholmod3
    • git clone https://github.com/RainerKuemmerle/g2o.git, 使用cmake安装即可
    • 头文件位置:/usr/local/include/g2o/; 库文件在/usr/local/lib
  • OpenCV3

    • 使用源码安装,网址。使用cmake安装,使用版本3.4.15
    • 头文件位置:/usr/local/include/opencv2
    • 查看opencv版本 pkg-config --modversion opencv