Monday, March 15, 2010

Using root account on Debian 5.x

I know this is really basic. Most of you can even type with your eyes close. But being a Redhat/Fedora enthusasist for seveal years, stepping into Debian take a bit of adjustment....One simple is how do I sudo a root especially since by default Debian disable the root account.

It is that simple.
# sudo -s

Saturday, March 13, 2010

Friday, March 12, 2010

Installing Gallery 1.5 on CentOS 5 and Apache

Gallery is a open source web based photo album organizer. Gallery gives you an intuitive way to blend photo management seamlessly into your own website whether you're running a small personal site or a large community site.


There are coexistence for 2 version of Gallery. Gallery 1.x and Gallery 2.x One question you may ask is why 2 versions. For more information on the 2 version comparison, do take a look G1-G2 Comparison from Gallery
 
This blog entry will focus on the Gallery 1.5 which uses File Metadata Storage. This documentation is a modification of the original documentation Gallery1:Installation on a Unix/Linux Server with Shell Access
 
Step 1: Change your current working directory to the directory where you want to install Gallery, and download the Gallery tarball

cd /var/html/www 

Step 2: Change to your fresh gallery directory
cd gallery 

Step 3: Create two blank files, .htaccess and config.php, and chmod them 0666
touch .htaccess
touch config.php
chmod 0666 .htaccess config.php 

Step 4: Assuming you are saving the album in the home directory of user named "photo" /home/photo
cd /home/photo/public_html 
mkdir albums
chmod 0777 albums
cd /home
chmod 711 /home/photo

Create a softlink from /var/www/html/albums to /home/photo/public_html/albums
cd /var/www/html/
ln -s /home/photo/public_html/albums albums

Step 5: Configure Apache
vim /etc/httpd/conf/httpd.conf
Type the following in httpd.conf
Restart Apache
Service httpd restart

Step 6: Install the latest version of jhead
You have to enable your EPEL repository to get the latest jhead 2.87
yum install jhead

Step 7: Launch the Gallery web-based configuration......
http://yourwebsite/gallery/setup and follow through...

Your Gallery should be up and running in no-time

Encountering Yum error in CentOS 5.x - Traceback (most recent call last) : File "/usr/bin/yum", line 28, in ?

After I have installed CentOS 5.4, and do a yum update, I encountered an error
Traceback (most recent call last) :
     File "/usr/bin/yum", line 28, in ?
     import yummain
ImportError: No module named yummain

I tried doing yum clean all, but the error came up even for this command. To solve the issue, I've used rpm and re-install yum-3.2.22-20.el5.centos.noarch.rpm from the CentOS 5.4 DVD again and the problem ceased.
rpm -Uvh yum-3.2.22-20.el5.centos.noarch.rpm

On another note, there were some solution on Google suggesting to install yum-complete-transaction. Now that was quite painful. I did a yum install yum-complete-transaction. But it actually  meant a

yum install yum-utils

Thursday, March 11, 2010

Installing Linux Mint 8 Universal Edition on HP 2133


Installing Linux Mint 8 was a breeze on HP 2133 (WXGA). According to Linux blogs, HP 2133 has propriety Via Chrome 9 graphic controller which causes a lot of issues of getting the graphics to display properly for earlier version of Ubuntu or Linux Mint.

But with Linux Mint 8, the installation was very smooth. The only minor issue was that the Broadcom Wifi has to be installed via the "Hardware Drivers" found in the control panel.  Choose the "Broadcom STA wireless driver" and your HP 2133 will be up with no time.

Linux Mint 8 works flawlessly with mobile broadband such as the Huawei E220.

My favorite desktop OS with my favourite netbook.....