shell

Distributing New SSH Keys Using Rsh On Linux And Unix

Quick and easy shell script to help setup openssl, openssh and zlib, while creating new ssh host keys, network-wide using rsh.

Distributing New SSH Keys Using Rsh On Linux And Unix

Quick and easy shell script to help setup openssl, openssh and zlib, while creating new ssh host keys, network-wide using rsh.

Distributing New SSH Keys Using Rsh On Linux And Unix

Quick and easy shell script to help setup openssl, openssh and zlib, while creating new ssh host keys, network-wide using rsh.

Distributing New SSH Keys Using Rsh On Linux And Unix

Quick and easy shell script to help setup openssl, openssh and zlib, while creating new ssh host keys, network-wide using rsh.

Goosh.org Unix-like Google Command Line [Command Line]

Shell-lovers are going to flip for this one: Goosh.org, which bills itself "the unofficial google shell," puts a Unix-like command line interface to Google on a web page using the magic of Ajax. Head...

Source: Lifehacker

Porting Simple Arithmetic In Bash, Perl and Awk

Translating equivalent arithmetic operations between bash, Perl and awk. Part of an ongoing series on porting code.

Move local CVS repository to RCS

The following is the way to convert existing CVS repository to RCS.
Actually no conversion required;
It works for me; no warrany that it would work for somebody else;

# from /home/rtg/
mkdir for_rcs
cd for_rcs
# CVS_REPO/cvs:/ - is repository created with cervesia
cp -r /home/rtg/CVS_REPO/cvs\:/* .
find ./ -name CVS | xargs rm -rf
for i in `find ./ -type d` ; do cd $i ; mkdir RCS ; mv *,v RCS/ ; cd /home/rtg/for_rcs/ ; done

Ok, at this point I have RCS repository in for_rcs folder.
:)

Source: Roman's blog

rcs + rsync for keeping your files on several machines

I have two GNU/Linux laptops (Xubuntu) and one GNU/Linux desktop (CentOS).

Need to synchronize them to keep the integrity of the information on the machines.

Tried git, but found it too strong too keep my little docs and code snippets.
That way decided to use well known and stable GNU tools rcs and rsync.
man rcs
man rsync are prerequisites ;

Why rcs? Because repository could be synced with code/docs, and it is GNU.
Why rsync? It is GNU solution for syncing files.

Two basic session snippets for usage:

init files for directory:

cd fldr_for_sync
mkdir RCS
# --
rcs -i file # add new file under rcs
# -- it is the same with --
touch another_file; ci anoter_file

basic rsync dir with subdirs; it is not overwrites old files in dest dir;
permissions and links kept;

rsync -avz path_to_fldr_src path_to_dest

Source: Roman's blog

Korn -- an extended shell

Everyone knows what a Linux shell is -- you open up a Linux terminal window (such as Konsole or xterm), type in some commands, and there you are, using your Linux shell. Write your commands to a file, make it executable, run it, and you're a shell programmer. But did you know that there are different shells that you can use, and that each shell operates in a slightly different way?

read more

Protect your server with Deny Hosts

Requiring system accessibility via the Internet poses several problems for system administrators. One problem is allowing access by authorized users with the least amount of complexity on the client computer while keeping the system and its services safe from intruders.

Protect your server with Deny Hosts

Requiring system accessibility via the Internet poses several problems for system administrators. One problem is allowing access by authorized users with the least amount of complexity on the client computer while keeping the system and its services safe from intruders.