Category Archives: Unix

Unix

kldxref: file isn’t dynamically-linked while upgrade to FreeBSD 7

Recent upgrade to FreeBSD 7 using cvsup with tag : RELENG_7 seem smooth except last result in make installkernel

kldxref: file isn’t dynamically-linked

this message make me confuse, since it’s first time I see the message.

copy old kernel already in my mind until googling for while this url encourage me to

reboot  icon smile kldxref: file isnt dynamically linked while upgrade to FreeBSD 7

checking  after reboot.

$ uname -a
FreeBSD  7.0-BETA1 FreeBSD 7.0-BETA1 #2: Mon Oct 29 15:51:56 UTC 2007

seem ok, time to makeworld and mergemaster .

 in mergemaster

*** Displaying differences between ./etc/rc.d/kldxref and installed version:

— /etc/rc.d/kldxref   2007-06-03 10:41:06.000000000 +0000
+++ ./etc/rc.d/kldxref  2007-10-29 18:11:07.000000000 +0000
@@ -1,10 +1,10 @@
 #!/bin/sh
 #
-# $FreeBSD: src/etc/rc.d/kldxref,v 1.4.2.1 2007/05/24 16:14:37 des Exp $
+# $FreeBSD: src/etc/rc.d/kldxref,v 1.6 2007/04/09 08:53:40 des Exp $
 #

 # PROVIDE: kldxref
-# REQUIRE: root FILESYSTEMS
+# REQUIRE: FILESYSTEMS
 # BEFORE:  netif
 # KEYWORD: nojail

this part might be related too icon smile kldxref: file isnt dynamically linked while upgrade to FreeBSD 7

 

Unix

7.0-BETA1 Available, 6.3-BETA1 coming soon…

Ken Smith kensmith at cse.Buffalo.EDU

We have entered the final phases of the FreeBSD-7.0 Release cycle which
also means the beginning of the FreeBSD-6.3 Release cycle.  Because the
people who support the ports for FreeBSD also need to go through a
freeze cycle as part of releases we had decided to combine the two
releases to try and minimize the impact on the ports maintainers.

The current plan is to interleave the BETAs/RCs of the 7.0 and 6.3
releases, trying to follow this for the dates when the builds will get
started (with them becoming available on the FTP mirrors a day or two
after the builds start):

            7.0     6.3
    BETA1   10/17   10/24
    BETA2   10/31   11/7
    RC1     11/14   11/21
    RC2     11/28   12/5
    REL     12/12   12/19

Tomorrow (10/23) the RELENG_6 branch will be marked "6.3-PRERELEASE" to
note that we have entered the 6.3 release cycle.

The schedule dates are, as usual, tentative.  At this point RELENG_6 is
pretty mature so that schedule should be fairly accurate.  Being a new
branch it is at least somewhat likely the dates for 7.0 will wind up
slipping.

The 7.0-BETA1 builds have completed and are on many of the FreeBSD
mirror sites.  If you want to update an existing machine using cvsup use
RELENG_7 as the branch tag.  Instructions on using FreeBSD Update to
perform a binary upgrade from FreeBSD 6.x to 7.0-BETA1 will be provided
via the freebsd-stable list when available.

For quick dl :

7.0-BETA1-i386-disc1.iso

Unix

Hammer Filesystem on DFlyBSD 2.0

Recent blogwalking to dragonflybsd related blog lead me to Hammer filesystem.

Another filesystem, thats my thought in first impression till I see more description about it . Dragonflybsd 2.0 will include this filesystem.

I still waiting for FreeBSD releng 7 for it’s ZFS. I’m quite happy for snapshot version ( September version ). Can’t wait for 7.0 icon smile Hammer Filesystem on DFlyBSD 2.0

Perhaps upgrading ftp server to 7.0 after released icon wink Hammer Filesystem on DFlyBSD 2.0

so far performance of gstripe still awesome for me.

Will prepare more room for hammer and zfs testing.

more reading :

 

 

Unix

Upgrade maia-mailguard to 1.02a

Using maia-mailguard reduce spam in my mail server with accuracy 96% – 99%.

Till I visit maia-mailguard site and find new version, 1.02a

my steps for upgrading in freebsd 6.2 stable :

1. wget http://www.maiamailguard.com/files/maia-1.0.2a.tar.gz

2. tar xvzf maia-1.0.2a.tar.gz

3. cd maia-1.0.2

4. kill all process related to amavis

  4.1 amavisd stop
  4.2 ps -ax | grep amavis && kill all related process

5. copy amavis file

   cd maia-1.0.2
   cp amavisd-maia /usr/local/sbin/
   chown root /usr/local/sbin/amavisd-maia
   chmod 755 /usr/local/sbin/amavisd-maia

6. make symbolic link

   ln -sf /usr/local/sbin/amavisd-maia /usr/local/sbin/amavisd

read more »

Linux Unix

Plan for Trying Debian

Just stumble upon on distrowatch news titled "From FreeBSD to Debian GNU/Linux".

I know that feel, when you must set a server in quick then I love simple and quick way. After reading the news I’ll try to set up full server like I use to build with FreeBSD.

Just need to play around with debian style with their apt-get.

Can I install apache 1.3.39 with php5 and mysql 4.0.27 with apt-get?

What about downgrade php5 to php4 in the middle of operation?

no..no, I like ‘stable’ application. Thats why I choose djbdns, qmail ( I don’t use anymore for some reason) and pure-ftpd.

Just make it simple guys, better know your fav OS will help you to make decision. But I still need to install debian for workshop reason icon smile Plan for Trying Debian

Which OS is good for server ?

depend on your knowledge, make sure you know it closely icon wink Plan for Trying Debian


PHP Unix

Multiple domains login in roundcube webmail

Roundcube is very good solution for webmail. I use squirrelmail for almost 4 years and I like it too.

In production server I install squirrelmail and roundcube as well for give other user different experience icon smile Multiple domains login in roundcube webmail

using mail and mail2 as prefix and multiple domains need special attention in roundcube.

After search in their forum I like this snippet :

 function getDomain() {

    $host=$_SERVER['HTTP_HOST'];

    $prefix=’mail’;

    $arr=explode(‘.’,$host);

    if ($arr[0]==$prefix) { unset($arr[0]); $host=implode(‘.’,$arr); }

    else { $host=”; }

    return $host;

}

plus this line :

$rcmail_config['username_domain'] = getDomain();

 put that in config/main.inc.php

for my case where I use mail and mail2 just edit the line :

if ($arr[0]==$prefix) { unset($arr[0]); $host=implode(‘.’,$arr); }

into

if ($arr[0]==$prefix or $arr[0]==’mail2′) {

unset($arr[0]); $host=implode(‘.’,$arr);

}

 Working  well for me icon smile Multiple domains login in roundcube webmail

Unix

VirtualBox 1.5 work well with FreeBSD 6.2

Recent VirtualBox (version 1.5) work well with FreeBSD 6.2

  • Windows XP SP2 as host
  • Smooth installation
  • 2 GB HD
  • 2 Ethernet card ( dhcp work well and internal too)

Great release, will try this Vbox version for PCBSD 1.4RC icon smile VirtualBox 1.5 work well with FreeBSD 6.2

 

Unix

Options in FreeBSD ports

some useful options :

  • make config
  • make showconfig
  • make rmconfig

make rmconfig will remove old options saved.

If not work try to clean first icon smile Options in FreeBSD ports

Also useful switch in portupgrade :

  • portupgrade -aFrR (will download all required file without install)
  • -i, need your decision.

Unix

Maia-mailguard,clamav & Spamassasin working well

Recent mail server upgrade to new system (FreeBSD 6.2 stable) satisfy me icon smile Maia mailguard,clamav & Spamassasin working well

 Maia mailguard,clamav & Spamassasin working well

 Maia mailguard,clamav & Spamassasin working well

hmmm….

spamassasin rules grow to 379 rules from 41 rules.

very good.

I miss spam now icon wink Maia mailguard,clamav & Spamassasin working well

Unix

Migrating email accomplished (postfix+mysql+dovecot)

Fiuh, finally migrating email task is clear.

Almost 3500++ email account from vmailmgr based system moved to postfix with mysql backend and dovecot support.

thanks to Bendiken script that convert things magically icon smile Migrating email accomplished (postfix+mysql+dovecot)

Generally the steps are :

1. Rsync email to new server

2. Change to dovecot style with migration script, make it in looping.

Just combined with little script like this :

migrating.sh

#!/bin/sh

ls /email/domain.com/users | while read u1;

do /home/rasyid/tools/courier2dovecot.sh "/email/domain.com/users/$u1/" ;

done

write in one line and chmod +x to make it executeable.

3. Change ownership of email folder to postfix and symlink it to real place.

Done

I’ve try roundcube mail and working fine for me. But since more user complain about some feature that not working well (perhaps browser issue) I change webmail back to squirrelmail icon wink Migrating email accomplished (postfix+mysql+dovecot)

back to epsbed report.

 

Unix

Using Sanesecurity Signatures for pdf email

A lot of pdf mail arrive in mailbox and maia can’t detect that. After googling I found in howtoforge about Filtering PDF-/XLS-/Image-Spam With ClamAV (And ISPConfig) On Debian/Ubuntu.

I wanna try it for FreeBSD, after red last section I try to update the scripts.

Changing two lines as suggested based on clamav installation on FreeBSD 6.2

clam_sigs="/var/db/clamav/"

clam_user="vscan"

run the script :

jedimaster# sh ss-msrbl.sh
=================================
SaneSecurity SCAM Database Update
=================================

curl: not found

my bad, Installing curl first icon smile Using Sanesecurity Signatures for pdf email

jedimaster# cd /usr/ports/ftp/curl && make install

jedimaster# whereis curl
curl: /usr/local/bin/curl /usr/local/man/man1/curl.1.gz /usr/ports/ftp/curl
read more »