Thursday 1 October 2009

Recover the Deleted files in Fedora 11

What is Photorec?

PhotoRec is file data recovery software designed to recover lost files including video, documents and archives from Hard Disks and CDRom and lost pictures (thus, its ‘Photo Recovery’ name) from digital camera memory. PhotoRec ignores the filesystem and goes after the underlying data, so it will still work even if your media’s filesystem has been severely damaged or re-formatted.

For This HowTo Recover Deleted Files?

Lets say I had a file download_arrow.png in /home/aryan/Desktop which I have removed accidentally. Login as root and create a directory recover which will be used to store all the recovered files.

Install testdisk/PhotoRec

Photorec comes as a part of testdisk package in Fedora (I hope its same for other distributions as well). Use yum to install testdisk.

[root@fedora-tips ~]$ yum install testdisk

Launch Photorec

Once you are done with installation. Open a terminal and launch photorec (as root).

[root@fedora-tips recover]$ photorec

Select Hard Disk

If you have more than one hard disk in your system, select the one from which you have deleted the file(s).

PhotoRec Hard Disk Selection

Select Partition Type

If your hard disk has Linux partitions, then select [Intel].

PhotoRec Partition Selection

Select Filetype Option

Move to [File Opt] and press enter. Here you can disable all file types by pressing ’s’ . Use space to toggle the check button. Now since we removed a png file, we are going to check only png file type.

PhotoRec Filetype Selection

Select Options

Photorec also has a list of different options. Under normal circumstances you don’t need to modify them

PhotoRec Option Selection

Select Partition

Move the selector to the partition from which you have removed the file. Then press enter on search.

PhotoRec Partition Selection

Select Filesystem Type

If you are using Linux, its going to be ext2/ext3/ext4. So the default selection is file.

PhotoRec Partition Selection

Select Space for Analysis

Select free if you didn’t write to that partition after removing the particular file otherwise select whole.

PhotoRec Space Selection

Select a Directory to Recover Files

Now select the path where the recovered files will be stored. Then press ‘Y’.

PhotoRec Recovery Directory Selection

Recovery Progress

Photorec will show how many files it has recovered.

PhotoRec Recovery Progress

All recovered file will be stored in the directory selected above. Open them in a file browser and you’ll get the removed file there. I hope this howto will help you recovering files you accidentally delete :)

Tuesday 15 September 2009

Install an IBM Web Application Server - Community Edition(WAS-CE) in Fedora 11

Installation Steps:

STEP 1:Download the installation bundle of WAS-CE with ibm-sdk150 java from
http://en.wikipedia.org/wiki/Ia32


STEP 2:Installation of application server :
  • Extract the files from wasce_ibm150sdk_setup-version-platform.tar.bz2 into an empty directory using a utility that supports the tar/bzip2 format using
[root@localhost Download]#tar -jxf wasce_ibm150sdk_setup-version-platform.tar.bz2
or
[root@localhost Download]#bzip2 -d wasce_ibm150sdk_setup-version-platform.tar.bz2
  • Install the dependent packages for wasce
[root@localhost ~]#yum install libXp libXp-devel compat-libstdc++-33
  • Install the IBM SDK Java(TM) 2 Technology Edition by invoking rpm package manager on .rpm file from the directory created above
[root@localhost ibm_was_ce]#rpm -Uvh ibm-java2-i386-sdk-5.0-10.0.i386.rpm
  • Make wasce_setup-version-unix.bin executable
[root@localhost ibm_was_ce]#chmod 755 wasce_setup-2.1.1.3-unix.bin
  • Install the application server wasce_setup-version-unix.bin from the directory created above and follow the instructions provided by the install wizard
[root@localhost ibm_was_ce]#./wasce_setup-2.1.1.3-unix.bin
  • After a successful installation, the wasce_ibm150sdk_setup-version-platform.tar.bz2 file and the directory created above are only needed if you want to perform another installation. The installed application server does not require them. You may delete or archive them to suit your conventions.

STEP 3:
  • Starting the server
[root@localhost ~]#cd /opt/IBM/WebSphere/AppServerCommunityEdition/bin
[root@localhost bin]#./startup.sh
Using GERONIMO_HOME: /opt/IBM/WebSphere/AppServerCommunityEdition
Using GERONIMO_TMPDIR: var/temp
Using JRE_HOME: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre
Using GERONIMO_OUT: /opt/IBM/WebSphere/AppServerCommunityEdition/var/log/server.out

Geronimo started in background. PID: 6899

This indicates that your server is started successfully.
  • The server will be started in the background and the server's output will be written to /var/log/server.out. When initialization is complete, this file contains a list of ports on which the server is listening, application modules started, active web application URLs, and should end with the server started message.

Step 4:Verifying the server

After your server has successfully started, access these pages to verify the installation:

Step 5:Stopping the server

[root@localhost bin]#./shutdown.sh
Using GERONIMO_HOME: /opt/IBM/WebSphere/AppServerCommunityEdition
Using GERONIMO_TMPDIR: var/temp
Using JRE_HOME: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre
Username: system
Password: *******
Locating server on localhost:1099... Server found.
Server shutdown started
Server shutdown completed

Sunday 13 September 2009

Audio and video codecs for FEDORA 11 for totem

I've installed fedora 11 and everything went allright.But when i tried to play an audio song in default media player i.e. Totem, it produced an error

Now what can i do?
so dont worry ......
You need to install following audio and video codecs for totem:
  • gstreamer-plugins-base
  • gstreamer-plugins-good
  • gstreamer-plugins-ugly
  • gstreamer-plugins-bad
  • gstreamer-ffmpeg
These codecs installed may help you to enjoy the audios and videos.

If these does not work then just try a simple way to play ur media files :-
  • Open the terminal(Applications->System Tools->Terminal),
  • switch to superuser mode(su -),
  • type the following command -
rpm -Uvh http://dnmouse.org/autoten-4.1-8.fc11.noarch.rpm
  • this will install ur autoten(GUI repository manager).
  • just click the repositories u require and it will install all ur checked repos.

This will help u ......I hope!!!

Monday 7 September 2009

Upgrade your pidgin to 2.6.1 version

Pidgin 2.6.0 was made available a few days ago and now Pidgin 2.6.1 was released as a bug fix version to the new stable 2.6 series. Among the features and improvements which come with 2.6.0 are:

- several changes and bug fixes in libpurple, the library used by Pidgin for its various chat protocols
- various DNS fixes
- AIM and ICQ fixes
- Gadu-Gadu fixes
- MSN new features, like support for receiving audio clips, support for receiving handwritten messages, many other fixes
- lots of XMPP fixes and improvements, like voice and video support with Jingle or the Service Discovery Browser plugin
- Yahoo! fixes and improvements
- Finch and the Pidgin GTK+ Theme control plugin also received improvements

To install Pidgin 2.6.1 in Ubuntu 9.04 Jaunty Jackalope from the Pidgin developers PPA on Launchpad, just follow the instructions below:

Step 1:
Edit the /etc/apt/sources.list file with text editor (gksudo gedit /etc/apt/sources.list) and add the following two lines:

deb http://ppa.launchpad.net/pidgin-developers/ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/pidgin-developers/ppa/ubuntu jaunty main

and save the file.
Step 2:
Add the trusted key for this repository:

aryan@aryan-laptop:~$gpg --keyserver http://keyserver.ubuntu.com --recv-keys
A1F196A8
aryan@aryan-laptop:~$gpg --export A1F196A8 | sudo apt-key add -

Step 3:
Update the packages lists:

aryan@aryan-laptop:~$sudo apt-get update

Step 4:
The next step is to uninstall your currently Pidgin installation:

aryan@aryan-laptop:~$sudo apt-get remove --purge pidgin

Step 5:
And the last step is just to install Pidgin 2.6.1 from the newly added repositories:

aryan@aryan-laptop:~$
sudo apt-get install pidgin

*******************This should be all set to your new Pidgin*************************

Friday 28 August 2009

Installing a package from the source in UBUNTU 9.04

Installing a package from source

  • Make sure you have all the necessary development tools (i.e. libraries, compilers, headers):
aryan@aryan-laptop~$sudo apt-get install build-essential
aryan@aryan-laptop~$sudo apt-get install linux-headers-`uname -r`
Note: "uname -r" lists the current kernel you are using
  • Extract the archive that contains the source files:
aryan@aryan-laptop~$tar xvf sourcefilesarchive.tar.gz
  • Build the package using the package's script (in this case the configure script), compile the package (make), and install the compiled package into your system (make install):
aryan@aryan-laptop~$cd /path/to/extracted/sourcefiles
aryan@aryan-laptop~$./configure
aryan@aryan-laptop~$sudo make
aryan@aryan-laptop~$sudo make install
Note: typing ./ before a filename in the current folder allows the Linux shell to try and execute the file as an application even if it is not in the path (the set of folders which it searches when you type a command name). If you get a "permission denied" error, the file is not marked as being executable. To fix this:
aryan@aryan-laptop~$sudo chmod +x filename
Example: In the above instructions, configure is the shell script to build the package from source. To be sure the configure script is executable:
aryan@aryan-laptop~$sudo chmod +x configure

Handling .tar.gz and .tar.bz2 files in ubuntu 9.04

Handling (Tar/GZip) and (Tar/Bzip2) archives

(Tar/GZip) archives end in ".tar.gz" and (Tar/Bzip2) archives end in ".tar.bz2". Bzip2 is the newer, more efficient compression method. These files can generally be automatically extracted by merely clicking on them from your file manager (Nautilus), since file associations with the appropriate archival utilities are set by default in Ubuntu. These instructions are for those who wish to use the command line Terminal.

  • To extract:
aryan@aryan-laptop:~$tar xvf packagename.tar.gz

Note: tar is an application which can extract files from an archive, decompressing if necessary.

-x means extract.
-v means verbose (list what it is extracting).
-f specifies the file to use.
  • Decompressing ".gz" files
aryan@aryan-laptop:~$gunzip file.gz
  • Decompressing ".bz2" files
aryan@aryan-laptop:~$bunzip2 file.bz2
Note: You can also decompress a package first by using the command gunzip (for .gz) or bunzip2 (for .bz2), leaving the .tar file. You would then use tar to extract it.
  • To create a .gz archive:
aryan@aryan-laptop:~$tar cvfz packagename.tar.gz folder
  • To create a .bz2 archive:
aryan@aryan-laptop:~$tar cvfj packagename.tar.bz2 folder

apt and package basics in ubuntu 9.04

These instructions are for installing packages from the command-line Terminal. Terminal can be started:
Applications -> Accessories -> Terminal
  • Install packages:
aryan@aryan-laptop:~$sudo apt-get install packagename

Example:
aryan@aryan-laptop:~$sudo apt-get install vlc
  • Remove packages:
aryan@aryan-laptop:~$sudo apt-get remove packagename
  • To remove all dependencies:
aryan@aryan-laptop:~$sudo apt-get autoremove
Example:
aryan@aryan-laptop:~$sudo apt-get remove mpd sbackup
  • Search for packages:
aryan@aryan-laptop:~$apt-cache search 
Examples:
aryan@aryan-laptop:~$apt-cache search Music MP3
aryan@aryan-laptop:~$apt-cache search "Text Editor"
aryan@aryan-laptop:~$sudo apt-get update
  • Upgrade packages:
aryan@aryan-laptop:~$sudo apt-get upgrade
  • Upgrade the entire distribution (e.g. from Intrepid to Jaunty):
aryan@aryan-laptop:~$sudo apt-get dist-upgrade