Pages

Selasa, 20 November 2012

how to create a SQUID for FreeBSD

SQUID
-----
langkah-langkah installasi squid:

1. download file squid-2.5.STABLE1.tar.gz (cari di google.com terserah versi berapa saja)
2. extract. tar fxzv squid-2.5.STABLE1.tar.gz
3. masuk ke direktori squid. cd squid-2.5.STABLE1
4. kernel di tambahkan

options MSGMNB=81920      # max # of bytes in a queue
options MSGMNI=82          # number of message queue identifiers
options MSGSEG=4098        # number of message segments per queue
options MSGSSZ=128         # size of a message segment
options MSGTQL=1024      # max messages in system

options SHMSEG=32           # max shared mem id's per process
options SHMMNI=64           # max shared mem id's per system
options SHMMAX=4194304  # max shared memory segment size (bytes)
options SHMALL=8192        # max amount of shared memory (pages)

4. ./configure --enable-storeio=diskd,ufs --enable-delay-pools --enable-ipf-transparent
5. make all install

setelah selesai, maka squid akan berada di direktory /usr/local/squid

masuk ke direktory configurasi squid.

edit squid.conf. pico squid.conf

yg penting disini adalah
------------------------------------------------------------------------
# direktory cache dan log
cd /usr/local/squid/etc
cache_dir ufs /usr/local/squid/cache 1024 16 256
cache_access_log /usr/local/squid/logs/access.log
cache_log /usr/local/squid/logs/cache.log

how to create a dns for FreeBSD

DNS
---
#edit /etc/named/named.conf
options {
        directory "/etc/namedb";
};
zone "." {
        type hint;
        file "named.root";
};
zone "0.0.127.IN-ADDR.ARPA" {
        type master;
        file "localhost.rev";
};
zone "ardix.hs.id" {
        type master;
        file "db.domain";
};
zone "9.10.10.in-addr.arpa" {
        type master;
        file "db.ardix";
};

Bit Torrent Tutorials

The first things you need to know about using Bit Torrent:
-- Bit Torrent is aimed at broadband users (or any connection better than dialup).
-- Sharing is highly appreciated, and sharing is what keeps bit torrent alive.
-- A bit torrent file (*.torrent) contains information about the piece structure of the download (more on this later)
-- The method of downloading is not your conventional type of download. Since downloads do not come in as one
big chunk, you are able to download from many people at once, increasing your download speeds. There may be
100 "pieces" to a file, or 20,000+ pieces, all depending on what you're downloading. Pieces are usually small (under 200kb)
-- The speeds are based upon people sharing as they download, and seeders. Seeders are people who constantly
share in order to keep torrents alive. Usually seeders are on fast connections (10mb or higher).

In this tutorial, I will be describing it all using a bit torrent client called Azureus. This client is used to decode the .torrent files into a useable format to download from other peers. From here on out, I will refer to Bit Torrent as BT.

10 reasons why PCs crash U must Know

Fatal error: the system has become unstable or is busy," it says. "Enter to return to Windows or press Control-Alt-Delete to restart your computer. If you do this you will lose any unsaved information in all open applications."

You have just been struck by the Blue Screen of Death. Anyone who uses Mcft Windows will be familiar with this. What can you do? More importantly, how can you prevent it happening?

1 Hardware conflict

The number one reason why Windows crashes is hardware conflict. Each hardware device communicates to other devices through an interrupt request channel (IRQ). These are supposed to be unique for each device.

For example, a printer usually connects internally on IRQ 7. The keyboard usually uses IRQ 1 and the floppy disk drive IRQ 6. Each device will try to hog a single IRQ for itself.

If there are a lot of devices, or if they are not installed properly, two of them may end up sharing the same IRQ number. When the user tries to use both devices at the same time, a crash can happen. The way to check if your computer has a hardware conflict is through the following route:

* Start-Settings-Control Panel-System-Device Manager.