Pages

Friday, August 5, 2011

Installing a Proxy Server for my internet cafe

because of the limited bandwidth in my internet cafe, demanded that I can save my internet bandwidth. That requires a proxy server that can do caching content for many sites.

I started by installing ubuntu server on my old computer. I use a Pentium III class computer with 512MB of RAM and 80 GB of Hard drive.

I'm using Ubuntu Server 10.04 Lucid to create a Proxy Server.



Creating hard disk partitions
partition : /boot
file system : ext4
size : 256 MB

partition : / (root)
file system : ext4
size : 16 GB

partition : swap area
size : 2 GB

partition : /cache
file system : ext4
size : 61 GB

after base system installation is complete, proceed with repository update.
run this command on console :
sudo apt-get update

then I proceed with the installation of squid proxy server

# aptitude install squid squidclient squid-cgi

# aptitude install libzip-dev sharutils ccze libzip-dev automake1.9 gcc build-essential

# wget http://untuk-kita-semua.googlecode.com/files/LUSCA_FMI.tar.gz

# tar -zxvf LUSCA_FMI.tar.gz

# cd LUSCA_FMI

# ./bootstrap.sh

# cat /proc/cpuinfo

# CHOST="i686-pc-linux-gnu"
# CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
# CXXFLAGS="${CFLAGS}"

# ./configure --prefix=/usr --exec_prefix=/usr --bindir=/usr/sbin --sbindir=/usr/sbin --libexecdir=/usr/lib/squid --sysconfdir=/etc/squid --localstatedir=/var/spool/squid --datadir=/usr/share/squid --enable-http-gzip --enable-async-io=24 --with-aufs-threads=24 --with-pthreads --enable-storeio=aufs --enable-linux-netfilter --enable-arp-acl --enable-epoll --enable-removal-policies=heap --with-aio --with-dl --enable-snmp --enable-delay-pools --enable-htcp --enable-cache-digests --disable-unlinkd --enable-large-cache-files --with-large-files --enable-err-languages=English --enable-default-err-language=English --with-maxfd=65536

# make

# make install

FINISH ^^

0 comments:

Post a Comment

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | cheap international calls