Custom Search

Thursday, July 10, 2008

Fedora hangs to start X on IBM xSeries

Fedora hangs to start X on IBM xSeries

I have found some problem with Fedora & IBM xSeries 225, 226.
After Fedora installation (I have tried Fedora 6, 7, 9) when the server starts in GUI mode (runlavel 5), the machine hangs forever.


I have tried several tips & tricks. But failed. One day I found Fedora supports color Depth 15.
So I applied that.
And I got the success.
I have followed the following to do that.

I had to start the server in runlevel one (1). [Note: you can start in runlevel 3 also]
Then, change the line following line in /etc/inittab file
id:5:initdefault:
as
id:3:initdefault:
so that, the server can start in CUI mode every time it boots.

Then I changed the display configuration file "/etc/X11/xorg.conf ".
Then, changed the color Depth to 15 in each "Display" SubSection.

Then I had used "reboot". Now I am ready in runlavel 3.
Then, after login, I used "startx" to enable GUI mode.


Create a Local yum repository

Create a Local yum repository
Current Fedora distributions are installed with default yum configuration. Default yum configuration will search for packages from fedora or fedora mirror sites. So it will be slow.
But I can customize yum configuration to search from Local repository.
To do that, I have followed the steps from: http://tqmcube.com/repo.php
You can try this page also: http://dotancohen.com/howto/yum_repo.html

Playing mp3 and wma on Fedora

Playing mp3 and wma on Fedora
The default distribution of Fedora can’t supply the required library & player to play mp3 & wma files due their copyright & licensing issues.
But I can play it easily by installing three packages.
I have used the command “yum install xmms xmms-mp3 xmms-wma” to install the player and library.
Now I can play those files.
Run “xmms” from any terminal & open the file to be played.
I have created a link to xmms on my Desktop.
Note: If you fail to install it using “yum”, you can download the latest packages from http://freshrpms.net/packages/ , and then you can install them manually.

Monday, July 7, 2008

USB device identification using Linux/Fedora

USB device identification using Linux/Fedora.
A device has a Vendor ID (VID) & a Product ID (PID).

To check,

use the command "tail -f /var/log/messages"

This will show the last 10 lines of this file.

Now plug the USB device to any usb port.

Wait & see the changes on the conmmand screen.

Now press Ctrl+C

Then,use the command "lsusb" to get the BUS ID & Device ID (VID & PID)
.

My Pen Drive has the following info,
# lsusb
Bus 005 Device 008: ID 0457:0151 Silicon Integrated Systems Corp. Super Flash 1GB Flash Drive
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000

Which tells VID =0457 & PID = 0151
Visit http://www.linux-usb.org/usb.ids to get updated list of supported USB devices with IDs.

Find out a package which a file belongs to

Find out a package which a file belongs to
If some files are deleted or corrupted from Linux system, such as /bin/bash, /bin/mount then how can I find these file belongs to what RPM?Just use the command "rpm -qf /bin/bash" , this will report the name of the package (bash-3.2-9.fc7 in my system) which contaions the file.
 
Watch the latest videos on YouTube.com