Wednesday, September 29, 2010

Outing : Kuching Waterfront

The Kuching waterfront, which is really a riverside esplanade, is situated right next to the main hotels and commercial heartland of the city and some other interesting areas near the centre of town include Padungan Street, which is the main Chinatown area of the city, Carpenter Street and India Street. The old Courthouse building forms the link between Carpenter Street and India Street, and there are many well-manicured parks dotted around the city....

Below are the images taken from my latest outing in 5th of raya 2010 with my best friend Namong and Punx. :-



Outing : Sematan

Sematan is a seaside town located 110 km west of Kuching. The town boasts attractions like beautiful beaches, corals, seafood and two nearby national parks - Tanjung Datu National Park and Gunung Gading National Park. I'm outing with my lovely sister, Ana, her husband Awg and two of their son Dyg and Asya. We drove the new Saga, and reach there around 11.30 am. It's just took us around 1 hour to get there from my sister house at Bandar Baru, phase 2.

JUst want to share some shots with you :- :)


Zul Azlan's Wedding Day

Good day fellas,

Last weekend 25th and 26th of SEptember, i went to Zul Azlan's wedding day. He was our office mate and also act as a captain in our MPIC/KPPK FC football squad. I'm not attending as a guest for that day, along with Dein Tanah Merah and Isnin to Friday, we're taking photos there for his lovely and historic day! Selamat pengantin baru dol! :)


NOte : More images will be uploaded after 6th of oct 2010.

Tuesday, September 21, 2010

How to format Nokia 3110c ?

Good day everyone..i'm back blogging after a long raya break... Now this is a simple step i did to save Nani Anton son of my own sister Nokia 3110c phone from random restart and failed to load song to play music. First of all, you can't format 3110c using the 4 keys simultaneously which is "power on button + call + 3 + #", the better solution for you to do is like this :-

1: Turn off your mobile
2: remove your memory card
3: Turn it on again
4: Go to Menu then Applications
5: there will be 2 folders games and collection
6: open each one separately and delete everything inside them
7: Turn your phone off replace the memory card then Turn it on

You're done. Try it maybe it work for you too,,, :)

NOte: You can also try to update the firmware version of this device too..this method always give you a better result!

Saturday, September 11, 2010

Selamat Meyambut Hari Raya Aidilfitri

Dedicated to my "Ska Foundation members", "The Edelhied", ADMC old line-up, school mates, office mates, KBK Members, my followers and others :-

Selamat Hari Raya Aidilfitri, maaf zahir dan batin...

Tuesday, September 7, 2010

Sahur wid Punx Speed Boat @ Planet Sambal

I’m sure Planet Sambal is no stranger to most people in Sarawak. It’s located at Padungan. Not far from SOHO and Everrise. You can easily spot it from the roadside. Planet Sambal opens 24 hours. Sambal wasn't too bad either. Food wise.. :) Here is my random shots using my lovely iphone 4....




Sahur with my very good friend, popular known as "Punx Speed Boat". He is my saviour for most of the time. Rancid says :- "She's not the one coming back for you..." but Punx Speed Boat always be there when i need it...Honestly it's a great pleasure when he is around...tq my friend... :)

Tuesday, August 31, 2010

Happy Independence Day :)

Hari Merdeka (Independence Day) is a national day of Malaysia commemorating the independence of the Federation of Malaya from British colonial rule, celebrated on August 31. In a wider context, it is to celebrate the formation of Malaysia.Today, the celebration of our Independence Day is fall in month of Ramadhan, which is on 21st of Ramadhan.

The effort for independence was spearheaded by Tunku Abdul Rahman Putra Al-Haj, the first Prime Minister of Malaysia, who led a delegation of ministers and political leaders of Malaya in negotiations with the British in London for Merdeka, or independence along with the first president of the Malayan Chinese Association (MCA) Tun Dato Sir Tan Cheng Lock and fifth President of Malaysian Indian Congress Tun V.T. Sambanthan. Once it became increasingly clear that the Communist threat posed during the Malayan Emergency was petering out, agreement was reached on February 8, 1956, for Malaya to gain independence from the British Empire. However, for a number of logistical and administrative reasons, it was decided that the official proclamation of independence would only be made the next year, on August 31, 1957, at Stadium Merdeka (Independence Stadium), in Kuala Lumpur.

The Federation of Malaysia, comprising the States of Malaya, North Borneo (later renamed Sabah), Sarawak and Singapore was to be officially declared on the date August 31, 1963, on the 6th anniversary of Malayan independence. However, it was postponed to September 16, 1963, mainly due to Indonesian and the Philippines' opposition to the formation of Malaysia. Nevertheless, North Borneo and Singapore declared sovereignty on August 31, 1963. Indonesian opposition later escalated to a military conflict. Indonesia considered Malaysia as a new form of colonization on the provinces of Sarawak and Sabah in the island of Borneo (bordering Kalimantan, Indonesia), which they laid claim on. To assure Indonesia that Malaysia was not a form of neo-colonialism, a referendum, organized by the United Nations, and the Cobbold Commission, led by Lord Cobbold, were formed to determine whether the people of Sabah and Sarawak wished to join Malaysia. Their eventual findings which indicated substantial support for Malaysia among the peoples of Sabah and Sarawak, cleared the way for the final proclamation of Malaysia.

The formation of the Federation of Malaysia was then announced on September 16, 1963 as Malaysia Day. The nationwide Independence Day celebration is still held on August 31, the original independence date of Malaya, while Malaysia Day is a public holiday only in East Malaysia. However, this has caused some minor discontent among East Malaysians in particular since it has been argued that celebrating the national day on August 31 is too Malaya-centric.[3][4][5] It is decided that starting 2010, Malaysia Day will be a nationwide public holiday in addition to Hari Merdeka on August 31.

Thursday, August 26, 2010

Iftar @ Wong Solo

Hi good day fellas and special thanks to my followers... :)

2 days ago my office mates, our KBK members and i gathered at Wong Solo for break-fast event. This restaurant is located at Bangi, just next to Amani Hotel Bangi. It's good to gather once again with them. Here is some shot. Tq to Nisak aka Budak kecik for the following images.










Wong Solo restaurant sells Indonesian food including the ayam penyet and so on & so forth...If you never try it yet, give it a shot then...but i must warn ya, Ayam Penyet is HOT!!!!!!!! :)

Monday, August 16, 2010

Installing Frash the easy way

It is frustrated when i heard iOS4 still do not allow the flash compatibility in the iPhone. Sad. Why do you need Flash on the iPhone? To see banner ads? No, not really.

You need Flash to see the whole Web: the one with icky-Flash intros that block you from accessing the main website, the Flash-based menu for a favorite local restaurant, the Flash videos that haven't yet been re-encoded for your iPhone, and so on. It may not be the Web you want to see, but it's the Web that, for now, you still need to see.

And now there's a way to get this content on your iPhone: Frash. Huhuuhuh.. big thanks to Comex.

To install Frash (aka flash for iphone) properly, you'll need to refer to a how-to guide, like this one hosted on Redmond Pie. But to sum up: You must first jailbreak your phone, download the .deb, upload it to a folder on your iPhone using SSH, restart your phone and... what's that? Did I lose you? Too freaky right?

There is another way, the easy way actually.You can just install Frash from Cydia, the jailbreak app store instead.

In order to accomplish this feat, you'll need to already have a jailbroken phone.

Then the instructions are as follows:

1. Launch Cydia and tap the "Manage" button
2. Tap "Sources"
3. Tap the "Edit" button (top-right)
4. Tap "Add" (top-left)
5. In the pop-up box, type http:///repo.benm.at/
6. Tap "Add Source" to close the box
7. Tap the "Done" button (top-right)
8. Go to the "Search" section in Cydia and search for "Frash"
9. Install the app.

Done!

Now you have Frash on your iPhone. SBSettings users can also add the "Frash Toggle" to easily switch Frash on or off. (You'll want to keep it off for the most part because it can hog the battery).

Friday, August 13, 2010

iPhone 4 wallpaper size

:) like to write all i know about tis thing. hahaaaa.. now i own myself this incredible device - iPhone 4 with iOS4.0.1 running on it. Ok let's move on and continue your reading. This litte entry about to create your own wallpaper for iPhone 4. Before that we need to know a little bit about iPhone screen resolutions and display.

The comparison iPhone 4 vs iPhone 3GS display:-

iPhone 4 official Display spec:

* Retina display
* 3.5-inch (diagonal) widescreen Multi-Touch display
* 960-by-640-pixel resolution at 326 ppi
* 800:1 contrast ratio (typical)
* Fingerprint-resistant oleophobic coating on front and back
* Support for display of multiple languages and characters simultaneously

iPhone 3GS official Display spec

* 3.5-inch (diagonal) widescreen Multi-Touch display
* 480-by-320-pixel resolution at 163 ppi
* Fingerprint-resistant oleophobic coating
* Support for display of multiple languages and characters simultaneously

Even though iPhone 4 have the same screen size as iPhone 3GS (3.5-inch diagonal), but both iPhone have a different pixel resolution. iPhone 3GS have 480x320 pixel resolution and iPhone 4 have 960x640 pixel resolution. Therefore, the best wallpaper size if you like to create your own wallpaper for your iPhone 4 is 640x960 pixel resolution (horizontal),960x640 (landscape) and 640x960 (portrait) wallpaper size. The iPhone 4 features a “Retina Screen”, which is Apple’s fancy name for a high resolution mobile display.

How to Make iPhone 4 Wallpaper

Making wallpaper for the iPhone 4 is very easy. Just like making wallpaper for any other device or computer screen, you just need to get the right dimensions and make an image of that exact size.

Now it's up to you to create your own wallpaper using your favourite photo/image editing software. I'm using photoshop and gimp. :)

Thursday, August 12, 2010

How to Format Nokia Phones (almost all N series and 60 series)

If you have turned on your Bluetooth on your Nokia mobile phone and forgot to turn off then chances are high that your phone may get infected with virus and the only solution to this is formatting your mobile phone. Re-formatting your Nokia phone is quite simple. This is how i've done it :-

Method 1: Three Finger Reset for Nokia Phone

1. Switch off your Nokia phone.

2. Hold down the following three keys, Green (call answer button) * Key, and Number ‘3? key.

3. While holding these buttons, press the power button and switch on the phone.

4. Wait for message ‘Formatting’ to appear on the screen and release all keys once you see that message.
Method 2: Hard Format of Nokia Mobile Phone

1. Switch off your Nokia phone

2. Now Press following key sequence *#7370#

3. Enter Default lock code is 12345.

4. While holding these buttons, press the power button and switch on the phone.

5. Wait for message ‘Formatting’ to appear on the screen and release all keys once you see that message.
Method 3: Soft Reset of Nokia Mobile Phone

1. Switch off your Nokia phone

2. Now Press following key sequence *#7780#

3. Enter Default lock code is 12345.

4. While holding these buttons, press the power button and switch on the phone.

5. Wait for message ‘Formatting’ to appear on the screen and release all keys once you see that message.

Please Note: The Above Nokia Phone Formatting method will erase all your Phone data. So do backup before proceeding for Formatting

Changing Joomla favicon

Favicon is the favorites icon that is associated with your site and appears in the left of your browser address bar. Both Joomla! 1.0.x and 1.5.x come with a default favicon that displays the Joomla! Logo. You may change that as long as your new favicon is in the ICO format and sized 16×16 pixels. Here’s how to do it:

Unlike the 1.0.x versions, the only name you are allowed to use for your favicon is favicon.ico but you are offered the flexibility to associate different favicons with different templates. You only need to upload your favicon.ico into the main folders of your front-end and back-end templates, which are found in the /templates/ and the /administrator/templates/ folders respectively, overwriting any favicon files that came with your templates.

However, if you’d rather use a global favicon for all your templates themes, just upload it into Joomla!’s main folder (that’s where your index.php resides) and into the /administrator/ folder. Make sure you delete all favicon.ico files found in the template folders mentioned above because Joomla! will check your template folder first for the favicon.ico file.

Please take note that to see the new favicon you will need to empty your browser cache.

How to retrieve joomla admin password

In this article, let’s see how you can retrieve admin password if you forget it. If you know the email address that was used for the admin user, and you have made the “lost password” feature available on the front end, the simplest thing is to do is to use the “lost password” Front-end function. There are times that when you develop your Joomla! application on localhost and the mail function is not properly set up, so you can’t use email to retrieve your password if you forget.

So for those who can’t use the email to retrieve, you will need access to the MySQL database. You got two options, either add a new super administrator or change the password stored in the data base. To do so you need to go to phpMyAdmin (or use a similar tool) and manually alter the database. Before doing this, back up your entire Joomla! database.

From phpMyAdmin, you can run the following SQL query to create a new user known as adminb.

INSERT INTO `jos_users` VALUES
(62, 'Administrator2', 'adminb', 'your-email@email.com', '21232f297a57a5a743894a0e4a801fc3',
'Super Administrator', 0, 1, 25, '2005-09-28 00:00:00', '2005-09-28 00:00:00', '', '');
INSERT INTO `jos_core_acl_aro` VALUES (10,'users','62',0,'Administrator2',0);
INSERT INTO `jos_core_acl_groups_aro_map` VALUES (25,'',10);

The password will be admin. Immediately log in and change this password and make any other changes to other admin users.

A second option would be to change the password in the table for your admin user. The password is stored in the MySQL database jos_users table password column. (Change this for your table prefix if different.)

Go to the table, find the row for your admin user, and then select that row for editing. The password must be hashed, you cannot simply enter text into this field.

Set the password to one of the known values shown below:

- password = "this is the MD5 hashed password"
------------------------------------------------------
- admin = 21232f297a57a5a743894a0e4a801fc3
- secret = 5ebe2294ecd0e0f08eab7690d2a6ee69
- OU812 = 7441de5382cf4fecbaa9a8c538e76783

Paste the hashed password into the field, save the change, and log in using the new password. Immediately change your password to something more secure!

How to setup Logwatch on Ubuntu Server

Logwatch is a modular log analyser that runs every night and mails you the results. It can also be run from command line.The output is by service and you can limit the output to one particular service. The subscripts which are responsible for the output, mostly convert the raw log lines in structured format.

Logwatch generally ignores the time component in the output, that means, you will know that the reported event was logged in the requested range of time, but you will have to go to the raw log files to get the exact details.

Install logwatch using the following command :-
# sudo apt-get install logwatch

Configuring Logwatch

First you need to make sure you server is able to send the mails outside you can do this using postfix with SMTP server configuration

Now you need to edit logwatch.conf file:-
# sudo nano /usr/share/logwatch/default.conf/logwatch.conf

Change the following information to suit your need:-

Output = mail
Format = html
MailTo = your_email@email.com

Save and exit the file.

Now edit the 00logwatch file:-
# sudo nano /etc/cron.daily/00logwatch

and add the following line :-
/usr/sbin/logwatch --mailto your_email@email.com

Save and exit the file.

This tool is very useful give it a try fellas!.

Note:-If you want to know more available options check logcheck manpage using the following command from your terminal.

# man logcheck

Tuesday, August 10, 2010

Selamat Meyambut Ramadhan Al-Mubarak.

This Wednesday(tomorrow), Muslim in Malaysia will start fasting. Ramadan is the ninth month of the Islamic calendar. It is the Islamic month of fasting, in which participating Muslims refrain from eating, drinking and sexual activities from dawn until sunset. I wish i could finish all the terawikh at night! :)


So Selamat Meyambut Ramadhan Al-Mubarak to all my friends and happy blogging!

Changing Your iPhone’s Default SSH Password

If you jailbreak your iPhone, the first thing you ABSOLUTELY MUST DO is change the default filesystem password.When you jailbreak, the filesystem’s password is set to the common password “alpine.” As people usually don’t bother changing this password after performing a jailbreak, it’s really easy for hackers to get access to any jailbroken iPhone/iPod Touch on a public network.

Changing the password is quick and easy. At your devices, you need to install "MobileTerminal".
Go to your cydia and search for it. Then install. Then follow this steps:-

Here’s how to change the default SSH password after jailbreaking:
1. Navigate to the newly installed ‘MobileTerminal’ application and tap to open.

2. In MobileTerminal, type ‘su root’ and tap return. It will ask you for a password, enter ‘alpine’ and tap return again.

3. Now, type ‘passwd’ and then tap return. Type in a new password such as ‘secret’ and tap return. Retype the new password to confirm and then tap return one last time to change the password.

4. Now, your SSH password will be changed and your device will be protected against any future hacks that use SSH to access your device.

note:- if you're not using mobileterminal, just ssh your device from your computer and ssh to it :-

root@rude-desktop:/home/dr_rude# ssh 10.23.140.243 -l root
root@10.23.140.243's password:
dzuls-iPhone:~ root# ls
Library/ Media/
dzuls-iPhone:~ root# passwd
Changing password for root.
New password:
Retype new password:
dzuls-iPhone:~ root# ls
Library/ Media/
dzuls-iPhone:~ root#

:) pretty dead easy fellas!

Changing iPhone SMS Tones

Pretty boring to be limited to only a couple of sounds, right? Well to be honest, i kinda like the default sound, and they are for an SMS, not a call so… But some of you might want to change and personalize your SMS tones. Of course you can do that with ToneFXs , but thats not free, and pretty much all the crack methods out there, work and not really.Well, there always was a way to change the tones as long as you are on a jailbroken device because, yeah you guessed it, you will need to SSH.

First you will need to get some sounds. You can search for them with google or with your favorite P2P client and maybe you can find some torrents. The sounds must be in .aiff format. If they are not .aiff, dont worry just drop them into iTunes ( or any other converter ) and convert them to .aiff.

TIP: if you are on Mac, than you must know Adium. Just go to the Adium site and go to extras. You will find plenty of sounds there.

Once the sounds are ready SSH into your iPhone and go to: /System/Library/Audio/Uisounds.

for example : if your iPhone ip address is 10.23.140.243, from your computer (using ssh or terminal) issue the following command :-

ssh 10.23.140.243 -l root
enter your iphone ssh password for root which is "alpine" by default.
you may change it for security reasons. i'll write another article for it later. :)
updated : here is the article about how to change default iphone ssh password.

There you will have all the default SMS tones. Here’s the tricky part: you must get rid of one of them. Let me explain: just copy the name of the text tone you don’t want and rename your new audio file that name (so if i have new_tone.aiff and sms-received2.caf rename new_tone.aiff to sms-received2.caf) then it will replace that text tone.So if you wanted to replace the chime text tone you would rename your new_tone.aiff to sms-received2.caf and so on for what ever you wanted to change. Enjoy! :)

Note : I'm tested this method using iPhone 2g 8gb (3.1.3) and iPhone 4 16gb (4.0.1). Should work with others iPhone family! :)

Sunday, August 8, 2010

How to make iPhone ringtones on Mac for free?

Read my break down below on how to make a custom iPhone ringtone, totally free, using JUST iTunes 9.2.1.

1. Find an MP3 (not AAC or anything with DRM [i.e. not bought, except Amazon])
2. Right click on the MP3 and choose ‘Get Info' and select ‘Options'
3. Set the start and stop time to your favorite part of the song. You'll want it to be no more than 20 seconds in length
4. Click ‘ok'
5. Right click on the song again, this time choose ‘Create AAC Version'
6. Drag the newly made AAC file from iTunes to your desktop
7. Delete the newly made AAC file from iTunes (it won't work if you have duplicates)
8. Change the name of the extension (the file on your desktop) from ‘m4a' to ‘m4r'
9. Now drag the file, with the new extension, back into your iTunes Library. It should appear in your ringtones section.
10.Sync your iphone. :)

If you want to make iPhone ringtones from DVD or videos, you need use software to extract audio from DVD or videos to MP3 first. iMedia Converter can help you to extract audio from DVD and videos to MP3. Then you can use iTunes to make iPhone Ringtones.

Friday, August 6, 2010

Bending the four elements

:) yesterday Yop aka Mat Blue, Usop Santorian, Shidi Botak and i went to GSC Alamanda. Watching "The Last Airbenders". The movies that usop and i wanted to watch. Not bad. Just dry and flat actually but it's not boring to watch. The story about the 4 basic elements in our life. Water. Earth. Fire. Air. Only the Avatar was the master of all four elements.Only he could stop the ruthless Fire Nation from conquering the world. But when the world needed him most, he disappeared. Then he back to rescue the tribes.

After the movies, what we've learned is that, we're capable to bend everything! :D

How To Turn Off Spell Check On Your iPhone 4

If you too are bugged by the Spell check feature (which is usually very helpful,except at times) on your iPhone or iPod Touch and want the spell check feature to be disabled so that you can type out all the words as you want them to appear, this article is a must read for you.

The process is pretty simple and straight forward, on your iPod Touch or iPhone head over to the Settings menu, then tap on General, next tap on the item called Keyboard. Once in the Keyboard item menu, all you need to do is turn off autocorrection. This will disable the spell check feature on your iPod Touch or iPhone device.

You can even set the Auto-Capitalization feature to ON or OFF from the same menu.

Iphone 4 : Activation, Jailbreak and Unlocked

Good day everyone. In order to use your iPhone, you have to activate it. While setting up the orignal iPhone and iPhone 3G required using iTunes, newer models are activated and mostly set up in the store. This is a step-by-step guide to everything you need to know about iPhone activation to get you started using it right away!

Activation :-

This method i tested using iphone 4. :) Turn on your iphone and attached it to your computer. Make sure your iTunes is the latest version, which is 9.2.1. I don't i highly recommend that to upgrade your iTunes first. After that get connected to your pc using USB cable that provided to you and follow the screen instructions. Enter your details there and you'll be asked about your iStore account too. iStore account is important for to access tones of apps in the Apple apps store.

Jailbreak :-

These are instructions on how to jailbreak any iPhone (including the iPhone 4) on iOS 4 using JailbreakMe by Comex. Before beginning make sure your device is activation on iOS 4.0.0 or 4.0.1. Ok for jailbreaking follow the steps below :-

1. Press to launch Safari from your Springboard. Make sure you get connected to the internet.
2. Press to select the address bar and input http://jailbreakme.com then press the Done button.
3. To begin the jailbreak simply move the slider to right. [slide to jailbreak]
4. You will be displayed a status bar as the download progresses.
5. Once the download is complete the jailbreak process will begin
6. Once you are notified that the jailbreak process is complete press the OK button.
7. Press the Home button to reveal Cydia on your desktop!
8. Congratulations you are done! You may now continue by installing UltraSn0w to unlock :)

Unlock :-

You still can't use your iPhone because your SIM is not officially iPhone carrier. In Malaysia, if you want to use iPhone 4, you need to wait for Maxis announced it arrival. Maxis is a official carrier for iPhone in Malaysia. So if you're using others service such as Celcom or DIGI, then you need to unlock it first. :) Here's how :-

Before you can follow these instructions you must have a jailbroken iPhone and you must be on the 04.26.08, 05.11.07, 05.12.01, 05.13.04, or 01.59 baseband(modem firmware).

1. Launch Cydia Installer from your SpringBoard.Make sure you get connected to the internet.
2. Press to select the Manage tab at the bottom of the screen.
3. Press to select the large Sources button
4. If the ultrasn0w repo is not present press the Edit button at the top right of the screen.
Otherwise, skip to step nine.
5. Press the Add button at the top left of the screen.
6. Enter http://repo666.ultrasn0w.com/ as the source url and press the Add Source button.
7. Once the source has been added press the large Return to Cydia button.
8. Press the Done button at the top right of the screen.
9. Press to select repo666.ultrasn0w.com from the list of user entered sources.
10.Press to select ultrasn0w from the list of packages
11.Press the Install button at the top right of the screen.
12.Press the Confirm button at the top right of the screen.
13.After installation completes successfully press the large Return to Cydia button.
14.Now press the Home button then power off and power on the iPhone.
15.You should now be able to insert the SIM of your choice! :D

A big thank you to all the members of the iPhone Dev-Team for all their hard work! It is much appreciated by all.

That's it fellas.

Tuesday, August 3, 2010

Install Awstats on Ubuntu 10.04

AWStats is a free powerful and featureful tool that generates advanced web, streaming, ftp or mail server statistics, graphically. This log analyzer works as a CGI or from command line and shows you all possible information your log contains, in few graphical web pages. It uses a partial information file to be able to process large log files, often and quickly. It can analyze log files from all major server tools like Apache log files (NCSA combined/XLF/ELF log format or common/CLF log format), WebStar, IIS (W3C log format) and a lot of other web, proxy, wap, streaming servers, mail servers and some ftp servers.

This is how to install Awstats on Ubuntu 10.04 :-

Go to the terminal or ssh to your terminal. :- ssh 10.23.140.222 -l dzul
note change to your server ip or domain, in my case is 10.23.140.222 which is my testing server.

Then issue this command :-
sudo apt-get install awstats

If you to see the country of your visitors then :-
sudo apt-get install libnet-ip-perl
sudo apt-get install libgeo-ipfree-perl

Now we need to configure the Apache to works with awstats. Let's assume you want to analyze the Apache 2 log file of your website “yourdomain.com” (It can be just an IP address).

Create configuration file :-
sudo cp /etc/awstats/awstats.conf /etc/awstats/awstats.yourdomain.com.conf

and update these parameters :-

# apache2
LogFile="/var/log/apache2/access.log"

# domain name
SiteDomain="yourdomain.com"
HostAliases="localhost 127.0.0.1 yourdomain.com"

LogFormat=1

LoadPlugin="tooltips
LoadPlugin="geoipfree"

NOw we to run our awstats by issuing the following command :-
sudo /usr/lib/cgi-bin/awstats.pl -config=yourdomain.com -update

You should see the output something like this :-

Create/Update database for config "/etc/awstats/awstats.yourdomain.com.conf" by AWStats version 6.9(build 1.892)
From data in log file "/var/log/apache2/access.log"...
Phase 1 : First bypass old records, searching new record...
Searching new records from beginning of log file...
Phase 2 : Now process new records (Flush history on disk after 20000 hosts)...
Jumped lines in file: 0
Parsed lines in file: 191338
Found 0 dropped records,
Found 24 corrupted records,
Found 0 old records,
Found 191314 new qualified records.

After that we need to configure Apache to view the statistics. Create a file call statistics at /etc/apache2/conf.d/ directory.

cd /etc/apache2/conf.d/
nano -w statistics

and add the following parameters to that file.

Alias /awstatsclasses "/usr/share/awstats/lib/"
Alias /awstats-icon/ "/usr/share/awstats/icon/"
Alias /awstatscss "/usr/share/doc/awstats/examples/css"
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
ScriptAlias /statistics/ /usr/lib/cgi-bin/
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch

restart your apache :-
sudo /etc/init.d/apache2 restart

if anything goes well, you're done.

To view your statistics, point to your browser like this :-
http://yourdomain.com/statistics/awstats.pl?

If you have more than one config file, then point to your browser like this :-
http://yourdomain.com/statistics/awstats.pl?config=yourdomain.com

Lastly edit your crontab and add the following parameter:-
# update every 10 min
*/10 * * * * root /usr/lib/cgi-bin/awstats.pl -config=yourdomain.com -update > /dev/null

:) Viola. Give it a try!

Monday, August 2, 2010

Make your Ubuntu Lucid Lynx look pretty.... :)

How to make your Ubuntu look pretty? Nice themes or even look like MacOSX interfaces? This is how i done it.

Open terminal and and add the stable repository :-
sudo add-apt-repository ppa:bisigi/ppa
enter your password and wait for a while.

then update your apt-get :-
sudo apt-get update
enter your password

then :-
sudo apt-get install bisigi-themes
enter your password and wait till finish.

Now your can change your Ubuntu appearances by right click at your desktop - change desktop background and select your prefer themes there. You can also use system - preferences - appearance. :)

Sunday, August 1, 2010

MSL - Malaysian Super League

Yesterday, Gg, yop and I went to Shah Alam stadium watching Malaysian Super League game between Selangor and Terengganu. Honestly, it's been a long. long time since i never ever follow the progress and the story of our own league of football.

It's just fair performance from both teams at the first half, but it's enough for the fans of both teams to cheer it up. After the break, it's just a one way traffic. The host control the game very well.The game ended with victory to Selangor 2-0.

Why we rated our own league so poorly? Because we are the fans of EPL? Even 6 lads from UK watching that game. :) Hahahaa... Come on give them support and how long can we wait to see our two lions roaring again at the international level?

How To Install And Configure GreenSQL In Ubuntu 9.10

GreenSQL is an Open Source database firewall used to protect databases from SQL injection attacks. GreenSQL works as a proxy for SQL commands and has built in support for MySQL & PostgreSQL . The logic is based on evaluation of SQL commands using a risk scoring matrix as well as blocking known db administrative commands (DROP, CREATE, etc). GreenSQL is distributed under the GPL license.

Installation:

1. Download its source code from its web.
2. Install the needed packages: apt-get install libevent-1.4-2 libpcre3 libmysqlclient15off libpq5 libmysqlclient15-dev libevent-dev libpcre3-dev libpcre3 libpq-dev flex g++ bison build-essential
3. Uncompress it: tar xvfz greensql-fw_*.tar.gz
4. Enter its directory: cd greensql-fw_*
5. Build the deb package: ./build.sh
6. Install the deb package (as root): cd .. && dpkg -i greensql-fw*.deb
7. Answer the questions to connect GreenSQL to your database

Configuration (using Apache):

1. Enter GreenSQL directory: cd /usr/share/greensql-fw
2. Set the right permissions to templates_c : chgrp -R www-data templates_c && chmod -R 770 templates_c
3. Create the file /etc/apache2/conf.d/greensql with the following content(replace [ and ] for angle brackets):

Alias /greensql /usr/share/greensql-fw
[Directory /greensql]
Order deny,allow
Deny from all
Allow from 127.0.0.1
[/Directory]

4. Restart Apache: apache2ctl restart.
5. Access GreenSQL using your web browser (default user is admin and default password is pwd):

http://localhost/greensql
Change the default admin’s password.
Edit GreenSQL configuration to fit your needs.

NOTE : Change "localhost" to your domain name.

How to use:

To use GreenSQL, you have to change the configuration of the applications which connect to your database and point them to the computer where you have installed GreenSQL (localhost in this case) and the port where GreenSQL is running (3305 in my case to proxy my MySQL database). You can test whether it is working connecting to your database and creating a table (it should appear as an alert named “Detected attempt to create database/table/index” in GreenSQL and it should be blocked if you didn’t change the IPS option).

Example:
mysql -u root -h 127.0.0.1 -P 3305 -p
CREATE TABLE greensql_test;

note : if you're running joomla, u need change your configuration setting to look like this :-

var $host = 'localhost'; to var $host = '127.0.0.1:3305';

Now we can go green with greensql. :)

Thursday, July 29, 2010

How to allow authors to auto-publish in Joomla 1.5.x

How to allow authors to auto-publish in Joomla 1.5.x ? This can be achieved using third party components or modules such as ja submit or content submit. But i've got some little trick here to make our registered users or authors can publish the contents to our website without administrator approval.

The hack for Joomla 1.5.X is to change the following two files, note that the hack has to be applied to any future upgrade of the core.

components\com_content\controller.php
components\com_content\models\article.php

For the first comment out some lines around 229 as follows to stop the wrong message coming up on save:

// if ($access->canPublish)
// {
// Publishers, admins, etc just get the stock msg
$msg = JText::_('Item successfully saved.');
// }
// else
// {
// $msg = $isNew ? JText::_('THANK_SUB') : JText::_('Item successfully saved.');
// }

For the second file change a zero to one on line 332 or thereabouts. This opens the gate to authors.
// For new items - author is not allowed to publish - prevent them from doing so
$article->state = 1;

:), that;s it fellas!

ffmpeg is cool!!! :)

What can i say about ffmpeg? This tool makes my life so much easier in terms of converting media into your desire files extension. No need to twist your head again and spend your tones of time to search free apps or shareware apps to convert your media.

By the way ffmpeg is a free software / open source project that produces libraries and programs for handling multimedia data and publishes them under the GNU Lesser General Public License or GNU General Public License (depending on which options are enabled). The most notable parts of FFmpeg are libavcodec, an audio/video codec library used by several other projects, libavformat, an audio/video container mux and demux library, and the ffmpeg command line program for transcoding multimedia files.

Below are a bunch of ffmpeg command lines that will do just about everything you need.

1. If you want to get an info about your media/videos issues the following command :-

# ffmpeg -i name_of_videos.avi

2. If you want to turn a sequence of images into video, then :-

# ffmpeg -f image2 -i image%d.jpg video.mpg

3. Turn a video into a sequence of images, then :-

# ffmpeg -i video.mpg image%d.jpg

4. Encode your video for Ipod/IPhone

# ffmpeg -i source_video_file.avi -acodec aac -ab 128kb -vcodec mpeg4 -b 1200kb -mbd 2 -flags +4mv -trell 1 -aic 2 -cmp 2 -subcmp 2 -s 320x180 -title X output_file.mp4

5. Encode your video for PSP

# ffmpeg -i source_video_file.avi -b 300 -s 320x240 -vcodec xvid -ab 32 -ar 24000 -acodec aac output_file.mp4

you can try this commmand :-

# ffmpeg -i "OriginalFile.avi" -f psp -r 29.97 -b 768k -ar 24000 -ab 64k -s 320x240 "OutputFile.mp4"

6. Extract audio from a video file and save it as mp3 format

# ffmpeg -i source_video_file.avi -vn -ar 44100 -ac 2 -ab 192 -f mp3 output_file.mp3

7. Convert a wave file to mp3

# ffmpeg -i original_audio_file.avi -vn -ar 44100 -ac 2 -ab 192 -f mp3 output_file.mp3

8. Convert a avi video to mpeg

# ffmpeg -i original_movie.avi output_file.mpg

9. Convert a mpeg video to avi

# ffmpeg -i original_movie.mpg output_file.avi

10. Convert a avi video to uncompressed animated gif

# ffmpeg -i original_movie.avi output_file.gif

11. Add audio to an existing video-only file (mix audio and video)

# ffmpeg -i son.wav -i original_movie.avi output_file.mpg

12. Convert a avi video to flv (flash video)

# ffmpeg -i original_movie.avi -ab 56 -ar 44100 -b 200 -r 15 -s 320x240 -f flv output_file.flv

13. Convert a flv video to mpeg

# ffmpeg -i myFile.flv -ab 56 -ar 22050 -b 500 -s 320x240 myFile.mpg

14. Convert a avi video to dv

# ffmpeg -i original_movie.avi -s ntsc -r ntsc -aspect 4:3 -ar 48000 -ac 2 output_file.dv

15. Convert a avi video to mpeg specifically for DVD creation

# ffmpeg -i source_video.avi -target ntsc-dvd -ps 2000000000 -aspect 16:9 finale_video.mpeg

16. Compress a avi video to Divx

# ffmpeg -i original_movie.avi -s 320x240 -vcodec msmpeg4v2 output_file.avi

17. Convert a Ogg Theora video to mpeg specifically for DVD creation

# ffmpeg -i original_movie.ogm -s 720x576 -vcodec mpeg2video -acodec mp3 output_file.mpg

18. Convert a avi video to mpeg2 for SVCD creation

# ffmpeg -i original_movie.avi -target ntsc-svcd output_file.mpg

19. Convert a avi video to mpeg2 for VCD creation

# ffmpeg -i original_movie.avi -target ntsc-vcd output_file.mpg

Viola...

Sunday, July 11, 2010

Downloading youtube videos without 3rd party plug-ins.

:) Another lazy Sunday morning.

But i've got a beautiful trick about how to download youtube videos without any 3rd party plug-ins installed. This trick can be achieved only using Ubuntu desktop edition. I'm using Ubuntu Lucid Lynx 10.04. Maybe this trick can be applied to other linux variants. So if you're using windows, just ignore this trick :)

OK, now get online and open your lovely browser firefox. Get in into your youtube videos. Just let it stream till end. After that, go to your filesystem and browse to your temp directory. There's one *.flv or even *.mp4 file in it. Copy and save it to your preferred directory and you're done!

:) this is so simple and no need to think about plug-ins!


NOte: for ubuntu users, if you want to use plug-ins to download youtube videos, try "unplug" for firefox.

Wednesday, July 7, 2010

Iphone 2g : Jailbreak iPhone OS 3.1.3 Firmware with RedSn0w [ windows ]

Hi jailbreakers! :)

If you're in the great mood to do some extreme part, then kindly read on. I'm writing this article/howto for the iphone 2g fans. :) The iPhone OS 3.1.3 firmware updates the Baseband of your iPhone 3GS and 3G hence making it impossible to unlock these device using BlackSn0w installed via BlackRa1n. Fortunately iPhone 2G users are on the safe side in case of unlock because iPhone 2G Baseband remain intact while updating to iPhone firmware 3.1.3 (provided that you have jailbroken it previously at least once).

MuscleNerd from the Dev-team has confirmed that using RedSn0w 0.9.3 you can jailbreak iPhone OS 3.1.3 on the following devices:

* jailbreak iPhone 3G 3.1.3 (but cannot unlock)
* jailbreak iPhone 2G 3.1.3 (can unlock as well)
* jailbreak iPod Touch 2G (non-MC model only)
* jailbreak iPod Touch 1G

If you're in the iOS4, then no need for you to read this article on. Hahahhaaa

All right, let's move on.
Disclaimer: Follow this guide at your own risk. I can’t be help responsible if ANYTHING goes wrong.
Step 1

* Download iTunes 9.0.3 and install it.
* Download RedSn0w 0.9.3 (Windows)
* Download Firmware 3.1.3 for your device
* Download Firmware 3.1.2 for your device (Yes, OS 3.1.2 as well)
* Download Bootloaders (for iPhone 2G unlock ONLY)

note : remember not to use the latest version of itunes for this to happen. you'll encounter problems then.

Extract the RedSn0w & Bootloaders archive and put the them and firmware IPSW files (iPhone firmware 3.1.3 and iPhone firmware 3.1.2) into a folder on your desktop.

Step 2

Open the iTunes, select your device from the left navigation pane.

Hold down the SHIFT key on Windows and hit the Restore button in iTunes. Navigate to the downloaded firmware 3.1.3 for your device and select the firmware file (.ipsw) and hit Open.

iTunes will start restoring your iPhone firmware to iPhone OS 3.1.3.

Step 3

Once your iPhone is updates to OS 3.1.3, run the downloaded RedSn0w file.

Step 4

Hit the Browse button and provide it the downloaded firmware 3.1.2 file NOT 3.1.3 because RedSn0w 0.9.3 will not recognize iPhone OS 3.1.3.

Step 5

RedSn0w will verify your firmware file. Once done, hit the Next button.

Step 6 (for iPhone 2G users ONLY. Others please skip to Step 7)

To unlock iPhone 2G, select Install Cydia and Unlock options and provide the bootloader files.
If you just want to jailbreak iPhone 2G 3.1.3 then choose Install Cydia and hit next.

Step 7

On the next screen, check mark your desired options. For the purpose of this guide just choose Install Cydia and hit next. Select custom logos if you want them too. Hit Next.

Step 8

Read the on screen instructions to put your iPhone into DFU Mode.Once you’ve entered into DFU Mode, RedSn0w will do its work and on successful completion, your iPhone will reboot.

You have successfully jailbreak iPhone 2G 3.1.3 and iPhone 3G 3.1.3.

Note :- I strongly recommend iPhone 3GS and 3G users to stay away from iPhone OS 3.1.3 until unless iPhone Dev Team or GeoHotz come up with updated jailbreak and unlock tool. However, you can always jailbreak iPhone OS 3.1.2 using Custom Firmware, RedSn0w, PwnageTool, Sn0wBreeze, BlackRa1n and unlock iPhone OS 3.1.2 using UltraSn0w and BlackSn0w.

Monday, July 5, 2010

How to Create Bootable Linux USB Flash/Pen Drive from Windows

Most of the popular Linux distributions these days offer live cd so that you can feel how their distribution feels before you can install it on your computer. If you're booting Linux using live CD the system takes ages to boot and applications installed feel sluggish as the optical drive offers lower data transfer rates. But if the same live cd is copied to a USB drive and made bootable then the system feels real fast as if you are booting from a hard disk drive.

There are several ways in which you can create bootable Linux drive, some of them requires lot of steps to be followed. In this post we see how we can create a bootable Linux USB drive from within Windows.

Prerequisite:

1. Windows XP or Windows Vista based host operating computer

2. USB Flash/Pen drive.

3. Get Universal USB Installer from http://www.pendrivelinux.com/

4. A computer that is capable for booting from USB devices.

How to Create Bootable Linux USB Flash/Pen Drive

1. Download the version of Linux that you wish to install in USB drive. In this post we have taken Ubuntu 9.10 ISO file that we downloaded from Internet.

2. Open the Universal USB Installer, click run when prompted.

3. If the security dialog appears, confirm by clicking 'Run'

4. Read the licence agreement and choose 'I Agree' to continue

5. Select Ubuntu Desktop Edition from the dropdown list

6. Click 'Browse' and open the downloaded ISO file

7. Choose the USB drive and click 'Create'

8. Wait till it's finish.

note : make sure your safely remove your thumb drive after it's done.
note : you also can try using UNetbootin software to replace Universal USB Installer.

Now you're ready to bring along your favourite linux OS into your thumb drive wherever you go! :)

Changing your default apache publishing directory

Hi, :)

Always change the default setting. That's a word my friend always told me. Ok now i will show you how to edit the default apache 2 publishing directory. By the way, this howto is on ubuntu 10.04 server edition. It can be applied to ubuntu 9.10, 9.04, 8.10 and 8.04. NOt so sure for the older version of it.

Ubuntu have its own way to manage the apache files. They splitted httpd files into files called mods_available, sites_available and so on. That means, there's no single file named httpd.conf anymore.All that files stored nicely at /etc/apache2/

From our default installation for LAMP Server, our website or apps will be stored at /var/www/. Almost every version of ubuntu is the same. NOw for extra security, we need to change this directory to our own directory. Here is how i done it :-

# ssh into your server, for example :- ssh 10.23.140.222 -l dzul

# after successfully login, switch to root by issuing the following command ,

sudo su
and enter your password once again

you're now root!
then cd to /etc/apache2 dir
then go directory name sites_available

now, make sure you have two files on it, which is default and default-ssl

we need to edit the default file, so at the terminal :-

# nano default
[nano is the editor, it is up to you to use other editor like vi or vim.]

make some changes there.

let say you wanted to host your file at /var/web/dzul then you the change the line /var/www to /var/web/dzul

ctrl+x to save

now make your directory under /var

# mkdir web
# cd web
# mkdir dzul
# cd dzul
# pwd
# /var/web/dzul
now your /var/web/dzul is created.

it's time to restart the apache service.

# /etc/init.d/apache2 restart

If there's no errors, you're successfully make changes of ubuntu apache default publishing directory. Get your files and dump it into /var/web/dzul

But before that you need to chown and chmod user dzul to use that directory. Remember, ONLY root can access everything in your system. To accomplish that, issue the following command :-

# chown root:dzul /var/web/dzul/
# chmod g+w /var/web/dzul/

now you're ready to rock!

Installing phpmyadmin on ubuntu server 10.04 lucid lynx

This is a simplest steps. Ubuntu always simple as you like. :)

Ssh into your server :-

for exmple :- ssh 10.23.140.222 -l dzul
enter your password and issue the following cmd :-

# sudo apt-get install phpmyadmin
just follow the instructions

select the webserver which is apache.

enter the password, same as your mysql root password from your installation before.

after that, go to your browser, and enter http://10.23.140.222/phpmyadmin

viola!

Setting Up Webserver using Ubuntu 10.04 [part 3]

Now you're just installed a webserver with ssh at ubuntu 10.04. So what to do next? Are you feel safe enough running your apps/website with this default installation. Please don't.

We need to make your server/system running in maximum security before you can get into out of space! :)

We have SSH installed. That means you can manage your server remotely. [Make sure your Firewall allow your passage to get there].You may say that you're installing a fresh and new ubuntu system, but we need to upgrade first. login in your server using SSH. :-

# ssh 10.23.140.222 -l dzul

at the terminal, get into root privileges by issuing the "sudo su" and enter your password once again

after that :-

# apt-get upgrade
# apt-get update

and then follow my previous article about hardening ubuntu 9.04 here :-
http://rudyisskankin.blogspot.com/2010/07/hardening-your-apache-and-php-on-ubuntu.html

if you're successfully done that, give your peace of mind to get online.

note : hardening your system is a ingoing process, so explore your system well and check for open port regularly.

Setting Up Webserver using Ubuntu 10.04 [part 2]

10. Now you have to partition your hard disk. For simplicity's sake I select Guided - use entire disk - if you know what you're doing, you can also set up your partitions manually).

note : i always use guided - use entire disk [without to setup any LVM] I'll tell you why later in the other post. :)

11.Select the disk that you want to partition.

13.When you're finished, hit Yes when you're asked Write the changes to disks?

14.Afterwards, your new partitions are being created and formatted.

15. Now the base system is being installed.

16.Create a user, for example the user dzul with the user name dzul (don't use the user name admin as it is a reserved name on Ubuntu 10.04) and you'll be asked to make a password for that user. Enter your desire password with strong combination of chars. :)

17. I don't need an encrypted private directory, so I choose No here.

18. Next the package manager apt gets configured. Leave the HTTP proxy line empty unless you're using a proxy server to connect to the Internet. In my case, i have no proxy server to get online. By the way, apt-get is a package manager for ubuntu.

18. I like to update my package manually due to contraints of my apps, therefore I select No automatic updates. Of course, it's up to you what you select here. If you're lazy enough, then select automatic update.

19. I just need a LAMP Serevr and OpenSSH Server. Then continue.

20. Then installation continue, and prompting you a password for you to administer your mysql dabatase. Enter your password and continue.

21. The last past is just to get your installation complete by setting up GRUB bootloader.Select Yes when you are asked Install the GRUB boot loader to the master boot record?

22. If somehow it fail, go to plan B and try to use older boot loader which LILO. LILO is never fail, trust me but it loads more memory for booting up your machine.

23. The base system installation is now finished. Remove the installation CD from the CD drive and hit Continue to reboot the system.

Now you have successfully installed webserver using ubuntu 10.04. It's a ready to get online now, but i recommend to make some hardening first and do a post-installation configuration. Continue your reading to part 3 of this tutorial...

Setting Up Webserver using Ubuntu 10.04 [part 1]

Good day.This tutorial shows how to set up an Ubuntu Lucid Lynx (Ubuntu 10.04) server that offers all services needed by ISPs and hosters: Apache web server (SSL-capable), Postfix mail server with SMTP-AUTH and TLS, BIND DNS server, Proftpd FTP server, MySQL server, Courier POP3/IMAP, Quota, Firewall, etc. In the end you should have a system that works reliably, and if you like you can install the free webhosting control panel ISPConfig 2 (i.e., ISPConfig runs on it out of the box).

But in this tutorial, i just show you how to install apache/mysql/php in your server. Maybe i'll write another article to cover it up. :) Also i'll show a little configuration after installation before you can get your webpage online safely.

Ok let get started here :-

To install such a system you will need the following:

* the Ubuntu 10.04 server CD, available here:

http://releases.ubuntu.com/releases/10.04/ubuntu-10.04-server-i386.iso (i386) or http://releases.ubuntu.com/releases/10.04/ubuntu-10.04-server-amd64.iso (x86_64)

Just download that iso file and burn it into a blank cd or dvd.

Before you can go to installation process, make sure you have an IP address for your server.

NOw follow the steps below:-

1. Insert your Ubuntu install CD/DVD into your system and boot from it. If your machine your recognise it, you must check and make sure your boot sequence is reading CD or DVD in a first place.

2. Select your language.



3.Then select Install Ubuntu Server:



4.Choose your language again (? why ubuntu asking your language again):



5. Then select your location:



6. Choose a keyboard layout (you will be asked to press a few keys, and the installer will try to detect your keyboard layout based on the keys you pressed):

Note: I always ignoring this options and just set my keyboard layout to follow US type of keyboard. For Malaysia users, it is ok.





7.The installer checks the installation CD, your hardware, and configures the network with DHCP if there is a DHCP server in the network:





If you're not using dhcp, you need to set up manually your network setting. Choose manually and add your ip address accordingly.

8. Enter the hostname. In this example, my system is called testing.kppk.gov.my, so I enter testing

9. Please check if the installer detected your time zone correctly. If so, select Yes, otherwise No. If your time zone is zero, that means your system have no time zone. You need to select no and make some changes to get the right time zone for you.


///to be continued...

Sunday, July 4, 2010

Unlock almost all nokia models security code

Good day. This is a nice article i ever wrote. Unlocking is not legal thing to do. So you may take your own risk. What happen when you lost your security mobile phone code. If your mobile phone is nokia, this article maybe can help you. :) By the way, nokia security code is the one you may need when it's come for you to reset your phone setting to the original or to the factory setting. Some may need it to format the phone. Master reset and soft reset. The default is always give you a pleasure with 1234 or 12345 combination of numbers. But if someone has changed it, and you'll not be able to do master or soft reset your phone.

So if this happened, there's a simple and free way to get it done. NO need to get to nokia service centre. It will cost you a penny or more. Or maybe much more....hahaaa

Just get your IMEI, the 15 long numbers from the back of your mobile phone, which is also you can get it by hitting *#06# . And go to this website :-

http://nfader.su/

enter your imei there, and it will generate the security master code for you for free!!!

so what to do next?

NOw enter your security master code when your phone prompt the code. It will overwrite your old/current security code. Now it depend on you to set a new security code for your phone! :)

Streamyx dns

The following are streamyx dns ip address for the rest of malaysia users. Give it a try which is suite for you.... :) thanks to my friend, razlan.

202.188.0.132
202.188.0.183
202.188.1.8
202.188.0.184
202.188.0.136
202.188.0.4
202.188.1.23
202.188.1.25

change your dns setting to the ip above to test which one give you more speed. viola...

Hardening your Apache and PHP on Ubuntu 9.04 Server

You have installed LAMP and OpenSSH on your Ubuntu 9.04 Server. The first thing to do is to harden it in order to avoid some kind of attacks. You can do the following steps in front of your Ubuntu 9.04 Server or remote access it via OpenSSH.

For OpenSSH, your Ubuntu 9.04 Server is at 10.23.140.222 :
ssh 10.23.140.222 -l dzul

Step 1 :

The avoid someone to list your files on your Apache directory, you should do the following step.
sudo nano /etc/apache2/sites-available/default

Add a minus "-" in the front of "Indexes" and it will looking like this :

    Options -Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    allow from all


Step 2 :

To enable the rewrite module of Apache.
sudo a2enmod rewrite

To avoid Cross-Site-Tracing attack. Add the following lines within " " :

    RewriteEngine On
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]


Step 3 :

To avoid HTTP DoS, DDoS or Brute Force attack, you should install this module.
sudo apt-get install libapache2-mod-evasive

Step 4 :

To screen out bad URL requests, such as /etc/shadow or MySQL injection and etc. You should install mod_security module. If you installed a amd64 (64-bit) version of Ubuntu Server, please replaced i386 with amd64 for the following commands.
wget http://etc.inittab.org/~agi/debian/libapache-mod-security2/libapache-mod-security_2.5.9-1_i386.deb

wget http://etc.inittab.org/~agi/debian/libapache-mod-security2/mod-security-common_2.5.9-1_all.deb

sudo dpkg -i libapache-mod-security_2.5.9-1_i386.deb mod-security-common_2.5.9-1_all.deb

Step 5 :

Do not allow any Apache and Ubuntu Server information to be print on the error pages.
sudo nano /etc/apache2/conf.d/security

Change the following lines as the following :
ServerToken Prod
ServerSignature Off

Step 6 :

Now, it is time to harden the PHP.
sudo nano /etc/php5/apache2/php.ini

Change the following lines as the following :

display_errors = Off
log_errors = On
allow_url_fopen = Off
safe_mode = On
expose_php = Off
enable_dl = Off
disable_functions = system, show_source, symlink, exec, dl, shell_exec, passthru, phpinfo, escapeshellarg, escapeshellcmd

Step 7 :

Final step is to restart Apache server.
sudo /etc/init.d/apache2 restart

Step 8 :
sudo nano /etc/sysctl.conf
Uncomment the following line and make it look like this.
#Enable TCP SYN Cookie Protection
net.ipv4.tcp_syncookies = 1

Make the change active.
sudo /sbin/sysctl -p

note:- can be applied to ubuntu 9.10 and ubuntu 10.04 too.
if you want to change the publishing dir which is default to /var/www/, make sure you set the permission it nicely.

I'm losing my root password

The title says it all. So bad. I don't want to run the installation again because i need all the data. It is become worst from the previous installation there is only one user which is root! So you need just root password to gain access to the systems.

My systems is RedHAt ES 5. In order to achieve my goal to get into this systems is try to run this machine using linux single mode. Follow the steps below :-

- To boot into single-user mode from GRUB, do the following from
the GRUB menu screen:

1. Select the desired kernel.

2. Press the 'e' key to edit that entry.

3. Use the arrow keys to navigate to the kernel line
(for example: kernel /vmlinuz-2.6.x-x ro root=/dev/hdx2)

4. Press the 'e' key to edit the line.

5. Add the argument 'single' to the end of the line and
press return.

6. Press the 'b' key to boot.

If everything goes well, you'll be able to issue the "passwd" command at the prompt and you'll be asked to make a new password.

NOte :- If you are using LILO, at the LILO boot prompt (if you are using the graphical LILO, you must press [Ctrl]-[x] to exit the graphical screen and go to the boot: prompt) type:

linux single

That's it! :D

Command line is everything... :)

Don't know about you. But for me linux command line is everything. Last a couple of weeks, i busy with server migration. Upgrading to new version of Ubuntu is not so hard to do. The tedious part is that to back up your data and put it up again. You'll be facing some of issues that your new server is restricted here and there. You'll be stuck at permissions and so on.

Getting the server up and running is just a simple thing to do. After done with some hardening, than you need to put your data back in to online. Most of the times i'll be using phpmyadmin to import my data back to the new server. I ran into problems....

Importing large amount of data failed due to constraints from your php.ini files. If you're not going to edit this file, you actually can do it by linux command line!!! :). SSH to your new server, upload that *.sql file[s] to your new server. Get to terminal as root and issue this command :-

# mysqldump -u username -p database_name > database_name.sql

enter the passwrd and you're done. :)

Hack and crack that WEP keys!

You don't have to be an IT expert to be able to make use of your neighbour's security enabled Wifi network. Are you kidding me? Hahahaahha... it's true. I've done a couple times. Please read on as i tell you how to do it. Pretty dead simple.

What you need is just a single Dvd with Back Track 3 or 4 installed. So get your copy from http://www.backtrack-linux.org/downloads/ . Burn it into cd/dvd.

Make sure u have a laptop with wireless card that support monitor mode. Most of modern laptop have capability to monitor packets. Boot up your laptop with dvd/cdrom. Wait until u get prompt by back track. Type startx to get started.

Now you're ready to rock! :) get your terminal and set your card to monitor mode :-

# iwconfig wlan0 mode monitor

note :- in my case, my Interface is wlan0, yours maybe different

then issue the following cmd :-

# airodump wlan0 /tmp/dump

# aireplay -2 wlan0

just wait for 5 to 10 min or more to get better amount of captured data.

hit control + c to stop the aireplay

then

# aircrack /tmp/dump_01.cap

if everything goes well, the encryption keys is now yours! :)

This steps can't be applied to WPA,WPA2 PSK due to lack of dictionary contents.

Saturday, July 3, 2010

Ubuntu 10.04 is called lucid lynx


Good day everyone. I've been using linux for a long times now. I'm not using linux distros for my desktop yet until the release of ubuntu 10.04. They called it as a Ubuntu Lucid Lynx. Cool. :)

I'm not encouraging you to use this distro without knowing what is the ubuntu lucid lynx actually. What is Ubuntu? Come on you must heard this word somewhere. Ubuntu, an operating system based on Debian GNU/Linux, makes two releases every year, using the year and month of the release as a version number. The first Ubuntu release, for example, was Ubuntu 4.10 and was released on 20 October 2004. Consequently, version numbers for future versions are provisional; if the release is delayed until a different month to that planned, the version number changes accordingly.

Ubuntu releases are timed to be approximately one month after GNOME releases, which are in turn about one month after releases of X.Org, resulting in each Ubuntu release including a newer version of GNOME and X. To date every fourth release, in the second quarter of even-numbered years, has been designated as a Long Term Support (LTS) release, indicating that it has updates for three years for desktop use and five years for server, with paid technical support also available from Canonical Ltd.. Releases 6.06, 8.04, and 10.04 are the LTS releases.

Ubuntu releases are also given code names, using an adjective and an animal with the same first letter (e.g. Dapper Drake). With the exception of the first two releases, code names are in alphabetical order, allowing a quick determination of which release is newer. Commonly, Ubuntu releases are often referred to using only the adjective portion of the code name (e.g. Dapper).

So.. that's a brief of ubuntu. I got my first hand with ubuntu when i stucked with redhat es 4. The depencies and RHNetworks won't recognise me anymore... that's a little shame for REd HAT. I took a drastic action to start from zero. Then i took the iso images from the net, surprisingly, this distro won't take me long to understand. I like tis distro better than others.

Monday, April 19, 2010

Welcome

Welcome and say hello to everyone. This blog is just started. Come visit regularly as I'll write some of good recipe of Open Source. :)