Thursday, August 30, 2007

Connecting Bluetooth devices

Tested on FC7 running on Compaq Presario and Nokia-N73 and Sony w300i

Start the bluetooth device like mobile phone having bluetooth support.
Oviously device should have in-front of the Laptop.

Start the Bluetooth service on FC7.
System => Administration => Server Settings => Services => Bluetooth
Turn on the Wireless on FC7

Run the Bluetooth File Sharing
Applications => System Tools => Bluetooth File Sharing

To check whether FC7 is able to scan the mobile devices
Run at terminal:

$ hcitool scan

It will display the mobile name.

Now open the file browser to send file to mobile.

Right click on file => Send to => Bluetooth => Select the mobile name

In the Mobile it will ask for confirmation, click yes to accept the file from computer.

Wednesday, August 22, 2007

running mp3 and video on Fedora

As default Fedora installation does not support player for MP3 and some video format like avi and MP4, we have to install either MPlayer or VLC to play these files.

To install MPlayer and VLC:

Copy the freshrpm from here

Install this rpm:

$rpm -ivh freshrpms-release-1.1-1.fc.noarch.rpm

Now install MPlayer and VLC

$ yum -y install mplayer vlc

After successful installation you get the 'MPlayer' and 'VLC media player' menu in the Applications => Sound and Video

Wednesday, August 8, 2007

installing and running memcached

memcached is a general-purpose distributed memory caching system.
It is often used to speed up dynamic database-driven websites by caching data and objects in memory to reduce the amount the database needs to be read.

memcached is dependent on libevent library, so firstly download the source files for Libevent

Install libevent:

$ tar -xvf libevent-1.3c.tar.gz
$ cd libevent-1.3c
$ ./configure
$ make
$ make install

In Fedora the library ( will be installed at
Create a link or copy this file to standard libarary location (/lib) of Fedora
$ cd /lib
$ ln -s /usr/local/lib/

Download the latest memcached from

$ tar -xzf memcached-1.2.2.tar.gz
$ cd memcached-1.2.2
$ ./configure
$ make
$ make install

$ memcached -h
(Will display various options)

To run as a deoman
$ memcached -d -u apache
Will start as daemon with default options Port(p): 11211 and Max memory (m) to use: 64MB

Wednesday, August 1, 2007

Create swap file in Fedora- Linux

Swap file is used by the Kernel for Virtual Memory.
It is recommended to have swap size double of the RAM but if RAM is more than enough (>512 MB) then
smaller swap has no issue.

To know the actual memory (RAM) and already swap on a Linux box use the free command.

$ free
total used free shared buffers cached
Mem: 507956 489860 18096 0 9580 76876
-/+ buffers/cache: 403404 104552
Swap: 1012084 69668 942416

Now to create extra swap file follow the steps:
(To create swap file of approx 1GB)

$ dd if=/dev/zero if=/usr/more_swap bs=1000000 count=1024

(It will create one swap file more_swap in /usr)

$ chmod 600 /usr/more_swap
$ mkswap /usr/more_swap
$ swapon /usr/more_swap

Now add this file to the /etc/fstab file (at last)
$ vi /etc/fstab

/usr/more_swap swap swap defaults 0 0

Whats new in Ajuby 0.5