Tuesday, February 19, 2008

WordpressMU with wp-phpmailer and WP e-Commerce plugins

First install WordPressMU from here.
+ Open the package file
+ I placed the files in /var/www/wpmu
+ sudo chown -R www-data:www-data /var/www/wpmu
+ Create/edit /etc/apache2/site-available/wpmu

ServerName wpmu.localhost.localdomain
DocumentRoot /var/www/wpmu
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from ::1/128

+ sudo a2ensite wpmu
+ sudo /etc/init.d/apache2 reload
+ sudo vi /etc/hosts, add wpmu.localhost.localdomain on localhost localhost.localdomain wpmu.localhost.localdomain

+ Create MySQL user & database name it both : wpmu
+ open-up http://wpmu.localhost.localdomain
+ just fill-up the fields
+ OK. wpmu should be up and running

I try to create a new blog.
Somehow wpmu send activation/password via email but I don't remember I ever setting some SMTP or else in wpmu. No wonder the email never come.
I search this issue and I got this link .
You need to download this plugin.
After you extract the plugin to /var/www/wpmu/wp-content/plugins/, you need to activate it via plugins menu with admin user.
And set the SMTP server under Options menu.

Other plugin you may have interested as I need to search a shopping cart with multiple store support is WP e-Commerce.

Some issues with wordpress :
- the mail notification didn't report any error even when there is no mailer installed.
- cannot delete user before the user is active. I need to wait until 2 days when automatic removal removed the user that did not confirm the activation.

Friday, February 15, 2008

Conexant Modem driver for Ubuntu 7.10

As my previous problem with my modem on HP 520 Intel Core Duo.
I found this driver at DELL support wiki.

Please check above link and follow the installation instruction.

Sunday, February 03, 2008

Windows Vista installer partition tool screwed my linux part

Last weekend I need to install Win Vista on my notebook as a second OS after my Ubuntu 7.10 .
Of course I select to manually setup the partition for it. I have 1 empty partition on the end of my disk. After I select my last partition, and recreate NTFS then the nightmare is begun (it was literally in the middle of the night).
I lost my home partition (partition where my /home folder reside).
I think it's because the partition number is bigger than the new created NTFS partition.
Do you got it ? OK, let me list my partitions :
1. FAT32 /dev/sda1
2. Linux ext3 / (root) /dev/sda2 <<< Ubuntu
3. Linux swap /dev/sda3
4. Logical part /dev/sda4
5. Linux ext3 /home /dev/sda8 <<<<< look, the number is not sequenced
6. Linux ext3 (public) /dev/sda5 <<< I mounted somewhere as shared public
7. Linux ext3 / (root) /dev/sda6 <<< Mandriva (I planned to remove it later)
8. Linux ext3 (spared space) /dev/sda7 <<< this was the part that I changed to NTFS

After I boot from Windows Vista CD then I select to manually setup my partition.
The process should be as simple as to delete /dev/sda7 and create the NTFS partition. But, then I saw that my number of partition is wrong. Somehow the tool screwed up my disk.
So, I lost my /dev/sda8 .....
After I installed Windows Vista I looked for Linux partition recovery tool. I found 2 tools that is free. First is the DiskInternal Linux recovery version 1 (don't use the last version coz it somehow hanged-up when I want to save the recovered folder). But it can only recovered the tree structure and filename. When I check the content of the file, it just a mess of bytes.
So, I use R-Linux from R-Tools. Yes, it can be use to recover ext3 FS not just ext2. ... It was quite confusing how to use it. But finally I got it. Then my files was comeback to me again ....

Friday, February 01, 2008

Ubuntu 7.10 + gprs Nokia E61 + internet sharing with WiFi

We can have peer to peer (ad-hoc) WiFi for sharing internet connection with another PC/Laptop.
In my notebook HP 520 Intel Core Duo, I create couple files for this purpose :
Also I use wvdial to dial Nokia E61 modem.

1. Bash script file, you can name it as 'internet_sharing.sh'.


# released old rfcomm0 connection
sudo rfcomm release 0
sleep 3
# bind my E61 via bluetooth, provided you already paired it
sudo rfcomm bind 0 00:12:D2:6B:1F:4F 2
sleep 5
wvdial -C btcentrin.wvdialconf &

## eth1 is my WiFi
sudo iwconfig eth1 mode Ad-hoc channel 1 ESSID migenet

## sharing the WiFi
sudo modprobe iptable_nat

## You may need one of these lines to set the ip_forward
# sudo echo 1 > /proc/sys/net/ipv4/ip_forward
# sudo systcl -W net.ipv4.ip_forward=1

sudo iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

sudo iptables -A FORWARD -i eth1 -j ACCEPT


2. btcentrin.wvdialconf file . Centrin is my gprs provider .

[Dialer Defaults]
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,"IP","centrin.net.id"
Modem Type = Analog Modem
Phone = *99#
ISDN = 0
Username = johndoe
Init1 = ATZ
Password = thesecret
Modem = /dev/rfcomm0
Baud = 115200

Then you just run the internet_sharing.sh file.
And your partner PC/Laptop just need to set the appropriate WiFi ESSID and key.