Forfatterarkiv: black

finding i2c chips on linux 2.6

compile the i2c subsystem and the correct bus driver <*> I2C support <*> I2C device interface I2C Algorithms —> <*> I2C bit-banging interfaces I2C Hardware Bus support —> <*> Intel 801 <*> ISA Bus support Hardware Sensors Chip support —> … Læs resten

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

sql til mod_sql_log

smid mod_sql_log ind: http://www.outoforder.cc/projects/apache/mod_log_sql/’ guide: http://www.linux-mag.com/2002-10/lamp_01.html sæt flg i mod_sql_log.conf: LogSQLLoginInfo localhost apache KoDe LogSQLSocketFile /var/run/mysql/mysql.sock LogSQLDatabase apache LogSQLCreateTables On LogSQLMassVirtualHosting On LogSQLPreserveFile apache_queries.sql nice queries: # sidste 30 besøg med lidt relevant data SELECT remote_host, request_uri, bytes_sent, status, FROM_UNIXTIME(time_stamp) … Læs resten

Udgivet i Apache, Knowledge Base, Old Base, SQL | Skriv en kommentar

converting ext2 to ext3 by adding a journal

for all partitions run: tune2fs -j /dev/hdXX remember to edit fstab, filetype to ext3, and remount to activate journal…

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

using ISO-8859-1 in samba

if æøå is making trouble, add this line to smb.conf under [global] client code page = 850 character set = ISO8859-1 valid chars = æ:Æ ø:Ø å:Å

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

maildrop MDA upon vpopmail + imap

d /usr/src wget http://heanet.dl.sourceforge.net/sourceforge/courier/maildrop-1.6.3.tar.bz2 tar jxpvf maildrop-1.6.3.tar.bz2 cd maildrop-1.6.3 ./configure –prefix=/usr make make install-strip now the tricky part: go to the directory of delivery (etc /var/vpopmail/domains/domain.com/user) make a control file: ‘.qmail’ containing: | /usr/bin/maildrop ./mailfilter and a control file: ‘mailfilter’ … Læs resten

Udgivet i Knowledge Base, Linux, 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 … Læs resten

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

remote editing ower scp in vim

created: August 27, 2003 11:10 complexity: intermediate author: Roberto as of Vim: 6.0 I’m frequently editing files remotely, but if the network traffic is tight, then a normal VIM session turns into a tortuous event. The solution to that was … Læs resten

Udgivet i Knowledge Base, Networking, Programmering | Skriv en kommentar

special front page from certain IP’s in php

This is trivial I know, but I needed to store the code as I don’t use it anymore… $page = $_REQUEST[‘page’]; if ($page == ”) { /* kode for at sætte specifik forside for specifikke IP’er */ $this_ip = split(“\.”, … Læs resten

Udgivet i Knowledge Base, PHP, Programmering | Skriv en kommentar

using smtp.mai.dk as smarthost with qmail

echo “:smtp.mail.dk” >> /var/qmail/control/smtproutes remember to ‘man qmail-remote’

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

ADSL sammenkobling

adsl samling: Står din gateway langt fra hvor telefonkablerne kommer ind i huset? Eller har du mange telefonstik i huset og gider ikke til at trække nye kabler ud til dem alle sammen? Så kan du trække et nyt kabel … Læs resten

Udgivet i Knowledge Base, Networking, Old Base, Uncategorized | Skriv en kommentar