Category Archives: Fedora 9

Freeing up RAM in Linux

NOTE: Little clarification, this is not needed at all ,as memory is freed when required.

WHY IT MAY BE HELP-FULL: This clears the page-cache , dentires and inodes.

IT’S TRANSLATION : It may be that you are watching a movie or using a Virtual Machine , a resource hungry process has filled up your ram by caching data and the data needs to be continuously removed  to make space for new data . This is managed by the kernel.

IF YOU STILL DON’T  GET IT: Notice  video in your movie hanging (not audio) while your ram gets cached Or your system running a bit slow ?


1) Stop the process consuming loads of memory. (Check System Monitor).
2) Open a terminal with root privileges .
3) Sync
4) echo 3 > /proc/sys/vm/drop_caches
5) echo 0 > /proc/sys/vm/drop_caches

Install XBMC

XBMC (a.k.a. XBOX Media Center) is a great media center available on all platforms

If you have Ubuntu then see this
http://xbmc.org/forum/showthread.php?p=185738

For Fedora an unofficial rpm is available at http://www.fedorajunkies.com/index.php/XBMC

Installing From source:

0) Get Latest SVN Snapshot

svn co http://xbmc.svn.sourceforge.net/svnroot/xbmc/branches/linuxport/XBMC/

Fedora:
1)Get RPMFusion Repo:

rpm -Uvh  http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm

2)Install Dependencies :

yum install SDL* glew glew-devel libmad-devel tre tre-devel libogg libogg-devel libvorbis libvorbis-devel boost 
boost-devel bzip2-devel bzip2-libs fribidi* lzo lzo-devel mysql-libs mysql-devel jasper jasper-devel faac faac-devel 
enca enca-devel hal hal-devel hal-libs cmake gperf nasm libXmu-devel fontconfig-devel freetype-devel libXinerama-devel 
pcre-devel gcc-c++ sqlite-devel curl-devel pulseaudio-libs-devel libsmbclient-devel

3)Make sql symbolic link
– For i386

ln -s /usr/lib/mysql/libmysqlclient.so.15.0.0 /usr/lib/libmysqlclient.so

For 64 bit

ln -s /usr/lib64/mysql/libmysqlclient.so.15.0.0 /usr/lib64/libmysqlclient.so

4)Configure

cd linuxport/XBMC
./configure

5)Make

make

During this some errors may occur:
A)

../xbmc/utils/CharsetConverter.h:31:39: error: fribidi/fribidi_char_sets.h: No such file or directory

Sol:

cd xbmc
ln -s lib/libfribidi/ fribidi
cd ..
make

B)

/usr/include/jpeglib.h:1096:55: error: jpegint.h: No such file or directory

Sol:

cp xbmc/lib/cximage-6.0/jpeg/jpegint.h /usr/include/
make

C) For any other errors refer to fedorajunkies.com or fedoraforums.org

6) Install

make install

7) Configuring

Open xbmc by typing   xbmc in terminal or ALT+F2

-Settings > System >Audio Hardware
-Change Audio Output to Digital
-Change Audio Output Device and Passthrough Output Device to same device settings

(pulse -for fedora , hdmi/spdif- for ubuntu/debian systems)

You can also find out your device by using

aplay -L

8) To learn More about plugins and scripts Visit

http://www.xbmc.org/wiki

Reliance ATZ USB CDMA Modem on fedora , ubuntu and other linux

1) Find Vendor and ProdID

Do

cat /proc/bus/usb/devices

In the generated list where Manufacturer is ZTE , Incorporated

Take Vendor and ProdID

eg. Vendor=19d2 ProdID=fffd

-You can also use lsusb to get entry with ONDA Communication S.p.A in format   a:b

eg  19d2:fffd

2) Load Module
modprobe usbserial vendor=0x19d2 product=0xfffd

After this step 3 interfaces /dev/ttyUSB* where *(0-2)
should be created .(if not then rmmod usbserial ->remove device->modprobe again->insert device )

3)Configure (Run in root mode)(NOT FOR FEDORA go to 6)
wvdialconf

4)Edit /etc/wvdial.conf
Add number eg. #777
Add your username and password in the fields.

5)Run
Ideally running wvdial should be enough.
(try ping google.com to check if you are connected)

6)However in fedora(and if above steps dont work for you) after modprobe
Go to System>Administration>Network>New>Modem>
In Modem Properties (Despite error)
change device to /dev/ttyUSB0
Modem Volume=low
->Forward
Phone number #777
Username and Password -as you have
Provider Name -any
->Forward
Save And activate
Try ping google.com

Fixing Broadcom 802.11 Linux STA driver

Well Broadcom 802.11 Linux STA driver works with 2.6.25 Kernels but for newer kernels additional Parameters have to be included.Without supplying addidtional parameters following errors may arise while making

(Am using Fedora 9 i386 with a bcm 4312 rev 02)

error: too few arguments
to function ‘iwe_stream_add_point’

Warning: passing
argument 1 of ‘iwe_stream_add_event’ from incompatible pointer type

SOLUTION (THIS ALSO HOLDS TRUE FOR NDISWRAPPER)

1) cd hybrid-portsrc-x86_32_5_10_27_6/src/wl/sys

(or 64-bit ….x86_64.. .. instead of x86_32)

2) Make Backup and Open wl_iw.c

3) For Every “iwe_stream_add_event” and “iwe_stream_add_point” function calls Add a first Parameter info

save.

4)Now Try Compiling with instructions from my previous post

OR if you are 2 lazy Download this wl_iw.c and replace at above directory (USE THIS AT YOUR OWN RISK)

Making VLC play in Fedora 9

Well I installed VLC ( formerly called Video Lan Client) today on my installation of fedora 9 and like any other video player it 2 was not working, so here are the settings that worked for me:

1) Go to Settings>Preferences>Check Advanced Options
2)Audio>Output Modules>Select ALSA Audio output >ALSA>Refresh List>Select Device
3)Video>Output modules>Select X11 Video Output

Well Thats about it

Enjoy!!!

Cure Kaffeine and Real player problems so they don’t Crash

Well for my Laptop 6515b , Fedora 9 proved to be more troublesome than Fedora 8 including kaffeine

The problem itself is not in kaffeine but in xine engine parameters

Go to Settings>Xine Engine Parameters>Video>Beginners Options xine in Auto mode was using xv causing entire system Hang whenever i played anything.So change it to xshm.Thats all!!!!!

In Real Player go to Tools>Preferences>Hardware

Disable XVideo, For me Alsa couldn’t be initialized. Hence  RealPlayer 11 can be used on OSS.

UDF Bug in Linux Kernel , Play udf discs in fedora & other distros

I had been noticing for many months now that certain udf discs were not being mounted by fedora 8.

Giving Message:
mount: block device /dev/sr0 is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/sr0,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

Earlier i had thought it just to be defect of my drive but after my drive got replaced and after installing fedora 9 i decided to check up and voila !!This bug has been reported in nearly all distros.(well duh since kernel has bug)

Solution Continue reading UDF Bug in Linux Kernel , Play udf discs in fedora & other distros

Fedora 9 :The second Look Review

Well after some days after using with fedora i have come to the decide on certain aspects..

1) Sure Package-Kit uses less memory and is faster than pirut BUT the interface design is IRRITATING!!!

It doesn’t download all package descriptions together, while this is reasonable but you can only download only 1 package at a time and you can only select those packages to install in your current view.( They should learn something from yumex and smart package manager)

2)GNOME-VFS The latest version of gnome 2.22 packs a speed punch with sharper graphics and faster interface but when copying from a pen drive (flash drive) results in it pausing in between copying. (THIS IS NOT A FEDORA SPECIFIC PROBLEM. ITS THERE IN UBUNTU 8.04 ) Continue reading Fedora 9 :The second Look Review

Fedora 9 essentials guide

A basic guide to satisfy all your needs:

NOTE:all commands r to be typed in terminal with sudo or su login
PS:” All yum commands can be replaced by package kit alternatives type “info pkcon” in terminal.

1)Adding livna repositories : (VERY ESSENTIAL ALL OTHER STEPS REQUIRE THIS)
Since Fedoras own repositories dont have much softwares use livna or packman repositories
rpm -ivh http://rpm.livna.org/livna-release-9.rpm
then yum update

2)YUMEX :install yumex for gui interface for yum , though package kit suffices.

3)MP3 SUPPORT:
Continue reading Fedora 9 essentials guide