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.