let's search

Google
 
Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Sunday, June 1, 2008

Linux: Introduction to the command line

People can interact with computers running Linux in two ways -- using the graphical user interface (GUI) or the command line interface (CLI). By learning a few fundamentals, you can use the command line to accomplish miracles.

Often, a graphical interface is the best, if not the only, way to go: the most common example is advanced photo editing. A mouse-only approach, however, can be extremely limiting. In a graphical interface you only find the buttons that somebody else considered necessary.

Above all, you must be there to push them, so it may be impossible to automate anything but the simplest button sequences. If doing something requires just three mouse clicks, doing it 100 times may require 300 mouse clicks. Doing the same thing at the CLI, however, would be just require an action loop. This command, for example, is all you need to find all the JPG images in the current folder and place a thumbnail of each of them in /tmp/thumbnails/:

for picture in `find . -name "*jpg"`; do convert -sample 80x40 $picture /tmp/thumbnails/$picture ; done

ou can get to the CLI in two ways. The first is the standard Linux console, which you'll see if your system isn't running X or if you switch to one of the virtual consoles while X is running. Everything you enter at the command line is interpreted by the shell, which is a program that interprets and executes commands run at the command line or read from a script. The default shell on most Linux distributions is the Bourne again shell, or bash.

Data and variables made only of text are also called strings.

Every time you type a command, the shell does one of two things. If the first argument -- that is, the first sequence of non-whitespace characters -- is the name of a program, then the shell launches that program, passing as arguments to it everything you wrote after that string.

If what you typed isn't a program name, the shell interprets it as a command. The shell also has a simple programming language built in, with the possibility to read or create files and many reserved words associated to the most common functions and operations. For example, cd means "change directory," pwd means "print the name of the current working directory," and history lists the most recent commands you typed.

Shells are extremely powerful also thanks to another feature: any sequence of commands can be saved to a plain text file and executed again, any time you wish, without retyping everything. All you have to do is to write as the first line in that file the string:

#! /bin/bash

This tells the system that the rest of the file should be directly interpreted by bash. You must also make the file executable with the chmod command:

  chmod 755 my_shell_script_file

This form of programming, called scripting, may be all you ever need to fully customize your Linux computer.

Many Linux commands and programs have documentation available right at the command line. When you need to know how some program works or what are its options, type man or info followed by the program name, and most of times you'll have the answer

The best documentation freely available online to help you become a shell guru is probably the Advanced Bash Scripting Guide. As far as quick and practical tips go, instead, there are plenty of them in the "CLI Magic" series on Linux.com. Some are related to system administration, from knowing what is happening in your computer to automating file searches and other operations or discovering malware. Desktop-wise, is is possible to access a Bluetooth phone or manage your contacts.

Friday, May 2, 2008

Mandriva 2008.1 Spring Review

Mandriva 2008.1 Spring GNOME


Mandriva (when it was called Mandrake) it was solid, it was pretty, and it made Linux feel welcoming and fun. If one thing can be said throughout the releases since Mandrake 8, it's that whatever the company name might have been the distribution has remained consistently pleasant to look at.

Software selection is OpenOffice, GIMP, Firefox, and Pidgin were present. Neither Java nor GCC were installed by default on this one either. Innotek Virtualbox (VM software) was on the disc. Game in 3D, there is OpenArena, Wormux, Frozen-Bubble and Chromium.

Unfortunately, neither Java nor GCC were installed by default on this one either. Eclipse was included on the DVD, but without a proper version of Java that make dead in the water for work-related programming.

Sunday, April 27, 2008

Hello with Ubuntu


Hello world with my Ubuntu.
I wanna introduce this my OS to people!

Ubuntu is Linux distribution for desktops, laptops, and servers. It has consistently been rated among the most popular of the many Linux distributions.

"Ubuntu" is ancient African word that means "humanity to others", "we are people because of other people", or "I am who I am because of who we all are", though other meanings have been suggested.

Ubuntu is sponsored by Canonical Ltd, owned by South African entrepreneur Mark Shuttleworth.

Kubuntu and Xubuntu are official subprojects of the Ubuntu project, aiming to bring the KDE and Xfce desktop environments, respectively, to the Ubuntu core (by default Ubuntu uses GNOME for its desktop environment). Edubuntu is an official subproject designed for school environments, and should be equally suitable for children to use at home.

Latest version Ubuntu is 8.04 with code name Hardy Heron

Website www.ubuntu.com
Company/
developer
Canonical Ltd. / Ubuntu Foundation
OS family Linux
Source model Free and open source software
Initial release October 20, 2004 (2004-10-20)
Latest stable release 8.04 (Hardy Heron) / April 24, 2008 (2008-04-24), 3 days ago
Available language(s) Multilingual (more than 55)
Update method APT
Package manager dpkg
Supported platforms i386, AMD64, IA-64, UltraSPARC, PowerPC [1]

Note: Edgy Eft was the last version to officially support the PowerPC architecture; the PowerPC version is now community supported.

Kernel type Monolithic (Linux)
Default user interface GNOME
License Various
Working state Current