Posted on Apr 16, 2008 under General, Ubuntu |
If you are experiencing the problem where windows boots up and grub boot loader is missing and you can’t boot to ubuntu , that’s probably because when you run windows installation ( just run it , even you didn’t install it also same result) it tends to clear your grub from the master boot record (mbr). Its totally something you didn’t expect and it hits you badly.
The solution? All you need is Ubuntu live cd.Boot up to ubuntu using the live cd and then you use your terminal to type the following commands :
-$ sudo -s
To make you root.
-$ grub
Here you will enter the grub program.
-$ root (hda, 1)
Then you set the root where your root filesystem for ubuntu is located (which is the location of the grub config file). For example mine is in the hda1 partition. If you are unsure just run fdisk -l in the terminal and you should see /dev/hda3 linux swap , /dev/hda4 and etc. Carefully select and then run
-$setup (hda)
-$quit
And that’s it grub will overwrite the settings and you can now reboot and you should see grub menu. If your grub menu doesn’t contain windows in the selection then you have to insert it in the grub menu file.
-$sudo vim /boot/grub/menu.lst
title WindowsXP PRO
root (hd4,4)
makeactive
chainloader +1
Save and then reboot you should see your windows in the grub menu.
Posted on Jan 26, 2008 under General, Search Engines |
10. Get Local Time: Type in What time is it followed by any city to get the current time.
9. Track Flight Status: Enter the airline and flight number to find out the departure time and estimated arrival for any flight.
8. Convert Currency, Metrics, Bytes and More: Google has a built-in converter calculator. You can enter quarter cup in teaspoons, seconds in a year, 5 US dollars in Euros and countless others.
7. Search for Pages That are “Better Than,” “Similar to,” or “Reminds me of”: Enter “better than keyword” or “similar to keyword” to find Web pages you never knew existed.
6. Use Google as a Free Proxy: Enter cache:website.com to view a Web page that’s been blocked from the computer you’re using.
5. Remove Affiliate Links From Product Searches: To avoid seeing search results from certain sites, enter –site:website.com.
4. Find Related Items: Enter ~ before any search term to find related items as well.
3. Find Music and Comic Books: Enter -inurl:(htm|html|php) intitle:”index of” +”last modified” +”parent directory” +description +size +(wma|mp3) “Band or comic book name” to find music files and comic books.
2. See Images of People, Objects, Etc.: Type in a search term, and click on images to see photos of the results.
1. Search for Faces: If you’re looking for a photo of a person named Rose, and don’t want to see photos of the flower, add &imgtype=face to the end of your image search. It will show you only images of faces.
Posted on Dec 23, 2007 under Apache, General, Ubuntu, Webserver |
You can setup your own webserver in your home and use it to host your own blog from home and fully utilizing your internet access. What do you need for the start of something certain people think its impossible to do?
1. Any working condition PC. (Yes, can be an old one or a latest one, doesn’t matter because we only need HDD space, Good processor and a sufficient amount of RAM)
2. Modem+Router
3. Ethernet Card for that PC
Then you have all the ingredients that is required to cook, why not? Get the Ubuntu 7.10 iso image from this http://www.ubuntu.com/getubuntu/download , download it and burn the image to a cd. If your processor if 64bit , you must get the one for 64bit processors. After you have finished burning the image, just insert the cd into your PC and reboot it. You will be prompted to a menu whereby you need to select Install to the hard disk.

Then the rest will be a guided installation until you reach this stage :

For more guided images of the installation, visit this link http://howtoforge.com/perfect_server_ubuntu7.10 . Just following until the installation only, the rest of the server setup I will guide you through it. Now login to your new ubuntu server. If the router is connected to the server you will be able to ping google.com and get a reply from the packets sent.
Run this command :
sudo apt-get install apache2 mysql-server-5.0 vim mysql-client-5.0 php5-mysql mysql-common php5 php5-common libapache2-mod-auth-mysql libapache2-mod-php5 openssh
This will probably take a while to download and install all of those services needed. Just put a “y” in every request that you get during this installation. Oka, meanwhile waiting for the installation, if your isp doesnt provide you with a static ip address, you probably need to get one ip address from http://dyndns.com . The you will have to create a host , for example mine is gravin.homelinux.net . So if you visit http://gravin.homelinux.net , that will be the exact webserver that we are trying to install here. The blog website is running on wordpress . Later on will guide you on installing wordpress after the setup of your webserver.
Then after that you need to setup inadyn (for dynamic ip adresses only) :
sudo vim /etc/inadyn.conf
Press “a” to insert these text :
username yourdyndnsusername
password yourdyndnspasswdhere
update_period 60000
alias gravin.homelinux.net(here will be your selected dyndns host name)
background
Then type “:wq” to save the file.
You have to set root passwd now ,
sudo passwd root
Enter your passwd and verify again. Then do a “su root” . Once you are root, type “crontab -e” , you will editing the crontab file, type in this text “@reboot /usr/sbin/inadyn” and hit “ctrl + o and ctrl + x. Thats it and you should see @reboot /usr/sbin/inadyn when you type “crontab -l” .
Now, whenever your server starts/reboots, it will automatically direct your dynamic ip address to the dyndns hostname. Direct your web browser to your dyndns hostname, you should see It Works!. Which means your webserver is up and running. Now you just need to install wordpress (which i will guide you on the next post) on it and start blogging!
Posted on Dec 05, 2007 under General, Streamyx, Webserver |
Since a lot of Telekom Malaysia’s broadband service called streamyx ip addresses have been banned by anti-spam organizations such as http://www.spamhaus.org whereby since most of corporations sync their database of spammers with these anti-spam organization drastically effects the outgoing mails to these recipients.
Therefore, TM is taking immediate action to address this issue. Effective 3 December 2007, TM will block OUTBOUND Simple Mail Transfer Protocol (SMTP) traffic or port 25 for all out going e-mails from dynamic IP addresses. Only Outbound SMTP traffic from smtp.streamyx.com and smtp.tm.net.mywill be allowed.
Which means, relatively we can’t send mail in this network using our own email servers. But unless if you change the smtp port in your email server to anything than 25, then it should work fine. Another option is using their smtp-proxy.tm.net.my as your outgoing configuration.