Articles

HOWTO: Use dpkg to Install .deb files or packages

One needs to have dpkg installed on the linux box to open or install a.deb file.

TO check if the dpkg is installed one can check using the following tutorial Install dpkg on fedora machine

Now go to directory where package.deb is kept and type the following command

[root@localhost Downloads]# dpkg -i package.deb

Install dpkg on fedora machine

First of all check if dpkg is installed on your machine by typing the following on the command line

[root@localhost php]# dpkg

If dpkg is installed you will get some similar response

[root@localhost php]# dpkg
dpkg: need an action option
 
Type dpkg --help for help about installing and deinstalling packages [*];
Use `dselect' or `aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;

Change the default editor for git commit

There are many ways to change the default editor used for entering committing message to the git repository.

1 - Commit using the command line itself

$ git commit -m "my first commit"
 

2 - Change the editor using the command line and git command
I prefer emacs so I will use emacs as my default git commit editor.

$ git config --global core.editor "emacs"
 

3 - Add the editor info to the gitconfig file

$ cd
$ emacs .gitconfig
 

Once you have opened the file add the following lines to it

[core]

Fedora install pecl uploadprogress

To install pecl-uploadprogress you might need to do the following

1 - Login as root.

$ su -l
Password: "Enter your root password"

2 - check if php-devel is already installed. So just run the following command and if it is not present it will install it and if it is prsent it will just update it.

$ yum install php-devel

3 - Once php-devel is installed just run the following command to install pecl-uploadprogress

$ pecl install uploadprogress

4 - Once it is installed add the following line to your php.ini file
 

Activate, Deactivate and Disable icon are disabled or greyed on the network console

If you are using network manager and the old default network is disabled and the icons are greyed out the just do the following,

For each connection check if "controlled by Networkmanager" is enabled. If it is enabled disable it.

Now you should have the option to activate and deactivate as well as the delete option.

Network, Battery icons are missing from the top right panel

To get back the missing icons we just have to follow one simple step

panel > right click > add to panel > notification area

Touchpad clicks are disabled by default in fedora 11

In the earlier versions of fedora the touchpad for the notebooks were enabled by default but now in the fecora core 11 it is disabled by default .

To enable the touchpad for clicks and edge scrolls do the following

1 - Go to Systems > Preferences > Mouse

2 - Then go to Touchpad which is an option in the tabs .

3 -Click on Enable Touchpad with Clicks and finally click on the close button.

Extract files from ISO CD/DVD images in Linux

To do so first login as a root user.

Let us assume the iso image name is disk-test.iso

Step # 1: First you need to create a directory /mnt/iso


# mkdir /mnt/iso

Step # 2: mount the iso image to directory /mnt/iso


# mount -o loop disk-test.iso /mnt/iso

Step # 3: To view the mounted iso image data


# cd /mnt/iso

How To Create CD/DVD ISO Image In Linux

Unlike Windows Vista or XP, Linux doesn’t have to separately install Nero Burning ROM or CD image writer if you plan to create an ISO image to backup a CD or a DVD.

The standard dd command is available in linux to do this job.

Do not mount CD. Verify if cd is mounted or not with mount command:


#mount

If the cd is mounted automatically unmount the cd using the unmount command:


#umount /dev/cdrom

Check the exact location where the cd is mounted to unmount it.

Now once the cd is unmounted we can create an ISO image of it using the dd command

Installing Adobe Reader 8.1.3 in Linux

Just a few months ago , Adobe came up with the Adobe Reader for Linux OS .

Installation
1 Download the latest version of Adobe Reader from the Adobe Download Page

2 Select the rpm and download the rpm

3 then just run this command

rpm -i AdobeReader_enu-8.1.3-1.i486.rpm

Usage

To run Adobe Reader, click Applications → Office → Adobe Reader 8 menu item. Or run the following command in terminal:

/opt/Adobe/Reader8/bin/acroread