Ubuntu 问题小记

1. W: GPG error: http://extras.ubuntu.com trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 16126D3A3E5C1192 

1 apt-key adv --keyserver keyserver.ubuntu.com --recv-keys <KEY>

2. Ubuntu run chrome as root user

1 apt-get isntall hexedit
2 
3 hexedit /opt/google/chrome/chrome
4 tab
5 ctr + s  -> replace geteuid with getppid
6 ctr +x

3.Ubuntu 14.04 how to install flash player for chromimum

1 sudo add-apt-repository ppa:jonathonf/pepperflashplugin-nonfree
2 sudo apt update
3 sudo apt install pepperflashplugin-nonfree browser-plugin-freshplayer-pepperflash
4 
5 
6 sudo gedit /etc/chromium-browser/default  (Add the following line at the end on a new line:   . /usr/lib/pepflashplugin-installer/pepflashplayer.sh)

4.Ubuntu shadowsocks

 1 apt-get install python-gevent python-pip
 2 
 3 pip install shadowsocks
 4 
 5 # ss.json
 6 {
 7     "server":"xxx.xxx.xxx.xxx",
 8     "server_port":8388,
 9     "local_address":"127.0.0.1",
10     "local_port":1080,
11     "password":"aaa",
12     "timeout":600,
13     "method":"aes-256-cfb",
14     "fast_open":false
15 }
16 
17 sslocal -c ss.json -d start

5.  How to install lxml on Ubuntu

     https://stackoverflow.com/questions/6504810/how-to-install-lxml-on-ubuntu

6. diff

 diff -ruN file.new file.old > patch.log patch file.old patch.log 

原文地址:https://www.cnblogs.com/gaozhengwei/p/7097474.html