2011年1月19日 星期三
2011年1月17日 星期一
kernel-panic
打重點:
開機時出現kernel panic的問題
原本以為是開機磁區問題 重新安裝grub還是一樣
後來用mkinitrd就解決了 XD
先用fedora的光碟進入救援模式
chroot /mnt/sysimage/
mkinitrd /boot/initrd-2.6.20-1.2320.fc5smp.img 2.6.20-1.2320.fc5smp
那些數字是你自己的kernel版本 不要傻傻的照打 XD
ref:
http://www.linuxquestions.org/questions/linux-software-2/kernel-panic-not-syncing-attempted-to-kill-init-261681/
開機時出現kernel panic的問題
原本以為是開機磁區問題 重新安裝grub還是一樣
後來用mkinitrd就解決了 XD
先用fedora的光碟進入救援模式
chroot /mnt/sysimage/
mkinitrd /boot/initrd-2.6.20-1.2320.fc5smp.img 2.6.20-1.2320.fc5smp
那些數字是你自己的kernel版本 不要傻傻的照打 XD
ref:
http://www.linuxquestions.org/questions/linux-software-2/kernel-panic-not-syncing-attempted-to-kill-init-261681/
2011年1月16日 星期日
install dynamics-0.8.1 @ FC7
官網 http://dynamics.sourceforge.net/
(不過選單只有兩個連結可以按 囧)
抓dynamics-0.8.1.tar.gz下來安裝
老樣子打
./configure
make
然後make就出現錯誤訊息了... orz
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/other -I../../src/api -DSYSCONFDIR=\"/usr/local/etc\" -g -O2 -c mn_agentadv.c
In file included from monitor.h:22,
from mn_agentadv.c:41:
/usr/include/linux/wireless.h:886: 錯誤:「IFNAMSIZ」 未宣告 (不在函式內)
翻成英文是
/usr/include/linux/wireless.h:886: error: ‘IFNAMSIZ’ was not declared in this scope
有人說是因為kernek版本不同 header有改變
而且dynamics-0.8.1裡面的系統需求只有說2.4.x可以用 沒有說2.6.x orz
後來找到解決方法了
去修改/usr/include/linux/wireless.h
在裡面新增兩行
#include <linux/types.h>
#include <linux/if.h>
然後make就過了 (真是太神奇了 XD)
--
ref
http://www.bo247157.usr.cc/thread-1730-1-1.html
(不過選單只有兩個連結可以按 囧)
抓dynamics-0.8.1.tar.gz下來安裝
老樣子打
./configure
make
然後make就出現錯誤訊息了... orz
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/other -I../../src/api -DSYSCONFDIR=\"/usr/local/etc\" -g -O2 -c mn_agentadv.c
In file included from monitor.h:22,
from mn_agentadv.c:41:
/usr/include/linux/wireless.h:886: 錯誤:「IFNAMSIZ」 未宣告 (不在函式內)
翻成英文是
/usr/include/linux/wireless.h:886: error: ‘IFNAMSIZ’ was not declared in this scope
有人說是因為kernek版本不同 header有改變
而且dynamics-0.8.1裡面的系統需求只有說2.4.x可以用 沒有說2.6.x orz
後來找到解決方法了
去修改/usr/include/linux/wireless.h
在裡面新增兩行
#include <linux/types.h>
#include <linux/if.h>
然後make就過了 (真是太神奇了 XD)
--
ref
http://www.bo247157.usr.cc/thread-1730-1-1.html
2010年12月22日 星期三
關閉Gallery的flv player下載功能
在modules\flashvideo\classes\FlashVideoRenderer.class
裡面有說
/* Set allowDL=false to omit download button in upper right of player */
$flashVars .= '&allowDl=flase';
原本是true 改成false就好了
--
害我研究這麼久 原來這麼簡單 XD
裡面有說
/* Set allowDL=false to omit download button in upper right of player */
$flashVars .= '&allowDl=flase';
原本是true 改成false就好了
--
害我研究這麼久 原來這麼簡單 XD
2010年12月15日 星期三
ns2的一些error message
抓了ns-allinone-2.29_multichan.rar下來 想把他弄到Fedora上面跑
沒想到工程比想像中的浩大 囧....
----
先解壓縮 然後搜尋檔案內容 把/home/smallko/ns-allinone-2.28/改成你自己的ns2路徑
然後再執行./install
不過中間會遇到很多錯誤訊息 (有人說是編譯器版本問題!?)
下面節錄部份解決方法 因為改的東西太多了 那就改天吧(冷)
不然就去參考這個
http://shagin45.blogspot.com/2008/02/ns2-nistmobility.html
或者是把你的錯誤訊息丟到google 應該也可以找到
----
dsr/dsragent.cc: In member function ‘void DSRAgent::handleFlowForwarding(SRPacket&, int)’:
dsr/dsragent.cc:828: error: ‘XmitFlowFailureCallback’ was not declared in this scope
dsr/dsragent.cc: In member function ‘void DSRAgent::sendOutPacketWithRoute(SRPacket&, bool, Time)’:
dsr/dsragent.cc:1385: error: ‘XmitFailureCallback’ was not declared in this scope
dsr/dsragent.cc:1386: error: ‘XmitFlowFailureCallback’ was not declared in this scope
dsr/dsragent.cc:1403: error: ‘XmitFailureCallback’ was not declared in this scope
make: *** [dsr/dsragent.o] Error 1
@line 220, add:
void XmitFlowFailureCallback(Packet *pkt, void *data);
void XmitFailureCallback(Packet *pkt, void *data);
= = = = = = = = = = = = = =
diffusion/diffusion.cc: In member function 'void DiffusionAgent::MACprepare(Packet*, nsaddr_t, int, bool)':
diffusion/diffusion.cc:429: error: 'XmitFailedCallback' was not declared in this scope
make: *** [diffusion/diffusion.o] Error 1
add:
void XmitFailedCallback(Packet *pkt, void *data);
before
void DiffusionAgent::MACprepare(Packet *pkt, nsaddr_t next_hop,
int type, bool lk_dtct)
= = = = = = = = = = = = = =
diffusion/omni_mcast.cc: In member function 'void OmniMcastAgent::MACprepare(Packet*, nsaddr_t, unsigned int, bool)':
diffusion/omni_mcast.cc:388: error: 'OmniMcastXmitFailedCallback' was not declared in this scope
make: *** [diffusion/omni_mcast.o] Error 1
@line 106, add:
void OmniMcastXmitFailedCallback(Packet *pkt, void *data);
沒想到工程比想像中的浩大 囧....
----
先解壓縮 然後搜尋檔案內容 把/home/smallko/ns-allinone-2.28/改成你自己的ns2路徑
然後再執行./install
不過中間會遇到很多錯誤訊息 (有人說是編譯器版本問題!?)
下面節錄部份解決方法 因為改的東西太多了 那就改天吧(冷)
不然就去參考這個
http://shagin45.blogspot.com/2008/02/ns2-nistmobility.html
或者是把你的錯誤訊息丟到google 應該也可以找到
----
dsr/dsragent.cc: In member function ‘void DSRAgent::handleFlowForwarding(SRPacket&, int)’:
dsr/dsragent.cc:828: error: ‘XmitFlowFailureCallback’ was not declared in this scope
dsr/dsragent.cc: In member function ‘void DSRAgent::sendOutPacketWithRoute(SRPacket&, bool, Time)’:
dsr/dsragent.cc:1385: error: ‘XmitFailureCallback’ was not declared in this scope
dsr/dsragent.cc:1386: error: ‘XmitFlowFailureCallback’ was not declared in this scope
dsr/dsragent.cc:1403: error: ‘XmitFailureCallback’ was not declared in this scope
make: *** [dsr/dsragent.o] Error 1
@line 220, add:
void XmitFlowFailureCallback(Packet *pkt, void *data);
void XmitFailureCallback(Packet *pkt, void *data);
= = = = = = = = = = = = = =
diffusion/diffusion.cc: In member function 'void DiffusionAgent::MACprepare(Packet*, nsaddr_t, int, bool)':
diffusion/diffusion.cc:429: error: 'XmitFailedCallback' was not declared in this scope
make: *** [diffusion/diffusion.o] Error 1
add:
void XmitFailedCallback(Packet *pkt, void *data);
before
void DiffusionAgent::MACprepare(Packet *pkt, nsaddr_t next_hop,
int type, bool lk_dtct)
= = = = = = = = = = = = = =
diffusion/omni_mcast.cc: In member function 'void OmniMcastAgent::MACprepare(Packet*, nsaddr_t, unsigned int, bool)':
diffusion/omni_mcast.cc:388: error: 'OmniMcastXmitFailedCallback' was not declared in this scope
make: *** [diffusion/omni_mcast.o] Error 1
@line 106, add:
void OmniMcastXmitFailedCallback(Packet *pkt, void *data);
2010年12月13日 星期一
madwifi - 多張網卡的IRQ問題
http://madwifi-project.org/ticket/2335
好像是說 使用多張同樣的網卡 他們會使用同一個IRQ
因此會造成一些問題
然後那個人有講他覺得的解決方法為何
--
我也不知道我這個說法對不對 XD
好像是說 使用多張同樣的網卡 他們會使用同一個IRQ
因此會造成一些問題
然後那個人有講他覺得的解決方法為何
--
我也不知道我這個說法對不對 XD
2010年12月4日 星期六
Fedora 1 的 yum站台
編輯 /etc/yum.conf (應該沒記錯XD)
[base]
name=Fedora Core $releasever - $basearch - Base
#baseurl=http://fedora.redhat.com/releases/fedora-core-$releasever
baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/core/updates/1/i386/
[updates-released]
name=Fedora Core $releasever - $basearch - Released Updates
#baseurl=http://fedora.redhat.com/updates/released/fedora-core-$releasever
baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/core/updates/1/i386/
[base]
name=Fedora Core $releasever - $basearch - Base
#baseurl=http://fedora.redhat.com/releases/fedora-core-$releasever
baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/core/updates/1/i386/
[updates-released]
name=Fedora Core $releasever - $basearch - Released Updates
#baseurl=http://fedora.redhat.com/updates/released/fedora-core-$releasever
baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/core/updates/1/i386/
訂閱:
文章 (Atom)