1、安装软件

1
2
3
4
5
6
sudo apt-get update;
sudo apt-get upgrade;
sudo apt-get install language-pack-en ibus-pinyin cmake gvfs-bin curl wget build-essential git vim zsh openssh-server automake net-tools dkms nfs-common libnss3;
sudo apt install ack-grep tree httpie jq imagemagick exfat-utils;
sudo apt-get install gimp chromium-browser flameshot zeal remmina filezilla libcanberra-gtk-module;
sudo apt-get install libreoffice-l10n-zh-cn libreoffice-help-zh-cn;

2、安装vscode、virtualbox、vagrant

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
wget https://releases.hashicorp.com/vagrant/2.2.2/vagrant_2.2.2_x86_64.deb
wget https://download.virtualbox.org/virtualbox/5.2.22/virtualbox-5.2_5.2.22-126460~Ubuntu~bionic_amd64.deb
sudo dpkg -i virtualbox-5.2_5.2.22-126460_Ubuntu_bionic_amd64.deb
sudo apt --fix-broken install
sudo apt-get install libgconf-2-4;
sudo dpkg -i code_1.30.1-1545156774_amd64.deb 
sudo apt --fix-broken install;
sudo dpkg -i vagrant_2.2.2_x86_64.deb
sudo dpkg --list
sudo dpkg --remove vagrant
sudo dpkg -i vagrant_2.2.4_x86_64.deb

3、安装pip

1
2
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
sudo python get-pip.py

4、界面和中文输入法

1
2
3
4
#sudo apt install dconf-editor;
gsettings get org.gnome.desktop.wm.preferences button-layout
gsettings set org.gnome.desktop.wm.preferences button-layout 'close,minimize,maximize:'
gsettings set org.gnome.shell.extensions.dash-to-dock show-apps-at-top true

settings–>Region & Language–>Input Sources–>Manage Installed Language 。点击 + 添加 Chinese(Intelligent Pinyin)。

5、vagrant操作

1
2
3
4
5
vagrant ssh-config >ssh-config;
vagrant ssh;

vboxmanage list vms
vagrant package –-base newbox_default_1503366286622_12977 –-output ./CentOS7.box

6、笔记本合盖不休眠

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
sudo vim /etc/systemd/logind.conf
# 然后将其中的:
#HandleLidSwitch=suspend
# 改成:
HandleLidSwitch=ignore
# 然后重启服务:
sudo restart systemd-logind
# 或者
service systemd-logind restart
# 或者
sudo shutdown -r now

7、System Program Problem Detected

1
2
3
4
5
# 禁用Ubuntu的Apport内部错误报告程序
sudo vim /etc/default/apport
enabled=1 
改成 
enabled=0

8、删除dash 中无效的图标

1
2
3
/usr/share/applications
# 或者
~/.local/share/applications