安装软件

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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-get install netcat nmap
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;
# whereis nping
# whereis ncat
# whereis nmap
# whereis netcat
# whereis nc
# 安装vscode、virtualbox、vagrant
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
# 安装pip
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
sudo python get-pip.py

界面和中文输入法

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)。

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

笔记本合盖不休眠

 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

System Program Problem Detected

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

删除dash 中无效的图标

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

升级内核

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
wget --no-check-certificate https://raw.githubusercontent.com/teddysun/across/master/bbr.sh && chmod +x bbr.sh && ./bbr.sh
# curl -fsSL -k -obbr.sh https://raw.githubusercontent.com/teddysun/across/master/bbr.sh && chmod +x bbr.sh && ./bbr.sh

# https://kernel.ubuntu.com/~kernel-ppa/mainline/
# https://kernel.ubuntu.com/~kernel-ppa/mainline/

# https://github.com/teddysun/across

# https://teddysun.com/489.html


https://packages.ubuntu.com/bionic/amd64/libssl1.1/download

# wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.19/linux-headers-4.19.0-041900_4.19.0-041900.201810221809_all.deb
# wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.19/linux-headers-4.19.0-041900-generic_4.19.0-041900.201810221809_amd64.deb
# wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.19/linux-image-unsigned-4.19.0-041900-generic_4.19.0-041900.201810221809_amd64.deb
# wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.19/linux-modules-4.19.0-041900-generic_4.19.0-041900.201810221809_amd64.deb


# wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v4.20-rc7/linux-headers-4.20.0-042000rc7_4.20.0-042000rc7.201812161930_all.deb
# wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v4.20-rc7/linux-headers-4.20.0-042000rc7-generic_4.20.0-042000rc7.201812161930_amd64.deb
# wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v4.20-rc7/linux-image-unsigned-4.20.0-042000rc7-generic_4.20.0-042000rc7.201812161930_amd64.deb
# wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v4.20-rc7/linux-modules-4.20.0-042000rc7-generic_4.20.0-042000rc7.201812161930_amd64.deb

wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v4.19.69/linux-headers-4.19.69-041969_4.19.69-041969.201908290733_all.deb
wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v4.19.69/linux-headers-4.19.69-041969-generic_4.19.69-041969.201908290733_amd64.deb
wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v4.19.69/linux-image-unsigned-4.19.69-041969-generic_4.19.69-041969.201908290733_amd64.deb
wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v4.19.69/linux-modules-4.19.69-041969-generic_4.19.69-041969.201908290733_amd64.deb

suod dpkg -i *.deb
sudo update-grub
sudo reboot;
# dpkg -l | grep linux-image
dpkg -l | grep linux-modules
dpkg -l | grep libssl
cat /etc/sysctl.conf |grep ipv4

参考