Tuesday, November 27, 2012

Default Password of Raspberry Pi

Default password for Raspberry pi 

Debian Wheezy  

Username : pi     Password : raspberry

Arch Linux ARM 

Username : root     Password : root

Thursday, October 25, 2012

How to Install Google drive Client Insync in Ubuntu / Debian Linux



Google Drive is everywhere you are—on the web, in your home, at the office and on the go. So wherever you are, your stuff is just...there. Ready to go, ready to share. Get started with 5 GB free.

Official clints are not available for linux.

 Insync  is an unofficial Google Drive client for Linux, is now available in a repository for Ubuntu and Debian user.

Debian-based distributions

Add Insync as a source
  1. Edit /etc/apt/sources.list and add deb http://apt.insynchq.com/[DISTRIBUTION] [CODENAME] non-free
    Replace [DISTRIBUTION] with your Linux distro: ubuntu, debian
    Replace [CODENAME] with your Linux distro codename: for example Ubuntu 12.04 is precise  eg:
    deb http://apt.insynchq.com/ubuntu precise non-free
  2. Run this in a terminal:
    $ wget -O - https://d2t3ff60b2tol4.cloudfront.net/services@insynchq.com.gpg.key \
      | sudo apt-key add -
    $ sudo apt-get update
Ubuntu with Unity (the default desktop)
$ sudo apt-get install insync-beta-ubuntu
Gnome Shell
$ sudo apt-get install insync-beta-gnome

Wednesday, October 3, 2012

How to recover windows control buttons in Gnome (no maximize, minimize, close buttons) Ubuntu

How to recover windows control buttons in Gnome (no maximize, minimize, close buttons)  Ubuntu

Metacity is the window manager for Gnome Classic. Compiz is another window  manager. If you are using compiz try the following.

Open a terminal

then type

$ ps -ef | grep -e metacity -e compiz

if window manager is compiz

type the following

$ metacity  --replace

If you want to add it permanently

Go to System -> Preferences -> Startup Applications
click Add

metacity  --replace

Tuesday, October 2, 2012

How to Change the Baudrate of Raspberry Pi USART




Default boudrate of Raspberry Pi USART available in GPIO is 115200. To use this serial port for communicating with Slow microcontrollers Like Arduino and PIC  you need some modifications. For example if you want to change Raspberry Pi USART Boudrate to 9600:

Fist You change the  console baudrate:
To change the console baudrate, edit /boot/cmdline.txt to look like this (this is all in single line):
dwc_otg.lpm_enable=0 console=ttyAMA0,9600 kgdboc=ttyAMA0,9600 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait

Then  edit /etc/inittab to change the baudrate of the getty (you should find a line with baudrate of 115200, change that number to 9600):
2:23:respawn:/sbin/getty -L ttyAMA0 9600 vt100

Restart the system. 

Thursday, September 27, 2012

How to Change Grub2 Default Timeout in Ubuntu / Debian Linux


To make any changes in GRUB 2  you need to edit the main GRUB 2 configuration file  located in /etc/default/ folder, you can edit it by running the following command from terminal:
sudo gedit /etc/default/grub you can see the contents like


# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""


To change the default timeout option in GRUB 2, just  change the GRUB_TIMEOUT parameter.

The value of this parameter is in sec, change this value as per your requirement.

Tuesday, September 18, 2012

How to Find MAC Address in Ubuntu / Debian Linux

MAC address is the unique serial number of your Network Card. It is SIX TWO-Digit HEX Numbers Separated by Column(:). By using MAC number You can Identify your Network Card Manufacturer. By using the simple command ifconfig you can find your MAC Address

Open a terminal and type ifconfig , you will get a text output. In the  first line you can see like HWaddr: 00:BA:13:67:78:76.


Gimp Command Reference ( keyboard Shortcuts) for Ubuntu / Debian Linux


GIMP (GNU Image Manipulation Program) is a free image editing and manipulation tool editor which is often tagged as a free Photoshop alternative. It can handle essential image editing tasks like image resizing, editing, cropping, photomontages, and converting images between different image file formats. GIMP is freely available for most popular operating systems including Microsoft Windows, Apple Mac OS X, and Linux. Also with this free cheat sheet you will receive daily updates on new cool websites and programs in your email for free, courtesy of MakeUseOf. Click Here

Thursday, September 13, 2012

Raspberry pi Trouble Shooting: RED Power LED is Blinking

 Raspberry pi Trouble Shooting: RED Power LED is Blinking

The Red Power LED is directly connected to 3.3V Power supply rail od Raspberry Pi. So it should never Blink. If it is blinking , it means the 5V is dropping out. So change the power supply.

Solution: Change Power Supply with rating 5V,1A (5V, 700ma As per specs)

Check the voltage between Tp1  and Tp2 ( Two points you can see in the board component side.

Monday, September 10, 2012

How to set Password in Raspberry Pi (Raspbian)

The Default Password of  Raspberry Pi image of Debian Squeeze, Wheezy is
        
           username: pi
           password: raspberry 
Now How to Change your password :
Type 

pi@raspberrypi: ~$ passwd

(current) UNIX password: raspberry   # default (Current) Password

Enter new UNIX password: newpassword   # Your New Password Type here

Retype new UNIX password: newpasssword   #Repeat Your New Password.



Friday, August 31, 2012

How to install Ubuntu / Debian Games : Super Tux


Mario is now Tux. Super Tux is a replica of our good old Super Mario game, except for the "Tux". There is an similar alternative called Secret Maryo Chronicles which you might want to take a look. If you are an Ubuntu user, click here to install Super Tux.
In debian
Open a terminal and type

$ sudo apt-get install supertux

Tuesday, August 28, 2012

How to Select Linux Compatible Wireless Network Cards

How to Select Linux Compatible Wireless netwrok cards


If you are buying a new computer, it is best to select one with a wireless component that is designed for free software like Linux. A card designed for free software gives you improved support. Free software compatible devices also work out of the box.

To determine what wireless card/chipset you have, first determine whether it is a separate device plugged into the computer or not. If it is a separate USB device, open up a terminal and type the following:

$ lsusb

and look for words like "wireless" to find your card type.
For chips that are not USB but included in the computer, type:

$ lspci -v

List of Linux Compatible network adapters available here 

Monday, August 20, 2012

Time saving automation of Ubuntu with cuttlefish

CuttleFish is an Interesting application for ubuntu users , if you want to set a trigger and automate tasks based on the result of a prior action.

Cuttlefish is an app for Ubuntu that allows you to create a series of tasks that can be triggered based on the result of a prior action.

example: you could set up a reflex to deactivate Bluetooth and WiFi when the screen locks; or have Firefox open when you connect to Wifi. You can even set up your wallpaper to change when you plug in a USB device.



How to install Cuttlefish

Open a terminal
 

sudo add-apt-repository ppa:noneed4anick/cuttlefish 
sudo apt-get update  
sudo apt-get install cuttlefish

Friday, August 17, 2012

View 40 different Filetype like 3gp / Avi / Jpeg / pdf / ttf in Ubuntu Linux with Gloobus

By using a Nice utility Gloobus  you can view almost all file type. Gloobus is a free application for GNU / Linux . Gloobus-Preview is an extension for the Gnome Desktop  designed to enable a full screen preview of any kind of file.  It allows instant access to a variety of file types without the need of opening their default application.

You can access the preview mode from several ways, right click on the file you want to preview and choose “Preview” o simply hit the Space key on your keyboard.

Gloobus can currently preview over 40 file formats and its family is still growing:

Images: jpeg / png / icns / bmp / svg / gif / psd / xcf
Documents: pdf / cbr / cbz / doc / xls / odf / ods / odp / ppt
Source: c++ / c# / java / javascript / php / xml / log / sh / python
Audio: mp3 / ogg / midi / 3gp / wav
Video: mpg /avi / ogg / 3gp / mkv / flv
Other: folders / ttf / srt / plain-text


How to Install In Ubuntu 12.04

$ sudo add-apt-repository ppa:gloobus-dev/gloobus-preview
$ sudo apt-get update
$ sudo apt-get install gloobus-preview
$ sudo apt-get upgrade (To upgrade to the patched nautilus)

Finally, restart nautilus

$ nautilus -q
$ nautilus

 

Free eBook - Linux from Scratch


Linux from Scratch describes the process of creating your own Linux system from scratch from an already installed Linux distribution, using nothing but the source code of software that you need.

This 318 page eBook provides readers with the background and instruction to design and build custom Linux systems. This eBook highlights the Linux from Scratch project and the benefits of using this system.

Users can dictate all aspects of their system, including directory layout, script setup, and security. The resulting system will be compiled completely from the source code, and the user will be able to specify where, why, and how programs are installed.

This eBook allows readers to fully customize Linux systems to their own needs and allows users more control over their system.

Click Here

Thursday, August 16, 2012

How to check disk drive for errors and badblocks in Ubuntu / Debian Linux


badblocks is a Free software  to check for bad sectors on a disk drive. It creates a list of these sectors that can be used with other programs, like mkfs, so that they are not used in the future and thus do not cause corruption of data. It is part of the e2fsprogs project.

It will help you to check your drive periodically for bad blocks. It will list out all bad blocks. This list can be fed to fsck to be recorded in the filesystem data structures so that the operating system won’t try to use the bad blocks for storing data. The following example will show how this could be done.

Open a  terminal, type following command:

    $ sudo badblocks -v /dev/hda1 > bad-blocks

The above command will generate the file bad-blocks in the current directory from where you are running this command.

Now, you can pass this file to the fsck command to record these bad blocks

    $ sudo fsck -t ext4 -l bad-blocks /dev/hda1
    Pass 1: Checking inodes, blocks, and sizes
    Pass 2: Checking directory structure
    Pass 3: Checking directory connectivity
    Pass 4: Check reference counts.
    Pass 5: Checking group summary information.

    /dev/hda1: ***** FILE SYSTEM WAS MODIFIED *****

    /dev/hda1: 25/360 files, 44/1440 blocks

If you have already  used  badblocks , e2fsck will try to move the block to another place. If the block was really bad, not just marginal, the contents of the file may be corrupted.

Looks at badblocks man pages for more command line options.

Tuesday, August 14, 2012

45 Gram Linux Based Computer Raspberry Pi - Overview

45 Gram Personal Computer Raspberry Pi - Overview

-->

What is Raspberry Pi?
Raspberry Pi is a USD $35.00(Approx.Rs.2500/-) credit card sized single board computer with 256 MB RAM, 2 USB Ports, One HDMI Port, 3.5mm Audio Jack, Composit Video out for Connecting TV as Display Device, SD Card Slot, Ethernet Port and GPIO port for Electronics and Robotics Projects. It’s a capable little PC which can be used for many of the things that your desktop PC does, like spreadsheets, word-processing and games. It also plays high-definition video. The Raspberry Pi measures 8.5cm x 5.4cm, It weighs 45g.

What Peripherals Are Required for the Raspberry Pi SBC?
  • +5V/700ma cell phone battery charger with micro‐USB cable
  • SD‐Memory Card (2GB minimum) with a Linux OS Image installed
  • USB Keyboard & USB Mouse
  • HDMI cable or RCA Video Cable
  • Display with either an HDMI, DVI, or Composite Video input
  • Ethernet LAN Cable with RJ‐45 Connectors
Supporting Operating Systems

Debian 6 Linux
Arch Linux
Fedora 14 Remix
Android

Monday, August 13, 2012

How to change Ubuntu Look and Feel with Zorin Splash Screen Manager

Zorin Splash Manager  is a simple application help you to  change the  theme  of Ubuntu desktop. The screen shot of the GUI is given below.

It is basically designed for Zorin OS, an Ubuntu based Linux Distribution



How  to install   Zorin Splash Screen Manager
 
Download Package from following Link
Double click on downloaded debian package.

OR  You can use
 $sudo dpkg -i   

Thursday, July 19, 2012

How to fix Apache – "Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName" Error on Ubuntu


How to fix Apache – "Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName" Error on Ubuntu

Just Edit the file /etc/apache2/httpd.conf

$sudo gedit /etc/apache2/httpd.conf

By Default it is blank

add the following to httpd.conf

ServerName localhost

now you can restart apache

$/etc/init.d/apache2 restart

Tuesday, July 17, 2012

How to build an exactly similar ubuntu installation on another computer

Here is an easy  way to  build an exactly similar  ubuntu installation on another computer.

Run
$ dpkg --get-selections >my_pakages

on the machine that you want to clone. Install a clean copy of Ubuntu on the target machine. Copy the file my_packages to the target machine.
Run the following command on the target machine.
sudo dpkg --set-selections < ./package_names
sudo apt-get -u dselect-upgrade

 Done.

Monday, June 18, 2012

How to Change the php file upload limit in Ubuntu Linux

The maximal file size upload limit in php scripts which is set to 2Mb as default. In order to change that open  the file /etc/php5/apache2/php.ini with command

sudo nano /etc/php5/apache2/php.ini

Now  search for “upload_max_filesize” with (default 2M) your value. Save the file. Restart Apache webserver.

sudo /etc/init.d/apache2 restart

 

Sunday, June 17, 2012

Install Norton Cammander Like File Manager SunFlower in Ubuntu/Debian Linux

Sunflower is Open Source, twin panel, very simple and  highly customizable File Manager for Linux with plugins support. it is like old Norton commander and MC.

How to install

Open a Terminal and type the following

  • sudo add-apt-repository ppa:atareao/sunflower
  • sudo apt-get update
  • sudo apt-get install sunflower

Friday, June 15, 2012

How to install GCC 4.7 in Ubuntu 12.04

How to Install GCC 4.7 in Ubuntu 12.04

You can try this PPA (https://launchpad.net/~ubuntu-toolchain-r/+archive/test) for installing gcc 4.7.
 Note that it has packages only for 12.04

Open a terminal and run the following commands

$ sudo add-apt-repository ppa:ubuntu-toolchain-r/test
$ sudo apt-get update
$ sudo apt-get install gcc-4.7

Thursday, June 14, 2012

How to Find Most Recently Updated File in PHP

How to Find  Most Recently Updated  File  in PHP

$path "./";  // put your directory path here 
foreach (glob($path) as $filename
if (filemtime($filename) >= $recentDate)
 $recentDate filemtime($filename); 
 $recentDate date(" F d, Y",$recentDate); 

echo
"Most Recently Updated File".$recentDate;?>

Monday, June 11, 2012

How to install Gnome 3 in ubuntu 12.04


By using the following Steps You can Install the  latest version of Gnome 3 in Ubuntu 12.04

Open a terminal
 $ sudo add-apt-repository ppa:gnome3-team/gnome3 
 $ sudo apt-get update 
 $ sudo apt-get install gnome-shell
 Now Logoff the system and select Gnome


Monday, February 27, 2012

HOW TO ADD DNS 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