Skip to content

Instantly share code, notes, and snippets.

View hkwi's full-sized avatar

Hiroaki KAWAI hkwi

View GitHub Profile

Using samba on fedora

yum install samba

Use pdbedit to enable the samba user accounts. For example:

pdbedit -u kawai -a

Linux wireless で遊ぶ

Fedora 18 に USB wireless module をさしてみる。あっさり認識した。

$ tail -f /var/log/messages
...
... Product: 802.11 n WLAN
... Manufaturer: Ralink
...

openflow 1.3 日本語訳 6.3.4 multiple controllers

6.3.4 複数コントローラ

スイッチはコントローラ 1 つだけと通信チャンネルを確立しても構いませんが、 コントローラ複数と確立しても構いません。 例えば 1 つめのコントローラ自体が失われたあるいは接続が失われた場合でも OpenFlow で動作し続けることができるといったように、 複数コントローラ存在することで、より良い信頼性が得られます。

@hkwi
hkwi / recovery_dvd_restore.md
Created August 20, 2013 11:10
ThinkPad Recovery DVD 読み出し中にドライブが「ガタッ」と行ってしまって、ギャリギャリと嫌な音がしてしまったのですよ。エイヤと、その DVD で recovery した PC は起動中に死亡したりと、大変な目にあってしまいました。そして…
  • 破損した DVD から救出できるファイルを吸い出す。(単にコピーする)CD Recovery toolbox を使う。
  • 破損したファイルを確認する。
  • いかにも setup 時に必要なものが死亡していたら諦める。
  • RECOVERY ディレクトリ内の破損した .IMZ は .CRI ファイルを見て、判断する。 無くてもなんとかなりそうであれば、いっそのこと外しておく。
  • AIK ( Windows Automated Installtion Kit ) をゲットする
oscdimg -n -m -b"C:\_CDRestored\BOOT\ETFSBOOT.COM" C:\_CDRestored C:\Windows\Temp\RESTORED.iso
  • RESTORED.iso でマシンをリカバリしてみる。さてどうなることか。
@hkwi
hkwi / peggy_python27.txt
Last active December 21, 2015 16:28
Peggy python 2.7 keyword file. Put this file as "C:\Program Files (x86)\Anchor\share\ac_python27.kwd".
// Author: Hiroaki KAWAI <hiroaki.kawai@gmail.com>
// Keyword file for "Peggy" http://www.anchorsystems.jp/anchor/ashp/peggy/pegindex.html
Id: "Python27"
Title: "Python 2.7"
Extensions: "py"
BgColoring: On
LineComment: "#"
BaseLanguage: "HTML"
IdCharacters: "_"
HeadingPattern: /^\s*(class|def)\s/
@hkwi
hkwi / WHR-300HP2_boot.txt
Last active December 22, 2015 03:18
Buffalo WHR-300HP2 captured boot sequence. baud rate was 57600.
U-Boot 1.1.3 (Apr 3 2013 - 20:22:35)
Board: Ralink APSoC DRAM: 64 MB
relocate_code Pointer at: 83fb4000
enable ephy clock...done. rf reg 29 = 5
SSC disabled.
******************************
Software System Reset Occurred
******************************
spi_wait_nsec: 29
# uname -a
Linux (none) 2.6.36 #17 Thu May 2 10:13:33 CST 2013 mips unknown
# cat /proc/mtd
dev: size erasesize name
mtd0: 00030000 00010000 "Bootloader"
mtd1: 00010000 00010000 "Config"
mtd2: 00010000 00010000 "Factory"
mtd3: 005b0000 00010000 "Kernel"
mtd4: 00100000 00010000 "User_CFG"
# cat /proc/mounts
@hkwi
hkwi / WHR-300HP2_openwrt_boot.txt
Created September 4, 2013 10:11
booted with openwrt initram image.
root@OpenWrt:/proc# dmesg
[ 0.000000] Linux version 3.10.10 (kawai@localhost.localdomain) (gcc version 4.6.4 (OpenWrt/Linaro GCC 4.6-2012.12 r37894) ) #2 Wed Sep 4 18:46:11 JST 2013
[ 0.000000] Board has DDR2
[ 0.000000] Analog PMU set to hw control
[ 0.000000] Digital PMU set to hw control
[ 0.000000] SoC Type: Ralink MT7620A ver:2 eco:3
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU revision is: 00019650 (MIPS 24KEc)
[ 0.000000] MIPS: machine is Buffalo WHR-300HP2
[ 0.000000] Determined physical RAM map:
@hkwi
hkwi / WZR-300HP_v1.93.txt
Last active December 22, 2015 17:18
login via telnet (debug.html) and type "dmesg".
# dmesg
ucts/1.93_1.07_2013-02-07-19-39-JST_WZR-300HP-AP93/linux-2.6.15-ath-ap93/src/hso_26/hso.c: 1.12-Option Option Wireless
usbcore: registered new driver hso
s16 enet1 port1 up
et1: unit 1: phy 1 is up...
AG7240: enet WAN unit:0 is up. AG7240: done cfg2 0x7215 ifctl 0x0 miictrl
s16 enet0 port4 up
et0: unit 0: phy 4 is up...