Friday, March 2, 2012

Useful Commands for Linux Terminal (command line interface)

Fundamental Commands are given below:


  1. sudo: Executing Commands with Root Privileges


    Most of the following commands will need to be prefaced with the sudo command. which is necessary when working with directories or files not owned by your user account. When using sudo you will be prompted for your password. Only users with sudo (administrative) privileges will be able to use this command.




  1. Useful File and Directory Commands





  • The tilde (~) symbol indicates it is  your home directory. If you are user, then the tilde (~) stands for /home/user

  • pwd: The pwd command will allow you to know in which directory you're located (pwd stands for "print working directory"). Example: "pwd" in the Desktop directory will show "~/Desktop".

  • ls: The ls command used for showing the files in your current directory.

  • cd: The cd command will allow you to change directories. When you open a terminal you will be in your home directory. To move around the file system you will use cd. Examples:

    • To navigate into the root directory, use "cd /"

    • To navigate to your home directory, use "cd" or "cd ~"

    • To navigate up one directory level, use "cd .."

    • To navigate to the previous directory (or back), use "cd -"

    • To navigate through multiple levels of directory at once, specify the full directory path that you want to go to. For example, use, "cd /var/www" to go directly to the /www subdirectory of /var/. As another example, "cd ~/Desktop" will move you to the Desktop subdirectory inside your home directory.



  • cp: The cp command will make a copy of a file for you. Example: "cp jaseem job" will make an exact copy of "jaseem" and name it "job", but the file "jaseem" will still be there. If you are copying a directory, you must use "cp -r directory jasmedia" (copy recursively). (To understand what "recursively" means, think of it this way: to copy the directory and all its files and subdirectories and all their files and subdirectories of the subdirectories and all their files, and on and on, "recursively")

  • mv: The mv command will move a file to a different location or will rename a file. Examples are as follows: "mv jaseem jasmedia" will rename the file "jaseem" to "jasmedia". "mv jaseem ~/Desktop"will move the file "jaseem" to your Desktop directory but will not rename it. You must specify a new file name to rename a file.

    • To save on typing, you can substitute '~' in place of the home directory.

    • Note that if you are using mv with sudo you can use the ~ shortcut, because the terminal expands the ~ to your home directory. However, when you open a root shell with sudo -i or sudo -s, ~ will refer to the root account's home directory, not your own.



  • rm: Use this command to remove or delete a file in your directory.

  • rmdir: The rmdir command will delete an empty directory. To delete a directory and all of its contents recursively, use rm -r instead.

  • mkdir: The mkdir command will allow you to create directories. Example: "mkdir Document" will create a directory called "music".

  • man: The man command is used to show you the manual of other commands. Try "man man" to get the man page for man itself.


Running a File Within a Directory


So you've decided to run a file using the command-line? Well... there's a command for that too!

./filename.extension


After navigating to the file's parent directory, this command will enable any Ubuntu user to parse files compiled via gcc or any other programming language. Keep in mind that the 'extension' will vary depending upon the language the source code is written in. For example: ".c" for C source, ".cpp" for C++, ".rb" for Ruby, ".py" for python, etc. Also, remember that (in the case of interpreted languages like Ruby & Python) you must have a version of that language installed on Ubuntu before trying to run files written with it.

System Information Commands



  • df: displays filesystem disk space usage for all mounted partitions. "df -h" is probably the most useful - it uses megabytes (M) and gigabytes (G) instead of blocks to report. (-h means "human-readable")

  • du: The du command displays the disk usage for a directory. It can either display the space used for all subdirectories or the total for the directory you run it on. Example:


user@users-desktop:~$ du /media/cd

1032 /media/cd/files

1036 /media/cd/

user@users-desktop:~$ du -sh /media/cd

1.1M /media/cd/

where -s means "Summary" and -h means "Human Readable"

  • free: The free command displays the amount of free and used memory in the system. "free -m" will give the information using megabytes, which is probably most useful for current computers.

  • top: The top command displays information on your Linux system, running processes and system resources, including CPU, RAM & swap usage and total number of tasks being run. To exit top, press "q".

  • uname -a: The uname command with the -a option prints all system information, including machine name, kernel name & version, and a few other details. Most useful for checking which kernel you're using.

  • lsb_release -a: The lsb_release command with the -a option prints version information for the Linux release you're running

  • ip addr reports on your system's network interfaces.


Adding A New User


"adduser newuser" command will create a new general user called "newuser" on your system, and to assign a password for the newuser account use "passwd newuser".

Options


The default behaviour for a command may usually be modified by adding a --option to the command. The ls command for example has an -s option so that "ls -s" will include file sizes in the listing. There is also a -h option to get those sizes in a "human readable" format.

Options can be grouped in clusters so "ls -sh" is exactly the same command as "ls -s -h". Most options have a long version, prefixed with two dashes instead of one, so even "ls --size --human-readable" is the same command

I hope it is helpful for Ubuntu Biginners.....!

Wednesday, February 8, 2012

BLUE BRAIN PROJECT: SEMINAR

           
The Blue Brain Project is an attempt to create a synthetic brain by reverse-engineering the mammalian brain down to the molecular level. The aim of the project, founded in May 2005 by the Brain and Mind Institute of the École Polytechnique in Lausanne, Switzerland, is to study the brain's architectural and functional principles. The project is headed by the Institute's director, Henry Markram. Using a Blue Gene supercomputer running Michael Hines's NEURON software, the simulation does not consist simply of an artificial neural network, but involves a biologically realistic model of neurons. It is hoped that it will eventually shed light on the nature of consciousness. There are a number of sub-projects, including the Cajal Blue Brain, coordinated by the Supercomputing and Visualization Center of Madrid (CeSViMa), and others run by universities and independent laboratories in the UK, US, and Israel.
For presentation slide Click Here... latest blue

Biographical Sketches

Sean Hill is the Blue Brain Project Manager for Computational Neuroscience. Dr. Hill received his Ph.D. in Computational Neuroscience from the University of Lausanne, Switzerland where he investigated the computational role of the auditory thalamocortical circuitry in the rat. He subsequently held postdoctoral positions at The Neurosciences Institute in La Jolla, California and the University of Wisconsin, Madison. In the course of his research, Hill has developed numerous large-scale models of neural systems and is the designer/developer of the general-purpose neural simulator Synthesis. As part of his research, he developed the first large-scale model of the cat visual thalamocortical system that replicates neural activity during wakefulness and sleep. He began his work with the Blue Brain project as a member of the Computational Biology Group at the IBM T.J. Watson Research Center in 2006 and became a Blue Brain employee in 2008. His research interests include the use of biologically-realistic models to study the role of emergent phenomena in information processing, network connectivity and synaptic plasticity in the central nervous system, from the neocortical column to the whole brain, and across different arousal conditions including waking and sleep. Henry Markram is the Founder and Co-Director of EPFL's Brain Mind Institute and Director of the Blue Brain Project. He obtained his Ph.D from the Weizmann Institute of Science where he discovered a link between acetylcholine and memory mechanisms. At the Max Planck Institute he discovered calcium transients in dendrites evoked by sub-threshold activity and by single action potentials propagating back into dendrites. He also began studying the connectivity between neocortical neurons. Markram discovered Spike Timing Dependent Plasticity (STDP) by altering the precise millisecond relative timing of single pre- and post-synaptic action potentials, which revealed a highly precise learning mechanism operating between neurons. He moved back to the Weizmann Institute where he started his systematic reverse engineering of the neocortical microcircuitry. He discovered a number of key principles of microcircuit structure and design and a novel view of synaptic learning called redistribution of synaptic efficacy. Based on the emergent dynamics of the neocortical microcircuit he and Wolfgang Maass developed the theory of liquid computing to explain computing in high entropy states. In 2002, he moved to EPFL as full professor and founder/director of the Brain Mind Institute. At the BMI, Markram developed state of art technologies to obtain a detailed blueprint of the neocortical column. He launched the Blue Brain Project with the support of IBM in 2005 to rebuild and simulate the neocortical column and is expanding the BBP to simulate the whole brain of mammals. Markram has received numerous awards and published over 80 papers.
If any have want the full report of my seminar please contact to me..

Wednesday, August 24, 2011

How to fix Grub Error after reinstalling Windows7 on a dual boot laptop ?

Problem is that After re-installing Windows7, When the laptop was rebooted, Grub Error 17 Message appeared.

Solution :

Boot from Ubuntu 10.04 LTS or other linux versions

Start Ubuntu Without installetion

MP3/iPod Mini speaker System

Do you have any interest in music? Do you wish you could listen and share your music wherever you go? With the mini speaker system project, you can listen to music whenever you want: your dorm, your cubicle, or at the beach. This is a great introduction to circuit systems, featuring an introductory amplifier circuit, a filter circuit, and a simple enclosure. When you're done, all you need to do is add a 9V battery, plug in and play!

The Amplifier In Mini speaker system: it amplifies the current. That is, it takes an electrical signal and makes the signal stronger, and in the end, louder. An electrical signal that is passed by an amplifier comes out louder through the speaker than one that hasn't been amplified. Also, because the signal is strengthened by an amplifier, you can play that music through higher resistant speakers. This amplifier is a solid-state-hi-gain design and is intended to run through an 8 ohm speaker.Schematic of the amplifier section is follows.

Debian expert's shortcuts

MOUNTING NTFS FORMATTED DRIVES IN DEBIAN OS

Steps as follows:

  • first take the login window in system administaration and check the box to login local user


for ntfs file system mounting:

  1. First login using


user name:root

Password:your actual password

  • Next is creat folder in media ,like" /media/c"



  • then open terminal and type" fdisk -l".It gives the properties of partitions


Open Programmer

An open source USB programmer for PIC micros, I2C-SPI-MicroWire EEPROMs, some ATMEL micros, generic I2C/SPI devices


Quick review




  • Completely free and Open Source

  • Programs PIC10-12-16-18-24, dsPIC30-33, EEPROMs type 24xxxx (I2C), 25xxx (SPI), 93xx6 (MicroWire), some ATMEL micros, communicates with generic I2C & SPI devices

  • Can work as ICD debugger

  • USB 2.0 Full Speed interface, HID class (same as keyboards, mice, etc.)

  • Self powered

  • Doesn't need drivers

  • Built from easy to find components (estimated cost ~10€)

  • Hardware generated timings for maximum speed and reliability (writes a 18F2550 in 15s, 8s under Linux)

  • Doesn't saturate your CPU and doesn't suffer when other programs are running

  • Open source control programs for Linux and Windows

Tuesday, August 23, 2011

PC Based Oscilloscope

        Now a day more and more experiments are now 'PC Based'. Also conventional acquisition systems are very expensive.Since Portable PCs are now common and USB link is better solution than Other ports.Here we present an Oscilloscope using USB Port of the PC that operates up to 10Khz with ±16V input voltage


         The oscilloscope uses IC PIC18F2550 from Microchip as the main controller, which makes the oscilloscope compact as there is no need of additional power supply for the entire circuit board. The microcontoller has an USB2.0 compliant transceiver and a CPU running up to 12 MB/s.It has a 10Bit ADC module with up to 13- channel multiplexer.




  • A user-interface softwar  is used for output.



  • IC LF-353 is used as a voltage-follower.It is a JFET input opamp with an internally compensated input offset voltage.The JFET input device provides wide band-width,low input bias currents and offset currents.

  • IC MCP6S91  is an analogue programmable gain amplifier that is well suited to driving ADC converters and an analogue input to a PIC microcontroller.Two MCP6S91 programmable gain amplifiers make it possible to choose the input ranges for each of the two channels,by selecting a gain from 1:1 to 32:1.

  • Major advantages of the USB is the ability to drive 5V,100mA devices.All the data is transmitted on the D+/D- symmetrical pins of USB using a variable bit rate.The position of a resistor on D+/D- allows to choose the full speed (12 Mbps) and low speed(1.5 Mbps) modes.

  • A user-interface software written in VISUAL BASIC 6 used as user -interface unit.

  • PC monitor is used as the output unit. USB and User software are connected by driver software mcchp.sys.

  • All the data is transmitted on the D+/D- symmetrical pins using a variable bit rate. The position of a resistor (R13) on D+or D- in Circuit allows you to choose between the full-speed (12 Mbps) and low speed modes (1.5 Mbps).The VUSB pin may be used to pullup D+ or D- .Thepull-up resistor must be 1.5 kilo-ohms(±5%) as required by the USB specifications.


  • COMPONENTS LIST
    IC1 - PIC18F2550 microcontroller
    IC2, IC3 - MCP6S91 programmable gain amplifier
    IC4(A, B),
    IC5(A, B) - LF353 dual operational amplifier
    IC6 - ICL7660 switched-capacitor voltage converters
    Resistors (all ¼-watt, ±5% carbon):
    R1, R7 - 1-mega-ohm
    R2, R8 - 82-kilo-ohm
    R3, R9 - 33-kilo-ohm
    R4, R10 - 220-kilo-ohm
    R5, R11 - 150-kilo-ohm
    R6, R12 - 1-kilo-ohm
    Capacitors:
    C1, C2 - 2.7pF ceramic
    C3, C4,
    C5, C6 - 68nF ceramic
    C7 - 0.022μF polyester
    C8 - 150nF ceramic
    C9 - 10μF, 16V electrolytic
    C10 - 47μF, 16V electrolytic
    Miscellaneous:
    X1 - 4MHz crystal oscillator
    CON1 - USB socket (type-B) for PCB

  • Programming description: The program for the microcontroller is written in ‘C’ language.All operations are initiated by the host (the PC), which sends a 16-byte command.The first command byte determines the chip actions. The four possible actions are:
    1. Command 80h: Clears the EEPROMcalibration memory
    2. Command 81h: Receives parameters,and stores the gain-error compensation for the two channels.
    3. Command 83h: Initiates a zerocalibration sequence of the two channels.The two inputs have to be grounded.
    4. Command 85h: Initiates measurement of the input signals.
    The PIC software consists of eight ‘C’ program source files, 14header files
    and a linker file all under‘aquis.mcp’ project

  • REFERENCE: 1.Electronics For You December 2006
    2.www.wikipedia.org
    3.www.alldatasheet.com
    4.www.microchip.com
    5.www.electronicsforu.com
    Govt.

  •                                                                                                                                 PC out put: