iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
auto wlan0
iface wlan0 inet dhcp
wpa-ssid "ssid"
wpa-psk "password"
參考
Setting up Wifi with the Command Line
<?php
// 使用pack將ascii的1~13放到$txData變數中
for($i=1;$i<14;$i++) {
$txData .= pack("C", $i);
}
// 透過rs232模組寫出去,其中rs232的tx/rx短路,因此寫出去的資料可以在$rxData中收到
$rxData = $this->rs232_model->writeAndRead($txData);
// 使用unpack將$rxData中的二進位資料轉回來
$res = unpack("C*", $rxData);
?>
pi@raspberrypi ~ $ sudo apt-get update
pi@raspberrypi ~ $ sudo apt-get install zbar-tools
pi@raspberrypi ~ $ zbarcam ---prescale=320x240pi@raspberrypi ~ $ zbarcam --nodisplay ---prescale=320x240shiun@test:~$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.0.253 0.0.0.0 UG 0 0 0 eth0
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth1# 刪除對應到eth0的default
shiun@test:~$ sudo route del default
# 將192.168.1.1(eth1)改為新的default
shiun@test:~$ sudo add default gw 192.168.1.1
pi@ShiunPi /etc/john $ john -te
Benchmarking: Traditional DES [32/32 BS]... DONE
Many salts: 82043 c/s real, 82171 c/s virtual
Only one salt: 78717 c/s real, 78835 c/s virtual
Benchmarking: BSDI DES (x725) [32/32 BS]... DONE
Many salts: 2575 c/s real, 2575 c/s virtual
Only one salt: 2551 c/s real, 2551 c/s virtual
Benchmarking: FreeBSD MD5 [32/32]... DONE
Raw: 1511 c/s real, 1511 c/s virtual
Benchmarking: OpenBSD Blowfish (x32) [32/32]... DONE
Raw: 80.5 c/s real, 80.5 c/s virtual
Benchmarking: Kerberos AFS DES [24/32 4K]... DONE
Short: 37305 c/s real, 37305 c/s virtual
Long: 100006 c/s real, 100006 c/s virtual
Benchmarking: LM DES [32/32 BS]... DONE
Raw: 1161K c/s real, 1161K c/s virtual
Benchmarking: dummy [N/A]... DONE
Raw: 11211K c/s real, 11211K c/s virtual 由於筆者對john沒有研究, 分析的工作只好無限延期XDDDD