Tag Archives: Linux

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

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

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

Enabling WiFi in Fedora 9 HP 6515b using Ndiswrapper

1) You got  to have GCC 4+ and MAKE installed in your system to compile Ndiswrapper(get them from dvd)

2)in terminal go to the directory containig ndiswrapper tarball package (type following commands as super user -> su or sudo -i

3)make

4)make install

5)See COMMON STEPS

Alternate:

1) If you got the live cd be prepared to download and install gcc from internet ( connect to friends comp)

or download and install the packages:

binutils
gcc
kernel-headers
dkms
glibc-devel
libgomp
dkms-ndiswrapper
glibc-headers
kernel-devel
make

COMMON STEPS

1)/usr/sbin/ndiswrapper -i bcmwl5.inf (this is the win xp driver obtain it from windows installation or setup given by hp)

2)use “/usr/sbin/ndiswrapper -m”

3)use “/usr/sbin/ndiswrapper -mi”

4)use “/usr/sbin/ndiswrapper -ma”

5)gedit “/etc/modprobe.d/blacklist”

add following lines ->

blacklist b43

blacklist ssb

3)Reboot and see if the wifi networks are shown if not use “/sbin/modprobe ndiswrapper”

and add the same line to /etc/rc.local

IF THE ABOVE STEPS DON’T WORK PLEASE TELL ME THE EXACT PROBLEM.

PEOPLE WITH OTHER WIRELESS CARDS TRY SAM PROCCEDURE WITH DIFFERENT DRIVER (MAKE SURE YOU ARE INSTALLING THE WIRELESS CARD DRIVER AND NOT THE CONTROLLER DRIVER)

Download Accelerators For Linux

    Download Accelerators For Linux

1)Axel : Download from http://axel.alioth.debian.org/ current version = 1.1

Simple command line downloader.

Simple GUI using Zenity:

#!/bin/sh

url=`zenity --title="Axel " --text="Enter url" --entry`
user=`zenity --title="Axel " --text="Enter username" --entry`
pass=`zenity --title="Axel " --text="Enter password" --entry`

axel http://"$user":"$pass"@"$url" 

Remember url shud not have “http://”

ps: if you don’t want user name password

#!/bin/sh

url=`zenity --title="Axel " --text="Enter url" --entry`

axel "$url"

Here url needs “http://”

2)Aria2: command line download client which supports resuming and segmented downloading

http://sourceforge.net/projects/aria2

GUI:

http://www.martin-achern.de/wgetgui/aria2gui.html