qerter

qerter

get a shell of the running docker container (docker 1.3)

$ docker exec -it "id of running container" bash

Linux Action Show | Jupiter Broadcasting http://www.jupiterbroadcasting.com/tag/linux-action-show/


MaxMind - GeoIP2 City https://www.maxmind.com/en/geoip-demo

carl

使用 fig 管理 docker

啓動/停止 container

$ vi fig.yml
$ fig up
$ Ctrl+c or fig stop

刪除 container

$ fig rm

philipz

n2n - n2n for android https://play.google.com/store/apps/details?id=org.zhoubug.n2n_gui

yan

Systemd

傳統 init script 位置

$ ls /etc/init.d/*

systemd service 描述檔位置

$ ls /etc/systemd/system/*

令 systemd 重新載入設定檔,若有 service 描述檔,則會取代 init script

# systemctl daemon-reload

查看 service 資訊,可看到目前載入爲 service 描述檔

$ systemctl status crond
● cron.service - Regular background program processing daemon
   Loaded: loaded (/lib/systemd/system/cron.service; enabled)
   Active: active (running) since 五 2015-01-09 12:49:34 CST; 10h ago
     Docs: man:cron(8)
 Main PID: 536 (cron)
   CGroup: /system.slice/cron.service
           └─536 /usr/sbin/cron -f

Systemd 採用 System State 的方式,取代以往的 runlevel,當令一個 service 在開機後執行,則會在 /etc/systemd/system/multi-user.target.wants/ 下建立一個軟連結

$ systemctl [enable|disable] foo
$ ls /etc/systemd/system/multi-user.target.wants/

get current state

$ systemctl get-default

n2n - Peer-to-Peer VPN http://www.ntop.org/products/n2n/


使用 fig link docker container 後,會在 /etc/hosts 加入 link container 的資訊 (ex: 172.17.0.2 mysql)


don’t wrap command line output

$ some_command | less -S

avelino/awesome-go https://github.com/avelino/awesome-go


xterm 黑色背景

$ xterm -bg black -fg white

update-grub 的動作 /usr/sbin/update-grub2 -> /usr/sbin/update-grub -> /usr/sbin/grub-mkconfig -o /boot/grub/grub.cfg -> /etc/grub.d/* -> /usr/lib/os-probes/*