If after you have installed media player amarok, and the player cannot play mp3 files, you have to install one more library: libxine-extracodecs
Run
-> sudo apt-get install libxine-extracodecs
or
use synaptic package manager to install the library
Friday, June 22, 2007
Amarok cannot play mp3
Tuesday, June 19, 2007
To search for string in files
To search for a string in all files from the given directory, grep command can be used. Type:
-> grep -R "string" /path
For example, to search for string "default" in /tmp directory, use this command:
-> grep -R "default" /tmp
Monday, June 18, 2007
Changing default editor for your linux machine
Below are the steps to be taken to change your default editor. Usually for Ubuntu, the default editor is pico and for Centos is vi.
- To change your default editor to vi, type:
- -> export VISUAL=/usr/bin/vi
- To make it permanent for current user, add the above line to /home/user/.bash_profile
- To make it permanent globally, add the above line to /etc/profile
How to format your flash drive
This is how you can format your flash drive(thumbdrive, pendrive) in any linux machine
1. To see what is the filesystem for your flashdrive
- type -> df
Friday, June 15, 2007
Installing flash player to mozilla firefox on x86 64 bit machine
- Download nspluginwrapper here
- Once dowloaded, extract it.
- Open the folder extracted and the folder inside it, double-click on "GetFlash". Select "Run in Terminal".
- When finished, restart firefox.
Thursday, June 14, 2007
rpm building error
When you try to build rpm file from source, if this error comes out:
error: Legacy syntax is unsupported: copyright
error: line 10: Unknown tag: Copyright: distributable
This error can be settled by modifying the spec file. Usually the source will have the spec file.
-> vi filename.spec
Then; change this line "Copyright: GPL" to "License: GPL". Save the changes.
Run back rpmbuild.
How to view the content of iso image
Sometimes we have an iso image in our computer. One of the way to view it is to burn it on a cd and then we can view it. The other method is we can use mount command.
Type this command on terminal:
-> mount -o loop filename.iso /path/to/directory
where;
/path/to/directory - directory where you want to deploy the iso
filename.iso - name of the iso file
Wednesday, June 13, 2007
Bug Buddy dialog box keeps opening on Ubuntu
I don't know what is the cause..... but sometimes this phenomenon happens. When the bug buddy keeps bugging you with this error message " The information about the crash has been successfully collected.
The application that crashed is not known to bug-buddy, therefore the bug report can not be sent to the GNOME Bugzilla. Please save the bug to a text file and report it to the appropriate bug tracker for this application.", the solution is,
- Open your terminal. If cannot, press ctrl+alt+F1.
- Type this command -> rm ~/.recently-used.xbel
- Restart your pc.