如何開啟 IP forwarding 取得連結 Facebook X Pinterest 以電子郵件傳送 其他應用程式 12月 09, 2011 echo 1 > /proc/sys/net/ipv4/ip_forward 取得連結 Facebook X Pinterest 以電子郵件傳送 其他應用程式 留言
How to use ebtables: ebtable 的小筆記 6月 15, 2012 這篇算是小筆記,主要在紀錄一些使用 ebtable 上的小問題: ebtable 主要分成三個 Main Table, 分別是 Filter, NAT 與 broute. 坊間有很多關於 ebtable 的資料,在這裡就不多說他是什麼東西了。 跟 iptable 一樣,ebtable 也有自己的 command 可以用,像是: 1. 分別列出 Filter, NAT, broute table. (我被這個搞好久...) ebtables -L ebtables -t nat -L ebtables -t broute -L 2. Create new chains: ebtables -t filter -N QOS ebtables -t nat -N MACFilter ebtables -t broute -N IGMP 3. Add new rules: ebtables -t filter -A FORWARD -j QOS ebtables -t nat -A PREROUTING -i eth0 -j MACFilter 其他像是 -D: delete rule, -F: Flush rule...等等,請參閱相關資料。 Download Package: http://ebtables.sourceforge.net/ Man page of ebtable: http://ebtables.sourceforge.net/misc/ebtables-man.html 閱讀完整內容
在Kernel內掛載+分割Flash空間 (使用mtd block) 12月 09, 2011 我的作法是: 1. Tftp Kernel: tftpboot $(loadaddr) vmlinux.64 2. 直接bootocteon開機,並在後面加入mtd的參數: bootoctlinux $( loadaddr ) mtdparts = phys_mapped_flash:640k ( bootloader ) ro,9M ( kernel ) ,20M ( rootfs ) ,2M ( AppConfig ) ,128k ( bootload-env ) ,128k ( MD ) ,128k ( ENV ) 3. 到kernel內去cat /proc/mtd,就可以看到Flash被分為了幾塊區域: cat /proc/mtd dev: size erasesize name mtd0: 000a0000 00020000 "bootloader" mtd1: 00900000 00020000 "kernel" mtd2: 01400000 00020000 "rootfs" mtd3: 00200000 00020000 "AppConfig" mtd4: 00020000 00020000 "bootload-env" mtd5: 00020000 00020000 "MD" mtd6: 00020000 00020000 "ENV" 4. 我們選擇拿第四塊來當實驗品: mke2fs /dev/mtdblock4 5. Mount起來,並在裡面寫資料: mount /dev/mtdblock4 /mnt 6. 記得要做Sync,或者是umount它,這樣資料才會寫進去喔: sync umount /mnt 重開機之後,如果沒問題的話,再重新掛載一次就可以看到剛剛寫入的資料了。 閱讀完整內容
解決 VirtualBox 無法開啟 NS_ERROR_FAILURE (0x80004005) 9月 27, 2012 在亂搞之後,我的 VirtualBox 也一度沒辦法開啟過,以下簡單紀錄下我的解決方法: 問題紀錄(當然 VM 名稱不是這個) [ root@localhost ~ ] # vboxmanage startvm <vmname> Waiting for VM "<vmname>" to power on... VBoxManage: error: The virtual machine '<vmname>' has terminated unexpectedly during startup with exit code 0 VBoxManage: error: Details: code NS_ERROR_FAILURE ( 0x80004005 ) , component Machine, interface IMachine, callee 參考了網路上的解法之後,大概是這樣: 1. 需要重新去掛載 VirtualBox 的 module: /etc/init.d/vboxdrv setup 2. 在 console 下重新執行一次 VM ,看看能不能動 vboxmanage startvm <vmname> 3. 再利用 console 把 vm 關掉,並重新開機 VBoxManage controlvm <vmname> poweroff 4. 然後再開就不會發生問題了。 網路上的偏方與解法還不少,有的人建議要把 ~/.VirtualBox 底下的 .xml 檔刪除掉,可是這樣一來會造成 之前建立好的 VM 會消失不見(除非你剛灌好,不然就...) 參考看看吧~ PS. 絕對不可以手殘亂去刪除 SnapShot 資料夾底下的資料,不然... 參考資料: http://blog.csdn.net/t0nsha/article/details/7482986 http://forum.ubuntu.org.cn/viewtopic.php?f=65&t=204736 http://passover.blog.51cto.com/2431658/73... 閱讀完整內容
留言
張貼留言