Open Software and Open Hardware Tips

Kerala linux, ubuntu , microcontroller

How to add DNS Server in Ubuntu / Debian Linux

How to set up DNS in Ubuntu

You can add hostname and IP addresses to the file /etc/hosts for static lookups.

You can add your DNS Server Ip address  for name lookups  to /etc/resolv.conf.

For example If you want to add  the DNS server at IP address 8.8.8.8

    sudo vi /etc/resolv.conf

If you have GUI use the following command

    gksudo gedit /etc/resolv.conf

enter the following details

search test.com
nameserver 8.8.8.8

Share me
  • Print
  • Digg
  • StumbleUpon
  • del.icio.us
  • Facebook
  • Twitter
  • Google Bookmarks
  • LinkedIn
  • Reddit
  • Slashdot
  • Technorati

How to Simuate Arduino in Proteus

Here You can see  how to simulate the celebrated open-source electronics prototyping platform Arduino with Proteus. To simulate the core of Arduino platform we need only a few components: the atmega328P Microcontroller, a Crystal and two Capacitors

See Complete Tutorial here

Share me
  • Print
  • Digg
  • StumbleUpon
  • del.icio.us
  • Facebook
  • Twitter
  • Google Bookmarks
  • LinkedIn
  • Reddit
  • Slashdot
  • Technorati

How to Disable PING response in Ubuntu Linux

Ping is used to check if a machine is up, Most of the hackers are using ping for finding the hackable machine. The hacking chances can be reduced by blocking ping.

in ubuntu ping can be disable by adding following line to /etc/init.d/networking (network init script)
echo 1 >/proc/sys/net/ipv4/icmp_echo_ignore_all

to re-enable

echo 0 >/proc/sys/net/ipv4/icmp_echo_ignore_all

Share me
  • Print
  • Digg
  • StumbleUpon
  • del.icio.us
  • Facebook
  • Twitter
  • Google Bookmarks
  • LinkedIn
  • Reddit
  • Slashdot
  • Technorati

How to Install GCC (c/c++) Compiler in Ubuntu Linux

Install package called build-essential is the best way

build-essential contains a list of packages which are essential for building Ubuntu packages including gcc compiler, make and other required tools.

Open A terminal and type the following
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install build-essential

You can test Installation with following
$ gcc -v
$ make -v

Now, you should able to compile software using C / C++ compilers.

You can also use  Synaptic Package Manager for installing build-essential

Share me
  • Print
  • Digg
  • StumbleUpon
  • del.icio.us
  • Facebook
  • Twitter
  • Google Bookmarks
  • LinkedIn
  • Reddit
  • Slashdot
  • Technorati

How Matrix Keypad Works

Tact switches are widely used as digital input devices. Normally one tact switch requires one digital I/P pin of a microcontroller but if you want to interface a matrix of such switches (say a 16 digit keypad), assigning a digital I/O pin for each key won’t be a good idea. You need to think about the way to minimize the required number of digital I/O pins of microcontroller. A very popular method is a keypad matrix where the keys are arranged into rows and columns so that a 4×4 (16) tact switches can be interfaced to a microcontroller using only 4+4 = 8 I/O pins

See Link

Share me
  • Print
  • Digg
  • StumbleUpon
  • del.icio.us
  • Facebook
  • Twitter
  • Google Bookmarks
  • LinkedIn
  • Reddit
  • Slashdot
  • Technorati

How to Convert Webpage to PDF in Ubuntu/Debian Linux : wkhtmltopdf

Wkhtmltopdf is a command line utility for converting  webpage / html to  PDF.

Features

  • Convert web pages into PDF documents using webkit
  • Adding headers and footers (static version only)
  • TOC generation (static version only)
  • Batch mode conversions
  • (Linux) No longer requires an XServer to be running (however the X11 client libs must be installed)

How to install wkhtmltopdf in Ubuntu / Debian

$  sudo apt-get install wkhtmltopdf

Usage:

$ wkhtmltopdf –help

This will provide help for using wkhtmltopdf

If you want to Convert website home page to a PDF document

$ wkhtmltopdf  www.keralalinux.com  keralalinux.pdf

This will convert the home page of www.keralalinux.com to a file named keralalinux.pdf.

Page orientation can be change using  -O option

$ wkhtmltopdf  -O  Landscape www.keralalinux.com  keralalinux.pdf

This will change page orientation to landscape

Page size can be change using  -s  option

$ wkhtmltopdf  -s A4  www.keralalinux.com  keralalinux.pdf

This will change page size to a4  it will support A4, letter etc.

Add  table of contents to the pdf document with -t option

$ wkhtmltopdf  -t  www.keralalinux.com  keralalinux.pdf

Share me
  • Print
  • Digg
  • StumbleUpon
  • del.icio.us
  • Facebook
  • Twitter
  • Google Bookmarks
  • LinkedIn
  • Reddit
  • Slashdot
  • Technorati

How to use Eye of GNOME image viewer in Ubuntu / Debian

The Eye of GNOME image viewer is the official image viewer for the GNOME Desktop environment. With it, you can view single image files, as well as large image collections.

The Eye of GNOME supports a variety of image file formats. The GdkPixbuf library determines which file formats Eye of GNOME can load and save. If the appropriate plugins are installed on your system, Image Viewer will be able to open more image formats than those listed below. The following list is the default supported file formats for reading:

  • ANI – Animation
  • BMP – Windows Bitmap
  • GIF – Graphics Interchange Format
  • ICO – Windows Icon
  • JPEG – Joint Photographic Experts Group
  • PCX – PC Paintbrush
  • PNG – Portable Network Graphics
  • PNM – Portable Anymap from the PPM Toolkit
  • RAS – Sun Raster
  • SVG – Scalable Vector Graphics
  • TGA – Targa
  • TIFF – Tagged Image File Format
  • WBMP – Wireless Bitmap
  • XBM – X Bitmap
  • XPM – X Pixmap

Open a terminal

$ eog  <imagefile>

Share me
  • Print
  • Digg
  • StumbleUpon
  • del.icio.us
  • Facebook
  • Twitter
  • Google Bookmarks
  • LinkedIn
  • Reddit
  • Slashdot
  • Technorati

How to make an Arduino Shield – Tutorials

Here you can see a tutorial about the layout of Arduino Shied

This tutorial assumes an understanding of Cadsoft Eagle.  For more information about Eagle, see the Eagle Tutorials section below.  Here are the steps to make your own Arduino shield:

Link

One More tutorial You can see here

Share me
  • Print
  • Digg
  • StumbleUpon
  • del.icio.us
  • Facebook
  • Twitter
  • Google Bookmarks
  • LinkedIn
  • Reddit
  • Slashdot
  • Technorati

How to change your password in Ubuntu Linux

This is for beginners

If you want to change your password, just open a terminal

then type

$ passwd

( this will ask for current password, enter your current password, now it will ask for now password enter new password and repeat it.)

$ passwd -d username            for deleting password

Share me
  • Print
  • Digg
  • StumbleUpon
  • del.icio.us
  • Facebook
  • Twitter
  • Google Bookmarks
  • LinkedIn
  • Reddit
  • Slashdot
  • Technorati

Nice drawings of the Arduino UNO and Mega 2560

Nice drawings of the Arduino UNO and Mega 2560

If you’re looking to make your own shield for the Arduino platform, you’ll definitely need to know where all the pins and holes are located on the Arduino. After doing a quick search, I was unable to find an accurate technical drawing of the new Arduino UNO and Arduino Mega 2560.

See More Here

Share me
  • Print
  • Digg
  • StumbleUpon
  • del.icio.us
  • Facebook
  • Twitter
  • Google Bookmarks
  • LinkedIn
  • Reddit
  • Slashdot
  • Technorati