Linux 中開機自動執行 VirtualBox Guest OS
在 /etc/.rc.local 加入
su - vboxuser -c "VBoxHeadless -s 'vm_name' -v off" &
使用VBoxHeadless 啟動的 Guest OS 無法使用 VirtualBOX程式中的大部份功能,必須使用 VBoxManage controlvm來改變 Guest OS的狀態
1.開啟Guest OS遠端桌面
VBoxManage controlvm vm_name vrdp on vrdpport vm_port
2.關閉Guest OS遠端桌面
VBoxManage controlvm vm_name vrdp off
2010年12月6日 星期一
2010年11月25日 星期四
Linux kernel driver module 編譯摘要-unresolved symbol synchronize_irq
重新編譯好的 kernel driver module,但載入時出現
insmod: unresolved symbol synchronize_irq
原因可能是目前的 kernel 不支援 multi-processing
在不重新編譯kerenl情況下,make menuconfig 作以下設定
Processor type and features --->
[ ] Symmetric multi-processing support <--- 取消支援
insmod: unresolved symbol synchronize_irq
原因可能是目前的 kernel 不支援 multi-processing
在不重新編譯kerenl情況下,make menuconfig 作以下設定
Processor type and features --->
[ ] Symmetric multi-processing support <--- 取消支援
2010年11月24日 星期三
2010年11月18日 星期四
BrazilFW 新增 硬體 module 筆記
BrazilFW 支援的硬體清單不多,但網站亦有提供開發環境下載,方便自行增加硬體驅動程式,以下以 BrazilFW 2.31、Broadcom 4400 網路卡為例
以下執行環境在 Linux x86 32bit
1.下載 BrazilFW 2.31 Build Tree
http://sourceforge.net/projects/brazilfw/files/
2.解開下載檔案及設定開發環境
su - (切換執行身份為 root)
bunzip2 BrazilFW-2.31-Build.bz2
tar xf BrazilFW-2.31-Build
cd brazilfw-2.31-build
./setdevel.sh
3.設定 linux kernel 相關設定
make menuconfig 進入kernel 設定界面,設定選項如下:
Code maturity level options --->
[*] Prompt for development and/or incomplete code/drivers
Loadable module support --->
[*] Enable loadable module support
[ ] Set version information on all module symbols
[*] Kernel module loader
Processor type and features --->
[ ] Symmetric multi-processing support
Network device support --->
Ethernet (10 or 100Mbit) --->
<M> Broadcom 4400 ethernet support (EXPERIMENTAL)
4.儲存 kernel 設定,執行以下指令
make clean; make dep; make modules
產生 Broadcom 4400 module 位置如下:
/devel/linux/drivers/net/b44.o
以下執行環境在 Linux x86 32bit
1.下載 BrazilFW 2.31 Build Tree
http://sourceforge.net/projects/brazilfw/files/
2.解開下載檔案及設定開發環境
su - (切換執行身份為 root)
bunzip2 BrazilFW-2.31-Build.bz2
tar xf BrazilFW-2.31-Build
cd brazilfw-2.31-build
./setdevel.sh
3.設定 linux kernel 相關設定
make menuconfig 進入kernel 設定界面,設定選項如下:
Code maturity level options --->
[*] Prompt for development and/or incomplete code/drivers
Loadable module support --->
[*] Enable loadable module support
[ ] Set version information on all module symbols
[*] Kernel module loader
Processor type and features --->
[ ] Symmetric multi-processing support
Network device support --->
Ethernet (10 or 100Mbit) --->
<M> Broadcom 4400 ethernet support (EXPERIMENTAL)
4.儲存 kernel 設定,執行以下指令
make clean; make dep; make modules
產生 Broadcom 4400 module 位置如下:
/devel/linux/drivers/net/b44.o
2010年11月15日 星期一
Linksys models SRW2024 Password Recovery
以下適用於 Linksys models SRW2016, SRW2024, SRW2048, SRW224G4, SRW248G4
1.連接序列埠 (38400 baud, 8 data bits, no parity, 1 stop bit, no flow control.)
2.交換器重新開機,在POST 測試中 按下 "ESC" 進入 Start Menu 中
3.選擇 Password Recovery Procedure
4.預設帳號密碼:"admin/<blank>"
1.連接序列埠 (38400 baud, 8 data bits, no parity, 1 stop bit, no flow control.)
2.交換器重新開機,在POST 測試中 按下 "ESC" 進入 Start Menu 中
3.選擇 Password Recovery Procedure
4.預設帳號密碼:"admin/<blank>"
2010年10月27日 星期三
指定 Linux 網路卡連線速度
指定 Linux 網路卡連線速度,除了在載入 module 時以參數指定外,亦可使用以下指令 ifconfig、mii-tool、ethtool。
範例:
ifconfig eth0 media 100baseTX
若出現以下訊息,可以改用 mii-tool,ethtool指令
port: SIOCSIFMAP: Operation not supported
mii-tool -F 100baseTx-FD eth0
ethtool -s eth0 speed 100 duplex full autoneg on
範例:
ifconfig eth0 media 100baseTX
若出現以下訊息,可以改用 mii-tool,ethtool指令
port: SIOCSIFMAP: Operation not supported
mii-tool -F 100baseTx-FD eth0
ethtool -s eth0 speed 100 duplex full autoneg on
2010年10月21日 星期四
Linux 新增 SWAP FILE
建立 swap file 檔案大小為 512M
# dd if=/dev/zero of=/swapfile bs=1024 count=524288
設定 /swapfile 為 swap
# mkswap /swapfile
啟用 /swapfile
# swapon /swapfile
設定下次重新啟動可自行啟用 /swapfile
編輯 /etc/fstab 加入以下設定:
/swapfile swap swap defaults 0 0
相關指令
free -m
# dd if=/dev/zero of=/swapfile bs=1024 count=524288
設定 /swapfile 為 swap
# mkswap /swapfile
啟用 /swapfile
# swapon /swapfile
設定下次重新啟動可自行啟用 /swapfile
編輯 /etc/fstab 加入以下設定:
/swapfile swap swap defaults 0 0
相關指令
free -m
訂閱:
文章 (Atom)