Gallery 3 on Ubuntu 12.04 mini-HOWTO

This mini-HOWTO will guide you though installation of Gallery 3 on Ubuntu 12.04, as a subdomain managed by Virtualmin.

Since the main dish of this mini-HOWTO is NOT about Virtualmin + Ubuntu 12.04, so I will assume you have that installed correctly. Please also refer to link provided for more information of subdomain creation.

Virtualmin + Drupal 7.x on Ubuntu 12.04 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 Ubuntu 12.04, then demonstrate the virtual hosting functionality by installing a Drupal 7.x website.

Before start I will assume you have a clean Ubuntu Server 12.04 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 ;-)

Ubuntu 12.04 on Virtualbox 4.1 mini-HOWTO

This mini-HOWTO will guide you though installing Ubuntu Server 12.04 with minimal setup on Virtualbox 4.1.x.

Before start, you should first install latest Virtualbox from https://www.virtualbox.org/wiki/Downloads, including:

  • VirtualBox platform packages
  • Oracle VM VirtualBox Extension Pack

Also, download the latest Ubuntu Server 12.04 install CD from http://releases.ubuntu.com/12.04/

Apache 2.4 + PHP5.4 + PDO_OCI on Ubuntu 12.04 HOWTO

This simple HOWTO will guide you about how to setup Apache2.4 + PHP5.4 + 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 Ubuntu 12.04 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 on Ubuntu 12.04 HOWTO

This HOWTO will guide you though installation of Oracle Database 11g Release 2 on Ubuntu 12.04.

Before start I will assume you have a clean Ubuntu Server 12.04 installed with minimal packages requirement. It is strongly recommend to install on a new host, as it will modify a lot of default settings ;-)

Gitorious on Ubuntu 12.04 mini-HOWTO

Gitorious provides open source infrastructure for hosting open source projects that use Git. This mini-HOWTO will guide you though the installation procedure on Ubuntu 12.04.

Before start I will assume you have a clean Ubuntu Server 12.04 installed with minimal packages requirement. It is strongly recommend to install on a new host, as it will modify a lot of default settings ;-)

要是換做你們的話?你們會毀滅誰?創造誰?

An interesting article shared by my friend from Facebook:

朋友拿了一份報紙要我作個實驗,我同意了。

問題一︰如果你知道一個女人懷孕了,她已經生了8個小孩子了,其中有3個耳朵聾,2個眼楮瞎,一個智能不足,而這個女人自己又有梅毒,請問,你會建議她墮胎嗎?

我剛要回答,朋友制止了我,又問我第二個問題。

問題二︰現在要選舉一名領袖,而你這一票很關鍵,下面是關于3個候選人的的一些事實︰

候選人A︰跟一些不誠實的政客有往來,而且會星象佔卜學。他有婚外情,是一個老煙槍,每天喝8到10杯的馬丁尼。

候選人B︰他過去有過2次被解雇的記錄,睡覺睡到中午才起來,大學時吸鴉片,而且每天傍晚會喝一大夸特威士忌。

候選人C︰他是一位受勛的戰爭英雄,素食主義者,不抽煙,只偶爾喝一點啤酒。從沒有發生婚外情。

請問你會在這些候選人中選擇誰?

我把答案寫在紙上,然後朋友告訴我︰

候選人A是富蘭克林羅斯福,候選人B是溫斯頓丘吉爾,候選人C是亞道夫希特勒。

我听了答案張大了嘴巴。朋友問我你是不是為人們選擇了希特勒?那你會建議哪個婦女去墮胎嗎?

我說︰這個問題不用考慮,我們受優生優育教育多年了,都生那麼多歪瓜劣棗了,就別在添亂了。我建議她去墮胎。

朋友告訴我︰你殺了貝多芬,她是貝多芬的母親。

我又一次張大了嘴巴。朋友說︰嚇一跳吧?本來以為你認為很好的答案,結果卻扼殺了貝多芬,創造了希特勒?

最後的總結是︰所以不要用既定的價值觀來思考事物!

要是換做你們的話?你們會毀滅誰?創造誰?

Read more: 關於「你的決定滅了誰」這則文章,你選擇相信 or 尋找答案?

P.S.

交通大學在民國93年經營管理組的考題中,還把這個測驗題當做考題之一,最後一行加上:
請你將讀完以上這段敘述對你在管理決策的啟發寫下來。

天哪~這教人怎麼寫?

如果是我,大概會寫:上述資訊告訴我們~做任何決策前,一定要取得充足而正確的資訊,免得被誤導後做出錯誤的決策!...(=_=)

Tags: 

夫唯不爭,故天下莫能與之爭。

曲則全,枉則直,窪則盈,敝則新,少則得,多則惑。

是以,聖人抱一為天下式。

不自見,故明;不自是,故彰;不自伐,故有功;不自矜,故長。夫唯不爭,故天下莫能與之爭。

古之所謂「曲則全」,豈虛語?故誠全而歸之。

Tags: 

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"
primitive p_fs_home ocf:heartbeat:Filesystem \
        params device="/dev/sdb1" directory="/home" fstype="ocfs2" options="_netdev,defaults,relatime,grpquota,usrquota" run_fsck="no"
primitive p_ipaddr2_gw ocf:heartbeat:IPaddr2 \
        params ip="10.250.2.70" cidr_netmask="16" nic="eth0" lvs_support="true"
primitive p_ipaddr2_lo ocf:heartbeat:IPaddr2 \
        params ip="10.250.2.70" cidr_netmask="32" nic="lo"
primitive p_iscsi_network_home ocf:heartbeat:iscsi \
        params portal="10.250.2.51:3260" target="iqn.2011-12.com.pantarei-design.hkstp.san:network"
primitive p_ldirectord ocf:heartbeat:ldirectord \
        params configfile="/etc/ldirectord.cf"
primitive p_nfs-common lsb:nfs-common
primitive p_nfs-kernel-server lsb:nfs-kernel-server
primitive p_o2cb ocf:pacemaker:o2cb
primitive p_open-iscsi lsb:open-iscsi
primitive p_quota lsb:quota
primitive p_quotarpc lsb:quotarpc
primitive p_rpcbind lsb:rpcbind
primitive p_stonith stonith:ssh \
        params hostlist="network2 app1 app2 app3 app4"
group g_apache2 p_apache2
group g_base p_controld p_o2cb p_open-iscsi p_rpcbind p_nfs-kernel-server p_nfs-common
group g_exportfs p_exportfs_exports p_exportfs_exports_home
group g_fs p_iscsi_network_home p_quota p_quotarpc p_fs_home p_fs_exports_home
group g_ldirectord p_ipaddr2_gw p_ldirectord
clone cl_apache2 g_apache2 \
        meta interleave="true"
clone cl_base g_base \
        meta interleave="true"
clone cl_exportfs g_exportfs \
        meta interleave="true"
clone cl_fs g_fs \
        meta interleave="true"
clone cl_ipaddr2_lo p_ipaddr2_lo \
        meta interleave="true"
clone cl_stonith p_stonith \
        meta interleave="true"
colocation c_ldirectord -inf: cl_ipaddr2_lo g_ldirectord
order o_services inf: cl_base cl_fs cl_exportfs cl_apache2
property $id="cib-bootstrap-options" \
        dc-version="1.1.6-9971ebba4494012a93c03b40a2c58ec0eb60f50c" \
        cluster-infrastructure="openais" \
        expected-quorum-votes="5" \
        stonith-enabled="true" \
        no-quorum-policy="ignore" \
        last-lrm-refresh="1324625673"

Pages

Subscribe to edin.no-ip.com RSS