Posted on January 4, 2009 by
Riyesh .
HylaFAX is the leading fax server for Unix-like computer systems. It uses a client-server design and supports the sending and receiving of faxes.
Prerequisites
C++ Compiler
C++ Runtime Libraries
libtiff
Ghostscript
AWK
MTA (ex: postfix, qmail, sendmail, exim)
Installation
Download the lates source package from following url.
cd /usr/src
wget http://prdownloads.sourceforge.net/hylafax/hylafax-5.2.8.tar.gz?download
Extract the source package
tar zxvf hylafax-5.2.8.tar.gz
Compiling and installation
cd hylafax-5.2.8
Configure the …
Posted on January 3, 2009 by
Riyesh .
A sample BASH CGI script for collecting IPs of your colleagues in your network.
Prerequisites
1) apache/cgi configuration
2) a Mysql installation
Then create script “getip.sh” under “/var/www/cgi-bin/” ( set location of cgi-bin directory as per the apache configuration)
#!/bin/bash #Getting IP address CGI-BASH-script#Jadu Saikia http://unstableme.blogspot.com/ #MySQL settings
# MHOME= ( location of mysql …
Posted on January 2, 2009 by
Riyesh .
Required packages
Apache
OpenSSL
j2sdk
jakarta-tomcat
jakarta-ant
jakarta-tomcat-connectors(mod_jk)
Configure Environment Variables
Edit and add the lines below to “/etc/profile”
JAVA_HOME=/usr/local/java/java
CATALINA_HOME=/usr/local/tomcat
PATH=$JAVA_HOME/bin:$PATH:$HOME/bin:/sbin:/usr/sbin
CLASSPATH=$CATALINA_HOME/bin/bootstrap.jar:$JAVA_HOME/lib/tools.jar:$CATALINA_HOME/common/lib/servlet.jar:/usr/local/pgsql/share/java/postgresql.jar:../lib/struts.jar:.
Now add the PATH JAVA_HOME CATALINA_HOME & CLASSPATH if any aren’t in the export line
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC JAVA_HOME CATALINA_HOME CLASSPATH
Install Java
mkdir /usr/local/java
cd /usr/local/java
sh jdk-1_5_0_04-linux-i586.bin
The jdk directory is then extracted
mv jdk-1_5_0_04 /usr/local/java
ln -s jdk-1_5_0_04 java
Now the …
Posted on January 1, 2009 by
Riyesh .
Extracting RPM
We can try this with apache rpm
cd /usr/src
wget http://www.apache.org/dist/httpd/binaries/rpm/i386/httpd-2.0.59-1.i386.rpm
extract rpm using rpm2cpio command
rpm2cpio httpd-2.0.59-1.i386.rpm | cpio -idmv
rm -rf httpd-2.0.59-1.i386.rpm
Output:
./etc/…
./usr/..etc..
./var/…etc.
list the location
ls
Output:
etc var usr