Ubuntu 使用笔记

Table of Contents

1 查看版本

sudo apt install lsb-core
lsb_realease -a

2 更新软件


sudo apt install -y aptitude build-essential automake autoconf libtool cmake
sudo apt upgrade

3 aria2

sudo add-apt-repository ppa:t-tujikawa/ppa
sudo apt update
sudo apt install -y aria2

4 Baidu 网盘1

5 Chromium

5.1 安装

sudo apt install -y chromium-browser

6 emacs25

sudo add-apt-repository ppa:kelleyk/emacs
sudo apt update
sudo apt install -y emacs25

7 Fcitx2

8 Foxit Reader

9 git

sudo apt install -y git

git config --global user.name liushangliang
git config --global user.email liushangliang@xunlei.com

ssh-keygen -t rsa -b 4096 -C "liushangliang@xunlei.com"
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa

10 okular

sudo apt-get install -y  okular

11 proxychains

export PROXYCHAINS_CONF_FILE=$HOME/gitlab/software-settings/proxychains/proxychains.conf

12 Rime

12.1 ibus-rime 中州韵3

sudo apt install -y ibus-rime

13 Shadowsocks

14 SmartGIT

sudo add-apt-repository ppa:eugenesan/ppa
sudo apt update
sudo apt install -y smartgit

15 SMPlayer

sudo add-apt-repository ppa:rvm/smplayer
sudo apt update
sudo apt install -y smplayer smplayer-themes smplayer-skins

16 sublime

wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
sudo apt-get update
sudo apt-get install -y sublime-text

17 Uget

sudo add-apt-repository ppa:plushuang-tw/uget-stable
sudo apt update
sudo apt install -y uget

18 VirtualBox

sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib" > /etc/apt/sources.list.d/virtualbox.list'
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
sudo apt update
sudo apt install dkms
sudo apt install -y virtualbox-5.1

18.1 problem

18.1.1 secure boot

  • Create signing keys
    openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -days 36500 -subj "/CN=vbox_sign_key/"
  • Register the keys to Secure Boot
    sudo mokutil --import MOK.der
  • Supply a password for later use after reboot
  • Reboot and follow instructions to Enroll MOK (Machine Owner Key). Here's a sample with pictures. The system will reboot one more time. After the reboot, you may also need to sudo modprobe vboxdrv to load the module.
  • Sign the module
    sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vboxdrv)

    此处使用 vbox_sign.sh 批量给 module 添加签名。 注意不要再次执行/sbin/vboxconfig

19 搭建 VPN

20 搭建 VPS

21 有道词典


Author: 刘尚亮

Created: 2017-08-30 三 16:06

Emacs 25.2.2 (Org mode 8.2.10)