Month: November 2011

Linux hardware details.

Here is one of the scripts that I found on the net while searching for something … Note the URL for the script in the Description.

#!/bin/bash -
#===============================================================================
#
#          FILE:  linux_hw.sh
#
#         USAGE:  ./linux_hw.sh
#
#   DESCRIPTION:  http://www.howtogeek.com/howto/solaris/get-the-processor-type-on-solaris/
#
#       OPTIONS:  ---
#  REQUIREMENTS:  ---
#          BUGS:  ---
#         NOTES:  ---
#        AUTHOR: Amit Agarwal (aka), amit.agarwal@roamware.com
#       COMPANY: Roamware India Pvt Ltd
#       CREATED: 09/13/2011 03:57:34 PM IST
# Last modified: Sun Oct 30, 2011  04:59PM
#      REVISION:  ---
#===============================================================================

function linux_hw_CPU {
	typeset num=0
	typeset name=""
	typeset cores=""
	name="$( cat /proc/cpuinfo | awk -F: '
/vendor_id/ { vendor=$2 }
/model name/ { model=$2 }
/cpu MHz/ {
if( model ~ "Hz" ) {speed=""} else { speed=$2? MHz" };
print vendor, model, speed; }
		' | tail -1
	)"

        num=$(if [ -r /proc/vmware/cpuinfo ]; then awk '/pcpu/ { print NF-1 }' /proc/vmware/cpuinfo; else cat /proc/cpuinfo | grep processor| wc -l; fi)

	# ESX: mas info sobre logical/cores/packages
	if [ -r /proc/vmware/sched/ncpus ]
	then
		cores=$( echo $( cat /proc/vmware/sched/ncpus ) )
	fi

	echo $num $( echo "$name ($cores)" | enclose )
}

function enclose {
	tr -s " " | sed -e "s/^/\"/; s/$/\"/; s/\"\ /\"/; s/\ \"/\"/"
}

function linux_hw_CPU {

	typeset num=0
	typeset name=""
	typeset cores=""

	name="$(
		cat /proc/cpuinfo | awk -F: '
/vendor_id/ { vendor=$2 }
/model name/ { model=$2 }
/cpu MHz/ {
if( model ~ "Hz" ) {speed=""} else { speed=$2" MHz" };
print vendor, model, speed; }
		' | tail -1
	)"

	num=$(
		if [ -r /proc/vmware/cpuinfo ]
		then
			awk '/pcpu/ { print NF-1 }' /proc/vmware/cpuinfo
		else
			cat /proc/cpuinfo | grep processor| wc -l
		fi

	)

	if grep -q "physical id" /proc/cpuinfo || grep "siblings" /proc/cpuinfo
	then
		chip_count=$( grep "physical id" /proc/cpuinfo | sort -u | wc -l )
		chip_core=$( grep "siblings" /proc/cpuinfo | tail -1 | cut -d: -f2 )
		cores="($chip_count chips x $chip_core cores)"
	fi

	# Blades HP con
	if [ -x /sbin/hpasmcli ]
	then
		chip_name=$( /sbin/hpasmcli -s "SHOW SERVER" | grep "Name" | head -1 | cut -d: -f2 )
		chip_speed=$( /sbin/hpasmcli -s "SHOW SERVER" | grep "Speed" | head -1 | cut -d: -f2 )
		chip_core=$( /sbin/hpasmcli -s "SHOW SERVER" | grep "Core" | head -1 | cut -d: -f2 )
	fi

	# ESX: mas info sobre logical/cores/packages
	if [ -r /proc/vmware/sched/ncpus ]
	then
		cores="($( echo $( cat /proc/vmware/sched/ncpus ) ))"
	fi

	# Linux Itanium IA64
	if grep -q -i itanium /proc/cpuinfo
	then
		name="$(
		grep "vendor" /proc/cpuinfo | cut -d: -f2- | tail -1 ) $(
		grep "arch " /proc/cpuinfo | cut -d: -f2- | tail -1 ) $(
		grep "family" /proc/cpuinfo | cut -d: -f2- | tail -1 ) $(
		grep "cpu MHz" /proc/cpuinfo | cut -d: -f2- | cut -d. -f1 | tail -1 ) Mhz"

		chip_count=$( grep "physical id" /proc/cpuinfo | sort -u | wc -l )
		chip_core=$( grep "siblings" /proc/cpuinfo | tail -1 | cut -d: -f2 )
		cores="($chip_count chips x $chip_core cores)"
	fi

	echo $num $( echo "$name $cores" | enclose )
}

linux_hw_CPU
Enhanced by Zemanta

quadkonsole – multiple consoles to make your life easier

First lets install quadkonsole:

yum install quadkonsole

Now, to launch the quadkonsole, just type quadkonsole in the run box (appears with Alt+F2).

You will by default see 4 console windows in single window but you can change that with command line options like so:

quadkonsole --rows 4 --columns 4

This will initiate windows with 16 consoles. How cool is that.

Enhanced by Zemanta

Free, But Not Full-Featured

http://www.linuxworld.com/reviews/2010/111710-photo-editor-free-but-not.html

Photo! Editor: Free, But Not Full-Featured This free photo editor produces nice images easily, but can’t print or share. By Sally Wiener Grotta and Daniel Grotta, PC World November 16, 2010 07:21 PM ET Newsletter Signup * Share/Email * Tweet This * Comment * Print

Photo! Editor (free) is an interesting combination of easy-to-use image editing tools that can produce good results for the person who wants to simply clean up their photos, though the program does have highly limited functionality.

The Photo! Interface is simple to navigate, with well-labeled icons and simple to implement commands. You can use settings the correction tools-such as Fix Red Eye, Enhance Color, and Denoise–either by selecting auto correction in the pop-up menu or by using Manual settings. While the Manual dialogs generally consist of sliders, the Enhance Color and Lighting dialogs include the option to view thumbnail variations. Unfortunately, you can’t adjust the strength of the effects in the thumbnails, and the Lighting variations are not actually lighting changes; they’re severe special-effect color changes. Throughout the dialogs are Help and Tutorial buttons, as well as how-to information panels about the current tool.

We were impressed with the quality of the Makeup Brush, for removing blemishes and lines, smoothing skin to airbrush fineness, and whitening teeth. And while Photo! Editor’s Lighting tool requires a bit of finesse, the manual options can produce some very nice, even sophisticated results without noticeable time lag.

To continue reading, register here and become an Insider. You’ll get free access to premium content from CIO, Computerworld, CSO, InfoWorld, and Network World. See more Insider content or sign in.

Photo! Editor (free) is an interesting combination of easy-to-use image editing tools that can produce good results for the person who wants to simply clean up their photos, though the program does have highly limited functionality.

The Photo! Interface is simple to navigate, with well-labeled icons and simple to implement commands. You can use settings the correction tools-such as Fix Red Eye, Enhance Color, and Denoise–either by selecting auto correction in the pop-up menu or by using Manual settings. While the Manual dialogs generally consist of sliders, the Enhance Color and Lighting dialogs include the option to view thumbnail variations. Unfortunately, you can’t adjust the strength of the effects in the thumbnails, and the Lighting variations are not actually lighting changes; they’re severe special-effect color changes. Throughout the dialogs are Help and Tutorial buttons, as well as how-to information panels about the current tool.

Cloud Networking: Scaling Datacenters and Connecting Users with Software-Based Networking: Download now We were impressed with the quality of the Makeup Brush, for removing blemishes and lines, smoothing skin to airbrush fineness, and whitening teeth. And while Photo! Editor’s Lighting tool requires a bit of finesse, the manual options can produce some very nice, even sophisticated results without noticeable time lag.

The biggest surprise about Photo!, however, is that once you’ve edited your picture to your satisfaction, all you can do is Save it. If you want to use it in a project or print it, you’ll have to use some other program. On the other hand, Photo! may be all you need, if your purpose is saving your pictures to upload them to some sharing site.

Related Content View more related content Get Daily News by Email For a free program, Photo! Editor does a generally nice job with the few tools it has. But its severely limited output options are restrictive.

Enhanced by Zemanta