Thursday, September 8, 2011

// // Leave a Comment

How to reset windows firewall settings

Sometimes we edit the windows firewall settings an start getting some problems in browsing websites because of some little silly errors. Incase we want to reset all the firewall settings, we can use any of below two methods working fine in windows xp service pack 2.

Method one:
Click on start >> run and type below code and click ok:


after that click on advance tab and reset the settings by clicking on restore defaults button.

Method two:
Open windows command prompt or terminal and type below command and press enter:


Your firewall settings will be restored to default.
Read More
// // Leave a Comment

How to Update Cpanel Licence Key (Remove The Trial Licence Error)

We can run the below command to update the cpanel licence key incase we are getting expired cpanel licence or trial mode warning.


This will work if your server ip is licenced for cpanel/WHM.
Read More
// // Leave a Comment

How to Extract a Single Folder From a tarball (tar.gz) in 1 Command

Using this command you can extract a single file or folder from a tarball having an extension of tar.gz.
Sometimes we have a large tarball containing a number of files and folders. But we want to extract a single file or folder from that.

Now to do this in linux using commands ?

Open the command prompt or login to SSH and type the below commands after editing as per requirements.

gunzip -c /full path to tarball/filename.tar.gz | tar -xvf - path of file in the tarball/

Now in the above codes first you will need to put the full path of the tar.gz file. Then second you will put the path of file you want to extract inside your tarball ie tar.gz.

Lets take an example:- Suppose we have a tarball named tarball.tar.gz containing 2 zip files namely and
Assuming that the tarball.tar.gz is inside our home/ directory .
Now we want to extract the from the tarball. So we can use the below code for doing so.

gunzip -c /home/tarball.tar.gz | tar -xvf -

Enjoy !
Read More

Sunday, September 4, 2011

// // Leave a Comment

Enable spell checker on input boxes in firefox

If you are a Firefox lover like me, you must have tried the inbuilt spell checker tool.

By default, the spell checker feature is enabled for textareas only.

To enable spell checker on input boxes, you'll have to do the following.

In the address bar, type about:config.
Type spell in the search box and hit enter.
Navigate to layout.spellcheckDefault. Initially, the value of this field would be set to 1.
Double click on it and set it's value to to.

Restart your browser and start enjoying the power of spell checker tool on input boxes as well as textarea.
Read More
// // Leave a Comment

How To Install FFmpeg Latest Version at CentOS5.5

This tutorial will guide you on how to install FFmpeg at CentOS5.5 with all the common errors that you may face. Before installing FFmpeg lets do some tests and make the system ready for FFmpeg installation.

Step 1) First of all open the directory /etc/yum.repos.d and create a new file dag.repo then paste the below code and save.

name=Dag RPM Repository for Red Hat Enterprise Linux

Step 2) Run the below command and the ffmpeg installation should run fine.

yum install ffmpeg ffmpeg-devel

Got some public key error ? Dont worry run below command to fix it and try again:

rpm -Uhv
yum install ffmpeg ffmpeg-devel

Now FFmpeg should be installed without any problem, you can
test the installation by running the below command.

rpm -Uhv

But Wait !
Would you like to install the FFmpeg-php extension ?
Install FFmpeg php extension.
Read More
// // Leave a Comment

Installing FFmpeg-PHP Extension at Linux

In this tutorial we will learn about installation of FFmpeg PHP extension. As we know that FFmpeg is a very useful tool for audio video conversion etc.

To install FFmpeg PHP extension you must install the FFmpeg first.
Visit Below:

After you install the FFmpeg you can now move forward to install the php extension:

Step 1) Download the latest version of FFmpeg-php.
Visit the Below site:
You can download the latest release using wget command. Click here to learn about wget linux command if you dont know about it.

After downloading you can see the downloaded package in your /root directory which is default.

Step 2) Now extract the file using below command:

tar -xjf name of the downloaded file

Step 3) Now enter to the extracted directory using below command:
cd Name of the extracted folder

Step 4) Now run below command:
if you get command not found error than probably you dont have the php devel installed.
Run the below command to fix it including the above command:
yum install php-devel

Step 5) Now run below command to install the FFmpeg-php:
make install
if you get header not found or some similar error then you can fix it by running the below command with the above one:
yum install ffmpeg-devel
make install
if you get error similar to shared library not found then run the commands given below:
./configure --with-ffmpeg=/usr/local/cpffmpeg
make install

Now ffmpeg should be installed correctly without any problem.

Step 6) Now at the end you will need to edit your php.ini file, paste the below code to load the FFmpeg module in php and save it.

Step 7) Restart the apache and your FFmpeg installation has been completed.
service httpd restart

Addons: Now you may want to install some addons like Mencoder and mplayer.
Use below command to install them:
yum install mplayer mencoder
Read More
// // Leave a Comment

Creating an FTP user using SSH command lines in linux.

Sometimes we want to host a website without a cpanel. This tutorial will explain the entire procedure of creating an FTP user using the linux command linees in SSH terminal.

1. Login as root through SSH.

2. Use below command to add an FTP user:

useradd myname

3. Now create a group for the user we created above or we can use an existing one too:
groupadd mygroup

4. Now to add the user to the group using below commands:
gpasswd -a myname mygroup

5. Change the group ownership of the special directory to that group:
chgrp -R mygroup /home/myname

6. Enable write permissions to the folder:
chmod -R g+rw /home/myname

7) Assign a password to the user we created:
passwd myname

These commands will work in almost all popular linux distros.

Note: In step 5 and 6 please be sure to locate the correct directory location as it may be different depending on the type of OS you using.
Read More
// // Leave a Comment

How to reboot a linux web server

We can reboot a linux web server using the below command.


You should be having root previllages to get that command working.

Read More