RSS

Basic Operations in LINUX

Let’s start with some basic and interesting operations in linux.

1) any_command – -help |more
Display a brief help on a command (works with most commands). “- -help” works similar to DOS “/h” switch. The “more” pipe is needed if the output is longer than one screen.
man topic
Display the contents of the system manual pages (help) on the topic. Try man man first. Press “q” to quit the viewer. The command info topic works similar and may contain more up-to-date information. Manual pages can be hard to read. Try any_command –help for short, easy to digest help on a command. If more info needed, have a look to the directory /usr/doc. To display manual page from a specific section, I may use something like in this example: man 3 exit (this displays an info on the command exit from section 3 of the manual pages).

2) apropos topic
Give me the list of the commands that have something to to do with my topic.

3)help command
Display brief info on a bash (shell) build-in command.

4) ls
List the content of the current directory. Under Linux, the command “dir” is an alias to ls. Many users have “ls” to be an alias to “ls –color”.

5) ls -al |more
List the content of the current directory, all files (also those starting with a dot), and in a long form. Pipe the output through the “more” command, so that the display pauses after each screenful.

6) cd directory
Change directory. Using “cd” without the directory name will take you to your home directory. “cd -” will take you to your previous directory and is a convenient way to toggle between two directories. “cd ..” will take you one directory up.

7) cp source destination
Copy files. E.g., cp /home/stan/existing_file_name . will copy a file to my current working directory. Use the “-r” option (for recursive) to copy the contents of whole directories, e.g. , cp -r my_existing/dir/ ~ will copy a subdirectory under my current working directory to my home directory.

8) mcopy source destination
Copy a file from/to a DOS filesystem (no mounting necessary). E.g., mcopy a:\autoexec.bat ~/junk . See man mtools for related commands: mdir, mcd, mren, mmove, mdel, mmd, mrd, mformat ….

9) mv source destination
Move or rename files. The same command is used for moving and renaming files and directories.

10) ln source destination
Create a hard link called destination to the file called source. The link appears as a copy of the original files, but in reality only one copy of the file is kept, just two (or more) directory entries point to it. Any changes the file are automatically visible throughout. When one directory entry is removed, the other(s) stay(s) intact. The limitation of the hard links are: the files have to be on the same filesystem, hard links to directories or special files are impossible.

11) ln -s source destination
Create a symbolic (soft) link called “destination” to the file called “source”. The symbolic link just specifies a path where to look for the file. In contradistinction to hard links, the source and destination don’t not have to tbe on the same filesystem. In comparison to hard links, the drawback of symbolic links are: if the original file is removed, the link is “broken”, symbolic links can also create circular references (like circular references in spreadsheets or databases, e.g., “a” points to “b” and “b” points back to “a”).

12) rm files
Remove (delete) files. You must own the file in order to be able to remove it. On many systems, you will be asked or confirmation of deleation, if you don’t want this, use the “-f” (=force) option, e.g., rm -f * will remove all files in my current working directory, no questions asked.

13) mkdir directory
Make a new directory.

14) rmdir directory
Remove an empty directory.

15) rm -r files
(recursive remove) Remove files, directories, and their subdirectories. Careful with this command as root–you can easily remove all files on the system with such a command executed on the top of your directory tree, and there is no undelete in Linux (yet). But if you really wanted to do it (reconsider), here is how (as root): rm -rf /*

16) cat filename | more
View the content of a text file called “filename”, one page a time. The “|” is the “pipe” symbol (on many American keyboards it shares the key with “\”) The pipe makes the output stop after each screenful. For long files, it is sometimes convenient to use the commands head and tail that display just the beginning and the end of the file. If you happened to use “cat” a binary file and your terminal displays funny characters afterwards, you can restore it with the command “reset”.

17) less filename
Scroll through a content of a text file. Press q when done. “Less” is roughly equivalent to “more” , the command you know from DOS, although very often “less” is more convenient than “more”.

18) pico filename
Edit a text file using the simple and standard text editor called pico.

19) pico -w filename
Edit a text file, while disabling the long line wrap. Handy for editing configuration files, e.g. /etc/fstab.

20) find / -name “filename”
Find the file called “filename” on your filesystem starting the search from the root directory “/”. The “filename” may contain wildcards (*,?).

21) locate filename
Find the file name of which contains the string “filename”. Easier and faster than the previous command but depends on a database that normally rebuilds at night.

22) ./program_name
Run an executable in the current directory, which is not on your PATH.

23) touch filename
Change the date/time stamp of the file filename to the current time. Create an empty file if the file does not exist.

24) xinit
Start a barebone X-windows server (without a windows manager).

25) startx
Start an X-windows server and the default windows manager. Works like typing “win” under DOS with Win3.1

26) startx — :1
Start another X-windows session on the display 1 (the default is opened on display 0). You can have several GUI terminals running concurrently. Switch between them using , , etc.

27) xterm
(in X terminal) Run a simple X-windows terminal. Typing exit will close it. There are other, more advanced “virtual” terminals for X-windows. I like the popular ones: konsole and kvt (both come with kde) and gnome-terminal (comes with gnome). If you need something really fancy-looking, try Eterm.

28) xboing
(in X terminal). Very nice, old-fashioned game. Many small games/programs are probably installed on your system. I also like xboard (chess).

29) shutdown -h now
(as root) Shut down the system to a halt. Mostly used for a remote shutdown. Use for a shutdown at the console (which can be done by any user).

30) halt
reboot
(as root, two commands) Halt or reboot the machine. Used for remote shutdown, simpler to type than the previous command.

 
Leave a comment

Posted by on September 8, 2011 in Uncategorized

 

Version 4G

It’s finally here. The much awaited and future of wireless technology that will change the way you live online. The Verizon wireless is all set to launch their 4G services in US from Dec 5th. The Verizon 4G LTE ( Long Term Evolution ) boasting a speed that is 10 times faster than the current 3G technology will invade your space soon. Verizon is set to roll out 4G initially in 38 markets and 60 airports. By the end of 2013 Verizon expect that they can have a coverage similar to their 3G coverage today. Something worth noting here is this so-called ’4G’ technology is actually a pre-4G technology as per standards by ITU. But wireless carriers for marketing use the term 4G wherever possible.

With Verizon 4G LTE you can expect very high-speed capable network that lets you stream HD videos, download big files in no time. Also with such high bandwidths especially upload bandwidth the latency will be less than 30 milliseconds causing the devices to respond quickly without delay. This will allow real-time applications, video streaming, multi player games etc. Verizon claims that their 4G network is “The Largest, Most Advanced 4G Network In The World.” Without doubt LTE is far more superior in performance and stability. Bandwidths possible with Verizon 4G LTE in comparison with WiMax and HSPA+,

Verizon 4G LTE = 5-12 Mbps
WiMAX = 3-6Mbps
HSPA+ = 1-7Mbps

The Verizon 4G LTE uses the unique 700MHz spectrum which will not be used by any other service providers. This would allow Verizon deliver a reliable cutting edge service.

 
Leave a comment

Posted by on September 7, 2011 in Uncategorized

 

GNOME 3.2

The first beta for the upcoming GNOME 3.2 is here for eager users to enjoy. This is still unstable code, so most users will want to hold on until the final, stable version lands, but if you want an early peek, this is your chance.

GNOME 3.2 Beta 1 (3.1.90) comes with plenty of updated apps as well as new features and fixes.

“This is 3.1.90, and it’s out! It’s the first beta of what will be GNOME 3.2, enjoy it while it’s time, the next beta (3.1.91) will arrive next week,” Frederic Peters announced.

“With this release we are now UI frozen, no UI changes may be made without confirmation from the release team and notification to the documentation team (gnome-doc-list@),” he explained.

One new feature included in the new beta is support for creating web application shortcuts. The Epiphany web browser can run in ‘web app’ mode, without any GUI elements.

A Launcher shortcut can be added to any site or web app. Starting an app from the shortcut will launch in a chromeless, stand-alone Epiphany window.

There plenty of updated packages in GNOME 3.2 Beta 1 (version number is 3.1.90 unless otherwise specified):

· Brasero;
· Empathy 3.1.90.1;
· Eog;
· Epiphany;
· Evince 3.1.90.1;
· GDM;
· GTK+ 3.1.16;
· Nautilus;
· Vino;
· Ekiga 3.3.2;
· Evolution 3.1.90.1;
· Gedit 3.1.4;
· Tomboy 1.7.5.

If everything goes according to plan, GNOME 3.2 should be landing in less than a month, on September 28. There is one more beta release planned until then as well as a release candidate version, to spot the last remaining bugs.

GNOME 3.2 (3.1.9x) release schedule:

– August 31st, 2011 – GNOME 3.1.90 Beta
– September 7th, 2011 – GNOME 3.1.91 Beta
– Septmeber 21st, 2011 – GNOME 3.1.92 RC
– September 28th, 2011 – GNOME 3.2.0 stable release

 
Leave a comment

Posted by on September 7, 2011 in Uncategorized

 

How to install facial recognition tool in Ubuntu Linux distro

1) Install the dependencies required to run the face recognition tool. You can install that by executing the following command in terminal. To open Terminal go to Applications > Accessories > Terminal. The commands are different for Lucid Lynx and Maverick Meerkat users:
Lucid Lynx users: –

sudo apt-get install build-essential cmake qt4-qmake libx11-dev libcv-dev libcvaux-dev libhighgui4 libhighgui-dev libqt4-dev libpam0g-dev libswscale0

Maverick Meerkat users:

sudo apt-get install build-essential cmake qt4-qmake libx11-dev libcv-dev libcvaux-dev libqt4-dev libpam0g-dev libswscale0 libhighgui-dev libhighgui2.1
2) Install the face recognition tool by executing the following commands one at a time.

cd /tmp

wget http://pam-face-authentication.googlecode.com/files/pam-face-authentication-0.3.tar.gz

tar zxf pam-face-authentication-0.3.tar.gz && cd pam-face-authentication-*

mkdir build && cd build

cmake -D CMAKE_INSTALL_PREFIX=/usr ..

make

sudo make install

3) Run the ‘Face Trainer’ application from the Applications > Other menu
Add Facial Recognition Password Login to Ubuntu Linux Distro

Steps to add face recognition tool to GNOME display manager (GDM):

For the face login feature to be added to your default GNOME display manager you should execute the following sudo commands,

sudo sed -i ‘1i auth sufficient pam_face_authentication.so enableX’ /etc/pam.d/gdm

sudo sed -i ‘1i auth sufficient pam_face_authentication.so enableX’ /etc/pam.d/gnome-screensaver

Depending on your webcam model/make you may need to install and add libv4l to preload:

Create the file /etc/ld.so.preload
Paste in the path to the v411compat.so file commonly found in /usr/lib/libv4l

 
Leave a comment

Posted by on September 7, 2011 in Uncategorized

 

Linux Desktop Fun: Summon Swarms Of Penguins To Waddle About The Desktop

XPenguins is a program for animating cute cartoons animals in your root window. By default it will be penguins they drop in from the top of the screen, walk along the tops of your windows, up the side of your windows, levitate, skateboard, and do other similarly exciting things. Now you can send an army of cute little penguins to invade the screen of someone else on your network.

How to install XPenguins:-

Open a command-line terminal (select Applications > Accessories > Terminal), and then type the following commands to install XPenguins program. First, type the command apt-get update to tell apt to refresh its package information by querying the configured repositories and then install the required program:
$ sudo apt-get update
$ sudo apt-get install xpenguins
$ xpenguins
Themes

To list themes, enter:
$ xpenguins -l

Sample outputs:

Big Penguins
Bill
Classic Penguins
Penguins
Turtles
You can use alternative themes as follows:
$ xpenguins –theme “Big Penguins” –theme “Turtles”

You can install additional themes as follows:
$ cd /tmp
$ wget http://xpenguins.seul.org/xpenguins_themes-1.0.tar.gz
$ tar -zxvf xpenguins_themes-1.0.tar.gz
$ mkdir ~/.xpenguins
$ mv -v themes ~/.xpenguins/
$ xpenguins -l
To start with a random theme, enter:
$ xpenguins –random-theme

To load all available themes and run them simultaneously, enter:
$ xpenguins –all
It’s interesting.Try it.

 
Leave a comment

Posted by on September 5, 2011 in Uncategorized

 

Eric4 – Full featured Python and Ruby editor and IDE

Eric is a full featured Python and Ruby editor and IDE, written in python. It is based on the cross platform Qt gui toolkit, integrating the highly flexible Scintilla editor control. It is designed to be usable as everdays’ quick and dirty editor as well as being usable as a professional project management tool integrating many advanced features Python offers the professional coder.Current stable versions are Eric4 based on Qt4 and Python 2 and Eric5 based on Python 3 and Qt4.
You can download it from following link:
http://www.icewalkers.com/download/Eric4/2995/dls/

 
Leave a comment

Posted by on September 5, 2011 in Uncategorized

 

Agena – A procedural programming language

Agena is an easy-to-learn procedural programming language designed to be
used in scientific, educational, graphical, and many other applications,
including scripting.

Its syntax resembles very simplified Algol 68 with elements taken from
Maple, Lua, and SQL. It has been implemented on the ANSI C sources of
Lua 5.1.

You may download Agena, its sources, and its manual from

http://agena.sourceforge.net

Agena binaries are available for Solaris, Mac OS X, Linux, Windows, OS/2
& eComStation, and DOS.

 
Leave a comment

Posted by on September 5, 2011 in Uncategorized

 

VueScan – Scanning software

VueScan is the world’s most widely used scanning software, with more than 5 million copies downloaded.VueScan is easy to use, saves you time and improves your productivity. It saves you money by letting you continue using your existing scanner, and it gives you higher quality scans than the software that comes with your scanner.

VueScan supports more than 700 scanners and 209 digital camera raw files.
To download and for more details,check the link:
http://www.hamrick.com/

 
Leave a comment

Posted by on September 5, 2011 in Uncategorized

 

KTurtle Programming

KTurtle is an educational programming environment for the KDE Desktop. KTurtle aims to make programming as easy and touchable as possible, and therefore can be used to teach kids the basics of math, geometry and… programming.

The programming language used in KTurtle is loosely based on Logo. KTurtle allows, just like some implementations of Logo, to translate the programming language (the commands, the documentation and the error messages) to the native language of the programmer. Translating the programming language to the native language of the programmer is one of the many ways KTurtle tries to make learning to programming more simple. Other features to help to achieve this goal are: intuitive syntax highlighting, simple error messages, integrated canvas to make drawings on, integrated help function, slow-motion or step execution, and more.

INSTALLATION PROCEDURE IS:-
Go to your Ubuntu Software Centre and type KTurtle and install it.

Simple code of this programming is:-
reset
canvascolor 0,0,0

learn triangle $size{
repeat 2 {
forward $size
turnleft 120
}
}

for $r = 1 to 10 {
for $n = 1 to 10 {
$c =$n * $n * 1.1
pencolor $c, 256 – $c,256 -$r *21
triangle 200 – $r * $r
turnright 30.25
}
turnright 2
}

direction 0

For ouput screenshot is attached:-

It is very good feature for students and for those who don’t like tough programming. With this everyone will enjoy programming.

 
Leave a comment

Posted by on August 26, 2011 in Uncategorized

 

Install XBMC on ubuntu 11.04 using PPA

Install XBMC on ubuntu 11.04 using PPA

XBMC (Xbox Media Center) is an award-winning free and opensource (GPL) software media player and Home Entertainment system software,

entertainment hub for digital media.Its Graphical User Interface allows user to easily manage Video,Photos,Pdcasts and Music from a Computer,

Optical Disk,Local Network and Internet using a Remote control. XBMC is available for Linux, OSX, Windows, and the original Xbox.

To install XBMC on ubuntu 11.04,use these commands in terminal:
$ sudo add-apt-repository ppa:team-xbmc/unstable
$ sudo apt-get update
$ sudo apt-get install xbmc
$ sudo apt-get update

 
2 Comments

Posted by on August 22, 2011 in Uncategorized