Linux tip: Bash parameters and parameter expansions
Do you sometimes wonder how to use parameters with your scripts, and
how to pass them to internal functions or other scripts? Do you need
to do simple validity tests on parameters or options, or perform simple
extraction and replacement operations on the parameter strings? This
tip helps you with parameter use and the various parameter expansions
available in the bash shell. |
|
Articles |
|
16 May 2007 |
|
| |
Writing endian-independent code in C
Architectures, processors, network stacks, and communication protocols
all have to define endianness at some point. This article explains how
endianness affects code, how to determine endianness at run time, and
how to write code that can reverse byte order and free you from being
bound to a certain endian. |
|
Articles |
|
15 May 2007 |
|
| |
Setting up a multicluster environment using General
Parallel File System
Learn how to construct and deconstruct a simple multicluster of System
x(TM)and System p(TM) computers using the General Parallel File System
(GPFS). You can remotely add an existing GPFS cluster to another cluster.
See how to mount a file system from the remote cluster using the GPFS
secure communication protocol. |
|
Articles |
|
11 May 2007 |
|
| |
UNIX tips and tricks for a new user, Part 4: Some
nifty shell tricks
When writing a shell program, you often come across some special situation
that you'd like to handle automatically. This tutorial includes examples
of such situations from small Bourne shell scripts. These situations
include base conversion from one string to another (decimal to hex,
hex to decimal, decimal to octal, and so on), reading the keyboard while
in a piped loop, subshell execution, inline input, executing a command
once for each file in a directory, and multiple ways to construct a
continuous loop. Part 4 of this series wraps up with a collection of
shell one-liners that perform useful functions. |
|
Tutorial |
|
20 Feb 2007 |
|
| |
Linux tip: Bash test and comparison functions
Are you confused by the plethora of testing and comparison options in
the Bash shell? This tip helps you demystify the various types of file,
arithmetic, and string tests so you will always know when to use test,
[ ], [[ ]], (( )), or if-then-else constructs. |
|
Articles |
|
20 Feb 2007 |
|
| |
Linux tip: Printing DVI files with CUPS
Have you ever tried to print DVI or other files in Linux and
gotten an "unsupported format" message? This tip shows you how to combine
existing tools to make a CUPS print filter for printing DVI files. |
|
Articles |
|
07 Feb 2007 |
|
| |
Create uniform namespace using autofs with NFS Version
3 clients and servers
Do you have trouble accessing data exported from multiple file servers?
If so, try using open source implementations of autofs and Lightweight
Directory Access Protocol (LDAP), with Network File System (NFS) Version
3, to access data under the same global mount point. In this article,
study and compare five different methods to create a uniform namespace
using autofs. A handy table with a comparative evaluation is available
to help you choose the best technique for your scenario. |
|
Articles |
|
30 Jan 2007 |
|
| |
Delve into UNIX process creation
Examine the life cycle of a process so that you can relate what you
see happening on your system to what's going on within the kernel. System
administrators must know how processes are created and destroyed within
the UNIX(R) environment in order to understand how the system fits together
and how to manage misbehaving processes. Similarly, developers must
understand the UNIX processes model in order to write solid applications
that run unattended and won't cause problems for system administrators. |
|
Articles |
|
03 Jan 2007 |
|
| |
IBM Cluster Systems Management: Installing the Webmin
tool for Web access
Learn to install and use the Webmin UNIX(R) system administration tool
so you can use a standard Web interface to remotely manage a clustered
environment This article is an update to the 2005 developerWorks article
about the IBM Cluster Systems Management tool. |
|
Articles |
|
22 Dec 2006 |
|
| |
System Administration Toolkit: Get the most out of
zsh
Examine key parts of the Z shell (zsh) and how to use it's features
to ease your UNIX(R) system administration tasks. zsh is a popular alternative
to the original Bourne and Korn shells. It provides an impressive range
of additional functionality, including improvements for completing different
commands, files, and paths automatically, and for binding keys to functions
and operations. |
|
Articles |
|
19 Dec 2006 |
|
| |
System Administration Toolkit: Get the most out of
bash
Ease your system administration tasks by taking advantage of key parts
of the Bourne-again shell (bash) and its features. Bash is a popular
alternative to the original Bourne and Korn shells. It provides an impressive
range of additional functionality that includes improvements to the
scripting environment, extensive aliasing techniques, and improved methods
for automatically completing different commands, files, and paths. |
|
Articles |
|
12 Dec 2006 |
|
| |
UNIX tools for exploring object files
The programs that run on a UNIX(R) system follow a careful design known
as the object file format. Learn more about the object file format and
the tools that you can use for exploring object files found on your
system. |
|
Articles |
|
21 Nov 2006 |
|
| |
System Administration Toolkit: Swap space management
and tricks
Configure your swap space (including adding space in an emergency) to
get the most out of your system. In this article, you'll learn how to
monitor your system to determine an effective swap space figure as well
as examine methods for using swap space for more than just secondary
random access memory (RAM). |
|
Articles |
|
31 Oct 2006 |
|
| |
Tunneling with SSH
Use OpenSource tools, such as Secure Shell (SSH), PuTTY, and Cygwin,
to create secure connections to almost any resource you need to access.
Current information on SSH tunneling and setup is fragmented and limited
to specific applications, or it is written at a system administrator's
level. With increasing security needs, the addition of boundary firewalls,
and tightening of the number of allowed network ports, users need a
method that is simple to configure, easy to operate and, above all,
secure to accomplish day-to-day tasks and access the services that they
have become accustomed to. This article describes the setup of a simple
SSH client connecting to an AIX(R)- or Linux(R)-based SSH server
that allows a typical, technically literate individual the ability to
set up, configure, and operate a flexible means of tunneling data and
services over the SSH service. |
|
Articles |
|
17 Oct 2006 |
|
| |
Run commands sequentially across a cluster from a
UNIX server, Part 1: Secure Shell (SSH)
Configure Secure Shell (SSH) on IBM System p(TM) and System x(TM) computers
so the UNIX(R) server can access a remote server without a password. |
|
Articles |
|
21 Sep 2006 |
|
| |
Get to know NetBSD
NetBSD runs on more hardware platforms than any other UNIX(R) derivative
due to smart design decisions and a commitment to portable code. Whether
you're porting an operating system to a proprietary embedded system
or looking for stability and compatibility across hardware platforms
in the lab, NetBSD and its open license is a compelling alternative
to Linux(R) and the GNU Public License (GPL). |
|
Articles |
|
29 Aug 2006 |
|
| |
Port Fortran applications
Discover how to port Fortran-based High Performance Computing applications,
such as computational fluid dynamic (CFD) modeling, weather modeling,
and linear algebra packages, using IBM XL compilers and gnu compilers
on large clusters. The solutions in this article are equally applicable
in all types of porting work in Fortran or any UNIX(R)- or Linux-based
systems. Though C/C++ and other programming languages are popular, with
strong features and widespread use, Fortran is still the favorite for
the scientific and engineering community because of its performance. |
|
Articles |
|
29 Aug 2006 |
|
| |
System Administration Toolkit: Standardizing your
UNIX command-line tools
Examine methods for standardizing your interface to simplify movements
between different UNIX(R) systems. If you manage multiple UNIX systems,
particularly in a heterogeneous environment, then the hardest task can
be switching between the different environments and performing the different
tasks while having to consider all of the differences between the systems.
This article does not cover specific differences, but you'll look at
ways that can provide compatible layers, or wrappers, to support a consistent
environment. |
|
Articles |
|
22 Aug 2006 |
|
| |
System Administration Toolkit: Backing up key information
Most UNIX(R) administrators have processes in place to back up the data
and information on their UNIX machines, but what about the configuration
files and other elements that provide the configuration data your machines
need to operate? This article provides detailed information on techniques
for achieving an effective and efficient backup system for these key
files. |
|
Articles |
|
15 Aug 2006 |
|
| |
Take a closer look at OpenBSD
OpenBSD is quite possibly the most secure operating system on the planet.
Every step of the development process focuses on building a secure,
open, and free platform. UNIX(R) and Linux(R) administrators
take note: Without realizing it, you probably use tools ported from
OpenBSD every day. Maybe it's time to give the whole operating system
a closer look. |
|
Articles |
|
08 Aug 2006 |
|
| |
System Administration Toolkit: Managing NIS services
for authorizations
Examine how to set up, configure, and update a Network Information System
(NIS) installation for sharing information, and learn how NIS can be
merged with other solutions, such as files and Domain Name System (DNS),
to provide subnet, network, and worldwide data sharing facilities. In
a large UNIX(R) network, the ability to share information among the
many systems helps to alleviate many problems, such as sharing permissions
across different systems with Network File System (NFS), or simply providing
a single login for the entire network. |
|
Articles |
|
01 Aug 2006 |
|
| |
System Administration Toolkit: Migrating and moving
UNIX directory trees
Occasionally, you need to copy around an entire UNIX(R) directory tree,
either between areas on the same system or between different systems.
There are many different methods of achieving this, but not all preserve
the right amount of information or are compatible across different systems.
This article discusses the various options available for UNIX and how
best to make them work. |
|
Articles |
|
25 Jul 2006 |
|
| |
System Administration Toolkit: Migrating and moving
UNIX filesystems
Learn how to transfer an entire file system on a live system, including
how to create, copy, and re-enable the new file system. If you have
a UNIX(R) disk or system failure or simply fill up your file system,
then you need to create a new partition and file system and copy over
the contents. You might even need to mount the new partition in place
to preserve the location of vital files and components. To add further
complications, you need to do this on a live system, where you'd need
to preserve file permissions, ownership, and possibly named pipes and
other components. Effectively transferring these components and retaining
all of this information is a vital part of the migration process. |
|
Articles |
|
03 Jul 2006 |
|
| |
System Administration Toolkit: Monitoring disk space
and usage
Look at methods for determining disk usage across multiple UNIX(R) systems
and how to create a simple warning system to alert you of potential
problems. Keeping an eye on your file systems and ensuring they don't
fill up is a trivial, but vital, process in the day-to-day management
of your UNIX systems. In this article, you'll look at methods for keeping
an eye on disk space, discovering which files, users, or applications
are using up the most space, and how to make use of quotas and other
solutions to find the information you need. |
|
Articles |
|
13 Jun 2006 |
|
| |
IBM DB2 Enterprise 9 performance with POWER5+ and
AIX 5L multipage support
Learn how IBM DB2 9 automatically exploits the 64-kilobyte page support
in AIX 5L to deliver high performance for database applications on this
platform. This article talks about the DB2 9 for Linux, UNIX,
and Windows exploitation of multiple page sizes, and shares some performance
results as measured on IBM POWER5+ processor-based systems running IBM
AIX 5L. |
|
Articles |
|
08 Jun 2006 |
|
| |
System Administration Toolkit: Monitoring a slow system
When your UNIX(R) system runs slow, it is vital that you discover what
the problem is as quickly as possible so you can get your system back
into the normal operating mode. There are many causes for a slow system,
but actually identifying the problem can be exceedingly difficult. In
this article, study examples of how to identify and diagnose the cause
of your slow running UNIX system to get your machine running properly
again. |
|
Articles |
|
07 Jun 2006 |
|
| |
Basic UNIX filesystem operations
Take advantage of the readdir() and stat() functions to run through
the entries of a directory. Because of the plethora of files and directories
on a UNIX(R) system, you're going to need to know how to process directory
entries using the readdir() function and extract information about those
entries using the stat() function. These basic file system operations
can serve you well in your UNIX programming career, allowing you to
easily discover and read files, directories, and symbolic links on your
UNIX system. |
|
Articles |
|
23 May 2006 |
|
| |
Fun with strace and the GDB Debugger
Programming a UNIX system can be fun as well as educational. With the
UNIX strace tool and GDB, the GNU Project Debugger, you can really dig
deep into the functionality of your system and learn a lot about the
various programs that comprise it. Using both tools in concert can be
a rewarding experience as you look under the hood of your UNIX machine. |
|
Articles |
|
11 May 2006 |
|
| |
Performance tuning UNIX systems
Be nice to your computers and examine some general guidelines for tuning
server performance. A computer is like an employee who does tasks for
you -- it's a good idea to keep from overburdening them. One way to
keep this from happening is to carefully tune the processes that run
on it. This article provides some simple performance tuning steps using
the UNIX nice commands. |
|
Articles |
|
03 May 2006 |
|
| |
System Administration Toolkit: Time and event management
Automating your administration tasks can save you a lot of time, and
UNIX(R) incorporates systems to automate the process for you. In this
article, you'll look at the best methods for using these systems, including
how to monitor and track their execution and output and how to schedule
complex events. |
|
Articles |
|
02 May 2006 |
|
| |
Make UNIX and Linux work together
Examine how to use the Network Information Service (NIS) to share core
databases between Linux(R) and UNIX(R), and how to use the Network
File System (NFS) to share file systems, both with direct links and
through the automounter. Although UNIX and Linux are similar,
there are some differences between the two that can complicate the process
of integrating the two systems. Both, for example, share the same authentication
system, but most systems are also standalone. Sharing this authentication
information enables you to provide a single sign-on (SSO) functionality
to any of the servers in your network. |
|
Articles |
|
18 Apr 2006 |
|
| |
Using ReiserFS with Linux
Take a look at the ext2 (second extended file system), ext3 (third extended
file system), and Reiser4 file systems and discover how to create your
own Reiser4 file system. The most commonly used file system, ext2, is
a traditional UNIX(R)-style file system that doesn't mix well with modern
hard drive sizes. The ext3 file system adds journalling, but not much
else. If you want something really advanced, you might want to check
out the current Reiser4 file system. |
|
Articles |
|
04 Apr 2006 |
|
| |
Retool your Linux skills for commercial UNIX
Examine how to best migrate your Linux(R) skills to take advantage
of AIX(R) and Solaris. Linux is all the rage, but what if you
have experience in Linux and need to apply it to a commercial
UNIX(R) environment? UNIX and Linux are similar, and many of
the same principles exist; there is a shell, root is still all powerful,
and many of the tools and applications are the same. But how do you
cope with understanding the nuances and differences? |
|
Tutorial |
|
30 Mar 2006 |
|
| |
Advanced techniques for using the UNIX find command
Explore the vast terrain of the UNIX(R) file system with the find command.
One of the most powerful and useful commands in the UNIX programmer's
repertoire is find. All flavors of UNIX have file systems that can contain
thousands of files of many different types. With so many choices, locating
a specific file, or set of files, can be difficult. The find command
makes this task easier in many ways. |
|
Articles |
|
28 Mar 2006 |
|
| |
Solve application problems with tracing
Peer into the behavior of an application with truss. When an application
doesn't work as expected, you typically look at application and system
logs as a first recourse. But when logs don't help, UNIX(R) provides
a powerful set of tools that you can use to trace the application while
it runs. Armed with these traces and a bit of knowledge about UNIX,
you can easily solve your application problems. |
|
Articles |
|
21 Mar 2006 |
|
| |
Build UNIX software with Eclipse
Become more productive with your own code and others by utilizing Eclipse's
syntax highlighting, code completion, and other amenities. Eclipse is
an excellent open source IDE and has many helpful features. It runs
on any UNIX(R) platform with a Java(TM) Runtime Environment (JRE) (Version
1.4 or newer) and an SWT port, such as Linux(R), Solaris, AIX(R),
and HP-UX. It's easy enough to start a new project using Eclipse or
to import an existing Eclipse project, but how do you bring existing
code into the IDE? And what if you need to get an existing project compiling
right away without modifying its existing makefile or configure script
-- the most common ways of building UNIX software? Read along for the
answer to all of these questions. |
|
Articles |
|
14 Mar 2006 |
|
| |
Differentiating UNIX and Linux
Investigate the areas where UNIX(R) and Linux(R) converge in
terms of functionality, environment, usability, and also those areas
where UNIX and Linux differ. Many refer to Linux as a
UNIX-like operating system. It is an open source operating system that
has many of the same principles and ideals as UNIX, but it is not a
true UNIX operating system like Solaris, AIX(R), HP-UX, and others.
This article covers a range of aspects, from the core technical elements,
such as kernel and filesystem support, to application tools, availability,
and the differences in how to administer them. |
|
Articles |
|
14 Mar 2006 |
|
| |
Effective management of system logs
Provide solid information resources to decision makers. Discover a simple,
but useful, application of the combined processing capabilities of awk
and XML that you can use to present UNIX(R) system data in a reader-friendly
form suitable for posting to the company intranet or Internet. UNIX
generates useful system performance, usage, cost, and related data that
management and other interested stakeholders can use. |
|
Articles |
|
07 Mar 2006 |
|
| |
nmon performance: A free tool to analyze AIX and Linux
performance
This free tool gives you a huge amount of information all on one screen.
Even though IBM doesn't officially support the tool and you must use
it at your own risk, you can get a wealth of performance statistics.
Why use five or six tools when one free tool can give you everything
you need? |
|
Articles |
|
27 Feb 2006 |
|
| |
IBM NFS/DFS Authentication Gateway
Take advantage of the new features Network File System Version 4 (NFS
Version 4) now has to offer. With the ever-growing storage needs in
large enterprises and NFS implementations offering more and more features,
it makes business sense for enterprises to migrate to NFS Version 4.
In this article, we discuss the need and various strategies for migrating
from the IBM Distributed Computing Environment (DCE)/Distributed File
System(TM) (DFS(TM)) infrastructure to NFS Version 4 on AIX(R) and
Linux(R). |
|
Articles |
|
26 Jan 2006 |
|
| |
A comparison of security subsystems on AIX, Linux,
and Solaris
Learn how to apply a strategy for implementing a single identification
and authentication (I and A) framework across a heterogeneous, multi-platform
environment. An I and A system provides a layer of abstraction between
a user application and the implementation of any authentication or identification
functions it needs to perform. |
|
Articles |
|
13 Oct 2005 |
|
| |
How to install AIX 5L
Get step-by-step instructions for a number of generic AIX(R) system
setup procedures. These instructions should work for any of the AIX(TM)
5L releases. Variations, if any, should be minor. |
|
Articles |
|
31 Aug 2005 |
|
| |
Split mirror using suspended I/O in DB2 Universal
Database
Looking for a high availability solution for DB2 UDB? This article provides
a visual explanation of split mirror using suspended I/O for a DB2 UDB
database and explains the details of various implementation scenarios.
Learn how suspended I/O works and how it can be used to implement reliable
high availability database solutions. |
|
Articles |
|
25 Aug 2005 |
|
| |
POWER5 virtualization: How to set up the IBM Virtual
I/O Server
Get more information on the virtualization capabilities of IBM(R) POWER5(TM)
servers. Follow along as Nigel Griffiths illustrates how to set up and
use the IBM Virtual I/O Server (VIO Server). In his previous article,
"POWER5 Virtualization: How to set up the SUSE Linux Virtual
I/O Server", he described the benefits of the IBM POWER5 servers and
provided examples on how to set up the environment for pSeries(R) p5
and eServer(TM) OpenPower(TM) systems. |
|
Articles |
|
29 Jun 2005 |
|
| |
Guide to porting from Solaris to Linux on x86
Solaris is considered one of the closest flavors of UNIX to Linux,
but for migration purposes, there can be differences between the two
in the areas of memory mapping, threading, or natural language support
(to name just a few). This porting guide gives you advice on planning
for the port to Linux/x86, and helps you understand the differences
in the development environment and architecture. |
|
Articles |
|
29 Apr 2005 |
|
| |
Dual boot Linux and AIX
There may be times when you find it necessary to develop in both the
Linux and AIX operating environments. This article describes
dual booting Linux and AIX on the same IBM eServer pSeries (including
eServer p5), eServer i5, or eServer OpenPower server. |
|
Articles |
|
25 Apr 2005 |
|
| |
Serving X from a Windows laptop
This article is an update to a previous article about working on UNIX(R)
through your laptop. The author describes how to run the same environment
from your laptop as you do when directly connected to a UNIX server's
console terminal. The article discusses how to use X clients, installing
uwin, and running X clients through a VPN. |
|
Articles |
|
27 May 2004 |
|
| |
Using Samba as a primary domain controller
Open source Samba turns a UNIX(R) or Linux(R) system into a file
and print server for Microsoft(R) Windows(R) network clients. Tom Syroid
dishes up a juicy tutorial that shows you how to configure Samba as
the primary domain controller on an xSeries(R) server. |
Is this the end of the OSS "Sell the Support" mode
This is not going to be an easy battle for Redhat. I suspect they are going to have to find a new business model if they are to survive.