Unix

Upgrade Dovecot 1.0.10 to 1.0.13

Recent ports update give old ports that need to update.

Dovecot

After upgrade to 1.0.13

mail# pkg_info | grep dovecot
dovecot-1.0.13      Secure and compact IMAP and POP3 servers

I see confirmation from dovecot :

Warning: mail_extra_groups setting was often used insecurely so it is now deprecated,

use mail_access_groups or mail_privileged_group instead

Maybe I’m wrong, try restart dovecot service.

mail# /usr/local/etc/rc.d/dovecot restart

Stopping dovecot.
Waiting for PIDS: 42620.
Starting dovecot.

Warning: mail_extra_groups setting was often used insecurely so it is now deprecated, use mail_access_groups or mail_privileged_group instead

still same message, after read the conf . I decide to find the keywords in conf.

mail# ee /usr/local/etc/dovecot.conf

change the line:

# Grant access to these extra groups for mail processes. Typical use would be
# to give "mail" group write access to /var/mail to be able to create dotlocks.
#mail_extra_groups =
mail_extra_groups = mail

into :

mail_access_groups = mail

trying restart service :

mail# /usr/local/etc/rc.d/dovecot restart

Stopping dovecot.
Waiting for PIDS: 43112.
Starting dovecot.

Great, time to find out what is that mean icon smile Upgrade Dovecot 1.0.10 to 1.0.13

Step By Step

Enter Your ebay PID

Recently I’m installing wordpress plugin for getting ebay auction data called phpybaylite.

As usual process for install the plugin in wp is easy except for finding information in plugin configuration : ebay PID

After figure out the way, finally I can find my ebay PID, here’s the steps:

1. Login to cj account, pick ebay from drop down list of ‘My Advertisers’.

ebay1 Enter Your ebay PID

ebay2 Enter Your ebay PID

Click GO.

 

2. Pick any link, for this example I choose ‘Text Link

ebay11 Enter Your ebay PID

Click on ‘Get HTML‘.

ebay21 Enter Your ebay PID

3. Below ‘Link Type’ you’ll see PID, in this case ’2896417′. This number is the one you looking for, called as ebay PID.

ebay3 Enter Your ebay PID

4. Enter the number into wp-plugin configuration and click update to save your information.

4 Enter Your ebay PID

 

 Done, you can use it to display ebay auction for your niche category icon smile Enter Your ebay PID

P.S : Link for download the plugin :

Lite Version, support only USA

Pro version, support many countries plus other great feature. I use that as my country got reject from ebay USA.

PHP

php explode() and wordwrap()

Whats the different of explode() and wordwrap() ?

Answer :

just see this example for explode()

<?php

$birthday=’1998-12-11′;

//we need to split the component to date, month and year

$day_parts=explode(‘-’,$birthday);

// we use – as tool to separate, now print

$date_component=$day_parts[2];

$month_component=$day_parts[1];

$year_component=$day_parts[0];

?>

Wordwrap will ‘wrapping’ user input, like formatting crazy user who type ‘aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa’ till he satisfied and brake our guestbook table.

Just make sure to add number bigger than 0 to enable wordwrap.

Unix

FreeBSD 7 update with csup

FreeBSD 7 released in perfect time, as my backup server need to upgrade I’m eager to choose FreeBSD 7.0RC2, then update to FreeBSD 7 RC3 and now in progress to change for RELENG_7 tag using csup. Yes, I use csup not cvsup.

Another plan with FreeBSD 7.0 is try ZFS filesystem. already se zfs.ko in the lists icon smile FreeBSD 7 update with csup

Very good improvement and thank you for great work guys.

I love FreeBSD.

Unix

Pfsense 1.2 and DragonFlyBSD 1.12

What a day, two great iso launch in same day icon smile Pfsense 1.2 and DragonFlyBSD 1.12

DragonFlyBSD reach the 1.12 number and planned to release it’s 2.0 with Hammer filesystem.

Pfsense getting mature and reach 1.2.

Quick link for download :

DragonFlyBSD : Here

PfSense : Here

Download time guys icon smile Pfsense 1.2 and DragonFlyBSD 1.12

Unix

Hammer Filesystem update, waiting for FreeBSD 7.0

Hammer filesystem updated, from Matt :

HAMMER continues to progress well.  The blockmap is in good shape   and I am moving on to the next item on the list.  All major functions  work and appear to be stable.

    Three items are needed for an ‘alpha’ release:

    * garbage collection code.  This will be responsible for re-optimizing   the filesystem by scanning the B-Tree and copying data out of partially  free big-blocks, allowing those blocks to be freed.

    * undo fifo (‘instant’ recovery after a crash).  This will handle  all normal crash recovery cases.
      Because data is not overwritten the undo fifo only needs to record meta-data changes such as B-Tree operations, volume header updates,  blockmap updates, and so forth.  Some minor buffer order will also
      be needed to flush the undo data before flushing the actual change, but its a lot easier then ordering requirements for the original design.

    * hard-core recovery code.  This will scan the whole filesystem and guarantee that everything is in a sane state.  Even if it is never supposed to be needed you can’t release a filesystem without a  utility which does this.

    I am not quite calling for testing yet, but please feel free to play around with it with the provisio that there is no crash recovery or  garbage collection code in-place yet.

Meanwhile FreeBSD 7.0 already reach ‘release’ in my testing box, next testing maybe freebsd 8.0 bleeding edge icon smile Hammer Filesystem update, waiting for FreeBSD 7.0

Go..go..go!

distro news

Distro News, February 2008 Week 3

1. Debian GNU/Linux 4.0r3

Download Link : here

2. Mythbuntu 8.04 Alpha 2

Download Link : mythbuntu-8.04-alpha2-i386.iso | mythbuntu-8.04-alpha2-amd64.iso

3. Frugalware Linux 0.8 RC2

Download Link : frugalware-0.8rc2-i686-dvd1.iso

4. Greenie Linux 1.2.8 "Battle For Wesnoth"

Download Link : uwesnothcd.iso

5. GoblinX Linux 2.6

Download Link : GoblinX-2.6.iso

6. NetSecL 2.2

Download Link : netsecl-2.2-install.iso

7. CentOS 5.1 Live CD

Download Link : CentOS-5.1-i386-LiveCD.iso

8. Scientific Linux 5.1 Live CD/DVD

Download Link : mini_livecd_SL51…iso | livecd_SL51…iso | livedvd_SL51…iso | livecd64_SL51…iso | MD5), livedvd64_SL51…iso

9. Linux Caixa Mágica 12

Download Link : CM12_32_final_dvd.iso | CM12_64_final_dvd.iso

10.Famelix GNU/Linux 2.1 RC1

Download Link : famelix-2.1-B.iso

11. FreeBSD 7.0-RC3

Download Link : 7.0-RC3-i386-disc1.iso | 7.0-RC3-amd64-disc1.iso

Software

Hiren 9.4 is out, ready to serve you

Looking for latest Hiren CD, your wish come true icon smile Hiren 9.4 is out, ready to serve you

Hiren 9.4 is out and ready to serve you.

Quick link for download Hiren CD with patch, click here.

Happy Downloading guys icon wink Hiren 9.4 is out, ready to serve you

Full news and more download link click here

Unix

postfixadmin and mysqli

I just don’t know exact step I’ve done when I see this error message when I try to access postfixadmin :

DEBUG INFORMATION:
MySQL 4.1 functions not available!
database_type = ‘mysqli’ in config.inc.php, are you using a different database?

Please check the documentation and website for more information.

The email server already run for almost 8 months, maybe latest upgrade to mysql 5.0.51a make that issue happened.

I try to see mysqli support from phpinfo(), I see no mysqli module found icon sad postfixadmin and mysqli

mysql 5051a postfixadmin and mysqli

Maybe I just deinstall php5-mysqli support :

mail# pkg_info | grep mysql
mysql-client-5.0.51a Multithreaded SQL database (client)
mysql-server-5.0.51a Multithreaded SQL database (server)
p5-DBD-mysql-4.006  MySQL driver for the Perl5 Database Interface (DBI)
php5-mysql-5.2.5_1  The mysql shared extension for php
php5-mysqli-5.2.5_1 The mysqli shared extension for php

Wrong, I still see php5-mysqli-5.2.5_1 but not exist in phpinfo() output.

or maybe I just remove the support from extensions :

mail# cd /usr/local/etc/php
mail# ls
extensions.ini
mail# cat extensions.ini | grep mysqli
extension=mysqli.so

No, I still see tthe extension.

last option : reinstall the module

mail# cd /usr/ports/databases/php5-mysqli
mail# make deinstall
===>  Deinstalling for databases/php5-mysqli
===>   Deinstalling php5-mysqli-5.2.5_1
pkg_delete: package ‘php5-mysqli-5.2.5_1′ is required by these other packages
and may not be deinstalled (but I’ll delete it anyway):
php5-extensions-1.1
postfixadmin-2.1.0_7
mail#
mail# make clean
===>  Cleaning for php5-mysqli-5.2.5_1
mail# make install

mail# apachectl graceful

try to view again from phpinfo() output :

mysqli 5051a postfixadmin and mysqli

Great to see you again buddy icon smile postfixadmin and mysqli

Welcome back mysqli icon wink postfixadmin and mysqli

Unix

make.conf and fetch problem

Just stupid error but take me a few days to sort it out.

Basically we have two gateway, A and B. I use to tell fetch in freebsd to use connection from gateway A for updating ports since gateway A have faster connection than gateway B.

Due to the change of IT policy, I no longer can use gateway A, we separate the network physically.

I don’t realize that when updating ports came :

proxy# csup -g -L2 ports-supfile

………………………………………………

Delete ports/x11-wm/xfce4-wm/files/patch-display.c
 Delete ports/x11-wm/xfce4-wm/files/patch-display.h
 Delete ports/x11-wm/xfce4-wm/files/patch-hint.c
 Delete ports/x11-wm/xfce4-wm/files/patch-hint.h
 Edit ports/x11-wm/xfce4-wm/pkg-plist
  Add delta 1.19 2008.02.12.18.11.03 oliver
Shutting down connection to server
Finished successfully

Fetchindex time :

proxy# make fetchindex

fetch: http://www.FreeBSD.org/ports/INDEX-6.bz2: Operation timed out
fetch: http://www.FreeBSD.org/ports/INDEX-6.bz2: Operation timed out

Until I realize about my make.conf:

proxy# cat /etc/make.conf

 

# added by use.perl 2007-10-08 16:42:06
without_11x="YES"
PERL_VER=5.8.8
PERL_VERSION=5.8.8
FETCH_ENV=http_proxy=http://proxy:$%#fert@10.10.12.10:3128

I forgot the line of FETCH_ENV icon sad make.conf and fetch problem

Quick solution for this case is mark it as comment by put # in front of the line.

#FETCH_ENV=http_proxy=http://proxy:$%#fert@10.10.12.10:3128

and save the file.

proxy# make fetchindex

/usr/ports/INDEX-6.bz2                        100% of 1152 kB   48 kBps 00m00s

sighhh, I just blame my pf.conf already icon smile make.conf and fetch problem

Just for sharing.

Have a nice weekend.

 

distro news

Distro News,February Week 2

1. Linux openSUSE 11.0 Alpha 2

Download link : openSUSE-11.0-Alpha2-DVD-i386.iso | openSUSE-11.0-Alpha2-DVD-x86_64.iso

2. Nexenta Core Platform 1.0

Download link : nexenta-core-platform_1.0-b82_x86.iso.zip

3. LinuxTLE 9.0

Download Link : linuxtle-9.0-i386.iso

4. Parted Magic 2.0

Download Link : pmagic-2.0.iso

5. Dreamlinux 3.0 Beta 3

Download Link : DL3.0-Beta-3.iso

6. FreeBSD 7.0-RC2

Download link : 7.0-RC2-i386-disc1.iso | 7.0-RC2-amd64-disc1.iso

7. OpenSolaris Developer Preview 2

Download Link : in-preview2.iso

8. SLAX 6.0.0

Download Link : slax-6.0.0.iso

9. Mandriva Linux 2008.1 Beta 2

Download Link : mandriva-linux-2008…dvd-i586.iso | mandriva-linux-2008…dvd-x86_64.iso