Saturday, 12. August 2006, 03:40:50
bro-ids, compilation, gcc, linux
...
The latest version of linux distro will tag along with the latest gcc 4.1 and it will cause the error compilation of bro-ids. I am not sure what is the problem but if you get the make error bellow:
Bro Configuration Summary
==========================================================
- Debugging enabled: no
- OpenSSL support: yes
- Non-blocking main loop: yes
- Non-blocking resolver: yes
- Installation prefix: /usr/local/bro
- Perl interpreter: /usr/bin/perl
- Using basic_string: yes
- Pcap used: system-provided
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -W -Wall -Wno-unused
-I../../linux-include -g -O2 -c -o pac_parse.o `test -f pac_parse.cc
|| echo './'`pac_parse.cc
pac.h:109: warning: 'class Evaluatable' has virtual functions but
non-virtual destructor
pac.h:615: error: extra qualification 'Field::' on member 'getFieldBegin'
pac.h:616: error: extra qualification 'Field::' on member 'getFieldEnd'
pac.h:658: warning: 'class LetDef' has virtual functions but
non-virtual destructor
make[4]: *** [pac_parse.o] Error 1
make[4]: Leaving directory `/root/bro/bro-1.1/src/binpac'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/root/bro/bro-1.1/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/bro/bro-1.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/bro/bro-1.1'
make: *** [all] Error 2
You can apply the patch
attachment.binAnyway that is not binary file but a diff file, use file command to check
file attachment.bin
or
head attachment.bin
Copy the file into your folder and type
patch -p1 < attachment.bin
Compile again, and it should be working.
Ref:
http://mailman.icsi.berkeley.edu/pipermail/bro/2006-June/002459.html
Sunday, 16. July 2006, 06:06:44
fluxbox, linux, FC5
I searching for latest fluxbox 1.0rc2 RPM, but I couldn't find any. So I decided to compile myself. Special thanks to _mark at #fluxbox at irc.freenode.net for clearing my doubts on Fluxbox configuration and compilation.
To upgrade to the latest version, the best way is remove the old rpm and make install from new source code. I couldn't do that because my GDM will complain it couldn't find exec line for fluxbox and it refused to load fluxbox. I have no idea to fix it. So the workaround is replace the binaries directly from the source code.

Compilation:
In order to support png icon at root menu, you need to enable imlib2. By default fluxbox will be installed to /usr/local, for me, my fluxbox is in /usr/bin instead of /usr/local/bin. So what I need to do is.
1. Get imlib2-devel, this is the header that needed by compilation.
2. Configure it with imlib2 enabled and set prefix to /usr
3. make and make install by root privilege.
yum install imlib2-devel
./configure --prefix=/usr --enable-imlib2
make
make install
Done.
Friday, 14. July 2006, 16:11:28
ns2, FC5
There are issues on OTCL/TCL/TK which will cause your configuration fail in the middle. I found the patch from the mailing list (
http://www.archivesat.com/post1272327.htm ) After applying the patch, it work as expected.
In case you facing problem installing on FC5 and found no solution, you can follow the simple instruction here.
1. Download ns-allinone-2.29 from the website, extract it at either home directory or opt
2. Download the patch from
ns2292-gcc410.patch3. Copy the patch into ns-allinone-2.29 folder and patch it with:
patch -p1 < ns2292-gcc410.patch
In case it was not working, don't throw the question to me, you will get no solution from me . Throw it back the ns2 mailing list. As I am trying to help here, but I am not expert of this, Good Luck.
Wednesday, 31. May 2006, 10:27:04
linux, FC5, vmware
Fail to configure vmplayer? Because of the error bellow?
The kernel defined by this directory of header files does
not have the same address space size as your running kernel.
Download the script
http://tredosoft.com/files/download/vmware-any-any-update101.tar.gz and
./runme.pl
or get it at here
http://ftp.cvut.cz/vmware/You may wanna read the details, from
http://tredosoft.com/node/9
Wednesday, 31. May 2006, 06:13:36
linux, FC5, apt-get
rpm http://mirror.centos.org centos/4.3/apt/i386 addons
rpm http://mirror.centos.org centos/4.3/apt/i386 centosplus
rpm http://mirror.centos.org centos/4.3/apt/i386 contrib
rpm http://mirror.centos.org centos/4.3/apt/i386 extras
rpm http://mirror.centos.org centos/4.3/apt/i386 os
rpm http://mirror.centos.org centos/4.3/apt/i386 updates
Tuesday, 30. May 2006, 17:33:45
linux, FC5
For FC5, in case you can't find it at yum or apt-get, you can follow as bellow:
apt-get install chmlib
apt-get install compat-wxGTK
rpm -ivh http://www.joy2share.com/marius/xchm/xchm-1.8-1.FC5.i386.rpm
Sunday, 28. May 2006, 03:12:00
linux, FC5
Spending whole weekend setting up my printer, check all the drivers cups everything works fine just cups failed to function.
The culprit is /etc/hosts
It seems to be unrelated, but I changed my host name and domain from something
localhost localdomain localhost
to
boeing747 skydomain boeing747
it seems the you cannot simple change ur dsn name, because it used by some application, which the application assume that people don't change the dns name of localhost to others. [example : cups] how stupid is it.
Okay, change back to
boeing747 skydomain localhost
and it works!!!
Saturday, 27. May 2006, 06:47:56
linux, FC5, apt-get
Finally i found various repo for apt from my friend. I am not sure why i couldn't find a good article or support to enable apt-get to FC5. Maybe less FC5 compare to Ubuntu? or FC5 user only use yum?
Gonna say bye bye to yum. Compare between apt-get and yum, yum is too slow, couldn't cope with it, the slow rate is over my limits.
I suggest you to put the repos into one file which is sources.list instead of putting it as seperate files into source.list.d directory. Putting all repos into sources.list had ease of manage, for example sometimes you want to turn off a repo because the site was down, or you don't want to download pkgs from there anymore, you can comment a line at sources.list and apt-get update.
# /etc/apt/sources.list
# You can use the file:/ entries for creating your local repository mirrors.
rpm http://dl.atrpms.net fc5-i386/atrpms stable
rpm http://dl.atrpms.net fc5-i386/atrpms bleeding
rpm http://dl.atrpms.net fc5-i386/atrpms testing
rpm http://dl.atrpms.net fc5-i386/redhat extras
rpm http://dl.atrpms.net fc5-i386/redhat release
rpm http://dl.atrpms.net fc5-i386/redhat updates-testing
rpm http://apt.sw.be dries/fedora/fc5/i386 dries
rpm http://apt.kde-redhat.org/apt/kde-redhat fedora/5/i386 stable
rpm http://apt.kde-redhat.org/apt/kde-redhat all stable
repomd http://rpm.livna.org/fedora/ 5/i386/
repomd http://rpm.livna.org/fedora/ testing/5/i386/
repomd http://rpm.livna.org/fedora/ development/i386/
I am not sure what is repomd different from rpm, but anyway it works for both. Please add more repo if you have more at comments, thanks.
Friday, 26. May 2006, 15:10:04
FC5, linux, apt-get
I have fedup with yum , which it is so slow. Google it and i find a way to install apt-get stuff to my FC5
rpm --import http://ATrpms.net/RPM-GPG-KEY.atrpms
This is to allow trust on the ATrpms.net
http://dl.atrpms.net/all/apt-0.5.15lorg3.1-62.rhfc5.at.i386.rpm
Download for i386, in case if you have different arch, check this out
http://atrpms.net/dist/fc5/apt/And the installation guide is at here
http://atrpms.net/install.htmlMy doubt was, how to add entry for sources.list. I mean how to convert the repo from yum to sources.list.
okay at least i have the repo from livna for seting up my multimedia
# /etc/apt/sources.list.d/livna.list
# rpm.livna.org sources.list entries for apt-rpm with repomd support,
# http://apt-rpm.laiskiainen.org/
# Please use a nearby repository - a list of mirrors is available eg. at
# http://rpm.livna.org/smart-mirrors.txt . Pick one from the list, and
# replace http://rpm.livna.org/fedora/ below with it.
# -- Main repository
#repomd http://rpm.livna.org/fedora/ $(VERSION)/$(ARCH)/
repomd http://rpm.livna.org/fedora/ 5/i386/
#repomd http://rpm.livna.org/fedora/ $(VERSION)/$(ARCH)/debug/
#repomd-src http://rpm.livna.org/fedora/ $(VERSION)/SRPMS/
# -- Potential updates in testing
repomd http://rpm.livna.org/fedora/ testing/5/i386/
#repomd http://rpm.livna.org/fedora/ testing/$(VERSION)/$(ARCH)/debug/
#repomd-src http://rpm.livna.org/fedora/ testing/$(VERSION)/SRPMS/
# -- Development repository -- requires Fedora Core + Extras development
repomd http://rpm.livna.org/fedora/ development/i386/
#repomd http://rpm.livna.org/fedora/ development/$(ARCH)/debug/
#repomd-src http://rpm.livna.org/fedora/ development/SRPMS/
Friday, 26. May 2006, 01:06:30
linux, FC5
Fedora core 5 is a nice distro, very nice in graphics, everythings looks great. Installation allows you to customized the package you wanna install is cool. Okay start to experience on it. First, as usual mp3 , video is not supported, searched ways to add repo for yum, it is not like apt-get that you insert a line on sources.list.
FC5 have a extra repo folder /etc/yum.repo.d, you have to create a file and write the repo address into the file, or install the repo rpm. Okay that is fine. The thing I don't like about yum is it do too much checking. For apt-get, if i asked it to update it will update and it won't update everytime i ask it to install. But yum is so annoying to check the repo everytime i wanna install something. Search for packages also check repo, that means if I have a large collection of repo, everytime i wanna install sometime really small, i need to wait for so long time, what the heck!!!