let's search

Google
 

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.

Wednesday, May 28, 2008

Dell Precision M6300


The M6300 offers a wide range of hardware configurations, as well as a 64GB Samsung SSD for the businesses that require extreme ruggedness and extreme performance. Processors range from the T7250 all the way up to the X9000, RAM from 1GB to 4GB, display resolutions starting at WXGA+ up to WUXGA, and either NVIDIA Quadro FX 1600M or NVIDIA Quadro FX 3600M discrete graphics.

Bringing the price of $1,849 up to $2,738, this spesification:
  • Windows XP SP2
  • Intel Core 2 Duo Processor T7250 (2.00GHz)
  • Mobile Intel P965 Express Chipset
  • Intel Wireless WiFi Link 4965AGN (802.11a/g/n)
  • 2GB PC2-5300 DDR2 SDRAM (maximum capacity 4GB)
  • 64GB Samsung SSD
  • 8x DVD (+/-R double layer) drive
  • 17.0" diagonal widescreen matte TFT LCD display at 1440x 900 (WXGA+, matte)
  • 256MB nVidia Quadro FX 1600M (512MB dedicated and shared memory)
  • Dimensions: 1.6"(H) x 15.5(W) x 11.3"(D)
  • Weight: 8.5 lbs
  • 130W 100-240V AC adapter
  • 9-cell (85Wh) Lithium Ion battery (1lb 1oz)
  • 3-Year Basic Limited Warranty and 3-Year NBD On-Site Service

SSD Performance

Unlike traditional Hard Disk Drives (HDDs) with moving parts that are prone to failure and data loss when they receive an impact, Solid State Drives (SSDs) are flash-based storage drives with no moving parts. Notebooks tend to get "torture tested" in most corporate environments when the sales force tosses their laptops inside their cars or staff drop their notebooks off the edge of a table during a crowded meeting. The Samsung 64GB SSD in our test configuration (an $849 upgrade) helps eliminate the risk of data loss due to rugged treatment.

The other benefit of these SSDs is the extreme level of performance and reduced heat output compared to traditional HDDs.

Monday, May 19, 2008

Hewlett-Packard iPAQ h2210 PDA


Hewlett-Packard' new line of PDAs demonstrates the manufacturer's flexibility in designing models of different levels, and perfectly meets the needs of respective groups of users. The h2210, is a typical workhorse that combines a utilitarian feature-rich design and a moderate price. The iPAQ h2210 is an inexpensive PDA (priced at around $350) based on the Pocket PC platform, equipped with a 400MHz XScale processor, integrated Bluetooth adapter and two slots for SD/MMC and CompactFlash cards.

The design of the HP iPAQ h2210 reminds that of the most popular mainstream PDA - Dell Axim X5. But HP's product looks more elegant and follows the style of top iPAQ models. Also, the h2210 is smaller than the X5, and generally looks better.

On the side panels you can see nonslip coating which makes this PDA similar to the Dell Axim. It's not rubber but something like kapron or polyethylene with a velvety texture. It's more slippery than rubber but less than hard plastic. You feel more confident with such coating when holding this PDA in your hands. Maybe this is just a psychological effect, but anyway, it's very pleasant to handle this device.



In front you can see standard 4 application short-cut buttons and a 5-way joystick. The joystick easily tilts in all directions, but it's a bit tough to press, that is why there's a certain risk of incorrect response - if you press it not right in the center, the joystick may tilt rather than go down. In all other respects, it's pleasant in use. Above you can see a power button recessed into the PDA body so that you don't press it occasionally, and charge and Bluetooth LEDs.

The screen is made of a standard transreflective TFT matrix of the standard resolution of 320 x 240 pixels and 65,535 colors.

The PDA is powered by a Li-Ion 900 mAh battery is flat and can be removed.

In the box you can find the PDA itself, a charger, a USB cradle, documentation and a software CD.