Thu Mar 29 16:23:20 WIT 2007

Dolanan Peta.... ancuurrrrr!!!!

Dhoto use Google Maps JavaScript API


Posted by arifin | Permanent Link | Categories: Nguprek

Wed Mar 7 00:11:01 WIT 2007

Apache2 PHP5 mySQL di debian etch

Pertama edit /etc/apt/source.list
# apt-get update
# apt-get upgrade
Install paket apache2
# apt-get install apache2
Cek apakah web server udah jalan blm, ketikan di web browser 127.0.0.1
Install paket php5 beserta modulnya
# apt-get install php5 libapache2-mod-php5
cek dengan php info dan tampilannya akan seperti dibawah restart apache2
# /etc/init.d/apache2 restart
Install mysql beserta modul untuk konektivitas dengan php5
# apt-get install mysql-server mysql-php5
restart mysql
 # /etc/init.d/mysql restart 
Install phpmyadmin untuk interface mysql
# apt-get install phpmyadmin

Posted by arifin | Permanent Link | Categories: Tugas Akhir

Mon Mar 5 23:26:22 WIT 2007

aria2 - The High Speed Download Utility

aria2 merupakan utility untuk download berbasis konsole, mendukung protokol http/https/ftp/BitTorrent. Utility ini seperti Internet Download Manager namun aria2 berbasis console.
Utility ini dikembangkan oleh Tatsuhiro Tsujikawa, softwarenya bisa didownload disini

Berikut syntax untuk utility ini
 In order to download a file, you simply run aria2 like this:
 # aria2c http://AAA.BBB.CCC/file.zip

 Do you want more speed? Well, use -s option. With "-s 2",
 aria2 downloads a file with 2 connections:
 # aria2c -s 2 http://AAA.BBB.CCC/file.zip

 You can download a file from 2 different URLs:
 # aria2c http://AAA.BBB.CCC/file.zip http://DDD.EEE.FFF/GGG/file.zip

 You can mix up different protocols:
 # aria2c http://AAA.BBB.CCC/file.zip ftp://DDD.EEE.FFF/GGG/file.zip

 As of 0.3.0 release, you can download BitTorrent files:
 # aria2c -o test.torrent http://AAA.BBB.CCC/file.torrent

 Download using a local torrent file:
 # aria2c --max-upload-limit 40K -T file.torrent

 Download only selected files:
 # aria2c -T test.torrent dir/file1.zip dir/file2.zip

 As of 0.6.0 release, you can download files with Metalink:
 # aria2c http://AAA.BBB.CCC/file.metalink

 Download using a local metalink file:
 # aria2c -p -t 10 --lowest-speed-limit 4000 -M test.metalink 

artikel ini di dapat dari sini

Posted by arifin | Permanent Link | Categories: Nguprek

Wed Feb 21 06:05:17 WIT 2007

Membaca dan mengconvert file CHM

Untuk membaca file CHM gunakan paket xchm
brewok@arifin:~$ sudo apt-get install xchm
untuk bisa mengkonvert file CHM gunakan paket libchm-bin
brewok@arifin:~$ sudo apt-get install libchm-bin 

cara mengkonvert file CHM menjadi html
brewok@arifin:~$ extract_chmlib book.chm directory 
dimana book.chm merupakan file yang akan diextract dan merupakan directory menyimpan file html hasil extrackan dr file chm tadi
semoga bermanfaat

Posted by arifin | Permanent Link | Categories: Nguprek

Mon Feb 19 12:26:19 WIT 2007

Kasian deh lu.........

Kenyataan Pahit Bagi Cowok Jelek
ini nih nggak enaknya kalo jadi cowok jelek, kaya aq, hehe... kasian deh

Kalo cowok ganteng pendiam
cewek2 bilang: woow, cool banget...
kalo cowok jelek pendiam
cewek2 bilang: ih kuper...

kalo cowok ganteng jomblo
cewek2 bilang: pasti dia perfeksionis
kalo cowok jelek jomblo
cewek2 bilang: sudah jelas...kagak laku...

kalo cowok ganteng berbuat jahat
cewek2 bilang: nobody's perfect
kalo cowok jelek berbuat jahat
cewek2 bilang: pantes...tampangnya kriminal

kalo cowok ganteng nolongin cewe yang
diganggu preman
cewek2 bilang: wuih jantan...kayak di filem2
kalo cowok jelek nolongin cewe yang diganggu
preman
cewek2 bilang: pasti premannya temennya dia...

kalo cowok ganteng dapet cewek cantik
cewek2 bilang: klop...serasi banget...
kalo cowok jelek dapet cewek cantik
cewek2 bilang: pasti main dukun...

Posted by arifin | Permanent Link | Categories: Uneg-uneg

Mon Feb 19 03:07:24 WIT 2007

DNS Server di Debian/GNU Linux

DNS (Domain Name System) adalah suatu system yang dapat mengubah nama host (arifin.com) menjadi alamat IP (10.252.108.170) atas semua komputer yang terhubung langsung ke internet. DNS juga dapat mengubah alamat menjadi nama host
DNS bekerja secara hierarki dan berbentuk seperti pohon(tree). Bagian atas adalah Top Level Domain (TLD) seperti COM,ORG,EDU,MIL dsb. Pohon DNS mempunyai cabang-cabang yang dicari dari pengkal sampai ke ujung. Pada waktu kita mencari alamat misalnya linux.or.id pertama-tama DNS bertanya pada TLD server tentang DNS Server yang melayani domain .id misalnya dijawab ns1.id, setelah itu dia bertanya pada ns1.id tentang DNS yang bertangggung jawab atas .or.id misalnya ns.or.id kemudian dia bertanya pada ns.or.id tentang linux.or.id dan dijawab 64.29.24.175, sedangkan

Berikut adalah langkah2 instalasinya, dengan asumsi kita menggunakan
- Linux Debian etch kernel 2.6.18-3-686
- Paket bind9
# apt-get install bind9
restart service bind9
/etc/init.d/bind9 restart
# cp /etc/bind/db.local /var/cache/bind/db.arifin
# cp /etch/bind/db.255 /var/cache/bind/db.9
edit file yang barusan dicopikan
root@arifin:/var/cache/bind# vim db.arifin
 ;
 ; BIND data file for local loopback interface
 ;
 $TTL    604800
 @       IN      SOA     www.arifin.com. root.arifin.com (
                               1         ; Serial
			  604800         ; Refresh
			   86400         ; Retry
			 2419200         ; Expire
			  604800 )       ; Negative Cache TTL
;
@       IN      NS      localhost.
@       IN      A       127.0.0.1
www     IN      A       10.252.108.170

root@arifin:/var/cache/bind# vim db.9
;
; BIND reverse data file for broadcast zone
;
$TTL    604800
@       IN      SOA     www.arifin.com root.arifin.com (
                              1         ; Serial
			 604800         ; Refresh
			  86400         ; Retry
			2419200         ; Expire
			 604800 )       ; Negative Cache TTL
;
@       IN      NS      localhost.
9       IN      PTR     www.arifin.com

edit file /etc/bind/named.conf.local

//
// Do any local configuration here
//

// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";

zone "arifin.com" {
        type master;
	        file "var/cache/bind/db.arifin";
};
	
zone "108.252.10.in-addr.arpa"{
        type master;
  	        file "var/cache/bind/db.9";
};

edit file /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
#search eepis-its.edu
#nameserver 202.154.187.2
#nameserver 202.154.187.3
domain arifin.com
search arifin.com
nameserver 10.252.108.170
restart bind9
root@arifin:/var/cache/bind# /etc/init.d/bind9 restart
jalankan perintah nslookup
root@arifin:/var/cache/bind# nslookup www.arifin.com
Server:         10.252.108.170
Address:        10.252.108.170#53

Name:   www.arifin.com
Address: 10.252.108.170

Setting DNS sudah terbentuk, anda tinggal mendaftarkan IP client-client pada server

Posted by arifin | Permanent Link | Categories: Nguprek

Mon Jan 15 21:25:36 WIT 2007

Menggabungkan Beberapa file PDF menjadi satu

Install paket berikut
# apt-get install gs pdftk 
sekarang kita coba untuk menggabungkan beberapa file pdf, katakanlah kita mempunyai file 1.pdf 2.pdf 3.pdf dan sekarang kita akan menggabungkan ketiga file tsb. menggunakan perintah
# gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=filepdfku.pdf -bBATCH 1.pdf
2.pdf 3.pdf  
Pada perintah diatas command setelah "-sOUTPUTFILE=" ketikan sembarang nama untuk file pdf baru hasil dari penggabungan file(jangan lupa untuk memberi extensi .pdf) dan masing 1.pdf 2.pdf 3.pdf dipisahkan dengan spasi
Setelah menjalankan perintah diatas maka akan tebentuk file filepdfku.pdf hasil penggabungan.

Posted by arifin | Permanent Link | Categories: Nguprek

Mon Jan 15 01:49:34 WIT 2007

Membuat Music Streaming Server (mp4, mp4, ogg menggunakan Apache2)

Bagaimana membuat sebuah music streaming server memanfaatkan apache2 sebagai server, kita menggunakan libapache2-mod-musicindex, server ini nantinya akan bekerja dengan music berformat MP3, MP4/AAC, FLAC, Ogg Vorbis

Kita mulai dengan menginstall mod dan codecs

# apt-get install libapache2-mod-musicindex libogg-dev
# apt-get install libvorbis-dev libid3tag0-dev libmad0-dev libflac-dev

tambahkan modul mod_musicindex.so

Tambahkan baris berikut ke /etc/apache2/httpd.conf
LoadModule musicindex_module /usr/lib/apache2/modules/mod_musicindex.so

Terakhir, edit yang diinginkan

kita menggunakan /etc/apache2/conf.d/alias
Alias /music /home/foo/music/
< Directory /home/arifin/music/ >
 Options Indexes MultiViews FollowSymlinks
 AllowOverride       Indexes
 MusicLister         On
 MusicSortOrder      album disc track artist title length bitrate freq filet$
 MusicFields         title artist length bitrate
 MusicAllowDownload  Off
 MusicAllowStream    On
 MusicAllowSearch    On
#  MusicRssItems       Off
 MusicPageTitle      home
 MusicCssDefault     musicindex.css
 MusicCachePath      /tmp/musicindex
#  MusicIceServer     [ice.domain.my]:8000
#  MusicCookieLife    300
 < /Directory >

restart apache

 /etc/init.d/apache2 restart 
finish!!, server yang barusan anda buat sudah siap untuk stream,
contoh untuk mengakses @ http://localhost/music

Simple cosmetik Tampilan server ini kurang begitu menarik,
cara sederhana untuk memodifikasinya adalah merubah /var/www/musicindex/musicindex.css
contoh tag a.rss

table#directories div > a.rss {
font-size: 10pt;
 }
  
jika anda merubah menjadi berikut
 table#directories div > a.rss {
 font-size: 10pt;
 margin-left:200px;
}
Enjoy your music stream

Posted by Arifin | Permanent Link | Categories: Nguprek

Mon Jan 15 01:37:05 WIT 2007

Membuat Blog Full Command

Syntax dasarnya adalah : nb [-b blog_dir] [options]

Berikut perintah lengkapnya.!!
  • create new weblog (directory) = nb -b [blog_dir] -a
  • create new entry = nb -a
  • create new category = nb -c new -a
  • create new entry with category = nb -c [cat_id] -a
  • list entries = nb -l [all|DATE|max]
  • list categories = nb -l cat
  • list entries by category = nb -c [cat_id] -l [all|DATE|max]
  • edit entry = nb -e [entry_id]
  • move entry to category = nb -c [cat_id] -m [entry_id]
  • delete entry = nb -d [entry_id]
  • delete category = nb -c [cat_id] -d cat
  • delete entry from category = nb -c [cat_id] -d [entry_id]
  • draft entry = nb -E [draft_file]
  • import draft as entry = nb -f [draft_file] -a
  • force update of weblog files = nb -u [all|DATE|main]

Pertama kali susahnya minta ampun, namun setelah dicoba ternyata sangat menarik juga NgeBlog lewat console, selamat membuat Blog semoga bermanfaat


Posted by arifin | Permanent Link | Categories: NanoBlogger Help