Archive

Archive for the ‘openSUSE’ Category

Freeing up RAM in Linux

July 27, 2009 3 comments

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

January 10, 2009 2 comments

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

December 24, 2008 1 comment

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

October 31, 2008 Leave a comment

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)

Bypass Site blockage / filtering

August 31, 2008 Leave a comment

Lets go back to the basics of IP addresses and their naming format.

An IP address is the unique identification code of a machine connected to a network (local or www)

The name eg.http://www.google.com is just an alias of the numeric ip addresses(here IPv4)

Try this:

1)Windows -> Run ->cmd

OR
1)Linux ->open terminal
Read more…

OpenSuSE 11.0 is out !!!

June 21, 2008 2 comments

Well after a long wait openSuSe 11.0 is among us , well it looks quite spunky with better looks, plasma , compiz effects .I Just hope ZYpp stands goes as per the expectations.Thankfully it has both KDE 4.04 and 3.5 (phew fedora 9 disappointed there)

Categories: Linux, openSUSE Tags: