ubuntu18重装笔记

再次重装了系统,为方便以后再次重装,,,因此将主要步骤记录下来。

1. 更新源

sudo gedit /etc/apt/sources.list

# 阿里源

deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
# 中科大源
deb https://mirrors.ustc.edu.cn/ubuntu/ focal main restricted
deb https://mirrors.ustc.edu.cn/ubuntu/ focal-updates main restricted
deb https://mirrors.ustc.edu.cn/ubuntu/ focal universe
deb https://mirrors.ustc.edu.cn/ubuntu/ focal-updates universe
deb https://mirrors.ustc.edu.cn/ubuntu/ focal multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ focal-updates multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu focal-security main restricted
deb http://security.ubuntu.com/ubuntu focal-security universe
deb http://security.ubuntu.com/ubuntu focal-security multiverse

进行更新

sudo apt update
sudo apt upgrade

2. 安装git及配置

sudo apt install git

配置github免密传输

ssh-keygen -t rsa
cd ~/.ssh; cat id_rsa.pub;

将输出信息复制到github设置的SSH and GPG keys一栏,添加
ubuntu18重装笔记_第1张图片

git config --global user.email "your email"
git config --global user.name "your name"

2. 安装vim

sudo apt install vim

使用vim一键配置

wget -qO- https://raw.github.com/ma6174/vim/master/setup.sh | sh -x


3. 安装google

到google官网下载安装包,进入文件夹

sudo dpkg -i ***.deb

网易云、vscode、virtualbox、wps等同理

4. 安装s

sudo apt install s-qt5
sudo vim /etc/s.json

格式为

{
"server":"ip地址",
"server_port":端口号,
"local_port":1080,
"password":"密码",
"timeout":600,
"method":"加密方式"
}

修改网络代理设置
ubuntu18重装笔记_第2张图片

为便于使用,编写脚本

vim .s.sh

文件内容为:

#!/bin/sh

sudo sslocal -c /etc/s.json

使用时直接运行脚本即可。

5. 安装搜狗输入法

sudo apt install fcitx

官网下载对应的deb包,进入文件夹

sudo dpkg -i ***.deb

image

image

image

image

进入到Add input method界面,将下面的Only Show Current Language 取消掉后,在搜索栏搜索搜狗拼音,选中之后进行添加。

image

添加成功后,将搜狗拼音移到第一位。

参考:https://blog.csdn.net/lupengCSDN/article/details/80279177

6. 安装oh-my-zsh

  • 先安装zsh
sudo apt install zsh
  • 把默认shell改为zsh
chsh -s /bin/zsh

或按照这样修改终端配置
ubuntu18重装笔记_第3张图片

  • 安装oh-my-zsh
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

7. 取消显示桌面图标

安装tweak-tool

sudo apt install gnome-tweak-tool

打开后,在桌面一栏,将show icons取消

8. 安装gcc、g++

sudo apt install gcc
sudo apt install g++

若有依赖问题,一般可使用sudo apt install -f解决。
Ps: -f--fix-broken的缩写,并非强制执行。

你可能感兴趣的:(other)