UNIX/Linux

Enabling a serial console in CentOS

I have a headless LINUX server (CentOS 5.5) attached with a serial cable to a Windows client and I want to use PuTTY to connect to the console on the LINUX host.  Here are the file modifications I made.

[root@linux etc]# diff inittab.201105081915 inittab
18c18
< id:5:initdefault:
---
> id:3:initdefault:
42a43,44

Configuring a TrendNet TEW-623PI in CentOS

I recently installed CentOS 5.5 on an old Celeron-D with a TrendNet TEW-623PI Wireless N PCI adapter.  It took some poking about on google and centos.org to figure out how to make it work with my access point.  Here's the list of modifications I had to make. To give credit where credit is due, some of this is based on "http://wiki.centos.org/HowTos/Laptops/WpaSupplicant".

Assigning to a List of Variables in Bash

I have some files that need parsed and the fields assigned into variables using only bash and other builtin UNIX commands (not Perl).  The file is colon delimitted and has the following columns:

{group}:{gid}:{host}

Perl has a nice little construct that lets you do something like this:

The M4 Macro Processor

http://www.scs.stanford.edu/~reddy/links/gnu/m4.pdf

Authors: 

Brian W. Kernighan
Dennis M. Ritchie

 

Publisher: 
Bell Laboratories
Publish Date: 
1977

xargs

Processing a list with one argument per line

(such as a list returned by find . -name "<pattern>")

Syndicate content