Archive for the ‘Unix’ Category

Setting DNS Telkom untuk Speedy

May 4th, 2010

Tahukah Anda bagaimana mempercepat browsing internet Anda….?
Salah satunya adalah set DNS (Domain Name Server) yang sesuai area lokasi pemasangan Speedy Anda, meskipun pada dasarnya secara otomatis DNS pengguna Speedy telah diset pada Perangkat Network Speedy (Broadband Acess Server).

Sebagai informasi bahwa PT Telekomunikasi Indonesia, tbk memiliki sejumlah DNS yang dapat digunakan oleh pengguna Speedy adalah sebagai berikut:

No DNS LOKASI IP
1 Medan 203.130.206.250
2 Batam 203.130.193.74
3 Jakarta 202.134.0.155
4 Jakarta 203.130.196.155
5 Bandung 222.124.204.34
6 Surabaya 202.134.1.10
7 Balikpapan 203.130.209.242
8 Denpasar 61.94.192.12

Seting DNS dapat dilakukan pada modem pelanggan atau pada komputer pelanggan.

Compile Custom Kernel

September 26th, 2007

General Information

There may be two main reasons as to why you would want a custom kernel on your system: 1) You want to add some functionality to your system such as audio support, or 2) you may want to remove some unused drivers to conserve memory.

Either way, making a custom kernel will help your machine to be a faster box rather than using the GENERIC kernel.

Requirements

  1. A FreeBSD system (5.x or greater)
  2. Your favorite text editor

Installation

We will want to use sysinstall to get the src:

# sysinstall
  1. select Configure
  2. select Distributions
  3. select src
  4. select sys (/usr/src/sys (FreeBSD Kernel))
  5. press Enter
  6. press Enter
  7. select CDROM (Or choose FTP if you chose NOT to install from CDROM)
  8. select Install

This will take a few minutes to install via CDROM.

Configuration

Once you have the source installed we can then start on the kernel customization:

# cd /usr/src/sys/i386/conf

This is where FreeBSD keeps its kernel configuration files for Intel computers. The generic kernel config is in the file GENERIC. All the possible kernel options can be found in the NOTES file. What we will want to do first is copy GENERIC to a new Kernel name.

Note: *NEVER* edit the GENERIC file.

# cp GENERIC MYKERNEL

A few notes about editing your new kernel file:

1) Here is an example line from the kernel

device ppbus # Parallel port bus (required)

Any line that says (required) means exactly that. Don’t comment it out or delete it. So in this example, you can delete everything below that section if you don’t have a Printer, TCP/IP over parallel, or a Parallel port interface device.

2) Don’t delete any lines. Comment them out with a # in the front.

3) Always change your ident line as follows

Scroll down the line that reads:

ident GENERIC

Change the line to read:

ident MYKERNEL

4) If you’re not sure what you have or don’t have for devices, you can check this in /var/log/messages (provided it hasn’t been forever since your last reboot).

This is a great example. There are a ton of Network Card drivers in the kernel and you really only need one. Let’s look in /var/log/messages for your Ethernet Card. I’ll use my NIC as an example:

fxp0: <Intel 82559 Pro/100 Ethernet> port 0xec00-0xec3f mem 0xdf100000-0xdf100fff,0xdf000000-0xdf0fffff irq 11 at device 9.0 on pci0

So if we edit MYKERNEL and scroll down to the PCI and make sure you keep the following lines in there and comment everything else in the PCI and ISA network card sections:

device miibus # MII bus support device fxp # Intel EtherExpress PRO/100B (82557, 82558)

So go ahead and make all the changes from there.

Once you are done, it’s time to compile the kernel.

# # cd /usr/src make buildkernel KERNCONF=MYKERNEL

If you get some errors you screwed up. Go fix it or copy GENERIC back to MYKERNEL and start over. If not, you can continue by installing the kernel.

# make installkernel KERNCONF=MYKERNEL

You are done! You should reboot to make the changes effective!

After the reboot you should see that you are on the new kernel.

# uname -a
FreeBSD beast.local x.x-XXXXX FreeBSD 6.X-XXXXX #0: Day Mon XX XX:XX:56 EDT 200 USER@beast.local:/usr/obj/usr/src/sys/MYKERNEL i386

Privoxy & Squid

September 25th, 2007

Privoxy will be running as a parent proxy of squid, so set the client web browser to run via the squid proxy ports and squid will then pass the information to privoxy and then back to the user filtered from adds, junk & popups.

Name: Squid
HomePage: http://www.squid-cache.org/
Function: proxy caching server for web clients

Name: Privoxy
HomePage: http://www.privoxy.org/
Function: Privoxy is a web proxy with advanced filtering capabilities for protecting privacy.

1. Firstly, download from the privoxy website

http://www.privoxy.org

2. Now install it, if your running Fedora Core 5, it can now be installed via yum

For Fedora Core 5 & up install privoxy using yum:
#yum install privoxy

For Fedora Core 4 or Fedora Core 3, download and install the privoxy RPM
#rpm -ivh privoxy-3.0.3-1.i386.rpm

3. Once it is installed edit the config file to listern on the privoxy server’s ip-address

vi /etc/privoxy/config

config:

listen-address 192.168.0.1:8118

4. Now add privoxy as a squid cache peer, edit the squid.conf file

vi /etc/squid/squid.conf

squid.conf:

cache_peer 192.168.0.1 parent 8118 0 no-query

5. Now start/restart all the servers

#/etc/init.d/privoxy start
#/etc/init.d/squid restart

6. Once you have set your internet browser clients (IE, firefox, netscape) to go through your squid proxy you can then go to the privoxy web administration tool.

RSS Feed

Search

  • Categories

  • Archives

  • Affiliates

    View blog authority
    Free PageRank Checker
    eXTReMe Tracker
  • Disclosure

    I hereby state that I have received financial compensation for some of the posts on this blog from sponsors who want to have their product(s) and/or service(s) be reviewed by me.