Perl’s LWP package is a great way to get web pages and display the content of the resulting http header. Out of the box it does not support https, the following describes how to configure perl to access https pages.
The first thing to do is to setup perl to manage modules using CPAN. As root run:
perl -MCPAN -e shell \;
run through the configuration if you haven’t done so.
Inside the CPAN shell run:
This will install all then necessary modules for accessing websites. Make sure you select y for GET, POST and HEAD, these are great scripts for getting at web page information from the command line.
If you don’t have openssl-devel installed on your system you will need to install it. Check using:
rpm -q openssl-devel
Install openssl-devel with up2date:
Install Crypt-SSL with perl:
perl -MCPAN -e shell \;
inside the shell run:
Out of the box the Opera web browser is not setup to run jnlp files, therefore java webstart will not run properly. To fix this a new mime-type needs to be added to the browser. Follow instructions at:
Add the following entry to the VirtualHost
allow from all
AuthName “Staff only”
On Mac OS X when opening a new IE window from a site running under https there is no content in the window and the following error message is displayed:
This can be correct by changing the SSLSessionCache in the Apache httpd.conf file.
The error shows up when SSLSessionCache is set to none. If it is changed to:
where is where apache is installed.
This will correct the problem.
On RedHat Enterprise 3 Linux on VMWare each interface link is always down.
The following needs to be added to all the ifcfg-eth in /etc/sysconfig/networking-scripts/
See http://www.vmware.com/support/guestnotes/doc/guestos_redhat90.html for more information.
The problem is that the vmx file is not executable. Go to the VM directory and run:
chmod 755 *.vmx
Then restart the vmware server, output will then be displayed on the console.
Seems that VMWare server adds a new service to the /etc/service file. If you have SELinux running the file’s security context changes.
To fix run:
For more information see
To mount an ISO file in linux so it turns up as a directory structure do the following:
mount -o loop -t iso9660 filename.iso /mnt/iso
Simple as that.
Excellent Howto for setting up Tomcat5 from jpackage.org on RedHat Fedora Core3.
But required JDK 1.4.2 to be used in place of 1.5
rpm -Uvh java-1.4.2-sun-1.4.2.07-1jpp.nosrc.rpm
Download the self extracting version j2dsk-1_4_2_07-linux-i586.bin from http://java.sun.com/products/archive/j2se/1.4.2_07/index.html
Moved it into /usr/src/redhat/SOURCE
rpmbuild -ba java-1.4.2-sun.spec
Just need to install java and java-devel
rpm -Uvh –nodeps java-1.4.2-sun-1.4.2.07-1jpp.i586.rpm java-1.4.2-sun-devel-1.4.2.07-1jpp.i586.rpm
Need to use the –nodeps flag since the spec generates some dependicies that are only for Solaris.
After installing jta need to install xml-commons-apis before installing tomcat5
yum -y install xml-commons-apis
yum -y install tomcat5 tomcat5-admin tomcat5-webapps
To create key only authentication the users public key needs to be put on the server in their home directory under .ssh/authorizated_keys.
Create the users private key on their workstation:
# ssh-keygen -t rsa
Send the private key to the server:
# cat .ssh/id_rsa.pub | ssh newmachine “cat >> .ssh/authorized_keys”
Make sure the authorized_keys file it set to the correct permissions.
Login to the server and change the permissions.
chmod 644 .ssh/authorized_keys
Configured sshd to use the key autentication and disable password authentication
# vi /etc/ssh/sshd_config
Make sure the following lines are in the file:
Save the file.
Test by connecting from the users workstation. They should be logged in right away without the need for a password. Try to login from the server, there should be an error message.
See http://open.bsdcow.net/tutorials/ssh_pubkey_auth for more information.