Ipw2100 on Linux (gentoo)

First of all your kernel must have hotplug support and wireless enabledb

You can check this with these commands:

bash-2.05b# grep CONFIG_NET_RADIO \
> /lib/modules/2.6.5-gentoo-r1/build/include/linux/autoconf.h 
bash-2.05b# grep CONFIG_HOTPLUG \ /lib/modules/2.6.5-gentoo-r1/build/include/linux/autoconf.h 
#define CONFIG_HOTPLUG 1
#undef CONFIG_HOTPLUG_PCI

Then you download hostap-driver out of http://hostap.epitest.fi/
And the ipw2100 driver out of http://ipw2100.sf.net

Gentoo portages have these but on my system they wouldnt build so i made them by hand. I untar'ed the packages into /root

Untar hostap-driver and do :

make
make install
modprobe host-ap

make HOSTAP=../hostap-driver-0.1.3 install 
make HOSTAP=../hostap-driver-0.1.3

Then i downloaded a firmware from http://ipw2100.sourceforge.net/firmware.php which got me a zip file containing a tarball containing a file named ipw2100-1.0.fw which i copied to /usr/lib/hotplug/firmware/ and did a 

modprobe ipw2100 

my dmesg showed:
ipw2100: Intel(R) PRO/Wireless 2100 Network Driver, 0.41
ipw2100: Copyright(c) 2003-2004 Intel Corporation
Detected ipw2100 PCI device at 0000:02:02.0, dev: eth1, mem: 0xC0214000-0xC0214FFF -> f9993000, irq: 11
eth1: Using hotplug firmware load.
ipw2100: Associated with 'Wireless' at 11Mbps, channel 6

I then requested and IP Adress trough DHCP:
bash-2.05b# dhcpcd eth1
bash-2.05b# ifconfig eth1
eth1      Link encap:Ethernet  HWaddr 00:0C:F1:07:AE:C9  
          inet addr:192.168.10.138  Bcast:192.168.10.255  Mask:255.255.255.0
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:342 (342.0 b)  TX bytes:638 (638.0 b)
          Interrupt:11 Base address:0x3000 Memory:c0214000-c0214fff 

bash-2.05b# ping -c 4 base.fujang.dk
PING base.fujang.dk (212.242.77.76) 56(84) bytes of data.
64 bytes from 212.242.77.76: icmp_seq=1 ttl=244 time=51.9 ms
64 bytes from 212.242.77.76: icmp_seq=2 ttl=244 time=51.1 ms
64 bytes from 212.242.77.76: icmp_seq=3 ttl=244 time=47.3 ms
64 bytes from 212.242.77.76: icmp_seq=4 ttl=244 time=46.1 ms

--- base.fujang.dk ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3772ms
rtt min/avg/max/mdev = 46.140/49.142/51.971/2.479 ms


And my wireless is running :D


This was done on a T41p with 1024mb RAM.
bash-2.05b# uname -a
Linux peanut 2.6.5-gentoo-r1 #1 Sun Apr 18 16:05:50 CEST 2004 i686 Intel(R) Pentium(R) M processor 1700MHz GenuineIntel GNU/Linux

Credits to #ipw2100 @ freenode , go there if your wireless are burning, they are freindly and happy to help!
Udgivet i Knowledge Base, Linux, Networking, Old Base | Skriv en kommentar

install af mod_gzip på apache 1.3 linux

compile mod_gzip: (det er en god ide at have apxs i path btw)

cd /usr/src wget http://heanet.dl.sourceforge.net/sourceforge/mod-gzip/mod_gzip-1.3.26.1a.tgz

tar zxpvf mod_gzip-1.3.26.1a.tgz

cd mod_gzip-1.3.26.1a

make APXS=`which apxs` make install APXS=`which apxs` fetch config fil fra : http://www.schroepl.net/projekte/mod_gzip/config.htm

gem den som mod_gzip.conf i conf dir. tilføj flg i slutnigen af httpd.conf: LoadModule gzip_module libexec/mod_gzip.so AddModule  mod_gzip.c Include /etc/apache/mod_gzip.conf

Der må gerne være virtualhosts efter linierne, men ikke nogle LoadModule direktiver. mod_gzip _skal_ loades som det sidste modul, så det ligger i toppen af module stakken!

Udgivet i Knowledge Base, Linux, Old Base | Skriv en kommentar

Importing osvdb into postgresql

sql# create database osvdb;

sql# create user osvdb password 'yourpasswordhere';

unix# wget http://www.osvdb.org/OSVDB-tables.sql

unix# psql osvdb osvdb < OSVDB-tables.sql
Password:


unix# wget http://www.osvdb.org/OSVDB-views.sql

unix# psql osvdb osvdb < OSVDB-views.sql
Password:

unix# wget http://www.osvdb.org/OSVDB-procedures.sql


unix# find /usr/local/pgsql/ | grep plpgsql.so
/usr/local/pgsql/lib/plpgsql.so

edit OSVDB-procedures.sql

change:

     10 CREATE FUNCTION plpgsql_call_handler () RETURNS language_handler
     11     AS '/usr/lib/postgresql/plpgsql.so', 'plpgsql_call_handler'
     12     LANGUAGE c;
     13 CREATE PROCEDURAL LANGUAGE plpgsql HANDLER plpgsql_call_handler;
     

to :

     10 CREATE FUNCTION plpgsql_call_handler () RETURNS language_handler
     11     AS '/usr/local/pgsql/lib/plpgsql.so', 'plpgsql_call_handler'
     12     LANGUAGE c;
     13 CREATE PROCEDURAL LANGUAGE plpgsql HANDLER plpgsql_call_handler;
     

OBS: Using the postgres user for root access here!

unix# psql osvdb postgres < OSVDB-procedures.sql

Now the schemas should be created, time for importing some data: (for external viewers, remember to agree to the license)

unix# wget http://www.opensecurityfoundation.org/exports/OSVDB.pgdump-Current.tgz

unix# psql osvdb osvdb < osvdb_stable.pgsql
Password:

Now the database should be imported, have fun!
Udgivet i Knowledge Base, Linux, Old Base | Skriv en kommentar

Portsupdate on freebsd (ports only)

cd /usr/ports/net/cvsup-without-gui
make && make install && make clean

Edit the file:
/usr/share/examples/cvsup/ports-supfile
-all you have to do is to change "CHANGE_THIS" to "cvsup.dk.freebsd.org"

Run the update with 
/usr/local/bin/cvsup -L 2 -g /usr/share/examples/cvsup/ports-supfile
Udgivet i FreeBSD, Knowledge Base | Skriv en kommentar

Gnuplot

gnuplot> set yzeroaxis
gnuplot> set xzeroaxis
gnuplot> plot 2*x**2,x**2,0.5*x**2,-0.5*x**2,-x**2,-2*x**2



gnuplot> a(x)=2*x**2
gnuplot> b(x)=x**2
gnuplot> c(x)=0.5*x**2
gnuplot> d(x)=-0.5*x**2
gnuplot> e(x)=-x**2
gnuplot> f(x)=-2*x**2
gnuplot> plot a(x),b(x),c(x),d(x),e(x),f(x)



gnuplot> a(x)=2*x**2
gnuplot> b(x)=x**2
gnuplot> c(x)=0.5*x**2
gnuplot> d(x)=-0.5*x**2
gnuplot> e(x)=-x**2
gnuplot> f(x)=-2*x**2
gnuplot> plot a(x),b(x),c(x),d(x),e(x),f(x)
gnuplot>
Udgivet i Knowledge Base, Old Base | Skriv en kommentar

Webalizer on freebsd

cd /usr/ports/www/webalizer/
make && make install && make clean

Edit /usr/share/examples/webalizer/sample.conf to suit your needs.
Normally you only need to change a few things like the location of the logfile, and the hostname, but there are serveral ways to personalize it.
Run webalizer with
webalizer -c /usr/share/examples/webalizer/sample.conf
// Vladimirr.dk
Udgivet i FreeBSD, Knowledge Base, Old Base | Skriv en kommentar

Change password in postgresql

alter user mike password 'fisk';
Udgivet i Humor | Skriv en kommentar

Change password in postgresql

alter user mike password 'fisk';
Udgivet i Knowledge Base, Linux | Skriv en kommentar

J2me wireless toolkit

compiler/package builder:
http://java.sun.com/products/j2mewtoolkit/download.html

upload til nokia:
http://www.nokia.com/nokia/0,,54690,00.html

go artikel:
http://www.developer.com/java/j2me/article.php/10934_1561591_2
Udgivet i Knowledge Base | Skriv en kommentar

J2me wireless toolkit

compiler/package builder:
http://java.sun.com/products/j2mewtoolkit/download.html

upload til nokia:
http://www.nokia.com/nokia/0,,54690,00.html

go artikel:
http://www.developer.com/java/j2me/article.php/10934_1561591_2
Udgivet i Old Base | Skriv en kommentar