Linux news and config tip

Friday, October 11, 2013

Installing Ns2 Simulator in Fedora 19

1. Download ns-allinone
2. Now you have to resolve some dependencies.
( i.) su
( ii.) yum install autoconf
( iii.) yum install automake
( iv.) yum install gcc-c++
( v.) yum install libX11-devel
( vi.) yum install xorg-x11-proto-devel
( vi.) yum install libXt-devel
( vi.) yum install libXmu-devel
3. Place downloaded file in home directory and type tar -xzvf ns-allinone-2.35.tar.gz
4.cd ns-allinone-2.35
5. Now ./install
Error encountered by me:-
In file included from linkstate/ls.cc:67:0:
linkstate/ls.h: In instantiation of ‘void LsMap::eraseAll() [with Key = int; T = LsIdSeq]’:
linkstate/ls.cc:396:28: required from here
linkstate/ls.h:137:20: error: ‘erase’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
linkstate/ls.h:137:20: note: declarations in dependent base ‘std::map, std::allocator > >’ are not found by unqualified lookup
linkstate/ls.h:137:20: note: use ‘this->erase’ instead
make: *** [linkstate/ls.o] Error 1
Ns make failed!
Solution:
1. Go to ns-allinone-2.35/ns-2.35/linkstate/
2. Now edit ls.h
In line number 137, in place of void eraseAll() { erase(baseMap::begin(), baseMap::end()); }
Chang to void eraseAll() { this->erase(baseMap::begin(), baseMap::end()); }
3. Save the file and again run ./install

Wednesday, August 28, 2013

startx in graphicmode Backtrack5r3

change file=/cdrom/preseed/ubuntu.seed boot=casper initrd=/casper/initrd.gz text splash vga=791-- 
to  
file=/cdrom/preseed/ubuntu.seed boot=casper initrd=/casper/initrd.gz xforcevesa noapic noapci nosplash irqpoll -- 

Sunday, February 10, 2013

Red5 error


หาก RED5เกิดปัญหาแบบในรูปเมื่อเปิดทดลองจากเครื่องอื่นเข้ามา

ให้เข้าไปแก้ไขใน Folder ของบริการนั้นๆ เช่นในรูปเป็นของ oflaDemo ในไฟล์ชื่อ index.html

เมื่อเข้ามาในไฟล์  index.html แล้วให้เข้าไปแก้ไขดังภาพโดยเปลี่ยนจาก  localhost เป็นหมายเลข IP ของเครื่อง Red5 Server