>Installing LAMP on Ubuntu 10.04 and 10.10 (Lucid Lynx, Maverick Meerkat)

>

If you’re developing websites, it’s nice to be able to test your code in the privacy of your own computer rather that out in the public internet. In order to do that, you’ll need to install a webserver on your development computer. LAMP (Linux, Apache, MySQL, php) is one of the most common web hosting platforms, so it’s a perfect environment for you to build and test your website code. If you carefully follow these step by step instructions, you’ll have your own LAMP setup running in no time. 

Install LAMP on Ubuntu

The Ubuntu developers have made it easy to install the LAMP server packages with a single command. Simply open a terminal window and enter the following.
sudo apt-get install lamp-server^

No, that’s not a typo. Please make sure to include the caret (^). The command will not work without it.

sudo apt-get install lamp-server^

sudo apt-get install lamp-server^
The apt package manager will show all the packages that need to be installed. Hit  to confirm that you want to install them.
LAMP packages

LAMP packages
You will then be prompted to change the password for the root user on the MySQL database.
Set MySQL root password

Set MySQL root password
Enter the password you want. You’ll be prompted to enter it a second time to confirm.
After you confirm your password, apt will continue to install the rest of the packages.
Congratulations, your LAMP installation is now complete! That was the easy part, now you need to get a few things configured to make your system easy to work with.

Test Apache

Open a web browser and enter the address http://localhost/. You should see a web page that says “It Works!”
Testing Apache

Testing Apache

Test php

Now that you know Apache works, you’ll want to test the php installation. You’ll need to create a file in /var/www called testing.php. Open a terminal and enter:
sudo nano /var/www/testing.php
Enter the following line into the text editor, save the file and exit.
Next, restart Apache with the following terminal command:
sudo /etc/init.d/apache2 restart
Now go back to your web browser and enter the addresshttp://localhost/testing.php/. You should see a page displaying version information for your php installation.
php Information

php Information

Configure MySQL

Since I’m installing LAMP for a web development environment, I want the MySQL database to be bound to the localhost IP address. This should be 127.0.0.1 for your system. You can verify it with this terminal command.
cat /etc/hosts
| grep localhost
You’ll now want to verify that the correct bind address is set up in MySQL’smy.cnf file.
cat /etc/mysql/my.cnf | grep bind-address
You should see a line that looks like this:
bind-address  = 127.0.0.1
If the IP address doesn’t match the one for your system, you’ll need to edit themy.cnf file to correct it.

Install phpMyAdmin

You don’t need to install phpMyAdmin, but it’s a much easier way to get in and adjust things in your MySQL database if you’re not familiar with MySQL’s commands. You can install phpMyAdmin from the command line with:
sudo apt-get install libapache2-mod-auth-mysql phpmyadmin
The installation will prompt you to select a web server for automatic configuration.
phpMyAdmin Setup

phpMyAdmin Setup
This is important! Use the space bar on your keyboard to select apache2.Make sure there’s a * next to apache2 like the picture below and then hit.  (Click the picture to enlarge it and see what I’m talking about.)
phpMyAdmin Setup: select apache2

phpMyAdmin Setup: select apache2
The next screen will explain some information about database configuration. Hit the  key to move on.
phpMyAdmin database config

phpMyAdmin database config
Another screen will come up asking if you want to configure a new database called dbconfig-common.  Since this is a fresh installation, use the  key to select Yes and hit .
phpMyAdmin dbconfig-common

phpMyAdmin dbconfig-common
You’ll be prompted next to enter the MySQL root password. Enter the MySQL root password that you created earlier, hit  to select Ok and hit .
MySQL root password

MySQL root password
You’ll then be prompted to enter a MySQL application password for phpmyadmin. You can hit  and a random password will be generated. I chose to use the same password that I used for the root MySQL password.
MySQL application password

MySQL application password
If you enter your own password, a password confirmation screen will come up. Confirm your password.
MySQL application password confirmation

MySQL application password confirmation
Your phpMyAdmin installation and configuration is now complete.

Testing phpMyAdmin

Open your web browser and enter the addresshttp://localhost/phpmyadmin/. You should see a page like this.
phpMyAdmin log in

phpMyAdmin log in
You can log in with the username root and the root password that you created earlier.
Logged into phpMyAdmin

Logged into phpMyAdmin
Congratulations, you’re now ready to start building your local website. If you’re only working on one site you can put all of your files into /var/www.  If you’ll be working on multiple sites you may want to consider some additional Apache configuration to keep things neat and clean on you system.
Posted in Uncategorized | Leave a comment

>Fix Event Log Service Error 4201 The Instance Name Passed Was Not Recognized – The Winhelponline Blog

>Fix Event Log Service Error 4201 The Instance Name Passed Was Not Recognized – The Winhelponline Blog

One of our readers faced a problem where the Windows Event Log failed to start, and as a result, a couple of other services failed as well. Attempting to start the Windows Event Log service manually via the Services MMC resulted in error 4201. The complete error message is provided below:

Windows could not start the Windows Event Log service on Local Computer.

Error 4201: The instance name passed was not recognized as valid by a WMI data provider.

And the following errors popped up when opening the Event Viewer and Task Scheduler.

Event Log service is unavailable. Verify that the service is running.

Task Scheduler service is not available. Task Scheduler will attempt to reconnect to it.

Upon checking the Event Log service registry key and values, they were intact. Eventually the problem turned out to be the incorrect permissions for the C:WindowsSystem32LogFilesWMIRtBackup directory. The SYSTEM group needs full control permissions for the directory only then the Windows Event Log service would start. Thanks toAlexzhu for sharing the solution here. Note that we didn’t have to rename or delete the RtBackup directory.

Fixing the Permissions for RtBackup Folder in Windows 7 and Windows Vista

1. Start Windows in Safe mode

2. Open the “C:WindowsSystem32LogFilesWMI” folder

3. Right-click on the RtBackup folder and choose Properties

4. Click the Security tab, and click the Edit button.

5. Click Add

6. Type SYSTEM and hit ENTER

7. Enable “Full control” Permission to “Allow”

8. Click OK, and then click Yes when asked for confirmation.

9. Restart Windows (in Normal mode), and verify if the Windows Event Service has started.

Posted in Uncategorized | Leave a comment

>Hidden Plurk Emoticon

>Ini dia hidden emoticon terbaru dari mereka ….
kode (no_dance)|| kode (dance_yarr)|| kode (angry_okok)|| kode (taser_okok)|| kode (banana_gym)
.. kode (dance_okok)|| kode (music_okok)|| kode (yarr_okok)|| kode (gym_okok)|| kode (wave_okok) kode (hungry_okok) || kode (code_okok)

Kesimpulannya .. 7 kode emoticon “asli” ditambah okok …  
kode (xmas1)|| kode (xmas2)|| kode (xmas3)||
kode (xmas4)||

Edisi  World Cup 2010  South Africa
kode* (bz)|| kode (goal)|| kode (dance_bzz)

*semakin banyak kode (bz) ditulis bersamaan, warna terompet vuvuzela semakin bervariasi.
** kode bz ataupun bzz diilhami dari suara yang dihasilkan terompet vuvuzela

Emoticon lainnya
 || kode (yarr)|| kode (code)|| kode (firework)|| kode (Русский)||

Posted in Uncategorized | Leave a comment

>Penjelasan mengenai Svchost.exe

>Svchost.exe merupakan nama proses host generik untuk layanan yang dijalankan dari dynamic-link libraries (DLL).

Berkas Svchost.exe terletak di dalam map %SystemRoot%System32. Pada proses persiapan, Svchost.exe memeriksa bagian layanan registri untuk menyusun daftar layanan yang harus dimuat. Svchost.exe dapat dijalankan beberapa kali sekaligus dalam satu waktu. Setiap sesi Svchost.exe dapat berisi sekelompok layanan. Oleh karena itu, layanan yang terpisah dapat berjalan, tergantung pada bagaimana dan di mana Svchost.exe dimulai. Kelompok layanan ini memungkinkan kontrol yang lebih baik dan debugging yang lebih mudah. 

Grup Svchost.exe diidentifikasi dalam kunci registri berikut ini:
HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsNTCu rrentVersionSvchost
Setiap nilai di bawah kunci ini melambangkan grup Svchost yang berbeda dan muncul sebagai item yang terpisah ketika Anda sedang melihat proses aktif. Setiap nilai merupakan nilai REG_MULTI_SZ dan berisi layanan yang dijalankan di bawah grup Svchost tersebut. Setiap grup Svchost dapat berisi satu nama atau lebih layanan yang diekstrak dari kunci registri berikut ini, yang kunci Parameters-nya berisi nilai ServiceDLL :

HKEY_LOCAL_MACHINESystemCurrentControlSetServic esService
Untuk melihat daftar layanan yang berjalan di dalam Svchost:

  1. Klik Mulai pada taskbar Windows, kemudian klik Jalankan.
  2. Pada Buka, ketik cmd, kemudian tekan ENTER.
  3. Ketik Tasklist /SVC, kemudian tekan ENTER.

Tasklist menampilkan daftar proses yang aktif. Switch /SVC menunjukkan daftar layanan aktif di setiap proses. Untuk informasi lebih lanjut mengenai sebuah proses, ketik perintah berikut ini, kemudian tekan ENTER:

Tasklist /FI “PID eq processID” (dengan tanda petik)

Contoh output Tasklist berikut ini menunjukkan dua item dari Svchost.exe yang sedang berjalan.


Berikut ini adalah pengaturan registri terhadap kedua kelompok untuk contoh ini:
HKEY_LOCAL_MACHINESoftwareMicrosoftWindows NTCurrentVersionSvchost:
Netsvcs: Reg_Multi_SZ: EventSystem Ias Iprip Irmon Netman Nwsapagent Rasauto Rasman Remoteaccess SENS Sharedaccess Tapisrv Ntmssvc
RApcss :Reg_Multi_SZ: RpcSs

Sumber: http://support.microsoft.com/kb/314056/id-id

Posted in Uncategorized | Leave a comment

>Test Windows Live Writer

>

aaaaaaaaaaaaaaaaaaaaaaa akwkakw Open-mouthed smile ini adalah test via windows live writer emg lmayan mantap dah neh aplikasi Open-mouthed smile buat2 agan2 sekalian Open-mouthed smile

Posted in Uncategorized | Leave a comment

>Howto: Set up Gmail in Evolution, Gnome’s Mail Client and Organizer

>In Gmail POP can be enabled , and here is how to set it up for Evolution.

  • Login to your gmail account and select Forwarding and POP.

Enable pop and set pop up in the way you prefer. (At least make sure pop is enabled.)

  • Open evolution:

Select Edit > Preferences > Mail Accounts
Select the Add Button > (Evolution Assistant Account starts.

screenshot-evolution-account-assistant.png
If you use evolution for the first time this is where you begin.

  • Identity

Evolution Account assistant Identity

  • Receiving email:

Evolution Account Receiving Email
Server type: POP
Server: pop.gmail.com
Username: username@gmail.com
Security > Drop-down menu > select SSL connection
Authenthication Type: password
Flag remember password if you wish
Select ok

  • Receiving Options

Evolution Account Assistant Receiving Options
Are all optional, fill in as you please.
Select Forward

  • Sending Email:

Can be done in 2 ways:

  • 1, Fill it in using The SMTP server information provided by your ISP, I think this is the best way, the send mail gets no advertising added.

screenshot-evolution-account-assistant Sending Email with your ISP's SMTP server

  • 2, Use the SMTP server provided by Gmail:

screenshot-evolution-account-Use SMTP provided By GmailServertype: SMTP
Server: smtp.gmail.com
Flag: server requires authentication
Use Secure Connection: SSL
Fill in Username: username@ gmail.com
Select OK
Done.
Now restart Evolution and see if it all works.

Posted in Uncategorized | Leave a comment

>Enhance Pidgin With Facebook Chat, Now Playing Status, Interface Tweaks

>

It may not be the default chat client in Ubuntu any longer, but Pidgin is still an awesome application. Below are 5 tweaks and plugin’s i install off-the-bat when i’m faced with a fresh version of Pidgin.
Pidgin Facebook Chat
Chat to Facebook contacts from within Pidgin and see available contacts sat amongst the rest of your pidgin contacts.

Tip: Enable Protocol Icons to see who’s on what service.

Download
Open a terminal session and type

  • sudo apt-get install pidgin-facebookchat

Or download the latest .deb from the official project page @ http://code.google.com/p/pidgin-facebookchat/

MusicTracker for Pidgin

MusicTracker is a “now playing” plug-in for Pidgin. It supports a palatable herd of music players, from Banshee to LastFm and provides a wide range of customization options (such as format, when to show, etc.)

Download

Open a terminal

  • sudo apt-get install pidgin-musictracker

Configure via the plug-ins menu.
Auto-resize Buddy List
Auto-resize does what its name implies: it automatically adjust the height of pidgin to fit the number of contacts in the buddy list. Particularly useful if you only choose to show currently on-line contacts.

Download
Deb available @ http://raoulito.info/plugins/pidgin_autoresize/
Avatars To The Left
Display contacts avatars on the left of the screen with this tweaked theme.

Download

Find the hack @ http://gnome-look.org/content/show.php/Pidgin+theme+with+avatars+to+the+left?content=111392
Install
Create a folder called ‘themes’ in ~/.purple/ and then select the theme via Pidgin’s preferences menu.

Posted in Uncategorized | Leave a comment

>Fix the Pidgin ‘SSL Error’ in Ubuntu

>So Microsoft threw some switch or other today that has resulted in many Pidgin users who try to connect to the MSN network being greeted with the following pop-up: –

Now i’m not a Pidgin user but I can appreciate it’s enough to get anyone in a flap so here’s how to “fix” it courtesy of the brains @ retrohack whose Windows instructions i’ve adapted for Ubuntu.

  1. Open https://omega.contacts.msn.com in your browser
  2. You will get a directory access denied error  – for once it’s what we want to see!
  3. Click the ‘security’ or ‘padlock’ icon usually found to the left of the URL in the address bar to view the certificate.
  4. Click around to find the ‘export certificate’ feature (In Chrome/ium this is the ‘details’ tab)
  5. Rename the exported certificate omega.contacts.msn.com and copy it to the Pidgin certificates folder located in your home folder at .purplecertificatesx509tls_peers (You’ll need to press CTRL+H to see hidden files)
  6. Overwrite the existing file with the one you’ve just exported
  7. Breathe.  You’re done.

Posted in Uncategorized | Leave a comment

>Get Aero Snap in Ubuntu

>Ubuntu users can get a the cool functionality of Windows 7’s “Aero Snap” with a few copy’s and a few pastes thanks to an awesome tutorial on the UbuntuForums by forumer gotsanity. Props and cookies go to him for this.

What Is Aero Snap And Why Should I Use It?

For those who don’t know what Aero Snap is i shall try and sum it up in on sentence.
Aero Snap allows you to minimize, maximize and resize windows by simply drag-dropping them to the sides of the screen.
It’s useful for comparing the contents of two windows side-by-side.
For example you have two tabs in Google Chrome open but want to view the contents side-by-side rather than having to switch tabs. Easy. Peel of one of the tabs, drag it to the left – BAM! Drag the second window to the right and – BOOM! There they are: –

Drag them away and ta-da! they resize back.

Enable “Aero Snap” In Ubuntu

You Will Need Compiz enabled and the following applications installed: –

  • sudo apt-get install compizconfig-settings-manager wmctrl

Now you’re all set to begin.

  • Open the Compiz Config Settings Manager (ALT+F2 ccsm, system > preferences > CompizConfig…, etc)
  • Select the “Commands” option.
  • In  ‘Command Line 0′ paste: –

WIDTH=`xdpyinfo | grep ‘dimensions:’ | cut -f 2 -d ‘:’ | cut -f 1 -d ‘x’` && HALF=$(($WIDTH/2)) && wmctrl -r :ACTIVE: -b add,maximized_vert && wmctrl -r :ACTIVE: -e 0,0,0,$HALF,-1

  • In ‘Command Line 1′ paste: –

WIDTH=`xdpyinfo | grep ‘dimensions:’ | cut -f 2 -d ‘:’ | cut -f 1 -d ‘x’` && HALF=$(($WIDTH/2)) && wmctrl -r :ACTIVE: -b add,maximized_vert && wmctrl -r :ACTIVE: -e 0,$HALF,0,$HALF,-1

  • And in ‘Command Line 2′ paste: –

wmctrl -r :ACTIVE: -b add,maximized_vert,maximized_horz
It should now look something like this: –

Now choose the ‘Edge Bindings’ tab at the top and set the following: –

  • Run Command 0 – Set To Left
  • Run Command 1 – Set To Right
  • Run Command 2 – Set To Top

Click on the back button and go to ‘General options’.

Set the ‘Edge Trigger Delay’ to something around 400 – 500 by dragging the slider to the right.

Now all you have to do is drag a window to one of the specified sides and your window will automatically resize.

Posted in Uncategorized | Leave a comment

>Package Management in Ubuntu

>sudo aptitude xxxx [package]


update – this option used with aptitude or apt-get will retrieve the latest versions of packages from the update servers. You should check for updates periodically (normally your system should check automagically from time to time)
search [keyword] – this option will allow you to search for packages by name or description. Do you want to find a package that offers feature [keyword] or [keyword]? Simply use aptitude search [keyword] (or with apt-get use apt-cache search [keyword]) and a list of packages will be retrieved matching your search.
show [package] – this option will show you more detail about the package. File sizes, extended descriptions, dependencies and maintainer information. This is useful when you want to know more about your package. As above if you’re using apt-get the command would be apt-cache show [package].
install [package] – this option is pretty straight forward. If you want to install [package] use the command and your package will be retrieved and installed for you. If you’ve ever installed anything from the command line or used any of my previous tutorials you’ve definitely used this option.
remove / remove –purge [package] – this option will let you remove a package that you had previously installed. Using the remove option your system will uninstall whatever package you want (see above on using aptitude for dependency removal). Using the –purge option will also remove any configuration files that your program had included. If you know you are never using the program again and can safely purge any trace of it, you can use the –purge option. If you might be back (it happens) the config files might come in handy later.
upgrade – this option will allow you to upgrade your system. After running update (see above) using the upgrade command will get your system up to date on anything new waiting on the central package repositories. You should regularly run update and upgrade to keep your system up to date.
dist-upgrade – this option will do a complete upgrade of your system. Often a package will be updated but the new version also depends on additional packages. To make sure you are completely updated you’ll want to also include this in combination with upgrade. A complete set of upgrade steps would be to use update followed by upgrade and then dist-upgrade.
autoclean – this option cleans your system from previous upgrades. The APT system will download the latest package when it upgrades your system. If you have upgraded a package two or three times since originally installing you might then have three versions of that package in your system cache. Using autoclean tells your system to remove the previous, now unneeded packages. This is also a good idea after running upgrade and dist-upgrade.

Posted in Uncategorized | Leave a comment