WALKTHROUGH Instalasi Squid Proxy pada ArchLinux

Bahan Baku :
Hardware
- Intel Atom D525 AHCI enabled (Most valuable for proxy, Multicore low power)
- 2GB DDR Memory (Minimum)
- 7200 RPM SATA HDD (Minimum)
- 1GB USB Flashdisk untuk instalasi

Software
- ArchLinux Distro
- UNetbootin

Download ArchLinux distro di :
Mirror Kambing

dan download pula UNetbootin

Klik kanan properties pada USB Flashdisk dan rubah volume/disk label menjadi ARCH_201108
Jalankan UNetbootin, pilih Diskimage dan browse pada ISO ArchLinux diatas
Tekan OK untuk memulai proses pengkopian pada USB Flashdisk
Boot PC dengan menggunakan USB Flashdisk diatas

A. INSTALASI

ketik /arch/setup untuk memulai instalasi

Menu Utama

1. Select Source > pilih core-local

2. Set Editor > nano

3. Set Clock > region Asia/Jakarta, set time > localtime

4. Prepare Harddisk

Persiapkan partisi sebagai berikut

/boot 128MB EXT3
/ 4096MB EXT4
/var 4096MB EXT4
2048MB swap
/home 1024MB EXT4
/tmp 1024MB EXT4
/cache1 EXT4
/cache2 EXT4

dst…

untuk cache dir bikin partisi sebesar 80-100GB sesuai kapasitas sisa HDD nya, nantinya akan digunakan hanya 50% dari besar partisi untuk cache

5. Select Packages > base dan base-devel, centang openssh pada Select Package to Install

6. Install Packages lanjut ke proses instalasi, tunggu sampai selesai

7. Configure System, ini adalah konfigurasi utama pada sistem ArchLinux, sesuaikan dengan kondisi jaringan anda

8. Install Bootloader > gunakan GRUB

9. Done, reboot system

Video Tutorial Instalasi ArchLinux 2011

B. UPDATE

Ganti /etc/pacman.d/mirrorlist dengan mirror lokal

 please login or register. simple registration is needed to see the content

Sinkronkan dengan database dan update paket pacman

 please login or register. simple registration is needed to see the content

Download dan instal rng-tools dari AUR

 please login or register. simple registration is needed to see the content

kemudian jalankan perintah

 please login or register. simple registration is needed to see the content

setelah pacman key terinstal, kita bisa hapus paket rng-tools nya

 please login or register. simple registration is needed to see the content

untuk menjalankan full upgrade, jalankan perintah ini

 please login or register. simple registration is needed to see the content

Notes
Jika pada saat upgrade keluar error seperti ini

 please login or register. simple registration is needed to see the content

hapus terlebih dahulu file /etc/profile.d/locale.sh

 please login or register. simple registration is needed to see the content

hapus terlebih dahulu file /etc/mtab

 please login or register. simple registration is needed to see the content

edit /etc/pacman.conf dan beri comments (#) pada baris CheckSpace

Bila ingin memaksimalkan kemampuan pacman, gunakan aria2 untuk mendownload paket

 please login or register. simple registration is needed to see the content

Dan tambahkan baris berikut pada /etc/pacman.conf

 please login or register. simple registration is needed to see the content

Untuk digunakan sebagai proxy (dan monitoring) dengan menginstal paket berikut :

 please login or register. simple registration is needed to see the content

Optimalisasi dan konfigurasi :
Gunakan SVN Client untuk mendownload contoh konfigurasi pada system ArchLinux contoh konfigurasi di SVN ditutup selamanya, maaf

Tambahkan baris berikut pada /etc/security/limits.conf

 please login or register. simple registration is needed to see the content

Untuk optimalisasi EXT4 khususnya partisi cache semisal /dev/sda8 dan /dev/sda9 adalah partisi cache, jalankan perintah berikut :

 please login or register. simple registration is needed to see the content

Kemudian edit /etc/fstab menjadi :

 please login or register. simple registration is needed to see the content

Reboot jika sudah melakukan optimalisasi diatas

Instalasi squid patched

Copy seluruh folder PKGBUILD ke folder /root atau /tmp kemudian jalankan perintah berikut :

 please login or register. simple registration is needed to see the content

Tunggu sampe proses compile selesai, dan lakukan instalasi/update

 please login or register. simple registration is needed to see the content

Chown user proxy ke direktori cache, semisal ada 2 direktori cache1 dan cache2 maka :

 please login or register. simple registration is needed to see the content

Cek konfigurasi squid

 please login or register. simple registration is needed to see the content

Jika tidak ada pesan error maka lanjut dengan pembuatan cache_dir nya

 please login or register. simple registration is needed to see the content

edit pada /etc/conf.d/squid parameternya menjadi

 please login or register. simple registration is needed to see the content

dan edit pula pada /etc/rc.d/squid pada baris berikut menjadi

 please login or register. simple registration is needed to see the content

Menambahkan system monitoring MRTG

1. Upload seluruh direktori core ke /srv/http/mrtg kemudian chmod 755 pada file system dan pingdns agar bisa di eksekusi

2. Tambahkan baris berikut pada /etc/rc.local

 please login or register. simple registration is needed to see the content

Menambahkan fungsi shutdown system hanya dengan menekan tombol power, tanpa harus masuk console

Upload file power pada direktori /etc/acpi/events/ kemudian jalankan daemon acpinya

 please login or register. simple registration is needed to see the content

Setelah itu test dengan menekan tombol power apakah sytem shutdown secara normal

-=Fin=-

Author: ImeR on 16/02/2012
Category: Knowledge Base, Linux/Unix, Squid & Proxy, Tutorial
9 responses to “WALKTHROUGH Instalasi Squid Proxy pada ArchLinux”
  1. windeeyohara says:

    pertamax…..

    ane malah make debian, sementara familiar dengan debian dulu dah…

  2. fuddinet says:

    mantab mbah,, makasih udah dipindah tututznya kesini,,, plus banyak ditambahin detailnya… cipok sek :kiss

  3. arulaisy says:

    ketigax :malu:

    semoga ketularan gantengnya :malus

  4. funsite says:

    :kissing:
    besok nyobain pakek arch ahh:genit:

  5. abyasa says:

    golek rombengan HDD seks_______: :ngacir:

  6. freshnet says:

    hadir mbah :recsel

  7. PlaNET says:

    Pasrah nang mbah Imer ae. hehehe

  8. ping says:

    squid-2.7.STABLE9-2-x86_64.pkg.tar.xz <— filex ko ngga ada

  9. MSN says:

    Wowww!!! Keren!!!

Leave a Reply

*

[+] kaskus emoticons

Last articles

Content Protected Using Blog Protector By: PcDrome.