hamster

Pages

Sabtu, 19 Mei 2012

tugas

Pengertian chipset


Secara fisik, chipset berupa sekumpulan IC kecil atau chips yang dirancang untuk bekerjasama dan memiliki fungsi-fungsi tertentu. Pada sistem hardware komputer, chipset ini bisa terdapat pada motherboard, card-card (kartu-kartu) ekspansi, misalnya pada kartu grafis (video card), atau pada peralatan komputer lainnya. Fungsi chipset pada motherboard tidak sama dengan chipset pada kartu-kartu ekspansi. Begitu pula fungsi chipset pada peralatan komputer lainnya. Masing-masing memiliki fungsi sendiri yang bersifat spesifik. Chipset sebenarnya tidak selalu terdiri dari sekumpulan IC atau sekumpulan chip, kadang-kadang dijumpai hanya terdiri dari sebuah chip saja.
Chipset pada video card berfungsi untuk mengontrol rendering grafik 3 dimensi dan output berupa gambar pada monitor. Sedangkan chipset pada motherboard berfungsi untuk mengontrol input dan output (masukan dan keluaran) yang mendasar pada komputer. Perlu diketahui, bahwa yang dibahas pada bab ini difokuskan pada chipset yang ada pada motherboard, bukan chipset yang ada pada komponen atau perangkat komputer lainnya.




Lebih jelasnya, dapat dikatakan bahwa chipset yang biasa terdapat pada motherboard berfungsi untuk mengatur aliran data dari satu komponen ke komponen lainnya. Misalnya mengarahkan data dari CPU (prosesor) menuju kartu grafis (video card) atau ke sistem memori (RAM), serta mengarahkan aliran data melalui bus PCI, drive IDE dan port I/O. Pada kasus ini, dapat diibaratkan bahwa chipset seakan-akan berfungsi sebagai ‘polisi lalu lintas’ pengatur aliran data pada motherboard di sebuah PC (Personal Computer).
Selain mengatur aliran data, chipset juga ikut menentukan piranti apa saja yang dapat didukung oleh PC tersebut, serta turut menentukan kecepatan FSB (Front Side Bus), bus memori, bus grafis, kapasitas serta tipe memori yang dapat didukung oleh motherboard yang bersangkutan, dan menentukan standart IDE, juga tipe port yang didukung oleh sistem.
Sebenarnya, lebih detail lagi dapat dijelaskan bahwa chipset tradisional pada motherboard terdiri dari dua bagian, yaitu northbridge dan southbridge. Tugas-tugas umum chipset seperti yang telah dijelaskan tadi, dibagi kepada kedua bagian chipset tersebut. Masing-masing bagian chipset (northbridge atau southbridge) mempunyai tugas sendiri-sendiri yang bersifat spesifik dan bekerja sesuai fungsinya.

Asal mula istilah northbridge dan southbridge
Pemunculan istilah northbridge dan southbridge berawal dari kebiasaan dalam menggambar suatu bagan atau peta tentang arsitektur suatu komponen. CPU biasanya diletakkan pada bagian atas (puncak) bagan. Pada suatu peta, bagian atas selalu identik dengan arah utara. CPU kemudian dihubungkan dengan chipset melalui fast bridge atau jalur penghubung cepat yang menyambung langsung di bagian atas unit chipset. Itulah sebabnya bagian yang langsung berhubungan dengan CPU tersebut disebut northbridge. Northbridge ini kemudian dihubungkan dengan bagian bawah unit chipset melalui slow bridge atau jalur penghubung yang lebih lambat. Unit chipset bagian bawah ini kemudian disebut southbridge. Jika bagian atas menyimbolkan arah utara, dengan sendirinya bagian bawah menyimbolkan arah selatan. Itulah sebabnya disebut dengan istilah southbridge.

1.Northbridge

Northbridge disebut juga dengan nama memory controller hub (MCH). Perusahaan pembuat chipset yang menggunakan nama sebutan MCH ini adalah Intel. Sedangkan AMD, VIA dan perusahaan lainnya lebih banyak menggunakan nama sebutan northbridge.
Northbridge memiliki peran khusus yang sangat penting dalam suatu sistem motherboard. Northbridge adalah bagian yang menghubungkan prosesor (CPU) ke sistem memori dan graphics controller (AGP dan PCI Express) melalui bus berkecepatan tinggi, dan ke southbridge. Dengan demikian, Northbridge bertugas mengendalikan/ menangani komunikasi antara CPU, RAM, AGP atau PCI Express, dan southbridge. Bahkan pada sebagian chipset, di dalam northbridge juga berisi integrated video controller (pengendali video terintegrasi). Pada sistem Intel istilah integrated video controller ini disebut dengan nama Graphics and Memory Controller Hub (GMCH).
Northbridge juga berperan menentukan jumlah, type dan kecepatan CPU yang dapat dipasangkan pada motherboard, termasuk menentukan jumlah, kecepatan dan type RAM yang dapat digunakan. Setiap jenis chipset, kebanyakan dirancang hanya untuk mendukung seri prosesor tertentu saja, dengan jumlah RAM yang dapat dipasangkan bervariasi bergantung type prosesor dan desain motherboardnya sendiri.
Pada motherboard untuk prosesor Pentium (sebelum Pentium II), kapasitas RAM yang dapat dipasangkan seringkali dibatasi sampai 128 MB saja. Sedangkan motherboard untuk Pentium 4, kapasitas RAM yang dapat dipasangkan dibatasi 4 GB. Perlu diketahui bahwa sejak era Pentium Pro muncul, arsitektur Intel yang diterapkan prosesor tersebut dapat mengakomodasi address fisik lebih besar dari 32 bit, biasanya 36 bit, sehingga mampu mendukung RAM hingga 64 GB. Namun, jarang ada motherboard yang didesain mampu mendukung RAM hingga 64 GB, lagi pula banyak faktor pembatas lain yang tidak memungkinkan diterapkannya fitur RAM tersebut, misalnya keterbatasan dukungan dari OS dan mahalnya harga RAM).
Sampai saat ini, tidak begitu banyak chipset yang mampu mendukung dua tipe RAM sekaligus. Biasanya chipset semacam ini baru diproduksi bila muncul standart baru yang ditetapkan oleh pabrik karena munculnya perkembangan teknologi baru. Contoh northbridge yang hanya mendukung satu type RAM adalah northbridge dari chipset NVIDIA nForce. Chipset ini hanya dapat dipasangkan dengan prosesor AMD yang didesain menggunakan soket A yang dikombinasi dengan pemakaian DDR SDRAM. Contoh lainnya adalah chipset Intel i875. Chipset ini hanya dapat bekerja dengan prosesor Pentium 4 atau Celeron yang memiliki clock speed lebih tinggi dari 1,3 GHz yang dikombinasi dengan pemakaian DDR SDRAM. Sedangkan contoh chipset yang dapat mendukung dua tipe RAM adalah chipset Intel i915. Chipset tersebut dapat bekerja dengan prosesor Intel Pentium 4 dan Celeron yang menggunakan menggunakan DDR maupun DDR2.
Pada perkembangan selanjutnya, memory controller yang menangani komunikasi antara CPU dan RAM tidak lagi berada pada chipset, memory controller tersebut dipindahkan ke prosesor, terintegrasi dengan die prosesor. Contoh prosesor yang telah dilengkapi dengan memory controller ini adalah prosesor AMD64. Akibatnya, chipset untuk prosesor AMD64 (misalnya chipset NVIDIA nForce3) menjadi single chip (chip tunggal) yang merupakan gabungan dari semua fitur southbridge dengan port AGP. Chipset ini dihubungkan langsung ke CPU (prosesor). Sedangkan Intel juga akan melakukan hal yang sama, yaitu mengintegrasikan memory controller tersebut ke dalam prosesor produksinya. Rencananya kelak akan diterapkan pada prosesor yang berbasis mikroarsitektur Nehalem.

2.Southbridge

Southbridge adalah bagian dari chipset yang mengontrol bus IDE, USB, dukungan Plug and Play, menjembatani PCI dan Isa, mengontrol keyboard dan mouse, fitur power management dan sejumlah perangkat lainnya.
Southbridge berhubungan dengan pheriperal, memalui jalur penghubung yang kecepatannya (kecepatan bus) lebih lambat (misalnya bus PCI dan bus ISA) dibandingkan jalur penghubung yang digunakan oleh northbridge. Pada beberapa chipset modern, southbridge sebenarnya mengandung (memuat) pheripheral yang terintegrasi pada chip, seperti ethernet, USB, dan audio.

Jumat, 11 Mei 2012


Apache 2 Web Server on Debian 6 (Squeeze)



This tutorial explains how to install and configure the Apache web server on Debian 6 (Squeeze). All configuration will be done through the terminal; make sure you are logged in as root via SSH. If you have not followed the getting started guide, it is recommended that you do so prior to beginning this guide. Also note that if you're looking to install a full LAMP stack, you may want to consider using our LAMP guide for Debian 6.

Set the Hostname

Before you begin installing and configuring the components described in this guide, please make sure you've followed our instructions for setting your hostname. Issue the following commands to make sure it is set properly:
hostname
hostname -f
The first command should show your short hostname, and the second should show your fully qualified domain name (FQDN).

Install Apache 2

Make sure your package repositories and installed programs are up to date by issuing the following commands:
apt-get update
apt-get upgrade --show-upgraded
Enter the following command to install the Apache 2 web server, its documentation and a collection of utilities.
apt-get install apache2 apache2-doc apache2-utils

Install Support for Scripting

The following commands are optional, and should be run if you want to have support within Apache for server-side scripting in PHP, Ruby, Python, or Perl.
To install Ruby support, issue the following command:
apt-get install libapache2-mod-ruby
To install Perl support, issue the following command:
apt-get install libapache2-mod-perl2
To install Python support, issue the following command:
apt-get install libapache2-mod-python
If you need support for MySQL in Python, you will also need to install Python MySQL support:
apt-get install python-mysqldb
Your PHP application may require additional dependencies included in Debian. To check for available PHP dependencies run "apt-cache search php", which will provide a list of package names and descriptions. To install, issue the following command:
apt-get install libapache2-mod-php5 php5 php-pear php5-xcache
Issue the following command to install the php5-suhosin package, which provides additional security to your PHP installation:
apt-get install php5-suhosin
If you're also hoping to run PHP with MySQL, then also install MySQL support:
apt-get install php5-mysql

Configure Apache for Named-Based Virtual Hosting

Apache supports both IP-based and name-based virtual hosting, allowing you to host multiple domains on a single server. To begin configuration, issue the following command to disable the default Apache virtual host.
a2dissite default
Each additional virtual host needs its own file in the /etc/apache2/sites-available/ directory. In this example, you'll create files for two name-based virtually hosted sites, "example.net" and "example.org".
First create example.net (/etc/apache2/sites-available/example.net) so that it resembles the following.
File:/etc/apache2/sites-available/example.net
<VirtualHost *:80>
     ServerAdmin webmaster@example.net
     ServerName example.net
     ServerAlias www.example.net
     DocumentRoot /srv/www/example.net/public_html/
     ErrorLog /srv/www/example.net/logs/error.log
     CustomLog /srv/www/example.net/logs/access.log combined
</VirtualHost>
If you would like to enable Perl support, then add the following lines to the VirtualHost entry above.
File excerpt:/etc/apache2/sites-available/bucknell.net
Options ExecCGI
AddHandler cgi-script .pl
Next, create example.org (/etc/apache2/sites-available/example.org) so that it resembles this:
File:/etc/apache2/sites-available/example.org
<VirtualHost *:80>
     ServerAdmin admin@example.org
     ServerName example.org
     ServerAlias www.example.org
     DocumentRoot /srv/www/example.org/public_html/
     ErrorLog /srv/www/example.org/logs/error.log
     CustomLog /srv/www/example.org/logs/access.log combined
</VirtualHost>
You'll note that some basic options are specified for both sites, including where the files for the site will reside (under/srv/www/). You can add (or remove) additional configuration options, such as the Perl support, on a site-by-site basis to these files as your needs dictate.
Create required directories for these sites by issuing the following commands:
mkdir -p /srv/www/example.net/public_html
mkdir /srv/www/example.net/logs

mkdir -p /srv/www/example.org/public_html
mkdir /srv/www/example.org/logs
Enable the sites by issuing these commands:
a2ensite example.net
a2ensite example.org
Finally, restart the Apache server to initialize all the changes, with this command:
/etc/init.d/apache2 restart
When you create or edit any virtual host file, you'll need to reload the config, which you can do without restarting the server with the following command:
/etc/init.d/apache2 reload
Congratulations! You now have Apache installed on your Debian Linux VPS and have configured the server for virtual hosting.

Install Apache Modules

One of Apache's prime strengths is its extreme customizability and flexibility. With its support for a large number of modules, there are few web serving tasks that Apache cannot fulfill. By default, modules and their configuration files are installed in the /etc/apache2/mods-available/ directory. Generating a list of this directory will tell you what modules are installed. To enable a module listed in this directory, use the following command:
a2enmod [module-name]
Note that in the /etc/apache2/mods-available/ directory, files have a .load and .conf extension. Module names do not include the extension.
To disable a module that is currently enabled, use the inverse command:
a2dismod [module-name]
To get a list of available Apache modules modules in the Debian repository use the following command:
apt-cache search libapache2*
To install one of these modules use the command:
apt-get install [module-name]
Modules should be enabled and ready to use following installation, though you may have to apply additional configuration options to have access to the modules' functionality. Consult the Apache module documentation for more information regarding the configuration of specific modules.

Configuration Options

One of the strengths, and obstacles, of Apache is the immense amount of flexibility offered in its configuration files. In the default installation of Apache 2 on Debian, the main configuration is located in the/etc/apache2/apache2.conf files, but Apache configuration directives are loaded from files in a number of different locations, in a specific order. Configuration files are read in the following order, with items specified later taking precedence over earlier and potentially conflicting options:
  1. /etc/apache2/apache2.conf
  2. Files with .load or .conf extensions in /etc/apache2/mods-enabled/ directory.
  3. /etc/apache2/httpd.conf (Blank by default.)
  4. /etc/apache2/ports.conf
  5. Files within the /etc/apache2/conf.d/ directory.
  6. Files within the /etc/apache2/sites-enabled/ directory.
  7. Per-directory .htaccess files in the directory.
Remember, later files take precedence over earlier-cited files. Within a directory of included configuration files, files will be read in order based on the sort of their file names.
Apache will follow symbolic links to read configuration files, so you can create links in these directories and locations to files that are actually located elsewhere in your file system.
Best practices for most installations dictate that we don't recommend modifying the following default configuration files:/etc/apache2/httpd.conf, files in /etc/apache2/mods-enabled/, and in most cases/etc/apache2/apache2.conf. This is to avoid unnecessary confusion and unintended conflicts in the future.
Generally, as specified in our LAMP guide for Debian 6 (Squeeze) and elsewhere, files that configure virtual hosts should be located in the /etc/apache2/sites-available/ directory (and symbolically linked to sites-enabled/ with the a2ensite tool. This allows for a clear and specific per-site configuration.
In practice, the vast majority of configuration options will probably be located in site-specific virtual host configuration files. If you need to set a system-wide configuration option or aren't using virtual hosting, the best practice is to specify options in files created beneath the conf.d/ directory.

Multi-Processing Module

The default Apache configuration uses a tool called MPM-worker, this multi-processing module can handle a large number of requests quickly by utilizing multiple threads per worker process. However, this use of multiple threads is not compatible with some PHP extensions. When PHP is installed MPM-worker is replaced with MPM-prefork, which allows Apache to handle requests without threading for greater compatibility with some software. Furthermore, using MPM-prefork allows Apache to isolate requests in separate processes so that if one request fails for some reason, other requests will be unaffected.
For more complex setups, however, we recommend that you consider using an alternate MPM module called "ITK."mpm-itk is quite similar to prefork, but it goes one step further and runs the processes for each site under a distinct user account. This is particularly useful in situations where you're hosting a number of distinct sites that you need to isolate sites on the basis of user privileges.
Begin by installing the mpm-itk module:
apt-get install apache2-mpm-itk
Now, in the <VirtualHost > entries for your sites (the site-specific files in /etc/apache2/sites-available/) add the following sub-block:
File excerpt:Apache Virtual Host Configuration
<IfModule mpm_itk_module>
   AssignUserId webeditor webgroup
</IfModule>
In this example, webeditor is the name of the user of the specific site in question, and webgroup is the name of the particular group that "owns" the web server related files and processes. Remember that you must create the user accounts and groups using the useradd command.

Membangun Proxy Server dengan Debian 6 Squeez



Kali ini saya mencoba membangun sebuah PC/Komputer yang dapat digunakan sebagai Proxy sederhana yang berbasis Linux Debian 6 yang diinstall secara minimal.
Ok, untuk device atau alat-alat yang diperlukan disini adalah sebagai berikut :
1. PC/Komputer yang memiliki 2kartu jaringan (Ethernet Card)
2. Hub
3. Internet, disini saya asumsi kan Internet didapat dari Telkom, yang pada umum nya adalah Telkom Speedy melalui modem (pppoe).
4.PC/Laptop Client, minimal 2 buah.
Langkah pertama adalah update repository, terserah anda mau update via repository lokal (Server Indonesia) atau Repository luar negeri, edit pada baris /etc/apt/source.list
masukan link repository tanpa tanda # kemudian update dengan perintah
apt-get update
ingat, kalau link repository dalam kondisi on, pada saat kita update, tidak akan muncul pesan error. kalo ada pesan error silahkan mencoba link repository yang lain sampai tidak ada pesan error.
Ok, setelah semua nya tersedia, lanjut dengan setting IP address pada kedua ethernet/kartu jaringan pada PC/Komputer yg sudah terinstall Debian 6 OS. Login ke sebagai root, dan edit di :
root@myserver :~# nano /etc/network/interfaces
# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 192.168.1.44
netmask 255.255.255.224
network 192.168.1.32
broadcast 192.168.1.63
gateway 192.168.1.33
# The secondary network interface
allow-hotplug eth1
iface eth1 inet static
address 10.10.10.1
netmask 255.255.255.0
network 10.10.10.0
broadcast 10.10.10.255
Catatan : eth0 (nol) adalah eth yang dihubungkan ke modem speedy disitu saya memakai network ip class /27
eth1 adalah eth1 yang terhubung ke client yg dicolok ke Hub
Kemudian edit file resolv.conf (edit DNS)  di :
root@myserver :~# nano /etc/resolv.conf
nameserver 203.130.193.74
nameserver 8.8.8.8
DNS Speedy untuk masing-masing daerah biasa nya agak berbeda, diatas adalah dns untuk wilayah batam dan sekitar nya, sedangkan dns yang kedua adalah dns milik google (8.8.8.8)
Kemudian aktifkan IP forward dengan perintah :
root@myserver:~# echo 1 > /proc/sys/net/ipv4/ip_forward
lalu edit file pada /etc/sysctl.conf
root@myserver :~# nano /etc/sysctl.conf
Hilangkan tanda # pada baris
net.ipv4.ip_forward=1
kemudian jalan kan perintah iptables untuk meneruskan koneksi dari eth0 ke eth1, tambahkan baris berikut pada
root@myserver :~# nano /etc/rc.local
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
exit 0
ingat, masukan perintah diatas sebelum kalimat exit 0 (nol)
Kemudian reboot PC/Komputer anda, coba lakukan dari client, masukan IP Address pada PC/Laptop Client yang 1 kelas dengan eth1, contoh 10.10.10.5/24 dan gateway ke 10.10.10.1,masukan nilai dns sama seperti diatas,  coba ping ke gateway terlebih dahulu, jika mendapat replay kemudian ping ke yahoo.com, jika kedua nya berhasil, maka sharing koneksi internet anda telah berhasil. :)

Instalasi Squid
Buka terminal pada OS anda, masuk sebagai root,  lalu ketikan
root@myserver :~# apt-get install squid squid-common
tekan y jika diminta konfirmasi, tunggu sampai proses instalasi selesai (disini saya mendapat squid versi 2.7 stable 9, masing - masing repository biasa nya berbeda mengambil paket-paket deb nya, termasuk paket squid ini). lalu hentikan service dari squid dengan perintah
service squid stop
atau
/etc/init.d/squid stop

Memblokir situs atau website dengan Squid
buka file /etc/squid/squid.conf
enak nya sih di backup dulu dengan perintah
root@myserver :~# cp /etc/squid/squid.conf //etc/squid/squid.conf.backup
Buat 1 file .txt di lokasi /etc/squid/
terserah mo dikasih nama apa saja, disini saya kasih nama porno.txt (karena saya ingin memblokir situs porno, :D)
edit file porno.txt
root@myserver:~# nano /etc/squid/porno.txt
pichunter.com
porntube.com
naughtyamerica.com
kemudian simpan file tersebut, lalu edit file squid.conf di
root@myserver:~# nano /etc/squid/squid.conf
masukan baris ini acl porno dstdomain "/etc/squid/porno.txt" dibawah acl localnet
kemudian tambahkan baris  ini http_access deny porno dibawah http_access allow localhost
Kemudian save. Jalan kan squid nya dengan perintah
service squid start

Konfigurasi Dasar Squid
Buka kembali file /etc/squid/squid.conf
edit pada baris berikut dibawah ini
http_port 2904
nilai 3128 adalah standard port pada squid, terserah mo diganti ke port berapa aja, diatas saya ganti dengan 2904
acl netmasddy src 10.10.10.0/24
acl adalah akses list jaringan dan nama group yang diijinkan untuk menggunakan squid, disini jaringan yang saya ijin kan adalah 10.10.10.0/24 dengan nama group netmasddy
http_access allow netmasddy
Memberikan izin untuk mengakses internet melalui squid, simpan file kemudian lakukan restart pada service squid
service squid restart
Lakukan pengetest-an squid dari sisi client, setting proxy manual pada client, masuk kan ip proxy yang kita buat tadi, yaitu 192.168.1.44
silahkan lihat log nya di /var/log/squid/access.log
root@myserver :~# tail -f /var/log/squid/access.log
245 10.10.10.3 TCP_MISS/200 1644 GET http://www.google.co.id/favicon.ico - DIRECT/209.85.175.105 image/x-icon
1318189813.355    540 10.10.10.3 TCP_MISS/200 32519 GET http://www.google.co.id/images/nav_logo89.png - DIRECT/209.85.175.106 image/png
1318189815.656    109 10.10.10.3 TCP_MISS/200 1644 GET http://www.google.co.id/favicon.ico - DIRECT/209.85.175.106 image/x-icon
Lakukan pengecekan dari sisi client dengan melakukan browsing, Jika berjalan seperti contoh diatas berarti konfigurasi sudah benar.

Memblok Akses Dengan Kata Kunci
Ini hampir sama dengan memblok alamat website atau situs, cuma disini hanya menggunakan kata kunci.
Pertama buat file key.txt yang isi nya
xxx
porn
sex
Kemudian simpan file tersebut di /etc/squid/
lalu seperti biasa nya, menguasai dunia, eh salah, lakukan edit file pada squid.conf maksud saya.. hehehe... :D
tambahkan baris ini acl key url_regex -I "/etc/squid/key.txt" dibawah acl porno kemudian tambahkan pula baris http_access deny key diatas http_access deny porno
Simpan file tersebut kemudian lakukan restart service squid nya.

Transparent Proxy
Yang dimaksud dengan Transparent Proxy adalah Otomatisasi proxy pada client dengan menggunakan Proxy Transparan sehingga anda tidak perlu menginput secara manual IP Proxy beserta port nya.
Edit file di squid.conf
tambahkan kata transparent setelah port
http_port 2904 transparent
kemudian edit file rc.local, tambahkan perintah iptables pada baris berikut
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j DNAT --to-destination 10.10.10.1:2904
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT --to-port 2904
Perintah pertama diatas berfungsi untuk aturan routing baru pada ethernet yang terhubung ke modem eth0 (nol) dan mengarah kan port 80 ke alamat kartu jaringan yang terhubung ke jaringan lokal eth1 dengan port 2904
Perintah kedua diatas berfungsi memberikan aturan routing baru kepada ethernet yang terhubung ke jaringan lokal eth1 dan mengarahkan port http 80 ke port http transparent proxy, yaitu 2904.
Kemudian simpan file tersebut, lakukan restart pada service squid, silahkan hilangkan manual proxy system yang anda setting pada pc/laptop client. kemudian coba lakukan browsing, jika anda bs melakukan browsing keluar, berarti transparent proxy anda berhasil. :)
coba aja buka di http://whatismyipaddress.com untuk memastikan anda browsing via proxy apa nggak. :D
Selesai :)