2014年4月8日星期二

CRL and OCSP

Revocation list - Wikipedia, the free encyclopedia
http://en.wikipedia.org/wiki/Revocation_list


Online Certificate Status Protocol - Wikipedia, the free encyclopedia
http://en.wikipedia.org/wiki/Online_Certificate_Status_Protocol

What is OCSP (Online Certificate Status Protocol)? - Definition from WhatIs.com
http://searchsecurity.techtarget.com/definition/OCSP

PUBLIC KEY INFRASTRUCTURE CERTIFICATE REVOCATION LIST VERSUS ONLINE CERTIFICATE STATUS PROTOCOL
http://www.cisco.com/c/dam/en/us/products/collateral/ios-nx-os-software/public-key-infrastructure-pki/product_data_sheet0900aecd80313df4.pdf

How Certificate Revocation Works
http://technet.microsoft.com/en-us/library/ee619754%28v=ws.10%29.aspx

Revisiting SDIO


Latest Simplified Specifications - SD Association
https://www.sdcard.org/downloads/pls/simplified_specs/

SD Specifications, Part E1, SDIO Simplified Specification, Version 2.00, February 8, 2007
https://www.sdcard.org/developers/overview/sdio/sdio_spec/Simplified_SDIO_Card_Spec.pdf

SD Specifications, Part 1, Physical Layer Simplified Specification, Version 4.10, January 22, 2013
https://www.sdcard.org/downloads/pls/simplified_specs/part1_410.pdf

Secure Digital - Wikipedia, the free encyclopedia
http://en.wikipedia.org/wiki/Secure_Digital

Secure Digital - Wikipedia, the free encyclopedia
http://en.wikipedia.org/wiki/Secure_Digital#SDIO

2014年4月6日星期日

Revisting OCF

Open Cryptographic Framework for Linux | Free Security & Utilities software downloads at SourceForge.net
http://sourceforge.net/projects/ocf-linux/?source=navbar

The Design of the OpenBSD Cryptographic Framework
http://www.openbsd.org/papers/ocf.pdf

Netkey + Openswan + OCF && H/W acceleratorsdrivers == kernel crash/panic - ReadList.com
http://readlist.com/lists/openswan.org/users/2/12666.html

OCF Hardware crypto acceleration - Swan
https://supo.libreswan.org/wiki/OCF_Hardware_crypto_acceleration

Understanding Cryptographic Performance
http://www.embeddeddeveloper.com/news_letter/files/CRYPTOWP_Rev2.pdf

2014年4月2日星期三

Openswan vs strongswan


Openswan vs strongSwan | Computing | Pariah Zero
http://www.pariahzero.net/Blog/files/e7d5abf84a96640d5cd70dd0dfb3d200-71.html

Using a Linux L2TP/IPsec VPN server
http://www.jacco2.dds.nl/networking/openswan-l2tp.html

Openswan - Wikipedia, the free encyclopedia
http://en.wikipedia.org/wiki/Openswan
Openswan has been forked to Libreswan in 2012.

Libreswan - Wikipedia, the free encyclopedia
http://en.wikipedia.org/wiki/Libreswan

2014年3月27日星期四

MS-DOS 原始碼:髒話笑話滿天飛


崩潰的 MS-DOS 原始碼:髒話笑話滿天飛 | TechNews 科技新報
http://technews.tw/2014/03/27/microsoft-early-code-contains-hidden-jokes/

彩蛋 (視覺) - 维基百科,自由的百科全书
http://zh.wikipedia.org/wiki/%E5%BD%A9%E8%9B%8B_%28%E8%A6%96%E8%A6%BA%29

2014年3月10日星期一

Network Indicator dissapeared

sudo apt-get -f install --reinstall indicator-network
sudo apt-get install network-manager

Ubuntu isc-dhcp-client status

Lease information: /var/lib/dhcp/dhclient.leases

2014年2月23日星期日

Waldorf school in California

Google "waldorf school in california"

Waldorf Schools | California | K12 Academics
http://www.k12academics.com/national-directories/waldorf-school/California#.UwkoSNt4ib4

Waldorf of the Peninsula | A RENAISSANCE EDUCATION… in the Silicon Valley
http://waldorfpeninsula.org/

Google "public waldorf school in california"

Charter school - Wikipedia, the free encyclopedia
http://en.wikipedia.org/wiki/Charter_school

Find a School | Alliance for Public Waldorf Education
http://www.allianceforpublicwaldorfeducation.org/find-a-school/

特許學校(Charter Schools)不是公辦民營,而是公費補助、民辦民營 - 思考者的網誌:成就仁德、智慧、正義、與公理的社會 - udn部落格
http://blog.udn.com/ubhuang/4941622

美國特許學校(Charter school)的美麗與哀愁 @ 閱讀與生活筆記 :: 隨意窩 Xuite日誌
http://blog.xuite.net/kc6191/study/29320861-%E7%BE%8E%E5%9C%8B%E7%89%B9%E8%A8%B1%E5%AD%B8%E6%A0%A1%28Charter+school%29%E7%9A%84%E7%BE%8E%E9%BA%97%E8%88%87%E5%93%80%E6%84%81

2014年2月11日星期二

Install Adobe Flash Player

Download Adobe flash player

Adobe - Install Adobe Flash Player
get.adobe.com/flashplayer/

Then do the following:

rm flash -p
mkdir flash -p
tar xf install_flash_player_11_linux.x86_64.tar.gz  -C flash/
sudo cp -v libflashplayer.so /usr/lib/firefox-addons/plugins/
sudo cp usr/* /usr/ -a
Restart Firefox.

In Firefox, type about:plugins in the Location bar to confirm that the Adobe Flash Player is loaded.

3TB USB HD is showing up as 801GB

64-bit Ubuntu 13.10

I have 2 eSense USB to IDE/SATA adaptor, and I thought they do support 3T HD, for I used it to connect to PC/Windows and my movie player, and both works fine.

I want to use it to access a 3T HD used to store data in Linux on a 64-bit Ubuntu 13.10. But it cannot get the size correctly.

With eSense USB ;to IDE & SATA Adaptor 07-ESJ985

usb 2-1: new high-speed USB device number 8 using xhci_hcd
usb 2-1: New USB device found, idVendor=152d, idProduct=2338
usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=5
usb 2-1: Product: USB to ATA/ATAPI Bridge
usb 2-1: Manufacturer: JMicron
usb 2-1: SerialNumber: 222271F14582

usb-storage 2-1:1.0: USB Mass Storage device detected
scsi9 : usb-storage 2-1:1.0
scsi 9:0:0:0: Direct-Access     ST3000DM 001-1CH166            PQ: 0 ANSI: 2 CCS
sd 9:0:0:0: Attached scsi generic sg1 type 0
sd 9:0:0:0: [sdb] 1565565872 512-byte logical blocks: (801 GB/746 GiB)
sd 9:0:0:0: [sdb] Write Protect is off
sd 9:0:0:0: [sdb] Mode Sense: 00 38 00 00
sd 9:0:0:0: [sdb] Asking for cache data failed
sd 9:0:0:0: [sdb] Assuming drive cache: write through
sd 9:0:0:0: [sdb] Asking for cache data failed
sd 9:0:0:0: [sdb] Assuming drive cache: write through
 sdb:
sd 9:0:0:0: [sdb] Asking for cache data failed
sd 9:0:0:0: [sdb] Assuming drive cache: write through
sd 9:0:0:0: [sdb] Attached SCSI disk
My Win8 still can identify the 3T HD with the eSense adaptor, but partition not identified.

After some googling, the following is the one seems most likely to my case:

Gentoo Forums :: View topic - 3TB USB HD is showing up as 801GB
http://forums.gentoo.org/viewtopic-p-6653133.html

Same behavior with 32-bit Ubuntu 12.04, with CONFIG_LBDAF enabled. So I don't think CONFIG_LBDAF is the root cause.
 
Finally I decided to buy a new adaptor that do claim 3TB support. And it just works!!!

DigiFusion USB3.0 To IDE & SATA (U3I-692) Support 4TB wih 5Gbps(?)
usb 3-2: new SuperSpeed USB device number 3 using xhci_hcd
usb 3-2: New USB device found, idVendor=067b, idProduct=2773
usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 3-2: Product: ATAPI-6 Bridge Controller
usb 3-2: Manufacturer: Prolific Technology Inc.
usb 3-2: SerialNumber: 0123456789000000005

usb 3-2: Set SEL for device-initiated U1 failed.
usb 3-2: Set SEL for device-initiated U2 failed.
usb-storage 3-2:1.0: USB Mass Storage device detected
scsi8 : usb-storage 3-2:1.0
usb 3-2: Set SEL for device-initiated U1 failed.
usb 3-2: Set SEL for device-initiated U2 failed.
scsi 8:0:0:0: Direct-Access     ST3000DM 001-1CH166       CC43 PQ: 0 ANSI: 0
sd 8:0:0:0: Attached scsi generic sg1 type 0
sd 8:0:0:0: [sdb] Very big device. Trying to use READ CAPACITY(16).
sd 8:0:0:0: [sdb] 5860533168 512-byte logical blocks: (3.00 TB/2.72 TiB)
sd 8:0:0:0: [sdb] Write Protect is off
sd 8:0:0:0: [sdb] Mode Sense: 03 00 00 00
sd 8:0:0:0: [sdb] No Caching mode page found
sd 8:0:0:0: [sdb] Assuming drive cache: write through
sd 8:0:0:0: [sdb] Very big device. Trying to use READ CAPACITY(16).
sd 8:0:0:0: [sdb] No Caching mode page found
sd 8:0:0:0: [sdb] Assuming drive cache: write through
GPT:Primary header thinks Alt. header is not at the end of the disk.
GPT:1565565871 != 5860533167
GPT:Alternate GPT header not at the end of the disk.
GPT:1565565871 != 5860533167
GPT: Use GNU Parted to correct GPT errors.
 sdb: sdb1
sd 8:0:0:0: [sdb] Very big device. Trying to use READ CAPACITY(16).
sd 8:0:0:0: [sdb] No Caching mode page found
sd 8:0:0:0: [sdb] Assuming drive cache: write through
sd 8:0:0:0: [sdb] Attached SCSI disk
EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)

Ubuntu 13.10

[System Settings] -> [Appearance] -> [Behavior] -> [Enable Workspaces]

apt-get install

vim htop tree rpm2cpio meld unrar tofrodos

minicom tftp-hpa tftpd-hpa openssh-server samba

git-core git-svn git-cvs git-email tig subversion cvs exuberant-ctags gitk tig

bison cpp flex g++ gcc gettext texinfo patch patchutils libncurses5-dev u-boot-tools python-xcbgen automake texlive libtool build-essential libncurses5-dev zlib1g-dev gawk ccache gettext libssl-dev xsltproc g++ zlib1g-dev gawk libncurses5-dev

virtualbox

firefox addon
xmark

Ubuntu 13.10 中文輸入法
http://mkl-note.blogspot.tw/2014/02/ubuntu-1310.html

mkl Note: Install Adobe Flash Player
http://mkl-note.blogspot.tw/2014/02/install-adobe-flash-player.html

Webex
mkl Note: Download and Install Java on Ubuntu 12.04
http://mkl-note.blogspot.tw/2013/09/download-and-install-java-for-linux.html

Config git
mkl Note: Learning GIT
http://mkl-note.blogspot.com/2008/12/learning-git.html

dash -> bash

2014年2月10日星期一

Ubuntu 13.10 中文輸入法

[Text Entry: En: English (US)] -> [Text Entry Settings] -> ["+"] -> [Chinese (Chewing)]
簡單很多,但是每版都在變,每次都要查

下載 Ubuntu 13.10 每日 ISO 體驗 Ubuntu 13.10 [論壇 - 自由軟體中文翻譯討論] | Ubuntu 正體中文站
http://www.ubuntu-tw.org/modules/newbb/viewtopic.php?post_id=29942

2014年2月7日星期五

Booting Ubuntu 13.10 Live CD to command line (recovery mode)


Ubuntu liveUSB(ubuntu-13.10-desktop-amd64.iso)
MSI GE70, i5-4200M, Nvidia GeForce GT 750M / 2GB GDDR5



In GRUB menu on the item "Try Uuntu without installing",  type "e" to edit the boot commands. At the line start with "linux", replace the following:
quiet splash
with
ro recovery nomodeset
Then type "F10" to boot.

After it boot, screen black out. I thought it crashed again, but it's just in virtual terminal 7 without X initialized. I got command line after switching to other virtual terminals (Ctrl-Alt-F1 to F6)


Kernel Command Line Parameters
http://distro.ibiblio.org/fatdog/web/faqs/boot-options.html

grub2 - How to boot to the recovery mode if it is not listed in Grub? - Ask Ubuntu
http://askubuntu.com/questions/326528/how-to-boot-to-the-recovery-mode-if-it-is-not-listed-in-grub

10 boot time parameters you should know about the Linux kernel - nixCraft
http://www.cyberciti.biz/tips/10-boot-time-parameters-you-should-know-about-the-linux-kernel.html

Ubuntu 14.04 (Trusty Tahr) Daily Build
http://cdimage.ubuntu.com/daily-live/current/

2014年2月4日星期二

JFFS2: "Magic bitmask 0x1985 not found"

mkfs.jffs2  -s 0x20000 -e 0x20000 -p 0x400000 -d  ./rootfs -o rootfs.jffs2

flash_eraseall -j /dev/mtd2
dd if=rootfs.jffs2 of=/dev/mtdblock2

mount -t jffs2 /dev/mtdblock2 /mnt


I cannot mount JFFS2 and see "Magic bitmask 0x1985 not found" messages

http://www.linux-mtd.infradead.org/faq/jffs2.html
http://www.linux-mtd.infradead.org/faq/jffs2.html#L_magicnfound

2014年1月19日星期日

[Ubuntu] How to read a multipage tiff?

evince - Document Viewer

images - Read a multipage tiff? - Ask Ubuntu
http://askubuntu.com/questions/33491/read-a-multipage-tiff

[all variants] Need a TIFF viewer that can handle multiple pages.
http://ubuntuforums.org/showthread.php?t=1476756

2014年1月15日星期三

GIT: How to tell a file is binary or text?

How to determine if Git handles a file as binary or as text? - Stack Overflow
http://stackoverflow.com/questions/6119956/how-to-determine-if-git-handles-a-file-as-binary-or-as-text

  1. git diff-tree -p 4b825dc642cb6eb9a060e54bf8d69288fbee4904 HEAD -- XXXX
  2. git diff-tree --numstat 4b825dc642cb6eb9a060e54bf8d69288fbee4904 HEAD -- XXXX
  3. git grep -I --name-only -e "" -- XXXX

4b823d… is a magic SHA which represents the empty tree



2013年12月24日星期二

Linux Traffic Control

Ubuntu 12.04 LTS


Traffic Shaping, Bandwidth Shaping, Packet Shaping with Linux tc htb
http://www.iplocation.net/tools/traffic-control.php
Strange....
I use his script, but found that setting 10kbit is actually 200kbit in real traffic. So I set 70kbit for 1400kbit.


Traffic Control HOWTO
http://linux-ip.net/articles/Traffic-Control-HOWTO/

A Practical Guide to Linux Traffic Control
http://blog.edseek.com/~jasonb/articles/traffic_shaping/

Bandwidth Limiting with IP Masquerade - Howto
http://www.szabilinux.hu/bandwidth/

Bandwidth Monitoring

Freshmeat.
These following tools are recommended:
bwm ==> very simple, ncurses based, for quick and easy overall network summary.
iptraf ==> very robust, ncurses based, my favorite, without kernel patch it lets you monitor specific host based on MAC Addresses
connmon ==> ncurses and gtk interfaces. With kernel patch you can monitor individual ip bandwidths

2013年12月23日星期一

[GIT] Finding a branch point

Finding a branch point with Git? - Stack Overflow
http://stackoverflow.com/questions/1527234/finding-a-branch-point-with-git

git config --global alias.oldest-ancestor '!zsh -c '\''diff --old-line-format='' --new-line-format='' <(git rev-list --first-parent "${1:-master}") <(git rev-list --first-parent "${2:-HEAD}") | head -1'\'' -'

2013年12月19日星期四

tmux

C+b c 開新視窗
C+b n 或 space 切換到下一個視窗
C+b P 切換到上一個視窗
====視窗分割功能======
C+b " 水平分割視窗
C+b % 垂直分割視窗
C+b up or down 切換分割視窗
C+b + Ctrl + 方向鍵上/下/左/右
指令 exit 跳出當前分割視窗


tmux教學 | 在水一方
http://blog.vic.mh4u.org/2012/707

使用 tmux 與 tmuxifier 打造 Console 開發環境(比 screen 更棒) - 玩物尚誌
http://blog.lyhdev.com/2013/01/tmux-tmuxifier-console-screen.html

終端機必備的多工良伴:tmux - @ChingHanHo
http://blog.chh.tw/posts/tmux-terminal-multiplexer/

Tmux 教學 + Screen 到 Tmux 的無痛轉換 - Tsung's Blog
http://blog.longwin.com.tw/2011/04/tmux-learn-screen-config-2011/

tmux 指令速查 | Midashuang's Blog
http://midashuang.wordpress.com/2010/12/07/tmux-%E6%8C%87%E4%BB%A4%E9%80%9F%E6%9F%A5/

2013年12月17日星期二

DNP stands for "Do Not Populate" in schematics



Schematics says DNP... what do I put in ?
http://www.edaboard.com/thread32000.html
"Do Not Populate" means exactly what it says - do not put a resistor there.