Pages

Sabtu, 21 Desember 2013

Aneka Olahan Kari dari Aceh

KOMPAS.com - Ada banyak macam kari di Aceh dengan variasi bumbu yang berbeda-beda. Namun, cara memasaknya nyaris sama, yakni bumbu tumis dimasukkan dulu ke dalam kuali, setelah harum masukkan bumbu giling. Tambahkan sedikit air. Setelah bumbu harum masukkan daging ke dalam kuali. Tambahkan sedikit lagi air dan masak hingga matang. Setelah itu masukan kelapa gongseng, kelapa kukur yang telah digiling, dan santan (jika digunakan). Sayuran seperti kentang, labu, pisang kepok, atau kluwih yang biasa ditambahkan ke dalam aneka kari aceh, dimasukkan belakangan agar tidak hancur.
Sebagai catatan, ada juga beberapa juru masak yang mengaduk terlebih dahulu daging mentah dengan bumbu giling. Setelah itu, campuran itu langsung dimasak di kuali dan ditambah sedikit air. Setelah setengah matang, daun temurui atau daun kari dan aneka bumbu daun dimasukkan. Masukkan kelapa gongseng, kelapa kukur giling, dan santan (jika digunakan). Masak hingga daging matang.

A. Olahan kari pidie versi Ibu Merri, Banda Aceh
(untuk 1 kg daging)

Bumbu giling:
1. Cabe merah 1 ons
2. Cabe rawit sedikit saja
3. Kunyit bubuk 1 sdt
4. Cabe merah bubuk 1 sdt
5. Ketumbar bubuk 1 sdt
6. Jinten manis 1 sdt
7. Jinten kasar 1 sdt
8. Jahe 1 ruas jari
9. Bawang merah 1 ons
10. Bawang putih  3 siung
11. Bunga lawang keling 2 butir
12. Kayu manis sedikit saja
13. Cengkeh sedikit saja
14. Kaskas 1 sdt
15. Sereh 2 btg
16. Kelapa gongseng  2 sdm
17. Santan dari 2 butir kelapa
18. Garam secukupnya

Bumbu tumis:
1. Daun pandan
2. Daun temurui (daun kari) 10 lembar
3. Bawang merah iris secukupnya
4. Bawang putih iris secukupnya

B. Olahan karie pidie versi Ibu Cut Rahmi Stesia, Banda Aceh
Bahan utama: 1 kg daging sapi/ayam/itik

Bumbu giling:
1. Bawang merah 5 siung
2. Bawang putih 2 siung
3. Jinten manis 1 sdt
4. Jinten halus 1 sdt
5. Kaskas 1 sdt
6. Jahe satu ibu jari
7. Kunyit bubuk 1 sdt
8. Tomat 3 buah
9. Lada bubuk 1 sdt
10. Santan secukupnya
11.  Garam secukupnya

Bumbu tumis:
1. Cabe kering 10 buah
2. Kayu manis 1 jari
3. Bunga lawang keling 4 buah
4. Kapulaga 4 buah
5. Bawang bombay 1 buah
C. Olahan kari aceh timur versi Ibu Ruliantini
Bahan utama: 1 kg daging sapi/kambing
Bumbu giling:
1. Cabe merah basah 11 buah
2. Cabe merah kering 5 bh
3. Bawang merah 15 butir
4. Bawang putih 3 siung
5. Jahe 3 cm
6. Kunyit 3 cm
7. Ketumbar 1 sdm
8. Lada ½ sdt
9. Jinten manis/halus  ½ sdt
10. Jinten putih/kasar  ½ sdt
11. Biji pala ½ butir
12. Biji ketapang
13. Kaskas ¼ sdt
14. Kayu manis
15. Cengkeh 3 butir
16. Kelapa giling 1 sdm
17. Kelapa gongseng 3 sdm

Bumbu tumis
1. Bawang merah 3 butir
2. Bawang putih 1 butir
3. Bunga lawang keling  3 buah
4. Kapulaga india 1 butir
5. Kayumanis 1 ruas jari
6. Santan kental 1 butir
7. Daun temurui/kari 20 lembar
8. Sereh 1 batang

D. Resep kari aceh utara versi Ibu Tinar, Lhokseumawe
Bahan utama:  1 kg daging kambing/sapi/ayam, dapat ditambah kentang atau labu

Bumbu giling:
1. Cabe merah basah 15 btr
2. Cabe kering  10 btr
3. Cabe rawit hijau 10 btr
4. Bawang merah 10 siung
5. Bawang putih 5 siung
6. Jahe sedikit
7. Kunyit sedikit
8. Ketumbar 3 sdm
9. Pala ¼ btr
10. Biji ketapang 1 btr
11. Jinten kasar ¼ sdt
12. Jinten halus ¼ sdt
13. Kelapa gongseng 1 ½ ons
14. Santan

Bumbu tumis:
1. Bawang merah 3 siung
2. Kapulaga india 5 btr
3. Bunga lawang keling 3 btr
4. Daun pandan 1 lbr
5. Daun temurui 10 lbr
6. Asam jawa
7. Perasan jeruk nipis

E. Kari meulaboh versi Ibu Cut Nyak Mizar
Bahan utama: 1 kg daging kerbau
Bumbu giling:
1. Kelapa gongseng 1 ons
2. Bumbu kari 1 sdm
3. Bawang putih 3 siung
4. Bawang merah 5 siung
5. Cabe kering/bubuk 1 sdm
6. Cabe rawit 10 biji
7. Kunyit 1 ibu jari
8. Sereh 1 batang
9. Daun jeruk purut
10. Daun temurui
11. Santan

Bumbu tumis:
1. Bawang merah 2
2. Bawang putih 1
3. Bunga lawang keling 2
4. Kapulaga 3
5. Kayu manis

Disusun: Umi/Litbang Kompas; diolah dari berbagai sumber

===================

Dendeng Kari

Bahan:
2 sdm minyak goreng, untuk menumis
3 btr kapulaga, memarkan
3 cm kayumanis
2 bh pekak (bunga lawang)
5 btr cengkih
1 cm lengkuas, memarkan
2 lbr daun jeruk
1 lt kaldu daging
250 gr dendeng, rendam air, potong-potong
200 ml santan cair
200 gr kentang, kupas, potong 4 bagian
1 bh tomat, potong-potong
½ sdm garam

Bumbu halus:
5 bh cabai merah
6 btr bawang merah
3 siung bawang putih
2 cm kunyit
2 cm jahe
10 btr merica butir
1 sdm ketumbar, sangrai
¼ sdt jintan, sangrai

Cara membuat:
1. Panaskan minyak, tumis bumbu halus, kapulaga, kayumanis, pekak, cengkih, lengkuas, dan daun jeruk masak hingga harum. Tambahkan kaldu, aduk rata.
2. Masukkan dendeng, aduk rata. Tutup wajan, aduk sesekali sampai daging kaku.
3. Tuangi santan. Masukkan kentang, tomat, dan garam. Rebus sampai matang. Angkat dan sajikan.

Tips:   Agar lunak tapi tak kehilangan rasa asli dendeng, rendam dendeng sebentar saja di dalam air.

Resep: Dahrani Putri, Uji Dapur: Klub Nova, Penata Saji: Popy Fitria, Foto: Ahmad Fadilah

==============
Mie Aceh Sabang Asli Indonesia  
sumber :  http://www.adresep.com/2013/05/resep-cara-membuat-mie-aceh-sabang-asli.html

 
Pernah pergi ke Aceh atau Sobat dari daerah Aceh , makanan yang paling populer saat ini di aceh adalah mie aceh sabang yang sangat terkenal dan enak. Tak perlu khawatir harus beli ke Aceh namun Sobat bisa membuatnya sendiri dengan mudah di rumah dan siap di masukan dalam menu keluarga Sobat.


Resep Cara Membuat Mie Aceh Sabang Asli Indonesia


Bahan Resep Cara Membuat Mie Aceh Sabang Asli Indonesia :
  • 500 gr    Mie basah/kuning
  • 150 gr    Udang segar, kupas buang kulit
  • 150 gr    Daging sapi/ kambing yang sudah direbus, diiris tipis
  • 1 buah   Tomat, di potong memanjang segitiga
  • 5 siung   Bawang merah, diiris tipis
  • 4 siung   Bawang putih , diirs tipis
  • 100 gr    Kol putih, diiris halus
  • 100 gr    Tauge segar, buang ekornya
  • 25 gr      Bawang daun , diiris tipis
  • 10 gr      Seledri, diiris halus
  • 600 ml    Kaldu sapi ( dari rebusan daging sapi )
  • 2 sdm     Kecap manis
  • 2 sdm     Kecap asin
  • 4 sdm     Minyak goreng
Bumbu halus Resep Cara Membuat Mie Aceh Sabang Asli Indonesia :
  • 7 buah  Cabe merah
  • 5 siung Bawang putih
  • 1 cm       Jahe
  • 3 butir   Kemiri sangrai
  • ¼ sdt     Ketumbar sangrai
  • ¼  sdt    Jintan sangrai
  • 3 butir   Adas manis sangrai
  • 3 butir   Kapulaga
  • ½ cm      Kunyit segar
  • 1 sdt      Merica putih bubuk
Bahan pelengkap :
  • Emping
  • Acar timun
Proses Pembuatan Resep Cara Membuat Mie Aceh Sabang Asli Indonesia :
  • Panaskan minyak, tumis bawang merah iris, bawang putih iris dan bumbu halus hingga harum dan matang.
  • Masukkan  daging, kemudian  udang  dan aduk hingga rata
  • Tambahkan kaldu, biarkan mendidih, kemudian tambahkan kol,  daun bawang dan seledri serta garam. Masak  hingga air kaldunya agak berkurang
  • Masukkan taoge dan tomat , kemudian tambahkan kecap manis dan kecap asin
  • Sambil menunggu bumbu mendidih, di tempat lain seduh mie basah dengan air panas, tiriskan kemudian masukkan  kedalam bumbu tadi, aduk-aduk hingga tercampur merata
  • Siap disajikan, sajikan pada saat masih panas dengan didampingi emping dan acar timun         
==============

Resep Rahasia Cara Membuat Mie Aceh Spesial

Anda pernah mencoba menu yang satu ini? Jika anda belum pernah mencoba pasti nyesel deh..!! :D
Citarasa Mie Aceh sangat menggugah selera bagi pecinta kuliner masakan Nusantara, komposisi bahan dan bumbu begitu pas, sehingga memperoleh Aroma dan citarasa yang nikmat.

Nah, jika anda tertarik untuk membuat Mie Aceh dirumah, berikut akan saya bagikan Resep Mie Goreng Aceh Spesial untuk Anda :

Bahan-bahan Mie Aceh:
    Resep Rahasia Mie Aceh
  • 400 gram mie basah / kuning
  • 750 ml kaldu sapi
  • 150 gram udang basah, bersihkan, buang kulitnya.
  • 150 gram daging kambing / sapi, potong dadu
  • 1 buah tomat, potong dadu
  • 4 siung bawang putih, iris tipis.
  • 3 siung bawang merah, iris tipis.
  • 60 gram tauge, siangi, buang buntutnya.
  • 100 gram kol, iris tipis.
  • 1 sdt cuka
  • 2 sdm kecap manis
  • 1 batang daun bawang, iris halus.
  • 1 sdm sledri, iris halus.
  • 2 sdt garam.
  • 3 sdm makan minyak goring.
Bumbu halus Mie Aceh:
  • 5 buah bawang merah.
  • 3 siung bawang putih.
  • 4 buah cabai merah, buang bijinya.
  • ½ sdmbubuk kunyit.
  • 4 butir kapulaga.
  • 1 sdt jinten, sangrai.
  • 1 sdt lada butir.
Pelengkap Mie Aceh:
  • Kerupuk Udang / Kerupuk Emping.
  • Acar mentimun.
Cara Membuat Mie Aceh :
  1. Tumis irisan bawang merah, irisan bawang putih dan bumbu halus hingga harum. 
  2. Masukkan daging kambing / sapi, aduk dan masak hingga berubah warna. 
  3. Kemudian tambahkan udang dan tomat, aduk rata. 
  4. Masukkan kaldu, sledri, daun bawang, garam dan cuka. 
  5. Masak hingga daging matang dan air berkurang sambil sesekali diaduk. 
  6. Masukkan kol dan tauge, aduk rata. 
  7. Kemudian tambahkan mie dan kecap manis. 
  8. Aduk sampai semua bahan tercamppur rata dan matang. Angkat. 
  9. Sajikan panas-panas dengan acar mentimun dan emping goreng.
sumber : http://resephariini.blogspot.com/2013/03/resep-rahasia-cara-membuat-mie-aceh.html

==============

RESEP MIE ACEH KUAH ENAK KHAS ACEH ASLI. Aceh dikenal dengan kopi aceh nya yang nikmat ternyata Aceh menyimpan kuliner Mie aceh yang enak. Untuk itu kita akan mencoba membuat Mie Aceh Kuah rebus udang yang dilengkapi dengan cara mudah bikin sendiri :

BAHAN :
  • 500 gram mie kuning basah
  • 1 ekor kepiting
  • 1/4kg udang
  • 750 ml air kaldu
  • 150 gram daging sapi, potong dadu
  • 4 siung bawang putih, diiris tipis
  • 4 butir bawang merah, diiris tipis
  • 1 buah tomat, dipotong-potong
  • 1 batang daun bawang/seledri, diiris tipis
  • 50 gram taoge, bersihkan
  • 50 gram kubis/kol, diiris tipis
  • 1 sdm kecap manis
  • 1 lembar daun salam
  • Margarin/mentega untuk menumis
BUMBU DIHALUSKAN :
  • 6 butir bawang merah
  • 5 siung bawang putih
  • 2 buah cabai merah besar, dibuang biji
  • 1 butir kapulaga
  • 2 cm kunyit, dibakar
  • 1/4 sdt jintan
  • 1/2 sdt merica bubuk
  • Garam secukupnya
BAHAN PELENGKAP :
  • Acar mentimun
  • Bawang goreng
CARA MEMBUAT MIE ACEH KUAH ENAK KHAS ACEH ASLI :
  1. Siapkan margarin/mentega untuk menumis, tumis bawang merah, bawang putih, dan bumbu halus hingga harum.
  2. Masukkan daging sapi yang sudah dipotong dadu, aduk dan masak hingga daging berubah warna.
  3. Tambahkan udang, kepiting, dan air kaldu lalu aduk rata.
  4. Masukkan seledri/daun bawang, garam, daun salam dan merica bubuk.
  5. Masak hingga daging, kepiting dan udang matang
  6. Jika air sudah berkurang dan daging sudah lunak kecilkan api.
  7. Masukkan kubis/kol, tomat dan tauge, lalu tambahkan mie dan kecap manis.
  8. Aduk hingga semua bahan tercampur rata dan matang. Lalu angkat.
SARAN DAN CARA PENYAJIAN MIE ACEH KUAH YANG ENAK :
  1. Siapkan mangkuk, lalu masukkan mie dan kuah
  2. Taburkan bawang goreng diatasnya
  3. Sajikan bersama acar mentimun
  4. Porsi untuk 3-4 orang
sumber : http://kreasimasakan.blogspot.com/2013/02/resep-mie-aceh-kuah-enak-khas-aceh-asli.html

==============

KARI AYAM

Siapa yang tak tergiur dengan kari ayam yang sarat dengan bumbu rempah yang harum ini? Ya, Masakan asal Aceh memang begitu sarat dengan rempah inilah ciri khas dari masakan asal negeri serambi Mekah ini.

Bahan-bahan/bumbu-bumbu :
1 ekor ayam, dipotong 16 bagian
1/2 sendok makan air jeruk nipis
2 1/2 sendok teh garam
4 siung bawang putih, diiris tipis
6 butir bawang merah, diiris tipis
2 cm kayumanis
1 buah pekak
1 butir cengkeh
1 butir kapulaga, dimemarkan
1 batang serai, dimemarkan
1 lembar daun pandan
4 lembar daun salam koja
600 ml santan dari 1 butir kelapa
1/2 sendok teh gula
3 sendok makan minyak untuk menumis

Bumbu Halus:
8 buah cabai merah
3 cm kunyit
2 cm jahe
1 sendok teh ketumbar
1/4 sendok teh jintan, disangrai
1/4 sendok teh adas, disangrai
1/2 sendok teh merica bubuk
1/4 sendok teh pala
50 gram kelapa parut, disangrai
2 butir kemiri

Cara Pengolahan :
  1. Lumuri ayam, air jeruk, garam, dan bumbu halus. Diamkan 15 menit.
  2. Panaskan minyak. Tumis bawang putih dan bawang merah sampai harum. Tambahkan ayam. Masak sampai berubah warna.
  3. Tambahkan kayumanis, pekak, cengkeh, kapulaga, serai, daun pandan, dan daun salam koja. Aduk rata.
  4. Tuang santan. Masak sampai ayam matang, kuah kental dan berminyak.
Untuk 8 porsi

sumber : http://www.sajiansedap.com/recipe/detail/11055/kari-ayam#.UrWKPPvHns4

Minggu, 24 November 2013

Lusca Patch 2013 ( Youtube Cache)

Terima kasih untuk ucok_karnadi@yahoo.com yang telah menemukan solusi ini


Semoga membantu agar Youtube dapat tercache oleh Pfsense Lusca Cache.


Perhatian !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Lusca sudah terinstall dan berjalan dengan baik cuma youtube tidak tercache.

Install dahulu File::ReadBackwards module

dari konsole putty :

#setenv PACKAGESITE http://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/8.1-RELEASE/packages/Latest/

#pkg_add -r -v -f p5-File-ReadBackwards

atau:

#pkg_add -r  http://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/8.1-RELEASE/packages/Latest/p5-File-ReadBackwards.tbz

atau :

#pkg_add -r http://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/perl5/p5-File-ReadBackwards-1.05.tbz



Selanjutnya ikuti langkah dibawah ini :

1. Masuk ke Konsole melalui Putty, Lalu buat file cobaReadBack.pl
    isi nya :
   
#-------------------------------



#!/usr/bin/perl
use File::ReadBackwards;
 
$fh = File::ReadBackwards->new('/var/squid/logs/access.log') or
die "can't read file: $!\n";
 
while ( defined($line = $fh->readline) )
{
  print $line ;
}

 

#-------------------------------

cara tes atau menjalankannya :

# perl cobaReadBack.pl

2.Backup file /user/local/etc/squid/include.conf dan hapus semua isinya dan

  paste kan teks dibawah ini :


#----------------------- 


#thanks to ucok_karnadi@yahoo.com
#debug_options ALL,3
strip_query_terms off
acl yutub url_regex -i .*youtube\.com\/.*$
acl yutub url_regex -i .*youtu\.be\/.*$

#logformat chudy %ts.%03tu %6tr %>a %Ss/%03Hs %<st %rm %ru %mt http%rv Rq[%>h] Rp[%<h]
#access_log /var/squid/logs/access.log
# logformat squid1 %{Referer}>h %ru
logformat squid1 %{Referer}>h %ru
#logformat squid1 %>h %ru
access_log /var/squid/logs/yt.log squid1 yutub
acl redirec urlpath_regex -i .*&redirect_counter=1&cms_redirect=yes
acl redirec urlpath_regex -i .*&ir=1&rr=12
cache deny redirec 
acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*redirect_counter=1.*$
acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*cms_redirect=yes.*$
#acl range url_regex -i .*youtube\.com\/videoplayback.*range\=.*$
#http_access deny range
#storeurl_access deny reddeny
#


# $Rev$
## LUSCA
acl speedtest url_regex ^http:\/\/.*\/speedtest\/.*
acl store_rewrite_list urlpath_regex .*\.ak\.fbcdn\.net\/
acl store_rewrite_list urlpath_regex http:\/\/199\.91\.15\d\.\d*\/\w{12}\/(\w*)\/(.*)
acl store_rewrite_list urlpath_regex s[0-9]*\.filesonic\.com\/download\/.*
acl store_rewrite_list urlpath_regex [a-zA-Z]{2}[0-9]*\.4shared\.com\/download\/
acl store_rewrite_list urlpath_regex \/(watch\?|get_video\?|videodownload\?|videoplayback.*id)
#acl store_rewrite_list urlpath_regex \.youtube\.com\/videoplayback \.youtube\.com\/videoplay \.youtube\.com\/get_video\?
#acl store_rewrite_list urlpath_regex \.youtube\.[a-z][a-z]\/videoplayback \.youtube\.[a-z][a-z]\/videoplay \.youtube\.[a-z][a-z]\/get_video\?
acl store_rewrite_list urlpath_regex \.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv|wmv|3gp|mp(4|3)|exe|msi|zip|on2|mar|rar|cab)\?
acl store_rewrite_list_domain url_regex ^http:\/\/([a-zA-Z-]+[0-9-]+)\.[A-Za-z]*\.[A-Za-z]*
acl store_rewrite_list_domain url_regex (([a-z]{1,2}[0-9]{1,3})|([0-9]{1,3}[a-z]{1,2}))\.[a-z]*[0-9]?\.[a-z]{3}
acl store_rewrite_list_path urlpath_regex \.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv|avc|zip|mp3|3gp|rar|on2|mar|exe|cab)$
acl store_rewrite_list_domain_CDN url_regex \.rapidshare\.com.*\/[0-9]*\/.*\/[^\/]* ^http:\/\/(www\.ziddu\.com.*\.[^\/]{3,4})\/(.*) \.doubleclick\.net.*
acl store_rewrite_list_domain_CDN url_regex ^http:\/\/[.a-z0-9]*\.photobucket\.com.*\.[a-z]{3}$ quantserve\.com
acl store_rewrite_list_domain_CDN url_regex ^http:\/\/[a-z]+[0-9]\.google\.co(m|\.id)
acl store_rewrite_list_domain_CDN url_regex ^http:\/\/\.www[0-9][0-9]\.indowebster\.com\/(.*)(rar|zip|flv|wm(a|v)|3gp|mp(4|3)|exe|msi|avi|(mp(e?g|a|e|1|2|3|4))|cab|exe)
acl store_rewrite_list urlpath_regex \/(get_video|videoplayback\?id|videoplayback.*id) \.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv|wmv|3gp|mp(4|3)|exe|msi|zip|on2|mar|swf)\?
acl store_rewrite_list_domain url_regex ^http:\/\/([a-zA-Z-]+[0-9-]+)\.[A-Za-z]*\.[A-Za-z]*
acl store_rewrite_list_domain url_regex (([a-z]{1,2}[0-9]{1,3})|([0-9]{1,3}[a-z]{1,2}))\.[a-z]*[0-9]?\.[a-z]{3}
acl store_rewrite_list_path urlpath_regex \.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv|avc|zip|mp3|3gp|rar|on2|mar|krf|exe)$
acl store_rewrite_list_domain_CDN url_regex (khm|mt)[0-9]?.google.co(m|\.id)  streamate.doublepimp.com.*\.js\? photos-[a-z].ak.fbcdn.net \.rapidshare\.com.*\/[0-9]*\/.*\/[^\/]* ^http:\/\/(www\.ziddu\.com.*\.[^\/]{3,4})\/(.*) \.doubleclick\.net.* yieldmanager cpxinteractive ^http:\/\/[.a-z0-9]*\.photobucket\.com.*\.[a-z]{3}$ quantserve\.com
acl dontrewrite url_regex redbot\.org (get_video|videoplayback\?id|videoplayback.*id).*begin\=[1-9][0-9]* \.php\?
acl getmethod method GET

storeurl_access allow speedtest
storeurl_access deny dontrewrite
storeurl_access deny !getmethod
storeurl_access allow store_rewrite_list_domain_CDN
storeurl_access allow store_rewrite_list
storeurl_access allow store_rewrite_list_domain
storeurl_access allow store_rewrite_list_path
storeurl_access deny reddeny
storeurl_access deny all

storeurl_rewrite_program /usr/local/etc/squid/storeurl.pl
storeurl_rewrite_children 16
storeurl_rewrite_concurrency 99


acl snmppublic snmp_community public
cachemgr_passwd none config reconfigure

#work around for fragment videos of msn
acl msnvideo url_regex QualityLevel.*Fragment
http_access deny msnvideo 

#always_direct allow html
#cache_peer localhost parent 4001 0 carp login=PASS name=backend-1
max_stale 10 years

include /usr/local/etc/squid/refresh.conf

#acl shoutcast rep_header X-HTTP09-First-Line ^ICY.[0-9]
#upgrade_http0.9 deny shoutcast
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache

#read_ahead_gap 0 KB

#ie_refresh on
reload_into_ims on

strip_query_terms off
deny_info TCP_RESET localnet
negative_dns_ttl 1 second
negative_ttl 1 second
snmp_port 3401
snmp_access allow snmppublic all
maximum_single_addr_tries 2
retry_on_error on
#n_aiops_threads 64
# server_http11 on
#request_header_max_size 128 KB
#reply_header_max_size 128 KB
#range_offset_limit 10 MB
vary_ignore_expire on
#client_db off # this needs to be on for acl maxconn to work
ipcache_size 4096
fqdncache_size 20
#tcp_recv_bufsize 64 KB
pipeline_prefetch on
#half_closed_clients off

# 0x10 no delay, 0x08 throughput, 0x04 reliability
# 0x10       10000    (minimize delay)           Use delay metric
# 0x08       01000    (maximize throughput)      Use default metric
# 0x04       00100    (maximize reliability)     Use reliability metric
# 0x02       00010    (minimize monetary cost)   Use cost metric
# dscp    squidtos+ECN
# 56    0xE0    11100000
# 48    0xc0    11000000
# 08    0x20    00100000
# 32    0x80    10000000
# 16    0x40    01000000
#tcp_outgoing_tos 0x03 video
#tcp_outgoing_tos 0xb8 html
#tcp_outgoing_tos 0x20 images
#tcp_outgoing_tos 0x02 all

#zph_mode tos
#zph_local 0xb8
#zph_parent 0x08

#acl monitor url_regex avira
#logformat chudy %ts.%03tu %6tr %>a %Ss/%03Hs %<st %rm %ru %mt http%rv Rq[%>h] Rp[%<h]
#access_log /var/squid/logs/access2.log chudy monitor

#buffered_logs on
#download_fastest_client_speed on
#acl text rep_header Content-Type -i text\/
#acl hit rep_header X-Cache -i hit
#acl partial rep_header Content-Range .*
#log_access deny partial
#log_access deny php
#log_access deny text
#log_access deny hit
#log_access deny html
#log_access deny !getmethod
high_page_fault_warning 50
#log_access deny manager

###tunning hanya untuk lusca
n_aiops_threads 16
download_fastest_client_speed on
#tambahan
buffered_logs on
client_db off
memory_pools off
half_closed_clients off

#---------------------------------



3. Backup file /user/local/etc/squid/storeurl.pl dan hapus semua isinya dan
 paste kan teks dibawah ini :

#---------------------------------
#!/usr/bin/perl
# store rewrite originally writen by chudy_fernandez@yahoo.com
# modified by member of comstuff.net to satisfy common and dynamic content.
# 
$|=1;
while (<>) {
    @X = split;
#       $X[1] =~ s/&sig=.*//;
        $x = $X[0] . " ";
        $_ = $X[1];
        $u = $X[1];


                        #speedtest
if (m/^http:\/\/(.*)\/speedtest\/(.*\.(jpg|txt))\?(.*)/) {
        print $x . "http://www.speedtest.net.SQUIDINTERNAL/speedtest/" . $2 . "\n";

                        #mediafire
}elsif (m/^http:\/\/199\.91\.15\d\.\d*\/\w{12}\/(\w*)\/(.*)/) {
        print $x . "http://www.mediafire.com.SQUIDINTERNAL/" . $1 ."/" . $2 . "\n";

                        #fileserve
}elsif (m/^http:\/\/fs\w*\.fileserve\.com\/file\/(\w*)\/[\w-]*\.\/(.*)/) {
        print $x . "http://www.fileserve.com.SQUIDINTERNAL/" . $1 . "./" . $2 . "\n";

                        #filesonic
}elsif (m/^http:\/\/s[0-9]*\.filesonic\.com\/download\/([0-9]*)\/(.*)/) {
        print $x . "http://www.filesonic.com.SQUIDINTERNAL/" . $1 . "\n";

                        #4shared
}elsif (m/^http:\/\/[a-zA-Z]{2}\d*\.4shared\.com(:8080|)\/download\/(.*)\/(.*\..*)\?.*/) {
        print $x . "http://www.4shared.com.SQUIDINTERNAL/download/$2\/$3\n";
        
                        #4shared preview
}elsif (m/^http:\/\/[a-zA-Z]{2}\d*\.4shared\.com(:8080|)\/img\/(\d*)\/\w*\/dlink__2Fdownload_2F(\w*)_3Ftsid_3D[\w-]*\/preview\.mp3\?sId=\w*/) {
        print $x . "http://www.4shared.com.SQUIDINTERNAL/$2\n";

                        #photos-X.ak.fbcdn.net where X a-z
}elsif (m/^http:\/\/photos-[a-z](\.ak\.fbcdn\.net)(\/.*\/)(.*\.jpg)/) {
        print $x . "http://photos" . $1 . "/" . $2 . $3  . "\n";

                        #YX.sphotos.ak.fbcdn.net where X 1-9, Y a-z
} elsif (m/^http:\/\/[a-z][0-9]\.sphotos\.ak\.fbcdn\.net\/(.*)\/(.*)/) {
    print $x . "http://photos.ak.fbcdn.net/" . $1  ."/". $2 . "\n";

                        #maps.google.com
} elsif (m/^http:\/\/(cbk|mt|khm|mlt|tbn)[0-9]?(.google\.co(m|\.uk|\.id).*)/) {
        print $x . "http://" . $1  . $2 . "\n";
        
                        # compatibility for old cached get_video?video_id
} elsif (m/^http:\/\/([0-9.]{4}|.*\.youtube\.com|.*\.googlevideo\.com|.*\.video\.google\.com).*?(videoplayback\?id=.*?|video_id=.*?)\&(.*?)/) {
        $z = $2; $z =~ s/video_id=/get_video?video_id=/;
        print $x . "http://video-srv.youtube.com.SQUIDINTERNAL/" . $z . "\n";

        # youtube fix by th30nly @comstuff.net, ucok_karnadi@yahoo.com, extreemblank@yahoo.com
        # for ALL Youtube ( range & non range )
        # first you need do this
        # install package dependencies "apt-get install libfile-readbackwards-perl"
        # add line below to your squid config and remove "#"
       
        # strip_query_terms off
        # acl yutub url_regex -i .*youtube\.com\/.*$
        # acl yutub url_regex -i .*youtu\.be\/.*$
        # logformat squid1 %{Referer}>h %ru
        # access_log /var/log/squid/yt.log squid1 yutub
        # acl redirec urlpath_regex -i .*&redirect_counter=1&cms_redirect=yes
        # acl redirec urlpath_regex -i .*&ir=1&rr=12
        # cache deny redirec
        # acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*redirect_counter=1.*$
        # acl reddeny url_regex -i c\.youtube\.com\/videoplayback.*cms_redirect=yes.*$
        # storeurl_access deny reddeny

} elsif (m/^http:\/\/([0-9.]{4}|.*\.youtube\.com|.*\.googlevideo\.com|.*\.video\.google\.com)\/videoplayback\?(.*)/) {
        $p_str = $2;
        #$tag = "";
        #$alg = "";
        #$id = "";
        #$range = "";
        #if ($p_str =~ m/(itag=[0-9]*)/){$tag = "&".$1}
        #if ($p_str =~ m/(algorithm=[a-z]*\-[a-z]*)/){$alg = "&".$1}
        #if ($p_str =~ m/(id=[a-zA-Z0-9]*)/){$id = "&".$1}
        #if ($p_str =~ m/(range=[0-9\-]*)/){$range = "&".$1; $range =~ s/-//; $range =~ s/range=//; }
        #print $x . "http://video-srv.youtube.com.SQUIDINTERNAL/" . $tag . "&" . $alg . "&" . $id . "&" . $range . "\n";
                #modif
                @itag = m/[&?](itag=[0-9]*)/;
          @CPN = m/[&?]cpn\=([a-zA-Z0-9\-\_]*)/;
             @IDS = m/[&?]id\=([a-zA-Z0-9\-\_]*)/;
                #@id = m/[&?](id=[^\&]*)/;            
          $id = &GetID($CPN[0], $IDS[0]);
                @range = m/[&?](range=[^\&\s]*)/;
                #print $x . "http://video-srv.youtube.com.SQUIDINTERNAL/@itag&@id&@range\n";
                print $x . "http://video-srv.youtube.com.SQUIDINTERNAL/id=" . $id . "&@itag@range\n";    
  
} elsif (m/^http:\/\/www\.google-analytics\.com\/__utm\.gif\?.*/) {
        print $x . "http://www.google-analytics.com/__utm.gif\n";

                        #Cache High Latency Ads
} elsif (m/^http:\/\/([a-z0-9.]*)(\.doubleclick\.net|\.quantserve\.com|\.googlesyndication\.com|yieldmanager|cpxinteractive)(.*)/) {
        $y = $3;$z = $2;
        for ($y) {
        s/pixel;.*/pixel/;
        s/activity;.*/activity/;
        s/(imgad[^&]*).*/\1/;
        s/;ord=[?0-9]*//;
        s/;&timestamp=[0-9]*//;
        s/[&?]correlator=[0-9]*//;
        s/&cookie=[^&]*//;
        s/&ga_hid=[^&]*//;
        s/&ga_vid=[^&]*//;
        s/&ga_sid=[^&]*//;
        # s/&prev_slotnames=[^&]*//
        # s/&u_his=[^&]*//;
        s/&dt=[^&]*//;
        s/&dtd=[^&]*//;
        s/&lmt=[^&]*//;
        s/(&alternate_ad_url=http%3A%2F%2F[^(%2F)]*)[^&]*/\1/;
        s/(&url=http%3A%2F%2F[^(%2F)]*)[^&]*/\1/;
        s/(&ref=http%3A%2F%2F[^(%2F)]*)[^&]*/\1/;
        s/(&cookie=http%3A%2F%2F[^(%2F)]*)[^&]*/\1/;
        s/[;&?]ord=[?0-9]*//;
        s/[;&]mpvid=[^&;]*//;
        s/&xpc=[^&]*//;
        # yieldmanager
        s/\?clickTag=[^&]*//;
        s/&u=[^&]*//;
        s/&slotname=[^&]*//;
        s/&page_slots=[^&]*//;
        }
        print $x . "http://" . $1 . $2 . $y . "\n";

                        #cache high latency ads
} elsif (m/^http:\/\/(.*?)\/(ads)\?(.*?)/) {
        print $x . "http://" . $1 . "/" . $2  . "\n";

                        # spicific servers starts here....
} elsif (m/^http:\/\/(www\.ziddu\.com.*\.[^\/]{3,4})\/(.*?)/) {
        print $x . "http://" . $1 . "\n";

                        #cdn, varialble 1st path
} elsif (($u =~ /filehippo/) && (m/^http:\/\/(.*?)\.(.*?)\/(.*?)\/(.*)\.([a-z0-9]{3,4})(\?.*)?/)) {
        @y = ($1,$2,$4,$5);
        $y[0] =~ s/[a-z0-9]{2,5}/cdn./;
        print $x . "http://" . $y[0] . $y[1] . "/" . $y[2] . "." . $y[3] . "\n";

                        #rapidshare
} elsif (($u =~ /rapidshare/) && (m/^http:\/\/(([A-Za-z]+[0-9-.]+)*?)([a-z]*\.[^\/]{3}\/[a-z]*\/[0-9]*)\/(.*?)\/([^\/\?\&]{4,})$/)) {
        print $x . "http://cdn." . $3 . "/SQUIDINTERNAL/" . $5 . "\n";

} elsif (($u =~ /maxporn/) && (m/^http:\/\/([^\/]*?)\/(.*?)\/([^\/]*?)(\?.*)?$/)) {
        print $x . "http://" . $1 . "/SQUIDINTERNAL/" . $3 . "\n";

                        #like porn hub variables url and center part of the path, filename etention 3 or 4 with or without ? at the end
} elsif (($u =~ /tube8|pornhub|xvideos/) && (m/^http:\/\/(([A-Za-z]+[0-9-.]+)*?(\.[a-z]*)?)\.([a-z]*[0-9]?\.[^\/]{3}\/[a-z]*)(.*?)((\/[a-z]*)?(\/[^\/]*){4}\.[^\/\?]{3,4})(\?.*)?$/)) {
        print $x . "http://cdn." . $4 . $6 . "\n";
                        #...spicific servers end here.

                        #photos-X.ak.fbcdn.net where X a-z
} elsif (m/^http:\/\/photos-[a-z].ak.fbcdn.net\/(.*)/) {
        print $x . "http://photos.ak.fbcdn.net/" . $1  . "\n";

                        #for yimg.com video
} elsif (m/^http:\/\/(.*yimg.com)\/\/(.*)\/([^\/\?\&]*\/[^\/\?\&]*\.[^\/\?\&]{3,4})(\?.*)?$/) {
        print $x . "http://cdn.yimg.com//" . $3 . "\n";

                        #for yimg.com doubled
} elsif (m/^http:\/\/(.*?)\.yimg\.com\/(.*?)\.yimg\.com\/(.*?)\?(.*)/) {
        print $x . "http://cdn.yimg.com/"  . $3 . "\n";

                        #for yimg.com with &sig=
} elsif (m/^http:\/\/(.*?)\.yimg\.com\/(.*)/) {
        @y = ($1,$2);
        $y[0] =~ s/[a-z]+[0-9]+/cdn/;
        $y[1] =~ s/&sig=.*//;
        print $x . "http://" . $y[0] . ".yimg.com/"  . $y[1] . "\n";

                        #youjizz. We use only domain and filename
} elsif (($u =~ /media[0-9]{2,5}\.youjizz/) && (m/^http:\/\/(.*)(\.[^\.\-]*?\..*?)\/(.*)\/([^\/\?\&]*)\.([^\/\?\&]{3,4})((\?|\%).*)?$/)) {
        @y = ($1,$2,$4,$5);
        $y[0] =~ s/(([a-zA-A]+[0-9]+(-[a-zA-Z])?$)|(.*cdn.*)|(.*cache.*))/cdn/;
        print $x . "http://" . $y[0] . $y[1] . "/" . $y[2] . "." . $y[3] . "\n";

                        #general purpose for cdn servers. add above your specific servers.
} elsif (m/^http:\/\/([0-9.]*?)\/\/(.*?)\.(.*)\?(.*?)/) {
        print $x . "http://squid-cdn-url//" . $2  . "." . $3 . "\n";

                        #generic http://variable.domain.com/path/filename."ex" "ext" or "exte" with or withour "? or %"
} elsif (m/^http:\/\/(.*)(\.[^\.\-]*?\..*?)\/(.*)\.([^\/\?\&]{2,4})((\?|\%).*)?$/) {
        @y = ($1,$2,$3,$4);
        $y[0] =~ s/(([a-zA-A]+[0-9]+(-[a-zA-Z])?$)|(.*cdn.*)|(.*cache.*))/cdn/;
        print $x . "http://" . $y[0] . $y[1] . "/" . $y[2] . "." . $y[3] . "\n";

                        # generic http://variable.domain.com/...
} elsif (m/^http:\/\/(([A-Za-z]+[0-9-]+)*?|.*cdn.*|.*cache.*)\.(.*?)\.(.*?)\/(.*)$/) {
        print $x . "http://cdn." . $3 . "." . $4 . "/" . $5 .  "\n";

                        # spicific extention that ends with ?
} elsif (m/^http:\/\/(.*?)\/(.*?)\.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv|on2)(.*)/) {
        print $x . "http://" . $1 . "/" . $2  . "." . $3 . "\n";

                        # all that ends with ;
} elsif (m/^http:\/\/(.*?)\/(.*?)\;(.*)/) {
        print $x . "http://" . $1 . "/" . $2  . "\n";

} else {
        print $x . $_ . "sucks\n";
}
}

sub GetID
{
$id = "";
use File::ReadBackwards;
my $lim = 200 ;
my $ref_log = File::ReadBackwards->new('/var/squid/logs/yt.log');
while (defined($line = $ref_log->readline))
{
if ($line =~ m/.*youtube.*\/watch\?.*v=([a-zA-Z0-9\-\_]*).*\s.*id=$IDS[0].*/){
$id = $1;
last;
}
if ($line =~ m/.*youtube.*\/.*cpn=$CPN[0].*[&](video_id|docid|v)=([a-zA-Z0-9\-\_]*).*/){
$id = $2;
last;
}
if ($line =~ m/.*youtube.*\/.*[&?](video_id|docid|v)=([a-zA-Z0-9\-\_]*).*cpn=$CPN[0].*/){
$id = $2;
last;
}
last if --$lim <= 0;
}
if ($id eq ""){
$id = $IDS[0];
}
$ref_log->close();
return $id;
}

#------------------------------

File Pendukung untuk didownload
https://drive.google.com/file/d/0B_V-AjLdBFXQQmp0ZVhidHZ3d1U/edit?usp=sharing
https://drive.google.com/file/d/0B_V-AjLdBFXQQnBGRk03THRldGM/edit?usp=sharing
https://drive.google.com/file/d/0B_V-AjLdBFXQODNySXBJaktoTTA/edit?usp=sharing
https://drive.google.com/file/d/0B_V-AjLdBFXQQmp0ZVhidHZ3d1U/edit?usp=sharing





Selasa, 19 November 2013

Pfsense/FreeBSD add a user to group

Pfsense/FreeBSD add a user to group

Task: Add existing user to group

You would like to add existing user tom to secondary group called ftpusers. Type the command as follows:
# pw usermod tom -G ftpusers
You can add tom to secondary group ftpuser and wwwusers:
# pw usermod tom -G ftpusers,wwwusers
-G option Set the default groups in which new users are granted membership. This is a separate set of groups from the primary group, and you should avoid nominating the same group as both primary and extra groups.

Task: Add a new user to group

Add new user jerry to system and to secondary group sales:
# pw useradd jerry -G sales
# passwd jerry

First command adds user jerry to secondary group called sales. Second commands set a password for jerry.
 

Task: Print list of users and groups

awk -F":" '{print $1}' /etc/passwd 
awk -F":" '{print $1}' /etc/group

Jumat, 15 November 2013

Senin, 04 November 2013

Amptron Error Pasang VGA PCIe External pada Windows

Bila kita mengalami error ketika memasang vga card baru pada windows kita.

Langkah yang harus kita lakukan :

- Pada device manager terlihat tanda seru bahwa nVidia Geforce 9300GS belum aktif dan terdapat code   12 (This device cannot find enough free resources that it can use(Code 12)).
- Itu menandakan di system information ada banyak Conflicts IRQ dan Memory Address, diantaranya PCI Bus dengan Intel 945 PCI Express Bridge ... dan masih banyak lagi.
Jika anda mengalami kesulitan dengan hal-hal diatas, mungkin tips ini bisa membantu;
 
Jalan keluarnya ..
 
- klik start - run
- ketik cmd - enter
- ketik perintah berikut tanpa tanda petik: "bcdedit /set configaccesspolicy disallowmmconfig" - tekan  enter
jika ada konfirmasi "The operation completed successfully" maka anda  berhasil.
 
Silakan Restart PC anda dan lihat hasilnya.

Beres dah Windows sudah menggunakan VGA External

Rabu, 26 Juni 2013

Squid 2.7 Stable9 di ClearOS 6.3

Squid 2.7 Stable9 di ClearOS 6.3

Sekedar menyimpan catatan, maklum pelupa alias emang malas inga' inga'... :D

ini urutan langkah memasang squid 2.7s9 patch dengan youtube non-range di ClearOS 6.3 mode Gateway. cara ini lebih cepat, kalau cara panjangnya ada di forum clearos indonesia..

1. update, stop, buang squid lama
    yum update
    reboot

2. copy semua file yang ada di folder squid ke folder dummy (ntar dipakai lagi tuh)
3. download dan copy file dewa ke root, lalu install
    service squid stop
    yum remove squid
    yum localinstall --nogpgcheck squid-2.7.STABLE9.xx.xxx.best
4. install app webconfig
    yum install app-web-proxy (cos6x) 
    atau
    yum install app-squid (cos5x)
5. copy squid.conf, storeurl dan kawan2nya ke folder squid
6. copy semua file yang ada di folder dummy ke folder /etc/squid, kecuali squid.conf atau storeurl.pl (klo ada sih)
  7. buat folder cache seperlunya (klo blm ada), rubah hak akses
    mkdir /cache1
    chown squid:squid /cache1

  8. rubah hak akses squid.conf, /cache squid:root 0640 kemudian sesuaikan isinya (IP)
    chmod 777 /etc/squid/storeurl.pl
    chown squid:root /etc/squid/squid.conf
    chmod 0640 /etc/squid/squid.conf

  9. sesuaikan isinya squid.conf, (IP, DP)
10. cek squid, jika tidak ada pesan error, lanjutkan buat swap directory, lalu jalankan
      squid -k parse
      squid -z
      service squid start 

      service squid restart
11. Agar squid bisa jalan secara otomatis saat proses booting, tambahkan diakhir baris,/etc/rc.local/
       echo 1024 65535 > /proc/sys/net/ipv4/ip_local_port_range
       ulimit -HSn 65535
       /usr/sbin/squid -NDd1 &
cat. :
    untuk cos 52 jika set transparent dari webconfic maka squid jadi error,
    cek kembali baris pertama di squid.conf jika ada baris baru "http_access allow localhost"
    di hapus saja atau di kasih "#"


tambahan :
instal ccze (agar lognya jadi meriah)
     rpm -Uvh http://mirror.fraunhofer.de/download.fedora.redhat.com/epel/5Client/i386/ccze-0.2.1-6.el5.i386.rpm

melihat log
     tail -f /var/log/squid/access.log | ccze

agar server mau shutdown ketika ditekan tombol power pada cpu, tambahkan perintah ini :
        yum install acpid
 

matikan fungsi auto update, biar squidnya gak terupdate jadi squid 3.xx :D, dari
    webconfig - system - software update - edit - disable

sumber :  http://beldin-best.blogspot.com/2012/12/squid-27-stable9-di-clearos-63.html

Senin, 11 Maret 2013

Kerupuk Amplang Ikan

Amplang adalah makanan khas kalimantan timur, dikenal juga dengan nama kerupuk kuku macan. Kerupuk ini mempunyai rasa yang gurih, enak dan sungguh istimewa. Bahan utama amplang ini adalah ikan tenggiri dan sagu. Ikan tenggiri boleh juga diganti dengan ikan lainnya hanya saja cita rasanya akan sedikit berbeda.

Amplang yang baik dapat bertahan sekitar satu tahun, namun terlalu lama juga tidak baik. Bahan pembuatan amplang juga mudah didapat sehingga pembuatan amplang juga cukup mudah tapi memerlukan waktu yang sedikit lama. Bagi anda yang ingin membuat kerupuk amplang, Berikut resep cara membuat ampalang :

Resep I

Bahan Membuat Amplang :

  • ikan tenggiri/gabus ( 1 KG )
  • Sagu 2 Kg
  • Bawang Putih secukupnya
  • Garam 4/5 Ons
  • Air 750 ml
  • Penyedap Rasa 1/5 ons
  • Minyak Untuk menggoreng

Cara pembuatan amplang :
  • Giling ikan segar sampai halus kemudian campurkan dengan air, garam, serta penyedap rasa. aduk hingga rata.
  • Setelah adonan merata, tambahkan tepung sagu kemudian diuleni.
  • Ambil adonan dan timbang sekitar 1 Kg kemudian bentuk tabung dan memanjang
  • Rebus Adonan yang telah kita bentuk sekitar 1 jam setelah itu dijemur agar hasilnya bagus.
  • Setelah dijemur iris iris halus adonan kemudian goreng selama kuranglebih 30 menit atau sampai matang  sambil diaduk aduk agar tidak gosong. Tiriskan.
  • Masukan dalam plastik atau toples kedap udara.
Resep II

 Bahan yang diperlukan:
1. 1 kg Daging ikan
2. 6 ons tepung kanji
3. Garam secukupnya
4. Gula secukupnya
5. 2 butir telur ayam
6. bawang putih

Proses pengolahan:
Gilinglah ikan yang telah dibersihkan tulang dan durinya, campur dengan tepung kanji, garam, gula dan bawang putih yang telah ditumbuk halus, sehingga menjadi adonan yang menyatu. Kemudian bentuk adonan sesuai selera.

Goreng amplang dengan minyak yang banyak, aduk-aduk agar tidak gosong,  angkat bila sudah  benar-benar matang. Amplang yang telah digoreng, ditiriskan untuk membuang sisa-sisa minyak. Bungkus amplang dalam kantong plastik kedap udara, simpan pada suhu kamar dan hindarkan dari terik matahari langsung.

Amplang siap dinikmati.
Semoga bermanfaat.


sumber :  http://www.masakkue.com/2012/07/cara-membuat-amplang-ikan-samarinda.html#_
               http://dwbckalbagtim.blogspot.com/2011/11/amplang.html

Rabu, 06 Maret 2013

Gnome/KDE (Firefox + Flashplayer) For ClearOS 6.3

 Overview

The ClearOS Desktop environment is useful for certain application which require the X interface. For simplicity and security, ClearOS comes with only the graphical console for enough Webconfig components to enable remote administration through a web browser.

Preparation

You will need to exit the graphical console in order to use the graphical desktop. This is because only one or the other can occupy the graphical space at a time. To exit the graphical console type the following keystroke combination, CTRL + ALT + BACKSPACE
This will place you at a black screen with a red box asking for root's credentials. If you log in here, you can relaunch the graphical console. For now, stay at the red screen.
Switch to command line by pressing CTRL+ALT+F2. Log in as root.

Installing KDE

To install the graphical desktop from command line please run the following:

yum --enablerepo=clearos-core install gnome-terminal kdemultimedia

There will be quite a few packages that get downloaded and installed.

Launching the Graphical Desktop

From the console and with the Graphical Console logged out, start the graphical desktop by typing:

reboot 
startx
 
Install Firefox
 
yum install http://mirror.centos.org/centos/5/updates/i386/RPMS/firefox-10.0.12-1.el5.centos.i386.rpm

Install Adobe YUM Repository RPM package

## Adobe Repository 32-bit x86 ## 
 rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm 
 rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux
 
## Adobe Repository 64-bit x86_64 ## 
 rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-x86_64-1.0-1.noarch.rpm 
 rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux
 
 Install Adobe Flash Player 11.2 on Fedora 18/17/16/15/14/13/12, CentOS 6.3/6.2/6.1/6 and Red Hat (RHEL) 6.3/6.2/6.1/6 Fedora 18/17/16/15/14/13/12, CentOS 6 and Red Hat (RHEL) 6 32-bit and 64-bit version
yum install flash-plugin nspluginwrapper alsa-plugins-pulseaudio libcurl

Install Adobe Flash Player 11.2 on CentOS 5.8 and Red Hat (RHEL) 5.8 CentOS and Red Hat 32-bit and 64-bit version

yum groupinstall "Sound and Video"
 
yum install flash-plugin nspluginwrapper curl

  

Selasa, 19 Februari 2013

Install webmin 1.620-1 on ClearOS 6.3 via YUM

Install webmin 1.620-1 on ClearOS 6.3 via YUM


1. Add webmin repository to YUM. Open Terminal and create a new repo entry.
nano /etc/yum.repos.d/webmin.repo
Then enter the following lines
[Webmin]
name=Webmin Distribution Neutral
baseurl=http://download.webmin.com/download/yum
mirrorlist=http://download.webmin.com/download/yum/mirrorlist
enabled=1

Add and install GPG key using command
wget http://www.webmin.com/jcameron-key.asc

rpm --import http://www.webmin.com/jcameron-key.asc
2. Install webmin using command
yum install webmin
3. When finished, you can access your webmin page using Firefox with the following address:
https://yourserveripaddress:10000
Change yourserveripaddress with your actual server IP address.

Jumat, 15 Februari 2013

Mount Manual Harddisk / USB Flash Drive di Linux

Biasanya pengguna linux desktop akan kebingungan cara menemukan dimana letak file mereka apabila melalui console. Bagi yang belum tau cara mount flashdisk atau harddisk secara manual bisa mengikuti cara dibawah ini.
1. Lihat daftar disk yang ada di komputer anda
fdisk -l
Hasilnya akan seperti yang dibawah ini
Disk identifier: 0x00013cce
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048    87889919    43943936   83  Linux
/dev/sda2        87891966   312498175   112303105    5  Extended
/dev/sda5       302735360   312498175     4881408   82  Linux swap / Solaris
/dev/sda6        87891968   302735359   107421696   8e  Linux LVM
/dev/sdb1   *          63    15647309     7823623+   b  W95 FAT32
Pada hasil diatas flashdisk berada di /dev/sdb1, bisa terlihat dari ukurannya.
2. Buat sebuah folder, terserah dimana, dalam contoh ini saya membuat di /mnt/flashdisk
mkdir /mnt/flashdisk
3. Mount menggunakan perintah dibawah ini
mount -t vfat /dev/sdb1 /mnt/flashdisk
4. Silahkan cek ke /mnt/flashdisk
cd /mnt/flashdisk
Semoga Bermanfaat :)

Kamis, 14 Februari 2013

Installing NFS on ClearOS 6.3

This is a how to install the NFS service on a Linux CentOS 6.2 box and making it accessible to others. The scenario is the following:
  • Grant read-only access to the /home/public directory to all networks
  • Grant read/write access to the /home/common directory to all networks 
At the end of this guide you will get:
  • A running NFS server with various LAN shared directories
  • A active set of firewall rules allowing the access to NFS ports
  • A permanently mounted NFS shared on a CentOS / Ubuntu client     
I assume you already have:

  • a fresh running Linux CentOS 6.2 server 
  • a sudoer user, named bozz on this guide
  • an accessible RPM repository / mirror
  • a Linux client with CentOS / Ubuntu

Steps

  1. Login as bozz user on the server
  2. Check if rpcbind is installed:
  3. $ rpm -q rpcbind
    rpcbind-0.2.0-8.el6.x86_64
    
    if not, install it:
    $ sudo yum install rpcbind
    
  4. Install NFS-related packages:
  5. $ sudo yum install nfs-utils nfs-utils-lib
    
  6. Once installed, configure the nfs, nfslock and rpcbind to run as daemons:
  7. $ sudo chkconfig --level 35 nfs on
    $ sudo chkconfig --level 35 nfslock on 
    $ sudo chkconfig --level 35 rpcbind on
    
    then start the rpcbind and nfs daemons:
    $ sudo service rpcbind start
    $ sudo service nfslock start 
    $ sudo service nfs start 
    
    NFS daemons
    • rpcbind: (portmap in older versions of Linux) the primary daemon upon which all the others rely, rpcbind manages connections for applications that use the RPC specification. By default, rpcbind listens to TCP port 111 on which an initial connection is made. This is then used to negotiate a range of TCP ports, usually above port 1024, to be used for subsequent data transfers. You need to run rpcbind on both the NFS server and client. 
    • nfs: starts the RPC processes needed to serve shared NFS file systems. The nfs daemon needs to be run on the NFS server only. 
    • nfslock: Used to allow NFS clients to lock files on the server via RPC processes. The nfslock daemon needs to be run on both the NFS server and client.

  8. Test whether NFS is running correctly with the rpcinfo command. You should get a listing of running RPC programs that must include mountd, portmapper, nfs, and nlockmgr:

  9. $ rpcinfo -p localhost
       program vers proto   port  service
        100000    4   tcp    111  portmapper
        100000    3   tcp    111  portmapper
        100000    2   tcp    111  portmapper
        100000    4   udp    111  portmapper
        100000    3   udp    111  portmapper
        100000    2   udp    111  portmapper
        100024    1   udp  40481  status
        100024    1   tcp  49796  status
        100011    1   udp    875  rquotad
        100011    2   udp    875  rquotad
        100011    1   tcp    875  rquotad
        100011    2   tcp    875  rquotad
        100003    2   tcp   2049  nfs
        100003    3   tcp   2049  nfs
        100003    4   tcp   2049  nfs
        100227    2   tcp   2049  nfs_acl
        100227    3   tcp   2049  nfs_acl
        100003    2   udp   2049  nfs
        100003    3   udp   2049  nfs
        100003    4   udp   2049  nfs
        100227    2   udp   2049  nfs_acl
        100227    3   udp   2049  nfs_acl
        100021    1   udp  32769  nlockmgr
        100021    3   udp  32769  nlockmgr
        100021    4   udp  32769  nlockmgr
        100021    1   tcp  32803  nlockmgr
        100021    3   tcp  32803  nlockmgr
        100021    4   tcp  32803  nlockmgr
        100005    1   udp    892  mountd
        100005    1   tcp    892  mountd
        100005    2   udp    892  mountd
        100005    2   tcp    892  mountd
        100005    3   udp    892  mountd
        100005    3   tcp    892  mountd
    

  10. The /etc/exports file is the main NFS configuration file, and it consists of two columns. The first column lists the directories you want to make available to the network. The second column has two parts. The first part lists the networks or DNS domains that can get access to the directory, and the second part lists NFS options in brackets. Edit /etc/exports and append the desired shares:
  11. $ sudo nano /etc/exports
    
    then append:
    /home/public *(ro,sync,all_squash)
    /home/common *(rw,sync,all_squash)
    
    • /home/public: directory to share  with read-only access to all networks
    • /home/common: directory to share with read/write access to all networks
    • *: allow access from all networks
    • ro: read-only access
    • rw: read/write access 
    • sync: synchronous access 
    • root_squash: prevents root users connected remotely from having root privileges and assigns them the user ID for the user nfsnobody. This effectively "squashes" the power of the remote root user to the lowest local user, preventing unauthorized alteration of files on the remote server. Alternatively, the no_root_squash option turns off root squashing. To squash every remote user, including root, use the all_squash option. To specify the user and group IDs to use with remote users from a particular host, use the anonuid and anongid options, respectively. In this case, a special user account can be created for remote NFS users to share and specify (anonuid=,anongid=), where is the user ID number and is the group ID number.

  12. Create the directories to be published with the correct permissions:
  13. $ sudo mkdir -p /home/public
    $ sudo chown nfsnobody:nfsnobody /home/public
    $ sudo mkdir -p /home/common
    $ sudo chown nfsnobody:nfsnobody /home/common
    
    it should end like this:
    $ ls -l /home/
    ...
    drwxr-xr-x. 2 nfsnobody nfsnobody  4096 Feb 20 12:55 common
    drwxr-xr-x. 7 nfsnobody nfsnobody  4096 Feb 17 14:44 public
    
  14. [OPTIONAL] Allow bozz user to locally write on the created directories by appending it  to nfsnobody group and granting write permissions to the group:
  15. $ sudo usermod -a -G nfsnobody bozz
    $ sudo chmod g+w /home/public
    $ sudo chmod g+w /home/common
    
    it should end like this:
    $ ls -l /home/
    ...
    drwxrwxr-x. 2 nfsnobody nfsnobody  4096 Feb 20 12:40 common
    drwxrwxr-x. 7 nfsnobody nfsnobody  4096 Feb 17 14:44 public
    
  16. Security issues. To allow remote access some firewall rules and other NFS settings must be changed. You need to open the following ports:
    • TCP/UDP 111 - RPC 4.0 portmapper
    • TCP/UDP 2049 - NFSD (nfs server)
    • Portmap static ports, Various TCP/UDP ports defined in /etc/sysconfig/nfs file.
    the portmapper assigns each NFS service to a port dynamically at service startup time, but dynamic ports cannot be protected by iptables. First, you need to configure NFS services to use fixed ports. Edit /etc/sysconfig/nfs, enter:
    $ sudo nano /etc/sysconfig/nfs
    
    and set:
    LOCKD_TCPPORT=32803
    LOCKD_UDPPORT=32769
    MOUNTD_PORT=892
    RQUOTAD_PORT=875
    STATD_PORT=662
    STATD_OUTGOING_PORT=2020
    
    then restart nfs daemons:
    $ sudo service rpcbind restart
    $ sudo service nfs restart
    
    update iptables rules by editing /etc/sysconfig/iptables, enter:
    $ sudo nano /etc/sysconfig/iptables
    and append the following rules:
    -A INPUT -s 0.0.0.0/0 -m state --state NEW -p udp --dport 111 -j ACCEPT
    -A INPUT -s 0.0.0.0/0 -m state --state NEW -p tcp --dport 111 -j ACCEPT
    -A INPUT -s 0.0.0.0/0 -m state --state NEW -p tcp --dport 2049 -j ACCEPT
    -A INPUT -s 0.0.0.0/0  -m state --state NEW -p tcp --dport 32803 -j ACCEPT
    -A INPUT -s 0.0.0.0/0  -m state --state NEW -p udp --dport 32769 -j ACCEPT
    -A INPUT -s 0.0.0.0/0  -m state --state NEW -p tcp --dport 892 -j ACCEPT
    -A INPUT -s 0.0.0.0/0  -m state --state NEW -p udp --dport 892 -j ACCEPT
    -A INPUT -s 0.0.0.0/0  -m state --state NEW -p tcp --dport 875 -j ACCEPT
    -A INPUT -s 0.0.0.0/0  -m state --state NEW -p udp --dport 875 -j ACCEPT
    -A INPUT -s 0.0.0.0/0  -m state --state NEW -p tcp --dport 662 -j ACCEPT
    -A INPUT -s 0.0.0.0/0 -m state --state NEW -p udp --dport 662 -j ACCEPT
    
    restart iptables daemon:
    $ sudo service iptables restart
    
  17. Mount NFS shared directories: Install client NFS packages first:
  18.   on Ubuntu client:
    $ sudo apt-get install nfs-common
    
    on CentOS client:
    $ sudo yum install nfs-utils nfs-utils-lib
    
    inquiry for the list of all shared directories:
    $ showmount -e SERVERADDRESS
    
    mount server's /home/public on client's /public:
    $ sudo mkdir -p /public
    $ sudo mount SERVERADDRESS:/home/public /public
    $ df -h
    
    mount server's /home/common on client's /common:
    $ sudo mkdir -p /common
    $ sudo mount SERVERADDRESS:/home/common /common
    $ df -h
    
  19. Mount NFS automatically after reboot on the client. Edit /etc/fstab, enter:
  20. $ sudo nano /etc/fstab
    
    append the following line:
    #Directory                   Mount Point    Type   Options       Dump   FSCK
    SERVER_IP_ADDRESS:/home/public /public nfs hard 0 0
    SERVER_IP_ADDRESS:/home/common /common nfs hard 0 0
    
    to test the correctness of /etc/fstab before restarting, you can try to manually mount /public and /common:
    $ sudo mount /public
    $ sudo mount /common

References

Rabu, 13 Februari 2013

Mount File ISO di linux


Kita dapat me-mount file ISO di Linux ke dalam sebuah folder hanya dengan satu baris perintah saja.

Perintah yang digunakan untuk me-mount file ISO adalah:
mkdir /mnt/nama-folder> folder tempat kita untuk mount

sudo mount -o loop nama-file.iso /mnt/nama-folder  
Jika kalian memperhatikan gambar di atas, saya melakukan mount file "codeart-1.0-i386.iso" ke dalam folder "iso-mount". Jadi, saya menggunakan perintah:
sudo mount -o loop codeart-1.0-i386.iso iso-mount  
Cukup mudah bukan? Nah, untuk me-unmount file ISO tadi, cukup ketik perintah berikut:
sudo umount nama-folder  
Karena dalam contoh ini saya menggunakan folder "iso-mount", maka perintah yang digunakan adalah:
sudo umount iso-mount  
Saya rasa perintah-perintah di atas cukup mudah untuk dilakukan, namun jika kalian lebih suka menggunakan aplikasi berbasis GUI (Graphical User Interface) alias tinggal klik langsung jalan, silakan gunakan Mounty.

Semoga bermanfaat.

FOG v0.32 on ClearOS v5.2

Folks,

Not sure if anyone has posted this before but here's a quick HOWTO on getting FOG running on a ClearOS 5.2 install.
Not claiming this is 100% as I worked on it over a few days and may have forgotten something. I also suspect that some of the steps I do are actually not required but I have a running FOG server at the end of it so hopefully this will be helpful to other folks trying to do this. FOG v0.32 has a higher php requirement than the stock php on ClearOS so we have to upgrade that too here to get it all working.


Quick cheat sheet on getting FOG v0.32 running on a ClearOS 5.2 Install

Do a base OS install of ClearOS and put as much storage as you can at /images

Once you get the base install done register the box and then install the following additional software if it is not already installed and enable it.

As root run each of these commands on their own and say yes to the obvious questions.
Code:


yum update
yum install xinetd
yum install nfs
chkconfig portmap on
chkconfig nfs on
chkconfig xinetd on
service xinetd start
service portmap start
service nfs start



Note that FOG is going to install vsftpd so make sure internal FTP is turned off or better still not installed.
At some point I was able to get the builtin FTP working with FOG but that was on an older version. It would be my suggestion to run a dedicated ClearOS box for FOG and let it use the vsftpd it wants to. If you are trying to run FOG on a ClearOS box that already has FTP in use for something else then I would suggest disabling vsftpd and looking at making the "fog" user ftp login point at /images as this seems to be the key for making everything jive.

Add a local system account for fog:
Code:


useradd -r fog



Set the password for this user to "password"

Code:


passwd fog 



Download the 0.32 version of FOG.
Code:


http://sourceforge.net/projects/freeghost/files/



Before you run the installer you need to make a quick change or two.
Code:


nano fog_0.32/lib/redhat/config.sh



Remove from packages=
php-gettext
Change:
clamav-update to simply: clamav

Then run fog installer.
Code:


fog_0.32/bin/installfog.sh



All being well you can answer the question based upon your specific setup and it will complete without issue.

Fix TFTP write errors (read was OK)
Code:


chown -R fog.nobody /tftpboot
chmod -R 775 /tftpboot



If you use dnsmasq (clearos ) for DHCP then do the following:
Code:


nano /etc/dnsmasq.conf: 
    dhcp-boot=pxelinux.0,,<your.server.ip.address>
nano /etc/dnsmasq/dhcp.conf
     dhcp-option=eth1,66,"<your.server.ip.address>"



If you use some other DHCP on your network:
On a Linux DHCP server you must set:
next-server
On a Windows/Novell DHCP server you must set:
option 066 & 067
To IP of FOG Server

To fix issues with fog 0.32 and php (being unable to submit a task for FOG to process) - you need to upgrade into the 5.3.x tree.
I am using TimB's excellent repo for php upgrade (thanks as always Tim) and blantantly stealing the info from other posts here to upgrade php on this install.
Code:


        php -v
rpm --import ftp://timburgess.net/RPM-GPG-KEY-TimB.txt
wget ftp://timburgess.net/repo/clearos/5.2/os/timb-release-1-0.noarch.rpm
rpm -Kv timb-release-1-0.noarch.rpm
rpm -Uvh timb-release-1-0.noarch.rpm
yum --enablrepo=timb-testing upgrade php
service httpd restart
php -v



You are going to want to change the default password from "password" I am sure 
Login to the fog management interface 
[code[
http://<your server ip>/fog
[/code]

Click on the Users Icon (to heads icon second on left)
Edit the "fog" user and change the password*.
* Note that you are limited to what chars you can use so keep it fairly easy but secure. Avoid special chars.

Then click on the "Storage Management" icon > All Storage Nodes > DefaultMember
Then add the same password used above to Management Password:

Click on the Other Information icon (blue question mark)
Click FOG Settings
Scroll down to: TFTP Server 
Set the same password in FOG_TFTP_FTP_PASSWORD
It's a good idea to review the settings in here for any glaringly obvious issues.

Lastly change the fog system user password (this is new for fog 0.32 I believe)
Login to the ClearOS box via SSH on on the terminal as root and run:
Code:


passwd fog
<your new password>



This should now leave you with a working FOG install on ClearOS.
Go ahead and set a node to boot from network, do a quick register, create a blank image and associate with the host you just registered then create a quick task to upload an image on that node. When the node you registered reboots it should boot into Fog and start an image upload. 

I probably missed something so if you get stuck post a message here and I'll see if I can help out. Fog can be a pain to get going but is worth it's weight in gold in larger networks and as always, if you can run it on ClearOS it's going to be stable and fast 

Hope that helps some folks out.

Jim