Debian

Tips for Remove Legacy Kernel Image for Debian/Ubuntu

After numbers of update to your Debian/Ubuntu installation, usually a lot of legacy kernel image are keep inside your box, so you may hope to remove all of them. Just execute following command (i.e. after aptitude -y full-upgrade && reboot):

dpkg -l 'linux-*' | \
  sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | \
  xargs sudo apt-get -y purge

Apache2 + NFSv4 + OCFS2 + ldirectord Cluster on Debian Wheezy + Pacemaker

primitive p_apache2 lsb:apache2
primitive p_controld ocf:pacemaker:controld
primitive p_exportfs_exports ocf:heartbeat:exportfs \
        params fsid="0" directory="/exports" options="rw,sync,insecure,crossmnt,no_subtree_check" clientspec="*"
primitive p_exportfs_exports_home ocf:heartbeat:exportfs \
        params fsid="1" directory="/exports/home" options="rw,sync,insecure,no_subtree_check,no_root_squash" clientspec="*"
primitive p_fs_exports_home ocf:heartbeat:Filesystem \
        params device="/home" directory="/exports/home" fstype="none" options="bind,rw" run_fsck="no"

IBM DB2 v9.7 + Apache 2.2 + PHP5.3 on Debian Squeeze HOWTO

This HOWTO will guide you though installing IBM DB2 v9.7 + Apache2.2 + PHP5.3 on Debian Squeeze.

You may can't expect that how similar of installing DB2 as that of Oracle. Most of the installation procedure are just identical, e.g. install Debian Squeeze with minimal setup, pre-configure of Linux + installation procedure, or post-installation setup and testing. So in case you can loss in this HOWTO, please reference with that of Oracle ;-)

Before start you will need to prepare your Debian with:

  • A complete Debian Squeeze installation with X11.
  • Static public IP address (or you may bind to localhost during installation).
  • Functional hostname, e.g. hardcode it within /etc/hostname and /etc/hosts.

In case of Debian Squeeze you don't need to install too much package by default, but I would like to recommand at least install "SSH server" and "Standard system utilities" during installation, after reboot install a very basic X11 + Gnome as below:

apt-get install gnome-core xorg iceweasel

Then test your X11 with startx ;-)

Drupal + YSlow on Debian Squeeze Performance Tweaking

Before Tweaking

  • Overall performance score: 78
  • Devel dummy user: 50
  • Devel dummy Arcitle: 50
  • Firefox Web Developer Toolbar: Cache off

Checkpoints:

Virtualmin on Debian Squeeze for Drupal HOWTO

Virtualmin is a powerful and flexible web hosting control panel for Linux and UNIX systems based on the well-known Open Source web-based systems management GUI, Webmin. By using Virtualmin we can simply create a virtual hosting environment for Drupal development/hosting within few clicks, including both Linux user account, Apache virtualhost, MySQL database, PHP5 in FCGI, FTP access, and even more.

This HOWTO will guide you though the Virtualmin installation on top of Debian Squeeze, then demonstrate the virtual hosting functionality by installing a Drupal 7.x website.

Before start I will assume you have a clean Debian Squeeze installed with minimal packages requirement. It is strongly recommend to install Virtualmin for a new host, as it will modify a lot of default settings; from the other point of view, don't install Virtualmin on top of an online production that already well configured ;-)

Oracle Database 11g Release 2 + Apache 2.2 + PHP5.3 on Debian Squeeze HOWTO (Part 3)

This simple HOWTO will guide you about how to setup Apache2.2 + PHP5.3 + OCI8/PDO_OCI from sketch. Compile all package from tarball can give you the maximum flexibility of functionality, e.g. you can enable both mysql/mysqli/pgsql/oci8/pdo_mysql/pdo_pgsql/pdo_oci within single installation.

Before start, I will assume you have Debian Squeeze and Oracle 11gR2 installed correctly, which will not detail within this document. If you really need some help for that, please refer to my other article for more indeed guideline.

Oracle Database 11g Release 2 + Apache 2.2 + PHP5.3 on Debian Squeeze HOWTO (Part 2)

This HOWTO will guide you though installing Oracle Database 11g Release 2 + Apache2.2 + PHP5.3 on Debian Squeeze.

But why we need this HOWTO? Since Oracle only officially support Red Hat Enterprise Linux, SUSE Enterprise Linux and other enterprise level Linux distribution; BTW, there shouldn't be any problem if you hope to use with other distribution, which just need some special configuration and install required dependent packages.

Before start you will need to prepare your Debian with:

  • A complete Debian Squeeze installation with X11.
  • Static public IP address (or you may bind to localhost during installation).
  • Functional hostname, e.g. hardcode it within /etc/hostname and /etc/hosts.

In case of Debian Squeeze you don't need to install too much package by default, but I would like to recommand at least install "SSH server" and "Standard system utilities" during installation, after reboot install a very basic X11 + Gnome as below:

apt-get install gnome-core xorg iceweasel

Then test your X11 with startx ;-)

Oracle Database 11g Release 2 + Apache 2.2 + PHP5.3 on Debian Squeeze HOWTO (Part 1)

This HOWTO will guide you though installing Oracle Database 11g Release 2 + Apache2.2 + PHP5.3 on Debian Squeeze.

In this part 1, we will first install a Debian Squeeze with minimal package requirement. Well, so if you are expert or Debian, please simply skip this part ;-)

Here I will demonstrate the installation based on a KVM client, build by virt-manager, AMD64 CPU architecture, 2GB Ram. This shouldn't be the key point for installation, but just note as your reference.

After this section we will have a Debian Squeeze with:

  • Minimal installation
  • A functional X11 for Oracle installation
  • Static public IP address (or you may bind to localhost during installation).
  • Functional hostname, e.g. hardcode it within /etc/hostname and /etc/hosts.

Tips for Resolve Apache VirtualHost + mod_userdir URL Conflict with mod_rewrite

During revamp and reinstall with my server I decide to update my Drupal 7.x blog's folder under my own ~/public_html, e.g. ~/public_html/edin.no-ip.com/. BTW this also generate another issue which conflict with Apache mod_userdir setup, as my ~/public_html will able to access from http://edin.no-ip.com/~hswong3i/.

OK a quick checklist of my setup (under Debian Squeeze):

Pages

Subscribe to RSS - Debian