Skip to main content

Posts

OpenBSD 5.3 Pre Order

Hey If you don't know that OpenBSD 5.3 new release is coming soon.. well this is the time to order your new OpenBSD cd set! :) Lot of new features http://openbsd.org/53.html#new And OpenSMTPD is matured enough to be included in 5.3 is a good sign :) Good job for the developer and contributor! You can contribute by buying a cd set here http://openbsd.org/orders.html or you can donate directly to them http://openbsd.org/donations.html  

OpenBSD 5.2 - Installing PHP 5.3.14

As always we will installing PHP from the package system using pkg_add magic. Currently the latest PHP version for OpenBSD 5.2 is 5.3.14 which I think is ok for any web application out there. Let r0ck! /* Installing PHP #pkg_add -i php Ambiguous: choose package for php  a       0:          1: php-5.2.17p12          2: php-5.3.14p1 Your choice: 2 Everything will be install except extension that you might want to install later. The PHP binary will be install in /usr/local/bin/php-5.3 If you don't like to use php-5.3 you can simply create a symbolic link with any name that you want like just a php only without 5.3 thingy. /* Installing additional PHP extension. You can browse the pre compiled package at (Mirror example) ftp://ftp.jaist.ac.jp/pub/OpenBSD/5.2/packages/i386/ Let's say we want to install GD library #pkg_add php-gd-5.3.14p0 Create a symbolic link ln -sf /etc/php-5.3.sample/gd...

OpenBSD 5.2 - NTP

This is how you can stay sync your server time with the world time from ntp.org Installing from ports: #cd /usr/ports/net/ntp #make install Once install, look for ntp readme # more /usr/local/share/doc/pkg-readmes/ntp-4.2.6pl5p0 $OpenBSD: README,v 1.5 2012/04/22 11:41:55 ajacoutot Exp $ +----------------------------------------------------------------------- | Running ntp-4.2.6pl5p0 on OpenBSD +----------------------------------------------------------------------- Several steps need to be taken to properly configure the NTP daemon. 1. First, create or update the file /etc/ntp.conf.  Several    example configuration files can be found here:      /usr/local/share/examples/ntp 2. Now xntpd can be started with:      /etc/rc.d/xntpd start    Or to start 'xntpd' at every boot, add it to pkg_scripts in    /etc/rc.conf.local. #vi /etc/rc.conf.local Add as following : pk...

OpenBSD 5.2 - Fetch ports tree

Sometimes we may use some of the ports tree for our usage instead of using the pkg_add method. Default installation, the ports tree is not included and you have to fetch it manually. This is the how-to : for more reliable you can install wget instead of ftp pkg_add -i wget #cd /tmp #wget -c ftp://ftp.openbsd.org/pub/OpenBSD/5.2/ports.tar.gz once done #cd /usr #tar xzvf /tmp/ports.tar.gz Done!

OpenBSD : Installing with custom partition

This is how the disk layout that I would plan for my setup (It's a Virtualbox) / - root : 500m. This will be 'a'. swap : 1G (so we'll always have enough space for a core dump), this will be partition 'b' /usr : 3g, partition d /tmp : 500m (we don't anticipate much use of this), partition e /usr/local : 5g, partition f /usr/X11R6 : 5g, partition g /home : 5g, partition h /var : 5g (that's a lot of system log files), partition j /var/www : rest of disk, partition k You can follow more specific instruction from here : http://www.openbsd.org.my/faq/faq4.html#Moredisklabel

Yet another Nginx story

Last night one of my friend gtalk me and complaining about his vps is slow and lagging. Further checking the process is highly spike where load average: 173.68, 165.51, 146.09 which is abnormal. I'm thinking the MySQL is consuming all the resources and when I try to restart the process it's come to timeout. No chance at all.. I tried to stop httpd, also timeout and kill come to my hand :) kill -9 [processid] After restart httpd, the load is still high around 4 to 6. I plan to replace Apache with latest Nginx and using php-cgi for communicate with PHP. Surprisingly after I start Nginx the process come to 0.35 not even close to 1.. And that how Nginx act as a hero.. yatta~

OpenBSD : Installing Squid

If you don't know what is squid, please don't think that it's a normal squid that live in the sea! Squid is a web proxy / web caching for your gateway/router. The purpose is to cache image,css,js etc that can reduce your router's workload by supplying to the browser directly from your proxy. This can reduce waiting time and make your browsing more fast. Installing # pkg_add -i squid Ambiguous: choose package for squid  a       0:          1: squid-2.7.STABLE9p15          2: squid-2.7.STABLE9p15-ldap          3: squid-2.7.STABLE9p15-ldap-snmp          4: squid-2.7.STABLE9p15-ntlm          5: squid-2.7.STABLE9p15-snmp Your choice: 1 squid-2.7.STABLE9p15: ok                                                 ...