Wednesday, April 25, 2007

Using a USB external hard disk for backups with Linux

In this article, the writer show how to set up a recently purchased USB external hard disk drive as a backup drive for a Linux desktop PC.delete the default FAT32 partition, create a new partition, make a reiserfs filesystem, and show how to use rsync to backup your important data.

Sunday, April 22, 2007

Samba Setup Guide for Linux.

Samba can be used to allow connectivity between Linux and Windows(95,98,NT,2000). Samba can be used to share printers, share directories, connect to an NT domain, and many other useful features. However, this tutorial explains the steps involved in basic configuring Samba for file and print sharing.

Tuesday, April 17, 2007

Parsing Options in Shell, Perl and C.

Options parsing can be difficult at times to say the least. There exist a number of common methods and libraries to assist with options parsing. In this text, a look at writing option and argument parsing homespun and with a little help.

Thursday, April 12, 2007

HOWTO Compile a Kernel Manually -- Zenwalk kernel.

To compile your own kernel, you can use the stock zenwalk sources (available through netpkg, and corresponding to the latest official Zenwalk kernel) or vanilla sources (available on kernel.org. Download the .tar.bz2 archives if possible, not the tar.gz - that way you save kernel.org some bandwidth. Basically, the Zenwalk kernel (at least up to 2.6.15.4) is a vanilla kernel with reiser4 patches. If you don't use reiser4 on one of your partitions, you can safely take a vanilla kernel. If you do, and want other kernel sources, not available via netpkg, get the vanilla kernel and download the reiser4 patch from Namesys for the 2.6 kernels.

If you use kernel sources from netpkg, you can skip the part about extracting (and patching). read full article.

Sunday, April 08, 2007

Write useful Perl programs on the command line?

Read perlrun for more information. Some examples follow.
(These assume standard Unix shell quoting rules.)

# sum first and last fields
perl -lane 'print $F[0] + $F[-1]' *

# identify text files
perl -le 'for(@ARGV) {print if -f && -T _}' *

# remove (most) comments from C program
perl -0777 -pe 's{/\*.*?\*/}{}gs' foo.c

# make file a month younger than today, defeating reaper daemons
perl -e '$X=24*60*60; utime(time(),time() + 30 * $X,@ARGV)' *

# find first unused uid
perl -le '$i++ while getpwuid($i); print $i'

# display reasonable manpath
echo $PATH | perl -nl -072 -e '
s![^/+]*$!man!&&-d&&!$s{$_}++&&push@m,$_;END{print"@m"}'

is there a Perl shell?

The psh (Perl sh) is currently at version 1.8. The Perl Shell is a shell
that combines the interactive nature of a Unix shell with the power of
Perl. The goal is a full featured shell that behaves as expected for
normal shell activity and uses Perl syntax and functionality for
control-flow statements and other things. You can get psh at
http://sourceforge.net/projects/psh/ .

Zoidberg is a similar project and provides a shell written in perl,
configured in perl and operated in perl. It is intended as a login shell
and development environment. It can be found at http://zoidberg.sf.net/
or your local CPAN mirror.

The Shell.pm module (distributed with Perl) makes Perl try commands
which aren't part of the Perl language as shell commands. perlsh from
the source distribution is simplistic and uninteresting, but may still
be what you want.

--------------------------------------------------------------------

The perlfaq-workers, a group of volunteers, maintain the perlfaq. They
are not necessarily experts in every domain where Perl might show up,
so please include as much information as possible and relevant in any
corrections. The perlfaq-workers also don't have access to every
operating system or platform, so please include relevant details for
corrections to examples that do not work on particular platforms.
Working code is greatly appreciated.

If you'd like to help maintain the perlfaq, see the details in
perlfaq.pod.

--
Posted via a free Usenet account from http://www.teranews.com

Thursday, April 05, 2007

Unix shell project.

Today im on a new project, a Unix shell project, its about everyone who's yelling to learn something about opensourse software, a unix shell server where you can get a free shell account -- i'll keep you updated day by day about this.

Monday, April 02, 2007

Dell gives the go-ahead for Linux

Computer giant Dell will start to sell PCs preinstalled with open source Linux operating systems, the firm has said.

The second largest computer maker in the world said it had chosen to offer Linux in response to customer demand. read more

Sunday, April 01, 2007

Unix Manual Page for gcc .

A lot of friends keep asking me about GCC - the GNU compiler collection check this for the official website - also try on man gcc or this site.

uptime