<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://wiki.pjq.me/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel xmlns:g="http://base.google.com/ns/1.0">
        <title>Welcome to Jianqing&#039;s Wiki - linux</title>
        <description></description>
        <link>https://wiki.pjq.me/</link>
        <lastBuildDate>Thu, 30 Apr 2026 05:57:19 +0000</lastBuildDate>
        <generator>FeedCreator 1.8</generator>
        <image>
            <url>https://wiki.pjq.me/lib/exe/fetch.php?media=wiki:dokuwiki.svg</url>
            <title>Welcome to Jianqing&#039;s Wiki</title>
            <link>https://wiki.pjq.me/</link>
        </image>
        <item>
            <title>Linux Account Manager</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:account-manager&amp;rev=1462424823&amp;do=diff</link>
            <description>Linux Account Manager

Use /bin/bash not /bin/sh



root:x:0:0:root:/root:/bin/bash
dep:x:1000:1000::/home/deploy:/bin/bash
eri:x:1001:1001::/home/eric:/bin/bash
sk:x:1002:1002::/home/sky:/bin/bash
angeli:x:1003:1003::/home/angelia:/bin/bash</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title>Issues when install Gentoo on Acer 4820G</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:acer-install-gentoo&amp;rev=1462424823&amp;do=diff</link>
            <description>Issues when install Gentoo on Acer 4820G

I don&#039;t have so much money to buy a Mac of Thinkpad.So I buy a powerful but cheaper laptop Acer 4820G.Sometimes I have a thought of anti-Mac,I don&#039;t have so much money to burning.

I think the suitable is the best,so I choose it.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title>AIDE</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:aide&amp;rev=1552152010&amp;do=diff</link>
            <description>AIDE

aide is the tool used track the system files is changed or not, especiall for detect the system is hacked.

Install
sudo apt-get install aide
Init

If only run the init
aide --init
It will log error
Couldn&#039;t open file /var/lib/aide/please-dont-call-aide-without-parameters/aide.db.new for writing</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 09 Mar 2019 17:20:10 +0000</pubDate>
        </item>
        <item>
            <title>Compile Android source code for Galaxy Nexus</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:android-source-compile-galaxy-nexus&amp;rev=1462424823&amp;do=diff</link>
            <description>Compile Android source code for Galaxy Nexus

Compile the Android JB 4.1,need 64 bit linux,so use VirtualBox to install Ubuntu 12.04.

Google Official build guide

	*  &lt;https://source.android.com/source/initializing.html&gt;
	*  &lt;https://developers.google.com/android/nexus/drivers#magurojro03c&gt;
	*  &lt;http://source.android.com/source/building-devices.html&gt;

jdk1.6:

&lt;http://download.oracle.com/otn-pub/java/jdk/6u31-b04/jdk-6u31-linux-x64.bin&gt;

Download it and move to /opt:
chmod +x jdk-6u31-linux-x64…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title>One command to add all vendor to 51-android.rules</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:android-udev-rules&amp;rev=1462424823&amp;do=diff</link>
            <description>One command to add all vendor to 51-android.rules

Refer to 
&lt;http://developer.android.com/tools/device.html&gt;
 cat vendor.txt |awk -F &quot; &quot; &#039;{print $2}&#039;|sed &#039;s/^/SUBSYSTEM==&quot;usb&quot;, ATTR{idVendor}==&quot;/g&#039;|sed &#039;s/$/&quot;, MODE=&quot;0666&quot;, GROUP=&quot;plugdev&quot;   /g&#039;&gt;/etc/udev/rules.d/51-android.rules
 


Acer	0502
ASUS	0b05
Dell	413c
Foxconn	0489
Fujitsu	04c5
FujitsuToshiba	04c5
Garmin-Asus	091e
Google	18d1
Hisense	109b
HTC	0bb4
Huawei	12d1
K-Touch	24e3
KTTech	2116
Kyocera	0482
Lenovo	17ef
LG	1004
Motorola	22b8
NEC	…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title>BBR</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:bbr&amp;rev=1515393644&amp;do=diff</link>
            <description>BBR

BBR is the optimization for the tcp, and it can increase the network speed significant. So it&#039;s the same as kcptun.

BBR on Raspberry Pi

Check the kernel version, the kernel is already 4.9+, so it already support bbr


pi@raspberrypi:~ $ uname -a
Linux raspberrypi 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU/Linux</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 08 Jan 2018 06:40:44 +0000</pubDate>
        </item>
        <item>
            <title>Brute Force SSH</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:bruteforcessh&amp;rev=1535692467&amp;do=diff</link>
            <description>Brute Force SSH

	*  &lt;https://zeldor.biz/2011/01/how-to-bruteforce-ssh/&gt;
	*  &lt;http://docs.paramiko.org/en/2.4/index.html&gt;
	*  &lt;https://github.com/pjq/bruteforcessh&gt;



wget http://zeldor.biz/other/bruteforce/passlist.txt
wget http://zeldor.biz/other/bruteforce/brutessh.zip
unzip brutessh.zip
cd brutessh
apt-get install python-crypto python-paramiko



Usage
python brutessh.py -h targethost -u user -d passwordict
python brutessh.py -h 10.1.100.4 -u root -d passlist.txt</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 31 Aug 2018 05:14:27 +0000</pubDate>
        </item>
        <item>
            <title>wget usage</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:command-wget&amp;rev=1462424823&amp;do=diff</link>
            <description>wget usage

Refer to:&lt;http://blog.chinaunix.net/uid-14735472-id-111049.html&gt;

wget --mirror

下载整站


方法：用--mirror参数

当你要下载一个完整站点并实现本地浏览的时候，
wget --mirror -p --convert-links -P ./LOCAL-DIR WEBSITE-URL

参数讲解：
--mirror：设置这个参数用来建立本地镜像
-p：下载所有html文件适合显示的元素
--convert-links：下载完成后，将文档链接都转换成本地的
-P ./LOCAL-DIR：保存所有的文件和目录到指定文件夹下…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title>Commands</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:commands&amp;rev=1550724481&amp;do=diff</link>
            <description>Commands

Code Merged top list
git log|grep -i &quot;Merge Pull Request&quot; -B 3|grep &quot;Date:.* 2018 *&quot; -B 1|grep &quot;Author&quot;|sort|uniq -c|sort -k1nr</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 21 Feb 2019 04:48:01 +0000</pubDate>
        </item>
        <item>
            <title>如何创建自己的overlay</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:create-gentoo-overlay&amp;rev=1462424823&amp;do=diff</link>
            <description>如何创建自己的overlay

Gentoo以其强大的portage管理系统著称，而ebuild是其中一个个细胞单元。一直对ebuild有种避而远之的态度，只对其些许概念，从来不曾深入研究过。而overlay也是，只会简单的使用layman来添加一个公开的overlay,目前有添加gentoo-china,gentoo-taiwan.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title>Docker</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:docker&amp;rev=1470886916&amp;do=diff</link>
            <description>Docker

	*  &lt;https://www.dockboard.org/&gt;
	*  Docker教程中文版本 &lt;https://code.csdn.net/u010702509/docker&gt; 
	*  &lt;https://docs.docker.com/installation&gt;

Docker commands



boot2docker ssh
boot2docker
docker images
docker search ubuntu
docker pull ubuntu:14.04
docker run -i -t ubuntu /bin/bash
docker ps 
docker ps -a
docker commit 3681929604f4 ubuntu:14.04basic
docker images
docker run -i -t 47b5e47eb55e /bin/bash</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 11 Aug 2016 03:41:56 +0000</pubDate>
        </item>
        <item>
            <title>Enable Mac OS X StealthMode</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:enable-mac-stealthmode&amp;rev=1541130012&amp;do=diff</link>
            <description>Enable Mac OS X StealthMode

Today I found I can&#039;t ping the localhost


ping 127.0.0.1
PING 127.0.0.1 (127.0.0.1): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
^C
--- 127.0.0.1 ping statistics ---
4 packets transmitted, 0 packets received, 100.0% packet loss</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 02 Nov 2018 03:40:12 +0000</pubDate>
        </item>
        <item>
            <title>fail2ban</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:fail2ban&amp;rev=1462424823&amp;do=diff</link>
            <description>fail2ban

&lt;https://www.digitalocean.com/community/tutorials/how-to-protect-ssh-with-fail2ban-on-ubuntu-14-04&gt;

Disable root ssh access

Disable root ssh access by editing /etc/ssh/sshd_config to contain:
PermitRootLogin no</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title>安装win7后修复grub2引导</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:fix-grub2&amp;rev=1462424823&amp;do=diff</link>
            <description>安装win7后修复grub2引导

本方法适用于，先安装了Linux(grub2引导),再安装win7的情况。参考：&lt;http://forum.ubuntu.org.cn/viewtopic.php?t=273994&gt;

今天我是先安装了Ubuntu 11.04,这个可是刚发布的最新版本，试用后大家一致感觉新的界面是适用于平板电脑的，图标都很大，和以前的操作习惯很多都不一样，还引入类似MAC的全局菜单。</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title>Google Fuchsia</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:fuchsia&amp;rev=1544676803&amp;do=diff</link>
            <description>Google Fuchsia

	*  &lt;https://fuchsia.googlesource.com/docs/+/HEAD/getting_started.md&gt;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 13 Dec 2018 04:53:23 +0000</pubDate>
        </item>
        <item>
            <title>Gentoo System Backup</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:gentoo-backup&amp;rev=1462424823&amp;do=diff</link>
            <description>Gentoo System Backup

I just want to backup my Gentoo System, like a stage-X, so I can restore it when the system is broken, just with one command like
tar xvf gentoo-stage-x.tgz
So I found a script in the Gentoo forum

	*   a great backup system for gentoo workstations:</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title>Install Gentoo on MacBookPro(MD318)</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:gentoo-mbp&amp;rev=1462424823&amp;do=diff</link>
            <description>Install Gentoo on MacBookPro(MD318)

Now I have installed the Gentoo on my MBP succesfully,I need to record some issues that I have solved.

lspci



localhost ~ # lspci
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09)
00:01.1 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port …</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title>Install Gentoo Prefix on MacBook Pro</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:gentoo-prefix&amp;rev=1462424823&amp;do=diff</link>
            <description>Install Gentoo Prefix on MacBook Pro

已经成功将Gentoo Prefix安装到MacBook Pro,将注意的地方记录如下

1.需要Xcode支持，之前需要安装好Xcode,同时在Xcode中把command line tools安装好
Xcode-&gt;preference-Downloads-&gt;Components-&gt;Command Line Tools</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title>Gentoo on MacBook Pro(MD318, 15inch, late 2011)</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:gentoo-upgrade-mbp&amp;rev=1462424823&amp;do=diff</link>
            <description>Gentoo on MacBook Pro(MD318, 15inch, late 2011)

Cheers, finally I made it, the Gentoo back to work on my MacBook Pro.

I have spent several days to make the Gentoo back, because previous it works, but after one update whatever, it can&#039;t start the X.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title>Install Gentoo 64bit on MacBook Pro(MD318,late 2011)</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:gentoo64-mbp&amp;rev=1462424823&amp;do=diff</link>
            <description>Install Gentoo 64bit on MacBook Pro(MD318,late 2011)

Convert iso to dmg  and create bootable usb device

Refer to:&lt;https://help.ubuntu.com/community/How%20to%20install%20Ubuntu%20on%20MacBook%20using%20USB%20Stick&gt;
hdiutil convert -format UDRW -o ubuntu-12.10-desktop-amd64+mac.img ubuntu-12.10-desktop-amd64+mac.iso 
sudo dd bs=1m if=ubuntu-12.10-desktop-amd64+mac.img.dmg of=/dev/disk2</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title>Config Gentoo Prefix locale</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:gentooprefix-locale&amp;rev=1462424823&amp;do=diff</link>
            <description>Config Gentoo Prefix locale

 vim etc/bash/bashrc 
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title>I2P</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:i2p&amp;rev=1462424823&amp;do=diff</link>
            <description>I2P

Download

&lt;http://www.i2p2.de/download.html&gt;

Install on Raspberry Pi

&lt;http://www.i2p2.de/debian.html&gt;

Another guide:
&lt;http://www.irongeek.com/i.php?page=security/raspberry-pi-i2p-svartkast&gt;

follow Instructions for Non-Linux / Non-x86:
wget http://ppa.launchpad.net/i2p-maintainers/i2p/ubuntu/pool/main/i/i2p/i2p-router_0.9.3+repack-1~precise1_all.deb
apt-get install libecj-java
apt-get install openjdk-6-jdk
dpkg -i i2p-router_0.9.3+repack-1~precise1_all.deb 
i2prouter-nowrapper</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title>iptables</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:iptables&amp;rev=1535706965&amp;do=diff</link>
            <description>iptables

BlockIP
iptables -A INPUT -s IPADDRESS -j DROP
Remove the iptables rule
iptables -D INPUT -s IPADDRESS -j DROP
Log the traffic
iptables -A INPUT -s IPADDRESS -j LOG --log-prefix &quot;Testing &quot;
Then you find the log in /var/log/kern.log</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 31 Aug 2018 09:16:05 +0000</pubDate>
        </item>
        <item>
            <title>Set JAVA_HOME on Mac</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:java-home-mac&amp;rev=1462424823&amp;do=diff</link>
            <description>Set JAVA_HOME on Mac
export JAVA_HOME=$(/usr/libexec/java_home -v 1.7)</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title>Jenkins</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:jenkins&amp;rev=1571293478&amp;do=diff</link>
            <description>Jenkins

Jenkins Docker

Start the Jenkins Docker with local port mapping 8082, then I can visit it via 127.0.0.1:8082
docker pull jenkins/jenkins:lts
docker run -d -v jenkins_home:/var/jenkins_home -p 8082:8080 -p 50000:50000 jenkins/jenkins:lts
Docker Commands</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 17 Oct 2019 06:24:38 +0000</pubDate>
        </item>
        <item>
            <title>kcptun</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:kcptun&amp;rev=1515126825&amp;do=diff</link>
            <description>kcptun

Found some interesting things

	*  kcptun: &lt;https://github.com/xtaci/kcptun&gt;
	*  kcp: &lt;https://github.com/skywind3000/kcp&gt;
	*  v2ray: &lt;https://www.v2ray.com/&gt;

kcptun usage with shadowsocks

start the server

On you VPS, you should already run your shadowsocks server with port &#039;838&#039;
alias kcptun_start=&#039;~/kcptun/server_linux_amd64 -t &quot;127.0.0.1:838&quot; -l &quot;:4000&quot; -mode fast2&#039;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 05 Jan 2018 04:33:45 +0000</pubDate>
        </item>
        <item>
            <title>locale</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:locale&amp;rev=1462424823&amp;do=diff</link>
            <description>locale

root@new-ef:~# cat /etc/default/locale 


# Created by cloud-init v. 0.7.5 on Tue, 10 Nov 2015 02:24:10 +0000
LC_ALL=&quot;en_US.UTF-8&quot;
LANG=&quot;en_US.UTF-8&quot;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title>Mac OS iTerm 2</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:macos-iterm2&amp;rev=1467617007&amp;do=diff</link>
            <description>Mac OS iTerm 2

iTerm 2

	*  &lt;https://laoshuterry.gitbooks.io/mac_os_setup_guide/content/4_ZshConfig.html&gt;
	*  &lt;https://zhuanlan.zhihu.com/p/19556676&gt;

iTerm 2 &amp; zsh



brew install zsh
chsh -s /bin/zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh

brew install autojump
[[ -s $(brew --prefix)/etc/profile.d/autojump.sh ]] &amp;&amp; . $(brew --prefix)/etc/profile.d/autojump.sh</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 04 Jul 2016 07:23:27 +0000</pubDate>
        </item>
        <item>
            <title>mitmproxy</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:mitmproxy&amp;rev=1470114746&amp;do=diff</link>
            <description>mitmproxy

	*  &lt;https://mitmproxy.org/&gt;
	*  &lt;http://docs.mitmproxy.org/en/stable/transparent/osx.html&gt;
	*  &lt;https://crypto.stanford.edu/ssl-mitm/&gt;
	*  &lt;http://liuxiang.logdown.com/posts/192057-use-mitmproxy-to-monitor-http-requests&gt;
	*  &lt;http://greenrobot.me/devpost/how-to-debug-http-and-https-traffic-on-android/&gt;
	*  &lt;http://greenrobot.me/devpost/how-to-debug-android-http-get-started/&gt;
brew install python
brew install mitmproxy
mitmproxy -p 8888mitmproxy -a IP_ADDR -p PORT —-no-upstream-cert
Th…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 02 Aug 2016 05:12:26 +0000</pubDate>
        </item>
        <item>
            <title>MiWifi with Shadowsocks</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:miwifi-shadowsocks&amp;rev=1552066527&amp;do=diff</link>
            <description>MiWifi with Shadowsocks

/etc/shadowsocks.json



{
  &quot;server&quot;:&quot;SERVER&quot;, //这里写服务器地址，最好用ip    
  &quot;server_port&quot;: 5555, //shadowsocks服务器的端口
  &quot;local_address&quot;:&quot;127.0.0.1&quot;,
  &quot;local_port&quot;:1081, //本地shadows绑定的端口, 
  &quot;password&quot;:&quot;PASSWORD&quot;,//shdowsocks 密码
  &quot;timeout&quot;:600, //不用改
  &quot;method&quot;:&quot;aes-256-cfb&quot;//加密算法, 根据服务商要求填写
}</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 08 Mar 2019 17:35:27 +0000</pubDate>
        </item>
        <item>
            <title>更改mpd目录时如何重新添加playlist</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:mpd-mpc&amp;rev=1462424823&amp;do=diff</link>
            <description>更改mpd目录时如何重新添加playlist

当修改music 目录，或者目录内容有变化时，需要重新添加playlist.

关掉mpd服务
pkill mpd
重新建立数据库
mpd --create-db
清空当前playlist
mpc clear

添加playlist
mpc listall|mpc add

其中前两个命令都是在root权限下操作。
后两个以普通用户权限操作就行了。</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title>MTP on Gentoo</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:mtp&amp;rev=1462424823&amp;do=diff</link>
            <description>MTP on Gentoo

Refer to &lt;http://forums.gentoo.org/viewtopic-t-926854-highlight-.html&gt;
emerge mtpfs
layman -a poly-c
layman -S
emerge sys-fs/jmtpfs
Note media-libs/libmtp should emerge with USE(-crypt).

Then use jmtpfs mount the device:
 jmtpfs -o allow_other  /media/galaxy_nexus/
Note should edit 
vim /etc/fuse.conf</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:03 +0000</pubDate>
        </item>
        <item>
            <title>mysql command</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:mysql-command&amp;rev=1462424824&amp;do=diff</link>
            <description>mysql command

List some mysql commands.

Refer:&lt;http://www.w3school.com.cn/sql/index.asp&gt;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:04 +0000</pubDate>
        </item>
        <item>
            <title>netcat</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:netcat&amp;rev=1462424824&amp;do=diff</link>
            <description>netcat

&lt;http://www.oschina.net/translate/linux-netcat-command&gt;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:04 +0000</pubDate>
        </item>
        <item>
            <title>netstat</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:netstat&amp;rev=1462424824&amp;do=diff</link>
            <description>netstat

Find the process used the specific port
netstat -anp|grep 8080


  
root@pjq:~# netstat -anpl|grep 8080
tcp        0      0 127.0.0.1:8080          0.0.0.0:*               LISTEN      26062/sshd: root
tcp6       0      0 ::1:8080                :::*                    LISTEN      26062/sshd: root
root@pjq:~# kill 26062</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:04 +0000</pubDate>
        </item>
        <item>
            <title>Network monitor tools</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:network-monitor&amp;rev=1575605956&amp;do=diff</link>
            <description>Network monitor tools

&lt;http://askubuntu.com/questions/257263/how-to-display-network-traffic-in-terminal&gt;

	*  bmon 
	*  slurm 
	*  tcptrack 
	*  iftop
	*  nethogs
	*  iptraf 
	*  speedometer: 
	*  ifstat: ifstat -zntS
	*  wavemon 
	*  vnstat
apt-get install bmon slurm tcptrack iftop nethogs iptraf speedometer ifstat wavemon vnstat
speedometer -l  -r eth0 -t eth0 -m $(( 1024 * 1024 * 3 / 2 ))</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 06 Dec 2019 04:19:16 +0000</pubDate>
        </item>
        <item>
            <title>Nginx Basic Auth</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:nginx-basic-auth&amp;rev=1571632241&amp;do=diff</link>
            <description>Nginx Basic Auth

Enable the basic auth in Nginx config

I just enable it for the path “/upload”, so add the location segment
```
location /upload {
	try_files $uri $uri/ /index.php$is_args$args;
	autoindex on;
              auth_basic &quot;nginx basic http auth&quot;;
              auth_basic_user_file conf/htpasswd;
}</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 21 Oct 2019 04:30:41 +0000</pubDate>
        </item>
        <item>
            <title>Nginx Config</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:nginx&amp;rev=1462424824&amp;do=diff</link>
            <description>Nginx Config

This page is used to record some notes when I config a VPS running with Nginx.

Create a new server block
cd /etc/nginx/
cd sites-available/
cp default team.pjq.me.conf
vim team.pjq.me.conf 
Then edit the config file
 listen 80;
 root /var/www/team/;
 server_name  team.pjq.me;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:04 +0000</pubDate>
        </item>
        <item>
            <title>Mac ntfs-3g</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:ntfs-3g&amp;rev=1539418682&amp;do=diff</link>
            <description>Mac ntfs-3g

How to enable the ntfs write in Mac.
brew install ntfs-3g
ln -s  /usr/local/Cellar/ntfs-3g/2017.3.23/bin/ntfs-3g /usr/local/bin/ntfs-3g
cd /Volumes
sudo ntfs-3g /dev/disk4s1 NESO
sudo ntfs-3g /dev/disk4s5 Untitled


Refer

	*  &lt;https://www.howtogeek.com/236055/how-to-write-to-ntfs-drives-on-a-mac/&gt;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 13 Oct 2018 08:18:02 +0000</pubDate>
        </item>
        <item>
            <title>Fix NTFS partition without Windows</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:ntfs-fix&amp;rev=1462424824&amp;do=diff</link>
            <description>Fix NTFS partition without Windows



emerge ntfs3g ntfsprogs testdisk
ln -s /usr/bin/ntfsfix /usr/sbin/fsck.ntfs
ln -s /usr/bin/ntfsfix /usr/sbin/fsck.ntfs-3g</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:04 +0000</pubDate>
        </item>
        <item>
            <title>2014 Top 10 OpenSource Projects</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:opensourceproject2014&amp;rev=1462424824&amp;do=diff</link>
            <description>2014 Top 10 OpenSource Projects

&lt;http://opensource.com/business/14/12/top-10-open-source-projects-2014&gt;

&lt;https://software.opensuse.org/download/package?project=isv:ownCloud:community&amp;package=owncloud&gt;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:04 +0000</pubDate>
        </item>
        <item>
            <title>Raspberry PI</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:raspberry&amp;rev=1658156238&amp;do=diff</link>
            <description>Raspberry PI

Download

Download:&lt;http://www.raspberrypi.org/downloads&gt;

&lt;https://vps.pjq.me/tools/raspberrry/&gt;

Raspberry HUB(Official Wiki)

&lt;http://elinux.org/R-Pi_Hub&gt;

RaspbianImages

&lt;http://www.raspbian.org/RaspbianImages&gt;

NFS

/etc/exports 
/mnt/sda5/ 10.0.0.1/24(ro,no_subtree_check,insecure)
/mnt/sda1/ 10.0.0.1/24(ro,no_subtree_check,insecure)

/etc/init.d/rpcbind restart
/etc/init.d/nfs-common restart
/etc/init.d/nfs-kernel-server restart

alias nfs_start=&#039;/etc/init.d/rpcbind restart …</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 18 Jul 2022 14:57:18 +0000</pubDate>
        </item>
        <item>
            <title>Install</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:refind&amp;rev=1658377535&amp;do=diff</link>
            <description>Install
sudo ./refind-install

refind conf
mkdir /Volumes/ESP
sudo mount -t msdos /dev/disk0s1 /Volumes/ESP
cd /Volumes/ESP/EFI/refind
vim refind.conf

Gentoo refind

&lt;https://wiki.gentoo.org/wiki/Refind&gt;
FILE /boot/EFI/gentoo/refind_linux.conf


&quot;Default&quot;	&quot;root=/dev/sda2 rootfstype=ext4 ro quiet&quot;
&quot;Console&quot;	&quot;root=/dev/sda2 rootfstype=ext4 ro quiet nox nogui&quot;
&quot;Emergency&quot;	&quot;root=/dev/sda2 rootfstype=ext4 ro 1&quot;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 21 Jul 2022 04:25:35 +0000</pubDate>
        </item>
        <item>
            <title>Remove Mutli-Blank lines</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:remove-multi-blank-lines&amp;rev=1513737284&amp;do=diff</link>
            <description>Remove Mutli-Blank lines

When we coding and can found there has some blank lines, so we need to remove them but just keep one blank line.

So here has some solutions

	*  cat -s
	*  sed &#039;N;/^\n$/D;P;D;&#039;
	*  for i in *; do FILE=$(cat -s “$i”); echo</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 20 Dec 2017 02:34:44 +0000</pubDate>
        </item>
        <item>
            <title>Copy files to another server with scp</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:scp&amp;rev=1462424824&amp;do=diff</link>
            <description>Copy files to another server with scp
 scp -P 2222 -r  knProxy/ root@vps.pjq.me:/var/www</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:04 +0000</pubDate>
        </item>
        <item>
            <title>Seafile</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:seafile&amp;rev=1571719638&amp;do=diff</link>
            <description>Seafile

Reference

	*  &lt;https://download.seafile.com/published/seafile-manual/deploy/https_with_nginx.md&gt;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 22 Oct 2019 04:47:18 +0000</pubDate>
        </item>
        <item>
            <title>Security Scan Tools</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:security-scan-tools&amp;rev=1552454868&amp;do=diff</link>
            <description>Security Scan Tools

lynis

Install
sudo apt-get install lynis

Scan
sudo lynis audit system
Check details

You can check the details from the scan result
lynis show details ${test_id}
logs

Logs will located at:

	*  /var/log/lynis.log

Report at:</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 13 Mar 2019 05:27:48 +0000</pubDate>
        </item>
        <item>
            <title>Security</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:security&amp;rev=1565948922&amp;do=diff</link>
            <description>Security

	*  &lt;https://www.freebuf.com/&gt;
	*  &lt;https://www.vulbox.com/cases&gt;
	*  内网攻防备忘录 &lt;https://www.freebuf.com/articles/network/210298.html&gt;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 16 Aug 2019 09:48:42 +0000</pubDate>
        </item>
        <item>
            <title>sed</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:sed&amp;rev=1540179077&amp;do=diff</link>
            <description>sed

Replace the \n with values

Refer

	*  &lt;https://blog.csdn.net/mfkjq/article/details/80377114&gt;

Use test command
gsed &quot;:a;N;s/\n/,/g;ta&quot;
Or
gsed &quot;:d;N;s/\n/,/g;td&quot;
It means it will jump to the tag :a or :d, if one time failed, then it will break.

Use branch command
gsed &quot;:a;N;s/\n/,/g;ba&quot;
Or
gsed &quot;:d;N;s/\n/,/g;bd&quot;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 22 Oct 2018 03:31:17 +0000</pubDate>
        </item>
        <item>
            <title>Shadowsocks to Http Proxy</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:shadowsocks-to-http&amp;rev=1515384842&amp;do=diff</link>
            <description>Shadowsocks to Http Proxy

Shadowsocks provide the socks5, so if we want to use http proxy, it need some convertion.

	*  &lt;https://github.com/shadowsocks/shadowsocks/wiki/Convert-Shadowsocks-into-an-HTTP-proxy&gt;

First run polipo with parent proxy set to Shadowsocks:


apt-get install polipo
service polipo stop
polipo socksParentProxy=localhost:1080</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 08 Jan 2018 04:14:02 +0000</pubDate>
        </item>
        <item>
            <title>Shadowsocks</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:shadowsocks&amp;rev=1462424824&amp;do=diff</link>
            <description>Shadowsocks

A secure socks5 proxy,
designed to protect your Internet traffic.

&lt;http://shadowsocks.org/en/index.html&gt;
pip install shadowsocks
vim /etc/shadowsocks.json
ssserver -c /etc/shadowsocks.json

Config



root@pjq:~# cat /etc/shadowsocks.json
{
    &quot;server&quot;:&quot;128.199.232.xxx&quot;,
    &quot;server_port&quot;:8388,
    &quot;local_address&quot;: &quot;127.0.0.1&quot;,
    &quot;local_port&quot;:1080,
    &quot;password&quot;:&quot;xxx&quot;,
    &quot;timeout&quot;:300,
    &quot;method&quot;:&quot;aes-256-cfb&quot;,
    &quot;fast_open&quot;: false,
    &quot;workers&quot;: 1
}</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:04 +0000</pubDate>
        </item>
        <item>
            <title>Linux Shell正则表达式</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:shell-re&amp;rev=1462424824&amp;do=diff</link>
            <description>Linux Shell正则表达式

参考:&lt;http://blog.csdn.net/FityWang/article/details/2156089&gt;



Shell正则表达式

一个正则表达式就是由普通字符（例如字符 a 到 z）以及特殊字符（称为元字符）组成的文字模式。该模式描述在查找文字主体时待匹配的一个或多个字符串。正则表达式作为一个模板，将某个字符模式与所搜索的字符串进行匹配。

/ 
将下一个字符标记为一个特殊字符、或一个原义字符、或一个 后向引用、或一个八进制转义符。例如，&#039;n&#039; 匹配字符 &quot;n&quot;。&#039;/n&#039; 匹配一个换行符。序列 &#039;//&#039; 匹配 &quot;/&quot; 而 &quot;/(&quot; 则匹配 &quot;(&quot;。

^ 
匹配输入字符串的开始位置。

$ 
匹配输入字符串的结束位置。

* 
匹配前面的子表达式零次或多次。例如，zo* 能匹配 &quot;z&quot; 以及 &quot;zoo&quot;。 * 等价于{0,}。

+ 
匹配前面的子表达式一次或多次。例如，&#039;zo+&#039; 能匹配 &quot;zo&quot; 以及 &quot;zoo&quot;，但不能匹配 &quot;z&quot;。+ 等价于 {1,}。

? 
匹配前面的子表达式零次或一次。例如，&quot;do(es)?&quot; 可以匹配…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:04 +0000</pubDate>
        </item>
        <item>
            <title>shellclash</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:shellclash&amp;rev=1635327606&amp;do=diff</link>
            <description>shellclash

	*  &lt;https://qust.me/post/ax3600_shellclash/&gt;
	*  &lt;https://juewuy.github.io/post/clash-for-miwifi-an-zhuang-ji-shi-yong-jiao-cheng/&gt;
	*  &lt;https://www.google.com/search?q=clash+%E5%B0%8F%E7%B1%B3+3600&amp;rlz=1C5GCEM_enUS946US946&amp;sxsrf=AOaemvLt__jga9FcdL4FW9wQ30OhKCriJg%3A1635327375428&amp;ei=jx15Ybe9Gcbl-wSclq7oCw&amp;ved=0ahUKEwj3wLaaperzAhXG8p4KHRyLC70Q4dUDCA4&amp;uact=5&amp;oq=clash+%E5%B0%8F%E7%B1%B3+3600&amp;gs_lcp=Cgdnd3Mtd2l6EAM6BwgAEEcQsAM6BAgjECc6BggAEAcQHkoECEEYAFD-KljNPGCzP2gBcAJ4AIABvAKIAfUOkgEF…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 27 Oct 2021 09:40:06 +0000</pubDate>
        </item>
        <item>
            <title></title>
            <link>https://wiki.pjq.me/doku.php?id=linux:slitaz&amp;rev=1462424824&amp;do=diff</link>
            <description>slitaz 是一个仅有30M的小型Linux发行版。

	* 中文主页：&lt;http://www.slitaz.org/cn/index.html&gt;
	* 中文手册：&lt;http://doc.slitaz.org/cn:handbook:start&gt;
	* 中文wiki首页：&lt;http://community.slitaz.org/cn/node/29&gt;
	* 如何制作自己的LiveCD:&lt;http://hi.baidu.com/slitazcn/blog/item/7233064cca7d873dafc3ab90.html&gt;
	* slitaz LiveUSB 制作教程:&lt;http://hi.baidu.com/slitazcn/blog/item/c888acef6c9d132c62d09f91.html&gt;
	* sllitaz 软件包:&lt;http://hi.baidu.com/slitazcn/blog/item/7d584ef85469db6f034f568e.html&gt;
	* 如何解压和创建rootfs
	* 如何在宿主主机chroot到slitza环境中去
	* 如何安装软件…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:04 +0000</pubDate>
        </item>
        <item>
            <title>Sonar</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:sonar&amp;rev=1531291333&amp;do=diff</link>
            <description>Sonar

&lt;https://www.sonarqube.org/&gt;

Docker

&lt;https://hub.docker.com/_/sonarqube/&gt;

How to start
docker run -it --name sonarqube -p 9000:9000 -p 9092:9092 sonarqube
docker run -d --name sonarqube -p 9000:9000 -p 9092:9092 sonarqube
Integrate with gradle project

Add to build.gradle


plugins {
  id &quot;org.sonarqube&quot; version &quot;2.6&quot;
}</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 11 Jul 2018 06:42:13 +0000</pubDate>
        </item>
        <item>
            <title>uniq -c</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:sort&amp;rev=1462424824&amp;do=diff</link>
            <description>uniq -c

-k1nr means sort by the column 1 and descending
-k2 means if k1 is the same value,then sort with column 2 by alphabetic
cat PHONEMODEL-7.txt |sort|uniq -c|sort -k1nr -k2</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:04 +0000</pubDate>
        </item>
        <item>
            <title>Split&amp;&amp;Concat file</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:splitfile&amp;rev=1462424824&amp;do=diff</link>
            <description>Split&amp;&amp;Concat file

For txt files, you can split a file by the dedicated lines:
split -l 300 large_file.txt new_file_prefix

For bin files, you can split a file by the dedicated size:
split -b 10m large_file.bin new_file_prefix

And the you can use cat to concat the small files:</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:04 +0000</pubDate>
        </item>
        <item>
            <title>Squid config</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:squid-config&amp;rev=1462424824&amp;do=diff</link>
            <description>Squid config

Squid is a proxy application running on Linux, I want to use it as forward proxy, so I can break the GFW.
root@pjq:/etc/squid3# grep -E -v &quot;^$|^#&quot; squid.conf


auth_param basic program /usr/lib/squid3/basic_ncsa_auth /etc/squid3/passwd
auth_param basic children 5
auth_param basic realm Login to access proxy server
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off
acl allowed_user proxy_auth REQUIRED
http_access allow allowed_user
via off
forwarded_for off
r…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:04 +0000</pubDate>
        </item>
        <item>
            <title>squid config</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:squid&amp;rev=1462424824&amp;do=diff</link>
            <description>squid config

Squid is a proxy application running on linux, I want to use it as a forward proxy, then I can fuck the GFW.
root@pjq:/etc/squid3# grep -E -v &quot;^$|^#&quot; squid.conf



auth_param basic program /usr/lib/squid3/basic_ncsa_auth /etc/squid3/passwd
auth_param basic children 5
auth_param basic realm Login to access proxy server
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off
acl allowed_user proxy_auth REQUIRED
http_access allow allowed_user
via off
forwarded_for o…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:04 +0000</pubDate>
        </item>
        <item>
            <title>ssh</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:ssh&amp;rev=1513315347&amp;do=diff</link>
            <description>ssh

&lt;http://www.aixchina.net/home/space.php?uid=73104&amp;do=blog&amp;id=30463&gt;

&lt;http://shenfeng.me/ssh-usage.html&gt;

Forward the local port 8080 to the remote server 8080,so you can visit the local server via the remote server.
ssh -R :8080:localhost:8080 -Nf root@vps.pjq.me -p 2222



ssh auto login

http://riny.net/2014/git-ssh-key/

ssh key generate
Apps-iMac:.ssh pengjianqing$ ssh-keygen -t rsa -C &quot;pengjianqing@gmail.com&quot;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 15 Dec 2017 05:22:27 +0000</pubDate>
        </item>
        <item>
            <title>tcpdump</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:tcpdump&amp;rev=1462424824&amp;do=diff</link>
            <description>tcpdump

Today I check my Gmail, and found a email from Digital Ocean, warned me that the server owned by me was attacking another server.

So I want to find out what the problem is, and the tools I used is

	*  tcpdump
	*  netstat
	*  wireshark



tcpdump -i eth0 -vvv -X   host   58.33.155.218
tcpdump -i eth0 -vvv -X not  host   58.33.155.218</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:04 +0000</pubDate>
        </item>
        <item>
            <title>Terminal Vim mode</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:terminal-vim-mode&amp;rev=1462424824&amp;do=diff</link>
            <description>Terminal Vim mode

With “set -o vim” in terminal, then you can use vim mode to move the cursor.
set -o vim
Then enjoy the quick cursor move.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:04 +0000</pubDate>
        </item>
        <item>
            <title>termtosvg</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:termrecord&amp;rev=1544539019&amp;do=diff</link>
            <description>termtosvg

One tool used to recorder the terminal and convert to svg.

	*  &lt;https://github.com/nbedos/termtosvg&gt;

Install
pip3 install --user termtosvg
Start/Exit
termtosvg
exit</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 11 Dec 2018 14:36:59 +0000</pubDate>
        </item>
        <item>
            <title>Set timezone on Ubuntu</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:timezone&amp;rev=1462424824&amp;do=diff</link>
            <description>Set timezone on Ubuntu

refer to &lt;http://askubuntu.com/questions/323131/setting-timezone-from-terminal&gt;
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 
cat /etc/timezone 
dpkg-reconfigure tzdata</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:04 +0000</pubDate>
        </item>
        <item>
            <title>Set locale to display Chinese in terminal</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:ubuntu-locale&amp;rev=1462424824&amp;do=diff</link>
            <description>Set locale to display Chinese in terminal
vim /etc/environment

LC_ALL=en_US.UTF-8
LANG=en_US.UTF-8</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 05 May 2016 05:07:04 +0000</pubDate>
        </item>
        <item>
            <title>v2ray</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:v2ray&amp;rev=1633185163&amp;do=diff</link>
            <description>v2ray

- &lt;https://www.v2ray.com/index.html&gt;

Install
wget https://install.direct/go.sh
sudo bash go.sh 

The v2ray command will be located at
/usr/bin/v2ray/v2ray


/usr/bin/v2ray/v2ray -h
Usage of /usr/bin/v2ray/v2ray:
  -config string
    	Config file for V2Ray.
  -format string
    	Format of input file. (default &quot;json&quot;)
  -test
    	Test config file only, without launching V2Ray server.
  -version
    	Show current version of V2Ray.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 02 Oct 2021 14:32:43 +0000</pubDate>
        </item>
        <item>
            <title>vagrant</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:vagrant&amp;rev=1655716794&amp;do=diff</link>
            <description>vagrant

A easy tool to setup the linux development environment and deploy on different platform.

Seems to create the special VirtualMachine. But it is cool, I like it.

&lt;http://www.vagrantup.com/&gt;

&lt;http://www.vagrantbox.es/&gt;

&lt;https://vagrantcloud.com/&gt;

Vagrant start...




mkdir ubuntu
cd ubuntu
vagrant init
vagrant box list
vim Vagrantfile
// set to hashicorp/precise64
vagrant up
vagrant ssh</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 20 Jun 2022 09:19:54 +0000</pubDate>
        </item>
        <item>
            <title>Vim Pretty JSON</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:vim-json&amp;rev=1512546586&amp;do=diff</link>
            <description>Vim Pretty JSON
:%!python -m json.tool
Or add to .vimrc
au FileType json setlocal equalprg=python\ -m\ json.tool
Refer

	*  &lt;https://pascalprecht.github.io/2014/07/10/pretty-print-json-in-vim/&gt;
	*  &lt;https://coderwall.com/p/tpfysw/pretty-format-json-in-vim&gt;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 06 Dec 2017 07:49:46 +0000</pubDate>
        </item>
        <item>
            <title>vim</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:vim&amp;rev=1471249507&amp;do=diff</link>
            <description>vim
:colorscheme desert
open/close folder
zf/zo

 :%!xxd
 :%!xxd -r
Split
:split filename
:vsplit filename
:new filename
:vnew filename
:only
:wall
move
Ctrl+w:h,j,k,l
Ctrl+w:H,J,K,L
Ctrl+w:w
select
v
ctrl+v select a block
Reference

vim-pathogen

&lt;https://github.com/tpope/vim-pathogen&gt;

vimrc</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 15 Aug 2016 08:25:07 +0000</pubDate>
        </item>
        <item>
            <title>Wordpress</title>
            <link>https://wiki.pjq.me/doku.php?id=linux:wordpress&amp;rev=1523940444&amp;do=diff</link>
            <description>Wordpress

Wordpress permission fix

When I upgrade the wordpress, it shows the error
This is usually due to inconsistent file permissions.: wp-admin/includes/update-core.php
So I reset all the permission for the files:
cd /var/www/wordpress
sudo find . -type f -exec chmod 664 {} +
sudo find . -type d -exec chmod 775 {} +</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 17 Apr 2018 04:47:24 +0000</pubDate>
        </item>
    </channel>
</rss>
