Monday, February 1, 2016

How to find Mac Address in Ubuntu Linux using bash command



open a terminal

type
$/sbin/ifconfig | grep 'HWaddr' | tr -s ' ' | cut -d' ' -f4,5

Arduino Killer - ESP8266 Based NodeMCU



The ESP8266 WiFi Module is an embedded SOC with integrated TCP/IP protocol stack. It helps   microcontrollers  access to your WiFi network. IoT devices exploits this facility. Lot of firmwire you can use with ESP8266. Many ESP8266 comes with AT firmware for serial communications. NodeMCU is one of them, which supports lua programming language. Latest ESP8266 boards contains plenty of I/O lines and ADC,PWM, I2C,SPI  features like Arduino. It is very cheap($3-Rs.180)
All of the above board build with ESP8266. Almost all are same.

Monday, November 16, 2015

How To Check Your Own Open Ports in Ubuntu / Debian




Netstat is available by dafault in your system.

Open a Terminal

$  sudo netstat -plunt

or

$  sudo netstat -nat

Monday, June 8, 2015

How to get Previous commands quickly in Ubuntu / Debian Linux

How to get Previous commands quickly in Ubuntu / Debian Linux


  1.   You can use the up arrow to view the previous command 
  2.   Type !! and press enter for the previous command
  3.   Type !-1 and press enter for the previous command    
  4.   Press Control+P will also display the previous command

Saturday, June 6, 2015

How to Disable Bash History Temporarily in Ubunu / Debian Linux


How to Disable Bash History Temporarily in Ubunu / Debian Linux


 Some times we want to use password as command line argument. Storing your password in .bash_history file  is not a good idea.

use the following command

$  unset HISTFILE


it is only for current session. 

Saturday, January 17, 2015

How to install Drupal 7 in Beaglebone Black

How to Install Drupal 7 in Beaglebone black






Drupal is an Open source Content Management Platform for powering your website. It is written in PHP. you need Apache2, PHP and mysql for Installing Drupal.  Now the POSTCARD sized Linux powered Beaglebone Black can use as your Drupal Webserver. See a tutorial here

Monday, January 12, 2015

How to Control Servo Motors from Beaglebone Black



Lot of DIY projects are using Servo Motors. Controlling of Servo Motors are very easy compared to other Motors. Here You can see How to control a Servo Motor using Beaglebone Black PWM pins. (Link)

Friday, July 4, 2014

How to Hide Userlist from Login Screen in Ubuntu/debian Linux

How to Hide Userlist from  Login Screen in Ubuntu/debian Linux


For Hiding User list you need to edit lightdm configuration file.

$   sudo vi  /etc/lightdm/lightdm.conf

Add the following line to the bottom of the file

    greeter-hide-users=true

 Save the file and reboot your system .

  Now the  user list will be hidden

Tuesday, April 29, 2014

How to Install Graphical (GUI ) Users & Groups Management Tool in Ubuntu 12.04

How to Install Graphical (GUI ) Users & Groups Management Tool in Ubuntu 12.04

The old Gnome User and Groups management tool is not available  in Ubuntu 12.04 LTS.


There is User Accounts available  under the System setting, but  you cannot administer groups.

You can solve this problem by installing the utility gnome-system-tools which is available in Ubuntu software repository.

How to install gnome-system-tools

Open a terminal and run the following command . or install it using synaptic Package manger.

$ sudo apt-get install gnome-system-tools
 
 
 

Tuesday, April 22, 2014

How to take system backup Using tar command in Ubuntu Linux




How to take system backup Using tar command in Ubuntu Linux


The following is an exemplary command of how to archive your system.
tar -cvpzf backup.tar.gz --exclude=/backup.tar.gz --one-file-system / 
To understand what is going on, we will dissect each part of the command.
  • tar - is the command that creates the archive. It is modified by each letter immediately following, each is explained bellow.
    • c - create a new backup archive.
    • v - verbose mode, tar will print what it's doing to the screen.
    • p - preserves the permissions of the files put in the archive for restoration later.
    • z - compress the backup file with 'gzip' to make it smaller.
    • f - specifies where to store the backup, backup.tar.gz is the filename used in this example. It will be stored in the current working directory, the one you set when you used the cd command.
  • --exclude=/example/path - The options following this model instruct tar what directories NOT to backup. We don't want to backup everything since some directories aren't very useful to include. The first exclusion rule directs tar not to back itself up, this is important to avoid errors during the operation.
  • --one-file-system - Do not include files on a different filesystem. If you want other filesystems, such as a /home partition, or external media mounted in /media backed up, you either need to back them up separately, or omit this flag. If you do omit this flag, you will need to add several more --exclude= arguments to avoid filesystems you do not want. These would be /proc, /sys, /mnt, /media, /run and /dev directories in root.