Tuesday, December 23, 2008

Nowadays security is more and more important even in case of smaller websites. As a lot of site uses some database so this is one point where we can make some improvements.

In this article we will work with MySQL on our goal is to create a new user in the database.

There are more ways how you can do this.

* Using CREATE USER and/or GRANT commands
* Inserting a new record into the mysql.user table

First let's see how to use the CREATE USER command. Here I have to mention that thi s command is available only in MySQL 5 (5.0.2) and newer releases. The syntax is the following:

CREATE USER user [IDENTIFIED BY [PASSWORD] 'password']

Here is an example:

Code:

1.

2.
CREATE USER 'user1'@'localhost' IDENTIFIED BY 'pass1';
3.


Database F1

Now if you check the mysql.user table you can find a new record in it. Notice that all priviliges are set to No so this user can do nothing in the DB. To add some preiviliges we can use the GRANT command as follows:

Code:

1.

2.
GRANT SELECT,INSERT,UPDATE,DELETE ON *.* TO 'user1'@'localhost';
3.


Database F1

Here we have added only the most important priviliges to the user. With the setting above this user is good to run a CMS or a blog, however with such settings this user is not able to install them as it can not create tables.

To add all priviliges to the user you don't have to list all of them but you can use the ALL shortcut as follows:

Code:

1.

2.
GRANT ALL ON *.* TO 'user1'@'localhost';
3.


Database F1

You can create a new MySQL user in one step as well using again the GRANT command with a small extension as here:

Code:

1.

2.
GRANT ALL ON *.* TO 'user2'@'localhost' IDENTIFIED BY 'pass1';
3.


Database F1

The above examples used dedicated commands, but sumtimes you maybe want to add a new MySQL user via directly editing the mysql.user table. In this case you just inserts a new record into the table with a normal INSERT command:

Code:

1.

2.
INSERT INTO user (Host,User,Password)
3.
VALUES('localhost','user3',PASSWORD('pass3'));
4.


Database F1

Or you can add some priviliges as well in a form like this:

Code:

1.

2.
INSERT INTO user (Host,User,Password,Select_priv,Insert_priv)
3.
VALUES('localhost','user4',PASSWORD('pass3'),'Y','Y');
4.


Database F1

Monday, December 22, 2008

Having a shared printer within a computer network is a nice thing to have. Since all computers within the network can access a remote printer to print documents. Maintenance cost is much more cheaper and easier since you only need to service only a single printer within a network.

Here’s how to enable Printer sharing with Ubuntu (or other Linux based computers) through GNOME :
imronrosyidi
At the computer with the printer
Administer Printers Ubuntu

* First at the Desktop, go to System->Administration->Printing. A dialog will appear
* Go to Server Settings, and check the “Share published printers connected to this system” checkbox

Administer Printers Ubuntu

* You may, optionally select “Allow users to cancel any job”
* Click Apply, and close the dialog

At the client computer(s)
Network Printer Sharing Ubuntu, using Samba

* From the Desktop, go to System->Administration->Printing. A dialog will appear
* Check “Show shared printers from other systems” checkbox. Click Apply
* Repeat the first step, this time click “Refresh Printer Queues” button. You shall see the list of shared printer from the server computer
* Repeat this on other computers on the network to share the printer

That is all to it! Now you can print documents across your computer network.

Tuesday, December 9, 2008

Langkah Mudah Mendaftar Google AdSense melalui Blogger

Bagi Anda yang sudah membangun blog di blogger dan ingin melangkah ke Google AdSense, ada kabar gembira buat Anda. Kenapa? Karena induk blogger ini adalah Google, jadi blog ini mendukung penggunaan AdSense. Mendaftar Google AdSense melalui blogger mempermudah tugas Anda.

Saat ini mendaftar di Google AdSense tidak semudah dulu (katanya), karena itu pakar Google AdSense menyarankan kita menggunakan blog di blogspot sebagai pancingan. Dengan menggunakan blogger.com (blogspot) tanggapan dari pihak Google bisa lebih cepat, hanya dalam waktu 2 - 3 hari. Memang tidak ada jaminan seberapa cepat pihak Google merespon, namun banyak yang sudah membuktikan kalau kita mendaftar melalui blogger responnya jauh lebih cepat. Jadi bagi Anda yang ingin memiliki penghasilan dari Google AdSense, mulailah dengan membuat blog berbahasa Inggris di blogger, isilah dengan minimal 7 - 10 artikel dengan konten yang unik.

Berikut langkah mudah mendaftar Google AdSense melalui Blogger:
1. Persiapkan blog untuk pendaftaran Google AdSense ini dengan baik. Lebih baik membuatnya agak lama tapi sekali daftar langsung sukses. Buat blog berbahasa Inggris, isi dengan artikel yang unik kontennya (jangan asal copy paste). Bagi yang merasa kemampuan bahasa Inggrisnya kurang (seperti saya nih), tetap berusahalah keras. Siasati misalnya dengan Private Label Articles (PLA), gabungkan dengan artikel dari geoarticles misalnya. Gabung 3-5 artikel sejenis, ubah gaya bahasanya. Padukan agar menjadi konten yang unik.

Bisa juga dengan mengambil artikel dari blog berbahasa Indonesia yang ada Google Translate-nya, ubah ke bahasa Inggris. Tapi artikel terjemahan itu tetap harus diedit ulang karena seringkali bahasanya jadi agak aneh.

Ada juga blogger yang mengambil artikel dari bahasa Inggris, ubah menjadi bahasa Prancis misalnya, ubah lagi menjadi bahasa Jerman, kemudian kembalikan ke bahasa Inggris lagi. Hasilnya artikel tersebut akan berbeda dengan artikel aslinya, tapi tetap juga perlu diedit lagi agar gaya bahasanya lebih enak dibaca dan mudah dimengerti.

2. Sebelum mendaftarkan blog Anda ke Google AdSense, pastikan tidak ada broken link dan navigasinya mudah.

3. Tambahkan affiliasi lain ke blog Anda. Google AdSense tidak suka situs yang seolah-olah dibuat hanya untuk AdSense.

4. Ubah setting bahasa menjadi bahasa Inggris (Amerika Serikat). Caranya setelah sign in di blogger, masuk ke pengaturan, klik link format, pada item bahasa pilih bahasa Inggris (Amerika Serikat). Klik simpan pengaturan.

5. Tambahkan elemen Adsense. Caranya masih di blogger klik dasbor / panel kontrol. Klik tata letak pada blog yang ingin kita daftarkan ke AdSense. Pada elemen halaman, klik tambah gadget.

6. Akan terbuka jendela baru. Cari gadget AdSense (gadget AdSense ini hanya muncul pada blog yang diset bahasa Inggris). Klik tombol tambahkan ke blog.

7. Isi identitas Anda: alamat email, bahasa blog (pilih Inggris), bahasa email.

8. Klik tombol Buat account untuk proses pendaftaran account Google AdSense.

9. Akan muncul halaman pemberitahuan telah dikirim email yang harus dibuka dan ditindaklanjuti. Klik tombol lanjutkan.

10. Konfigurasi AdSense. Pilih format tampilan iklan. Pilih ukuran dan paduan warna yang Anda inginkan. Tampilkan hasil konfigurasi. Klik tombol simpan.

11. Pada elemen halaman blog yang kita daftarkan terlihat ada gadget AdSense. Bila Anda ingin mengubah susunan / tata letak gadget AdSense tersebut, klik kotak AdSense tersebut, tahan, pindahkan ke tempat yang ingin Anda tuju (click and drag). Lepaskan mouse.

12. Klik tombol simpan. Lihat blog. Terlihat ada iklan, tapi masih iklan sementara. Tunggu persetujuan keikutsertaan Anda pada Google AdSense. Jangan lupa buka email Anda untuk memverifikasi.

Proxy dengan squid3 Debian

Membuat Proxy Dengan Squid3 (debian)

Fungsi:
1.Menyimpan cache tampilan halaman web
2.Mengatur bandwidth internet ke client
3.Mengontrol aktivitas client (misalnya hak akses situs tertentu, melihat situs-situs yang dikunjungi client).

Bahan Membuat proxy:
1.Komputer minimal 2 lan card.
2.Komputer client
3.Sambungan internet

Langkah-langkah membuat proxy:
1.Setting ip server
#vim /etc/network/interfaces
iface eth0 inet static
address 192.168.2.35
netmask 255.255.255.192
network 192.168.2.0
broadcast 192.168.2.63
gateway 192.168.2.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 202.134.0.155
dns-search smkn1-tuban.sch.id
esc:wq
/etc/init.d/networking restart ->>merestrat lan card

2.install packet squid3
#apt-get install squid3

3.membuat partisi squid
#squid3 -z

4.Melakukan konfigurasi squid
Perhatian: untuk keamanan sebelum dilakukan konfigurasi sebaiknya file configurasi asli squid
disimpan dulu.
#cp /etc/squid3/squid.conf /etc/squid3/squid.conf_asli
#vim /etc/squid3/squid.conf
acl our_networks src 192.168.1.0/28 192.168.2.0/25 172.16.2.0/24
http_access allow our_networks
http_access allow localhost

#untuk melakukan blokir
acl backlist url_regex -i "/usr/share/backlist"
http_access deny backlist

esc:wq

5.Merestart squid
#/etc/init.d/squid3 restart

6.Setting client


7.Menguji proxy
#tail -f /var/log/squid/access.log
1227631428.251 54487 192.168.2.52 TCP_MISS/301 2670 GET
ttp://www.imsly.com/ index.php/1010110A/531 4c86178909cb03cf62f3bf5dd73960ed7fcff70e6f625 afa4f41b54a210b566d466f5660823604d4f793de361185cca7072d35c9901687c99174cb0a321560 - IRECT/67. 159.47.205 text/htm l
1227631428.415 49394 192.168.2.52 TCP_MISS/200 4497 GET http://www.imsly.com/index.php/1010110A/5314c861789d98a732fd3938feda699a039de1ee61bbb533b3a0b81450af12a33ab660f66c467d5b5651336fc571537be02d2c8a4acf1117279e4e5d21560 - DIRECT/67.159.47.205 application/x-shockwave-flash
1227631428.487 11472 192.168.2.88 TCP_MISS/200 4029 GET http://tbn2.google.com/images? - DIRECT/64.233.189.99 image/jpeg
1227631428.543 11449 192.168.2.25 TCP_MISS/200 3603 GET http://drycounty.com/downloads/wallpapers/thm_bjw_kimdesmet_bj10.jpg - DIRECT/88.198.34.147 image/jpeg
1227631428.572 47443 192.168.2.81 TCP_MISS/200 1004 GET http://www.brothersoft.com/img/a74.gif - DIRECT/125.160.16.42 image/gif
1227631428.705 284 192.168.2.93 TCP_MISS/200 604 GET http://www.google.co.id/verify/EAAAAKai9XHxkw7aKzNjRDgZjxs.gif - DIRECT/72.14.235.147 image/gif
1227631428.782 362 192.168.2.93 TCP_MISS/200 1938 GET http://tbn3.google.com/images? - DIRECT/64.233.189.99 image/jpeg

Tuesday, December 2, 2008

Resensi Film Bodyguard From Beijing

Film ini menceriterakan kisah cinta segitiga antara jet lee, pengusaha, seorang wanita.
Berikut adegan-adegan yang menarik:

KONSEP JARINGAN KOMPUTER

Ketika komputer berkomunikasi dari satu komputer ke komputer satunya maka melalui proses enskapsulasi yaitu merubah paket data menjadi bilangan biner serta menambah bebera header.
Proses enkapsulasi dapat dijelaskan sebagai berikut:





Sedangkan dibawah ini adalah cuplikan film so close