IDGLabs.COM - tips, tools and resource

Knowledge Sharing - Want to participate in the discussion?

Solaris Package

Package Manager

- pkginfo -l (Anzeige der installierten Packages)
- pkgchk -v

- pkgadd -R -d (Package installieren)
- pkgrm

RedHat Package Manager

rpm -qi get info
rpm -ivh install a package
rpm -Uvh rpm -e

upgrade a package
remove a package:

rpm -ql which files belong to a package
rpm -qilp look in a rpm filename that isnt installed
will give you a of all files that have changed in one form or another since the package it is associated was installed.
$ rpm -Va | awk ”{print $2}” | xargs rpm -qf | sort -u &> /tmp/file1

the way to compile a package:

gunzip < file.tar.gz | tar xvf -
./ to the package
make to compile the package.
make check to run any self-tests
make install
to install the programs
make clean
to remove the program binaries

Tags: , , , , , ,
  • 0 Comments
  • Filed under: Command List
  • SiSoftware Sandra XII 2008 SP2c 5.14.24 40633013ap1

    SiSoftware has announced the availability of SiSoftware Sandra 2008, the latest version of its award-winning utility which includes remote analysis, benchmarking and diagnostic features for PCs, servers, PDAs1, Smart Phones1, small office/home office (SOHO) networks and enterprise networks.SiSoftware Sandra (the System ANalyser, Diagnostic and Reporting Assistant) is a 32 and 64-bit system analyser that includes benchmarking, testing and listing . It works along the lines of other utilities, however it tries to go beyond them and show you more of what’s really going on. Giving the user the ability to draw comparisons at both a high and low-level. You can get information about the CPU, chipset, video adapter, ports, printers, sound card, , network, internals, AGP, ODBC Connections, USB2, 1394/Firewire, .

    Native ports for all major operating systems are available:
    2000, XP, 2003, Vista*, Longhorn* (x86)
    x64 Edition XP/2003/Vista*/Longhorn* (AMD64/EM64T)
    64-bit Edition 2003/Longhorn* (IA64)
    Mobile 2003/2003SE (ARM CE 4.20)
    Mobile 5 (ARM CE 5.01)
    Mobile 6 (ARM CE 5.02)

    All major technologies are supported and taken advantage of:
    • SMP - Multi-Processor
    • MC - Multi-Core
    • SMT/HT - Hyper-Threading
    • MMX, SSE, SSE2, SSE3, SSSE3 - Multi-Media instructions
    • Wireless MMX - Mobile multi-media instructions
    • NUMA - Non-Uniform Access
    • AMD64/EM64T/x64 - 64-bit to x86
    • IA64 - Intel* Itanium 64-bit

    Key features:
    • 4 native architectures support (x86, x64/AMD64/EM64T, IA64/Itanium3, ARM).
    • 3 native platforms support (, Mobile, CE4).
    • Additional platforms supported through Java RE (e.g. , FreeBSD, Mac OSX, Solaris5).
    • Additional platforms supported through .NET CLR (e.g. Mono/Linux5).
    • 19 benchmarking , 4 new to this version.
    • 38 detailed information , 4 new to this version.
    • Huge official support through partners (Intel, AMD/ATI, SiS, VIA)
    • Future instructions set support (Intel SSE46, AMD SSE4A6) on x86 and x64/AMD64/EM64T platforms.
    • 6 charting options: combined, detailed, differences, , performance vs. speed charts.
    • 5 language versions (English, German, French, Italian, Russian) in a single installer.
    • Enhanced Sandra Lite version ( for personal/educational use)

    Notes:
    1 .NET (Compact) 2.0 and later supported.
    2 Java SE 6 (1.6.x) and later supported.
    3 By special arrangement.
    4 By special arrangement; device SDK required.
    5 By special arrangement; Applet version only.
    6 Unreleased, next-generation pre- platforms at publication time.

    New in SiSoftware Sandra XII (2008):
    London, UK, August 15th 2007 - We are pleased to launch SiSoftware Sandra XII (2008), the latest version of our award-winning utility, which includes remote analysis, benchmarking and diagnostic features for PCs, servers, PDAs, smart-phones and networks.
    Over time, there has been a continued and sustained growth in portability and the development of that can ultimately be executed on multiple platforms without recompilation. With the use of the virtual machine (SVM) growing, be that .NET1 or Java2, the importance of offering a benchmark that measures their performance has grown.
    The introduction of these benchmarks will soon allow the complete suite to be available on other operating systems - not just on Microsoft , as we expanded into non-x86 architectures (IA64/Itanium3, x64/AMD64/EM64T, ARM) in the previous years. We have also added additional support for Virtual Machine and Runtime Engines to open up this information now to the our users.
    Not everything in this is virtual: as with all releases there is something very real in more and more support and trying to predict the new needs of our users as we achieved with each . Support for digital certificates and cryptography, detailed information of the settings, policies, users and groups of your , wireless networks and advanced charting.

    This version adds the following new and functionality:
    • .NET Benchmarking1
    ° .NET Arithmetic: Shows how well the system handles .NET arithmetic through the .NET CLR in comparison to other typical .NET CLRs.
    ° .NET Multi-Media: Shows how well the system handles .NET multi-media through the .NET CLR in comparison to other typical .NET CLRs.

    • Java Benchmarking2
    ° Java Arithmetic: Shows how well the system handles Java arithmetic through the Java Runtime Engine (JRE) in comparison to other typical Java Virtual Machines.
    ° Java Multi-Media: Shows how well the system handles Java multi-media through the Java Runtime Engine (JRE) in comparison to other typical Java Virtual Machines.

    • Information and Diagnostics
    ° Virtual Machines and Runtime Engines: Information about the Virtual Machines (VM), Runtime Engines (RE) and engines installed on your .
    ° Cryptography and Certificates: Information about the cryptographic providers, algorithms and certificates installed on your .
    ° Sessions: Information about the client sessions hosted by your under Services.
    ° Users and Groups: Information about the users and user group accounts registered on your and on your domain.

    • Wireless Support: Information about the wireless (802.11a/b/g/n) networks and devices in addition to the Bluetooth, IrDA (Infrared) and networking capabilities.

    • Enhanced Network (LAN/WAN) Capabilities
    ° Bluetooth Devices and Networks
    ° Wireless Devices and Networks
    ° Servers
    ° Universal Plug & Play (UPnP) Devices and Networks

    • New Advanced Charting Capabilities
    ° Differences Chart: view the differences between the tested device and reference devices.
    ° Chart: contrast the indexes against one another for both current and reference device.
    ° Performance vs. Speed: contrast the results against device speed (MHz, bps, .); how much more performance do you get from a faste device?
    ° Performance vs. Power: contrast the results against device power (TDP); how much more power does a faster device consume?

    With each , we add new support and compatibility for the latest , architectures and operating systems, and this is no exception. SiSoftware continues to work with vendors to ensure the best support for new emerging .

     

    Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
  • Comments Off
  • Filed under: Internet News
  • Admin Command solaris

    $ shutdown -g0 -i0
    $ reboot (entspricht init 6)

    LAN konfigurieren

    Konfiguration der LAN-Interfaces

    $ ifconfig -a

    *

    Netmask setzen: siehe //netmasks
    *

    Jedes LAN-Interface hat //hostname.le0 mit Hostnamen
    *

    LAN-Setup: //rcS.d/S30rootusr.sh (Interfaces konfigurieren)
    //rc2.d/S72inetsvc (LAN konfigurieren)

    Phys Addressen nachschauen

    $ arp -a

    Net to Media Table

    Device IP Address Mask Flags Phys Addr
    —— ——————– ————— —– —————
    le0 rabbit 255.255.255.255 00:60:08:57:17:86
    le0 quorum 255.255.255.255 SP 08:00:20:89:27:03
    le0 arkum 255.255.255.255 00:a0:24:4b:60:1c

    Tags: , , , , ,

    Short Tips to maintain Sun Solaris

    Here are some short tips for common tasks on 2.6, 7 and 8

    Important Commands

    $ who -r # Show Run Level
    $ /usr/sbin/prtconf # Print the complete system configuration
    $ /sbin/mountall -l # all local filesystems.
    $ /sbin/init S # Changing to single user mode

    Tags: , , , ,
  • 0 Comments
  • Filed under: Command List
  • Ksh basics

    This is a quickie page to run through basic “program flow control” commands, if you are completely new to shell programming. The basic ways to shape a program, are loops, and conditionals. Conditionals say “run this command, IF some condition is true”. Loops say “repeat these commands” (usually, until some condition is met, and then you stop repeating).


    Conditionals

    IF

    The basic type of condition is “if”.

    if [ $? -eq 0 ] ; then
    	print we are okay
    else
    	print something failed
    fi

    IF the variable $? is equal to 0, THEN print out a message. Otherwise (else), print out a different message. FYI, “$?” checks the exit status of the last command run. The final ‘fi’ is required. This is to allow you to group multiple things together. You can have multiple things between if and else, or between else and fi, or both.
    You can even skip the ‘else’ altogether, if you dont need an alternate case.

    if [ $? -eq 0 ] ; then
    	print we are okay
    	print We can do as much as we like here
    fi

    CASE

    The case statement functions like ’switch’ in some other languages. Given a particular variable, jump to a particular set of commands, based on the value of that variable. While the syntax is similar to C on the surface, there are some major differences;

    • The variable being checked can be a string, not just a number
    • There is no “fall through” with ;;. You hit only one set of commands.. UNLESS you use “;&” instead of “;;’
    • To make up for no ‘fall through’, you can ’share’ variable states
    • You can use WILDCARDS to match strings
    echo input yes or no
    read  answer
    case $answer in
    	yes|Yes|y)
    		echo got a positive answer
    		# the following ';;' is mandatory for every set
    		# of comparative xxx)  that you do
    		;;
    	no)
    		echo got a 'no'
    		;;
    	q*|Q*)
    		#assume the user wants to quit
    		exit
    		;; 
    
    	*)
    		echo This is the default clause. we are not sure why or
    		echo what someone would be typing, but we could take
    		echo action on it here
    		;;
    esac

    Loops

    WHILE

    The basic loop is the ‘while’ loop; “while” something is true, keep looping. There are two ways to stop the loop. The obvious way is when the ’something’ is no longer true. The other way is with a ‘break’ command.

    keeplooping=1;
    while [[ $keeplooping -eq 1 ]] ; do
    	read quitnow
    	if [[ "$quitnow" = "yes" ]] ; then
    		keeplooping=0
    	fi
    	if [[ "$quitnow" = "q" ]] ; then
    		break;
    	fi
    done

    UNTIL

    The other kind of loop in ksh, is ‘until’. The difference between them is that ‘while’ implies looping while something remains true.
    ‘until’, implies looping until something false, becomes true

    until [[ $stopnow -eq 1 ]] ; do
    	echo just run this once
    	stopnow=1;
    	echo we should not be here again.
    done

    FOR

    A “for loop”, is a “limited loop”. It loops a specific number of times, to match a specific number of items. Once you start the loop, the number of times you will repeat is fixed. The basic syntax is

    for var in one two three ; do
    	echo $var
    done

    Whatever name you put in place of ‘var’, will be updated by each value following “in”. So the above loop will print out

    one
    two
    three

    But you can also have defining the item . They will be checked ONLY ONCE, when you start the loop.

    ="one two three"
    for var in $ ; do
    	echo $var
    	# Note: Changing this does NOT affect the loop items
    	="nolist"
    done

    The two things to note are:

    1. It stills prints out “one” “two” “three”
    2. Do NOT quote “$”, if you want the ‘for’ command to use multiple items

    If you used “$” in the ‘for’ line, it would print out a SINGLE LINE, “one two three”

    bolthole.com//ksh-basics.html

    Tags: , ,
  • 0 Comments
  • Filed under: KornShell
  • Share Your Score

    Advertise