Happy FOSS

Opensource, Technology, Programming & Computer Science

Speeding the boot time with rcconf

I could identify and remove certain not so necessary processes and services that load during the booting of Debian GNU\Linux using the rcconf.
It is a console GUI tool, to enable/disable processes or scripts in runlevel configuration files of Linux.

December 25, 2009 Posted by | Linux | | Leave a comment

Meaningful mount point names

I renamed mount points from the usual conventions of hda1 hda2 etc.
If one has to make changes about the mount point changes in /etc/fstab file.
To edit this file, one has to be root.

Before, my mount points used to be
/mnt/hda5 for /dev/hda5
/mnt/hda4 for /dev/hda4

Now they are more meaningful like
/mnt/dev for /dev/hda5
/mnt/backup for /dev/hda4

The fstab file looks like below
# /etc/fstab: static file system information.
#
#
proc /proc proc defaults 0 0
/dev/hda6 / ext3 errors=remount-ro 0 1
/dev/hda7 /home ext3 defaults 0 2
/dev/hda3 none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/hda1 /mnt/hda1 ext3 rw 0 0
/dev/hda5 /mnt/dev ext3 rw 0 0
/dev/hda4 /mnt/backup ext3 rw 0 0

Once the editing the file is done. Just execute the following commands to umount and mount the partitions. make sure to save and close all applications before executing the below commands.
sudo /etc/init.d/umountfs stop
sudo /etc/init.d/mountall.sh

December 6, 2009 Posted by | FOSS, Linux | , , , | Leave a comment

Simple download manager using wget and shell script

I had to download a couple of large files from a web site. I built my own download manger which will download the file one after the other using simple wget tool and shell script. Thus the files were successfully downloaded over night without any human intervention !
The trick was simple,i had to just add the wget command with the url of the file to be downloaded one below the other in a shell script file.

for example
wget http://abc/a.jpg
wget http://def/d.jpg

scheduled downloads can be done by leveraging cron capabilities !

August 12, 2009 Posted by | Internet, Linux, Programming | | Leave a comment

Open source in Engineering Curriculum

Take GNU/Linux as your case study and use FOSS in subjects that you will encounter

for example

1.System Software
2.Data Structures
3.OOPS
4.Operating Systems
5.Computer Networks
6. Web Technology
7.Cryptography & Network Security
8.Embedded Systems

One can do his/her assignments, projects, research using Open Source Software!

When you can come to position of contributing to open source projects,
please do 🙂 I guess it takes final year for that, but it depends on the individual.

Like a biology student disects rabit to learn biological science, Computer Science student has to essentially use Open Source tools and software to understand Computer Science.
Disect the code 😉

Join mailing lists of your favorite open software to collaborate with the community.

October 10, 2008 Posted by | FOSS, Linux, Software | , , | 2 Comments

Port forwarding 80 to Tomcat port

For security reason Tomcat doesnt run on port 80.

The simple trick is to write an iptable rule to perform the port forwarding request arriving at port 80 to Tomcat port (say 8080).

Write the following content to the a shell script file say tomcat_firewall.sh

/sbin/iptables -A FORWARD -p tcp –destination-port 80 -j ACCEPT

/sbin/iptables -t nat -A PREROUTING -j REDIRECT -p tcp –destination-port 80 –to-ports 8080

And add this script as root in /etc/rc.local as shown below, this ensures the setting is done whenever the server startsup.

su – root “/path-to-the-file/tomcat_firewall.sh

August 26, 2008 Posted by | Internet, Linux | | Leave a comment

mailsend

Mailsend is a multi platform command line tool to send mails.

It has two modes : commandline and interactive

I have used this mailsend binary to send mails as a background process by using a wrapper shell script to read the necessary inputs required by mailsend from XML files. This script would be called by cron periodically. The XML files have the email data contained in it.

You can download the Opensource software from the below link

http://www.muquit.com/muquit/software/mailsend/mailsend.html

July 5, 2008 Posted by | FOSS, Linux, Software | , , , | Leave a comment

Bluespam

From my blog statistics i find that there is a good hit for bluespam.So i decided to write an article on bluespam.

I have not used the exact bluespam software, but i trimmed version of the program.I use the modified version to send a file to all the bluetooth devices that have been discovered.The bluetooth devices receive a prompt saying do you want to receive a file from my device.Once accepted the file is sent to the device.Some devices require authentication, so a pairing has to happen before sending the file.The passkey can be made fixed or dynamic.Suppose my device is running without the user, then i have to hard code the passkey into my hcid.conf file.Since its hard coded this particular key has to be publicly distributed.

Further documentation can be found here http://www.mulliner.org/palm/bluespam.php

Refernce Manual

Refernce Manual 2

March 8, 2008 Posted by | FOSS, Linux, Mobile, Software | , | Leave a comment

Testimonial – ubuntu gave a new life to my friend !

Today evening was a cool ubuntu evening.my friend srini was suffering a lot with windows.The remedy was “ubuntu” lol.He complained to me lot about viruses, spyware etc.His internet explorer itself has been corrupted by …i am not able to say what has happened because the system is black box.

Taught him and another friend on installation procedure.And i did the install because srini was too much pissed off with the operating system going mad and unmanageable ! It was he who urged me to install linux as soon as possible.He was amazed to see so many free softwares !

I wish he acknowledges this by writing a comment lol

March 4, 2008 Posted by | FOSS, Linux | , , , | 1 Comment

grub install

My uncle’s computer was dual booting Windows and Linux.He did a format on one of the hard disk.This has disturbed the grub settings in the other hard drive.Right now i dont know anything more about MBR.

How we solved it was through grub install !

I booted the computer using the ubuntu live cd.We mounted the appropriate partition, and gave a grub install by the following command sudo grub-install.I have not mastered grub yet, but solved it for the yesterday’s purpose alone.Will update you more later !

March 3, 2008 Posted by | Linux | , , | Leave a comment

Converting Audio Cassettes to CD is easy

My father and me used to do this conversion work, since 2 years.We converted many cassettes into few CD.Recently, i was surprised to know that this was an article in LFY !All you need for doing this is just a cassetter player, it could be a walkman too, then a chord to connect your pc’s audio in and the player’s audio out & audacity

Configure audacity so that it listens & records the audio in or line in port of the pc.Now start playing the cassette.Once recorded you can export the captured signal to any audio format.

we can save audio content in cassettes from corruption !

February 27, 2008 Posted by | FOSS, Linux, Software | , , , | 4 Comments