Installing and Configuring Squid Proxy Cache Server

Squid is a proxy caching server. You can use squid in effective way, so that you can control the internet access over your network.

In Fedora, you can install the squid proxy cache server by just typing the following command, its available in the fedora main repo itself.

$ sudo yum install squid

Before starting the squid server you need to configure it with the help of this configuration file in ‘/etc/squid/squid.conf’.

In this scenario, I have a proxy server running in background which will respond to specific ip’s (LAN) and forward to a defined gateway. Using the gateway, all the hosts from my all LAN can reach internet.

What my system (proxy server) has to do is, to listen in a specified port ’3128′ and forward the requests to the gateway.

My Gateway : 10.2.4.85
My IP Address : 192.168.1.4

Add the following things to that ‘squid.conf’ :
>>
acl localnet src 192.168.1.0/24
http_access allow localnet
http_port 3128
<>
acl RestrictedSites dstdomain “/etc/squid/restricted_sites”
http_access deny RestrictedSites
<<

#cat /etc/squid/restricted_sites
facebook.com
orkut.com
twitter.com
youtube.com

Conflicts in Shared Library

If you are migrated from 32 bit OS (Linux) to 64 bit OS, you may faced some problems with shared libraries. Most of the open source applications are developed in 32 bit OS and ported to 64 bit OS.

More of the people having wrong thought about the use of 64 bit OS. We don’t need 64 bit programs to run on 64 bit OS. Then, you can why we are facing many issues regarding 64 bit shared libraries. This is because of the incompatible use of shared libraries.

That means, you have 32 bit library which depends on 64 bit libraries. This will cause problems.

Recently i faced this issue in fedora 64 bit os, i solved this by installing all required 32 bit shared libraries.

For example : I have libstdc++.i386 and libstdc++.x86_64 shared libraries.
This doesn’t cause any issues. If you are facing any issues or conflicts means, that shared library is not strictly followed the standards of the shared libraries.

Installing and Deploying JBOSS Applications

You can install jboss in your with 7 simple steps :

1) Download the JBOSS from their community site :

http://www.jboss.org/jbossas/downloads.html

I took JBoss 5.1.0-GA.

2) Extract it to your installation directory, say ‘/opt/jboss/’

$ unzip ./jboss-5.1.0.GA.zip -d /opt/jboss

3) Set the environmental variables to make the applications work

export JAVA_HOME=/opt/jdk1.6.0_23
export JBOSS_HOME=/opt/bin/jboss-5.1.0.GA
export PATH=$JAVA_HOME/bin:$PATH

4) Simply start the JBOSS server

$ /opt/jboss/bin/run.sh

5) Pack your applications into war file

$ jar -cvf helloworld.war *.jsp WEB-INF

The above command packs all jsp files into WAR package

6) Copy them into the default deploy directory in Jboss server.

$ cp ./helloworld.war $JBossHome/server/default/deploy/

7) Check it on your browser :

http://localhost:8080/helloworld/helloworld.jsp