Skip to main content

Posts

Showing posts from April, 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.

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.

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 ...

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.