Jumat, 30 Juli 2010

Seting KOnfigurasi DHCP server di UBUNTU SERVER

buka konfigurasi (akses Root) dengan mengetik nano /etc/dhcp3/dhcpd.conf
kemudian :

cari baris berikut :

# A slightly different configuration for an internal subnet.
#subnet 10.5.5.0 netmask 255.255.255.224 {
# range 10.5.5.26 10.5.5.30;
# option domain-name-servers ns1.internal.example.org;
# option domain-name “internal.example.org”;
# option routers 10.5.5.1;
# option broadcast-address 10.5.5.31;
# default-lease-time 600;
# max-lease-time 7200;
#}

ganti dengan :

# A slightly different configuration for an internal subnet.
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.100;
option domain-name-servers 202.182.57.14;
option domain-name “kalonk.com”;
option routers 192.168.1.1;
option broadcast-address 192.168.1.255;
default-lease-time 600;
max-lease-time 7200;
}
edit default interface untuk digunakan sebagai DHCP Server, file konfigurasinya berada pada : /etc/default/dhcp3-server edit dengan editor kesayangan anda ! tambahkan interface default untuk DHCP Server pada section INTERFACES=”eth0″
default interface saya eth0 <--- tergantung device mana yang anda gunakan sebagai


selanjutnya restart DHCP service anda

Kamis, 20 Mei 2010

MEMBUAT DNS SERVER DENGAN SUB DOMAIN UNTUK MAIL SERVER PADA UBUNTU

MEMBUAT DNS SERVER UNTUK UBUNTU 9.04

1. Install paket bind 9 dan binutils, dengan mengetikkan perintah :

*

$ sudo apt-get install bind9 binutils
* Notes : perintah diatas hanya bisa berjalan jika anda sudah mensetting repository anda. caranya dijelaskan ditutorial lain dalam blog ini.

2. Setting alamat ip anda sehingga menjadi ip static dengan mengedit file /etc/network/interfaces, dengan cara:

*

ketikkan perintah:

$ sudo vim /etc/network/interfaces

*

edit file tersebut sehingga berisi seperti ini:

gambar-1

*

Save file tersebut dengan menenekan tombol‘ESC’, dan ketikkan :wq
* Notes: biasanya interface network anda adalah eth0, karena interface yang saya pakai adalah eth1 maka saya menulis eth1 sesuaikan interface yang dipakai dengan tipe interface yang tersedia dikomputer anda.
*

Restart service network kita dengan mengetikkan perintah:

$ sudo /et/init.d/networking restart

*

Cek Konfigurasi dengan mengetikkan perintah:

$ ifconfig

maka akan tampil alamat ip kita saat ini, seperti gambar dibawah ini:

gambar-2

3. Kemudian edit file /etc/bind/named.conf.local, dengan cara :

*

Ketikkan perintah

$ sudo vim /etc/bind/named.conf.local

*

edit file tersebut sehingga berisi seperti ini:

gambar-31

*

save file dengan menenekan tombol ‘ESC’, dan ketikkan :wq

4. Kemudian buat file db.vega dengan cara:

*

Ketikkan perintah

$ sudo vim /etc/bind/db.vega

*

isi file tersebut sehingga berisi seperti gambar dibawah ini:

gambar-4

* Save file dengan cara menekan tombol ‘ESC’ , dan kemudian ketikkan :wq

4. Kemudian buat file db.192 dengan cara:

*

Ketikkan perintah

$ sudo vim /etc/bind/db.192

*

isi file tersebut sehingga berisi seperti gambar dibawah ini:

gambar-5

*

Save file dengan cara menekan tombol ‘ESC’ , dan kemudian ketikkan :wq

6. Edit file /etc/resolv.conf, dengan cara:

*

Ketikkan perintah

$ sudo vim /etc/resolv.conf

*

Isi file tersebut sehingga berisi seperti ini:

nameserver 192.168.10.100

search vega.net

*

Save file dengan cara menekan tombol ‘ESC’, dan kemudian ketikkan :wq

7. Restart service bind dengan cara:

*

Ketikkan perintah:

$ sudo /etc/init.d/bind9 restart

*

Jika tidak ada pesan error, maka konfigurasi yang anda lakukan sudah benar, untuk memastikan apakah dns anda sudah berjalan dengan baik lakukan langkah berikutnya.

8. Tes apakah dns untuk domain vega.net sudah berjalan dengan cara:

*

Menggunakan perintah ping, Ketikkan perintah:

$ ping vega.net

*

Untuk kemudian akan muncul tampilan seperti dibawah ini:

gambar-6

*

Menggunakan perintah dig, Ketikkan perintah:

$ dig vega.net

*

Untuk kemudian akan muncul tampilan seperti dibawah ini:

gambar-7

*

Menggunakan perintah nslookup, Ketikkan perintah:

$ nslookup vega.net

*

Untuk kemudian akan muncul tampilan seperti dibawah ini:

gambar-8

*

Menggunakan perintah host, Ketikkan perintah:

$ host vega.net

*

Untuk kemudian akan muncul tampilan seperti dibawah ini:

gambar-91

8. Lakukan langkah yang sama seperti No.7 untuk mengetes subdomain mail.vega.net

9. Jika hasilnya seperti diatas maka DNS anda beserta subdomainnya sudah berjalan.


THANKS TO VEGA

Senin, 17 Mei 2010

Postfix Dovecot Mailserver on Ubuntu 9.10 Karmic/9.04 Jaunty

Update sources before we get started
view sourceprint?
1.sudo apt-get update

Install the package
view sourceprint?
1.sudo apt-get install dovecot-postfix

General Type of Mail Configuration: Internet Site
System mail name: yourcompany.com

That's it! You now have a working mailserver. If you've never done this before, the Ubuntu team just saved you about an hour worth of configuration file editing and testing.

Now that your mail server is running we need to set up users. The default dovecot-postfix install is set up to manage email addresses based on system users. We're going to set up a MySQL database to handle that so we don't need to create a new system user (or alias) every time we want to add an email address.

Install MySQL and Postfix MySQL compatibility
view sourceprint?
1.sudo apt-get install mysql-server postfix-mysql

We need to create a user to manage the database.

Fire up MySQL
view sourceprint?
1.mysql -u root -p
view sourceprint?
1.CREATE DATABASE postfix;
2.CREATE USER 'postfix'@'localhost' IDENTIFIED BY 'password';
3.GRANT ALL ON postfix.* to 'postfix'@'localhost';
view sourceprint?
1.exit

Postfix admin is a web based administration panel for Postfix. It will handle creating and managing email addresses as well as other extras like vacation autoresponders. It requires a webserver with php5 support. I'll be using Apache2 for this guide, but you can use lighttpd if you want a smaller footprint. You can also install this on a different server if you don't want to run a webserver on your mail server. Note: if you run your webserver on another machine you'll need to make the necessary changes to the MySQL user permissions.

Install Apache2 and php5
view sourceprint?
1.sudo apt-get install apache2 php5 php5-mysql php5-imap

Restart Apache so it registers PHP
view sourceprint?
1.sudo /etc/init.d/apache2 restart

When that's complete confirm that you can pull up your server's IP in a web browser. You should see: It works!

Switch over to the /var/www directory
view sourceprint?
1.cd /var/www

Download the postfixadmin files
view sourceprint?
1.sudo wget http://downloads.sourceforge.net/sourceforge/postfixadmin/postfixadmin_2.3rc7.tar.gz

Note: This address is the current release candidate so this link may change. You can find the current version at http://sourceforge.net/projects/postfixadmin/files/.

Extract the contents
view sourceprint?
1.sudo tar -zxvf postfixadmin_2.3rc7.tar.gz

Rename the directory to something more friendly and remove the tarball:
view sourceprint?
1.sudo mv postfixadmin-2.3rc7 postfixadmin
2.sudo rm postfixadmin_2.3rc7.tar.gz

Update the postfixadmin configuration file with your settings
view sourceprint?
1.cd postfixadmin
2.sudo nano config.inc.php

$CONF['configured'] = true;
$CONF['postfix_admin_url'] = $_SERVER['HTTP_HOST'].'/postfixadmin';
$CONF['database_password'] = 'yourdbpasswdhere';

Also update the following variables to what makes sense for your installation
$CONF['admin_email']
$CONF['default_aliases']
Save and close (CTRL + X)

Browse to: http://yourserverip/postfixadmin/setup.php. You'll likely see a warning about magic quotes. Since I *hate* magic quotes, I'll go ahead and turn those off. You can safely skip this step if you really want to.
view sourceprint?
1.sudo nano /etc/php5/apache2/php.ini

magic_quotes_gpc = Off
save and close (CTRL + X)
view sourceprint?
1.sudo /etc/init.d/apache2 restart

Refresh the setup page and everything should read OK now. Scroll down to the bottom and enter a “Setup password”. (scroll back down to the bottom for the result) This was required in the configuration file if you noticed, so we'll have to copy the hashed result and paste it into the config.inc.php file.
view sourceprint?
1.sudo nano config.inc.php

Update $CONF['setup_password']
Save and close (CTRL + X)

Back on the setup page create a new admin user. (admin must be an email address) Once you create the admin account you can now log in to http://yourserverip/postfixadmin/ The postfixadmin interface is simple and mostly self explanatory so I won't go into it in detail here.

At this point we have a working mailserver and a MySQL powered user database, now we have to set up all the connections.

We need to create 4 files for postfix containing SQL queries that will give postfix the information it needs to delivery to active addresses.
view sourceprint?
1.cd /etc/postfix
2.sudo nano my_alias_maps.cf

user = postfix
password = yourdbpasswd
hosts = localhost
dbname = postfix
query = SELECT goto FROM alias WHERE address = '%s' AND active = 1
save and close (CTRL+x)
view sourceprint?
1.sudo nano my_domains_maps.cf

user = postfix
password = yourdbpasswd
hosts = localhost
dbname = postfix
query = SELECT domain FROM domain WHERE domain = '%s' AND backupmx = 0 AND active = 1
save and close (CTRL+x)
view sourceprint?
1.sudo nano my_mailbox_limits.cf

user = postfix
password = yourdbpasswd
hosts = localhost
dbname = postfix
query = SELECT quota FROM mailbox WHERE username = '%s' AND active = 1
save and close (CTRL+x)
view sourceprint?
1.sudo nano my_mailbox_maps.cf

user = postfix
password = yourdbpasswd
hosts = localhost
dbname = postfix
query = SELECT CONCAT(domain,'/',maildir) FROM mailbox WHERE username = '%s' AND active = 1
save and close (CTRL+x)

Now we have to update postfix's main.cf to add the paths to the new files as well as some various other updates.
view sourceprint?
1.sudo nano main.cf

Add these items to the file (at the end is fine)

virtual_minimum_uid = 150
virtual_uid_maps = static:150
virtual_gid_maps = static:8
virtual_mailbox_base = /var/vmail
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1

virtual_alias_maps = proxy:mysql:/etc/postfix/my_alias_maps.cf
virtual_mailbox_limit = proxy:mysql:/etc/postfix/my_mailbox_limits.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/my_domains_maps.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/my_mailbox_maps.cf

Comment out (or remove) the following set options:
#home_mailbox = Maildir/
#mailbox_command = /usr/lib/dovecot/deliver -c /etc/dovecot/dovecot-postfix.conf -n -m "${EXTENSION}"

Remove yourcompany.com from mydestination. (It can't be in mydestination and virtual_mailbox_domains)

save and exit (CTRL+X)
view sourceprint?
1.sudo nano master.cf

dovecot unix - n n - - pipe flags=DRhu user=vmail:mail argv=/usr/lib/dovecot/deliver -c /etc/dovecot/dovecot-postfix.conf -f ${sender} -d $(recipient)

save and exit (CTRL+X)

Create the directory for the mail and user who will handle it
view sourceprint?
1.sudo useradd -r -u 150 -g mail -d /var/vmail -s /sbin/nologin vmail
2.sudo mkdir /var/vmail
3.sudo chmod 770 /var/vmail
4.sudo chown vmail:mail /var/vmail/

Finally, we have to make some changes to the dovecot configuration to accept the mail and deliver it
view sourceprint?
1.cd /etc/dovecot
2.sudo nano dovecot-sql.conf

driver = mysql
connect = host=localhost dbname=postfix user=postfix password=yourdbpassword
default_pass_scheme = MD5-CRYPT

user_query = SELECT '/var/vmail/%d/%n' as home, 'maildir:/var/vmail/%d/%n' as mail, 150 AS uid, 8 AS gid, concat('dirsize:storage=', quota) AS quota FROM mailbox WHERE username = '%u' AND active = 1

password_query = SELECT username as user, password, '/var/vmail/%d/%n' as userdb_home, 'maildir:/var/vmail/%d/%n' as userdb_mail, 150 as userdb_uid, 8 as userdb_gid FROM mailbox WHERE username = '%u' AND active = 1

save and exit (CTRL+X)
view sourceprint?
1.sudo nano dovecot-postfix.conf

Change (or uncomment) a few options

mail_location = maildir:/var/vmail/%d/%n
first_valid_uid = 150
last_valid_uid = 150

passdb sql {
args = /etc/dovecot/dovecot-sql.conf
}

userdb sql {
args = /etc/dovecot/dovecot-sql.conf
}

master {
path = /var/run/dovecot/auth-master
mode = 0660
user = vmail
group = mail
}

save and exit (CTRL+X)

Restart both services so changes take effect
view sourceprint?
1.sudo /etc/init.d/postfix restart
2.sudo /etc/init.d/dovecot restart

Selasa, 20 April 2010

Membuat Lukisan Pensil dengan PhotoSop

1. buka dokumen foto yang akan diedit, Kemudian tekan CTRL + J (untuk menduplikat gambar), lalu tekan CTRL + U dan pada kotak dialog Hue/Saturation geser kesebelah kiri pada Saturation menjadi -100

2. Lalu tekan CTRL + J lagi pada Layer 1 (atau layer yang diduplikat di atas tadi) kemudian tekan CTRL + I , membuat efek negatif (film).

3. masih pada Layer 1 copy, rubah layer menjadi Color Dodge. Pada Layer ini gambar akan menjadi putih.

4. masih pada Layer 1 copy, klik Layer -> Blur -> Gaussian Blur… ubah Radius sesuai selera anda…

Selamat Mencoba

Repair Oulook Express Folder Mail After Compact Accident

The BAK files your OE folders before compacting. They are copied there
as a precaution in case something goes wrong with the compacting.

1) Look in OE at Tools, Options, Maintenance, Store Folder for the
location of your Store Folder. Then close OE.

2) Go to Recycle Bin and restore the most recent Sent Items.bak file.
That will put it in OE Store folder, but still as a BAK file.

3) Open the Windows File Explorer and look at the store folder you found
in step 1. (You may need to enable the the display Hidden and System
files in Tools, Folder Options, View as well as uncheck the option to
Hide extensions of known file types. You should see both a Sent
Items.dbx file as well as the Sent Items.bak. Rename the Sent Items.DBX
to Sentold.dbx and then rename Sent Items.Bak to Sent Items.DBX. When
you open OE, your Sent Items messages should be restored.

Signature

Mike - http://pages.prodigy.net/michael_santovec/techhelp.htm

> Today i performed the compacting function of my outlook express. Upon
> re-opening outlook express my sent folder no longer has a batch of
[quoted text clipped - 10 lines]
>
> Any help advice much appreciated

Rabu, 24 Maret 2010

Instalasi Webmin on Ubuntu and Setting Squid Via Webmin

Installing on Debian

If you are using the DEB version of webmin, first download the file and then run the command :
dpkg --install webmin_1.510_all.deb
The install will be done automatically to /usr/share/webmin, the administration username set to root and the password to your current root password. You should now be able to login to Webmin at the URL http://localhost:10000/. Or if accessing it remotely, replace localhost with your system's IP address.

If Debian complains about missing dependencies, you can install them with the command :
apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl
If you are installing on Ubuntu and the apt-get command reports that some of the packages cannot be found, edit /etc/apt/sources.list and make sure the lines ending with universe are not commented out.

Some Debian-based distributions (Ubuntu in particular) don't allow logins by the root user by default. However, the user created at system installation time can use sudo to switch to root. Webmin will allow any user who has this sudo capability to login with full root privileges.

If you want to connect from a remote server and your system has a firewall installed, see this page for instructions on how to open up port 10000.
Using the Webmin APT repository

If you like to install and update Webmin via APT, edit the /etc/apt/sources.list file on your system and add the line :
deb http://download.webmin.com/download/repository sarge contrib
You should also fetch and install my GPG key with which the repository is signed, with the commands :
cd /root
wget http://www.webmin.com/jcameron-key.asc
apt-key add jcameron-key.asc
You will now be able to install with the commands :
apt-get update
apt-get install webmin
All dependencies should be resolved automatically.
Supported Debian-based Distributions

Webmin has been tested on all regular Debian releases, Ubuntu Linux, and derivatives like Xandros and APLINUX.
Source Packages

The files needed to build the Debian package are deb/webmin_1.510.dsc, deb/webmin_1.510.diff, and webmin-1.510.tar.gz


Setelah semua instalasi selasai… buka browser anda melalui komputer lain trus ketik https://ip-server:10000 ( https://192.168.1.xx:10000)
gambar 1

2. Install squid ketik $sudo apt-get install squid squid-common pada terminal, setelah selsai install squid buka kembali browser anda ketik seperti yang diatas maka tampilanya akan seperti ini.

( jangan lupa klik refresh modules )

langkah-langkah konfigurasi squid :
1. Klik severs —> Squid Proksi Server trus pilih Port and Networking Options disamping sebelah kanan.
Disini kita akan meneyukan port yang akan digunakan. Default dari squid adalah 3128, saya biasanya menggunakan port 8080. Kalau sudah diubah klik Save. trus kembali ke halaman awal.

2. Klik Other Cache pilih Add Another Cache. Pada isisn Hostname, isikan alamat proksi server dan port yang digunakan 8080 dan untuk ICP gunakan Port 3130 ( saya memakai Type parent dan Port 3130 ), setelah selesai klik save dan kembali ke halaman awal lagi.

3. Klik Memory Usage, disini kita akan menentukan besar memory yang akan di gunakan oleh proksi, diisi secara manual, besarannya adalah N/3 dari memory yeng tersedia, setelah selesai klik save dan kembali kehalaman awal.

4. Klik Access Control pilih Create new ACL pilih Client Address trus klik Create new ACl.

5. Masih pada halaman ACL Name, beri nama ACL kemudian isikan form IP dan to IP dengan ip yang boleh mengakses proksi tersebut, sesuaikan netmasknya, jika sudah selesai klik save.

6. Masih di halaman Access Control, Klik Add Proxy Restriction, lalu pilih ACL yang kita buat tadi sesuai contoh dan berikan akses Allow trus klik Save.

7. Agar ACL yang kita buat tersebut dapat di proses terlebih dahulu di bandingkan dengan ACL lainnya, pindah kan urutan ACL tersebut ke urutan paling atas dengan menekan tombol tanda panah ke atas.

8. Setelah semua setting diatas kita lakukan kita kembali kehalaman utama… klik logout

9. buka terminal ketik $ sudo /etc/init.d/squid/squid restart untuk merestart squid tersebut.

10. setting pada client sesuaikan pada settingan yang ada di proksi server tersbut.

Selamat mencoba… semoga sukses..

Kamis, 18 Maret 2010

Setting Speedy in Linux Ubuntu

ekarang internet merupakan kebutuhan pokok. di kampung saya saat tulisan ini di posting yang namanya warnet (warung Internet) di satu kecamatan baru ada 2 dan itupun sekarang tinggal satu...lelet lagi.... sehingga kalau mau chating atau cari info harus pergi ke kota... tapi untungnya sejak April Speedy sudah bisa masuk ke kecamatan rajagaluh dan di SMAN 1 Rajagaluh sudah mendaftarkan diri menggunakan speedy untuk jaringan internet di Labkomputer.
Setting Speddy di windows udah ga asing tapi kalau di Linux kita harus tahu tentang perintah-perintah di terminal yang harus kita ketikan. berikut pengalaman penulis mengenai setting speedy di Linux Ubuntu 7.10.
1. Hubungkan modem ADSL ke komputer dengan menggunakan koneksi LAN (RJ-45), pastikan modem ADSL dalam keadaan menyala (tidak perlu terkoneksi ke internet)
2. Buka terminal, ketikkan :

sudo pppoeconf

3. Masukkan password
4. Aplikasi akan memeriksa perangkat-perangkat yang ada pada PC yang dapat digunakan untuk melakukan koneksi (misalnya : internet card, wireless card, dsb)
5. Aplikasi akan memeriksa perangkat mana yang memiliki koneksi ke modem ADSL
6. Selanjutnya pilih “yes” untuk setiap option yang ditawarkan, jangan lupa memasukkan username dan password untuk koneksi speedy saat diminta.

Sampai tahap ini, Ubuntu telah selesai melakukan konfigurasi speedy. Untuk melihat hasil konfigurasi, gunakan perintah :

sudo nano /etc/ppp/peers/dsl-default

Untuk mulai melakukan koneksi, ketik :

sudo pon dsl-default

, untuk lebih memudahkan, kita dapat mengganti nama file dsl-default misalnya menjadi speedy, sehingga untuk melakukan koneksi ketik

sudo pon speedy

Memutuskan koneksi dapat dilakukan dengan perintah “sudo poff”.