Membuat multiple domain dalam satu DNS Server
Agar sebuah server bisa dipanggil dengan nama domain yang berbeda maka perlu diset DNS servernya. Berikut saya berikan link sbb : https://lists.isc.org/pipermail/bind-users/2007-September/067540.html tulisan dari Mr. Tek Bahadur Limbu.
Adapun configurasi di server saya pada file /etc/bind/named.conf.default-zones sbb :
// prime the server with knowledge of the root servers
zone “.” {
type hint;
file “/etc/bind/db.root”;
};
// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912
zone “smkintegral.sch.id” {
type master;
file “/etc/bind/db.coba”;
};
zone “smk.com” {
type master;
file “/etc/bind/db.coba”;
};
zone “4.168.192.in-addr.arpa” {
type master;
file “/etc/bind/db.ip”;
};
zone “0.in-addr.arpa” {
type master;
file “/etc/bind/db.0″;
};
zone “255.in-addr.arpa” {
type master;
file “/etc/bind/db.255″;
};
Dengan setting DNS server seperti itu maka web server saya dapat dipanggil dengan dua domain yaitu www.smkintegral.sch.id dan www.smk.com.
Selamat mencoba, Salam Linux.
50 Most Frequently Used UNIX / Linux Commands (With Examples)
Original link is : http://www.thegeekstuff.com/2010/11/50-linux-commands/
This article provides practical examples for 50 most frequently used commands in Linux / UNIX.
This is not a comprehensive list by any means, but this should give you a jumpstart on some of the common Linux commands. Bookmark this article for your future reference.
Did I miss any frequently used Linux commands? Leave a comment and let me know. (lagi…)
Fedora : validating in Linux
Fedora use sha256 for verify their iso images.
$ cd Downloads
$ sha256sum Fedora-i386-DVD.iso
Download menggunakan wget melewati proxy server
Dengan adanya Proxy server di gateway jaringan anda maka beberapa fitur jaringan akan bermasalah. Antara lain Synaptic Package Manager dan Wget. Contoh ketika saya menggunakan wget target IPnya malah belok ke IP Client tertentu dan portnya juga tertentu sehingga download menggunakan wget menjadi gagal. Setelah browsing akhirnya mendapatkan inspirasi dari link berikut ini. Langkah pertama adalah men-setting lingkungan dengan perintah :
$ export http_proxy=”http://192.168.4.35:8080″
Ket : IP Proxy server=192.168.4.35, Port Proxy=8080.
Setelah itu test download menggunakan wget :
wget http://smkintegral.sch.id/~tamu/simoncelli.jpg
Connecting to 192.168.4.35:8080… connected.
Proxy request sent, awaiting response… 200 OK
Length: 39420 (38K) [image/jpeg]
Saving to: `simoncelli.jpg’
100%[======================================>] 39,420 –.-K/s in 0.1s
2011-11-17 17:05:25 (365 KB/s) – `simoncelli.jpg’ saved [39420/39420]
Silakan cek hasilnya :
$ ls *.jpg
simoncelli.jpg
Cara install youtube-dl 2011
Pertama buka dulu dokumentasinya di sini.
Trus download scriptnya di sini.
simpan dengan nama youtube-dl.py. Kemudian copy file tersebut ke directory /usr/local/bin/. kemudian rubah permissionx menjadi 755, ketik : sudo chmod 755 /usr/local/bin/youtube-dl.py.
cara download, ketik : youtube-dl “<<link>>”. Misal : youtube -dl “http://www.youtube.com/watch?v=x2i5Jp7mdMc&feature=related”.
Lihat screenshotx:
Ketika progress.
Ketika telah selesai DL 33Mb.
Ketika diputar dengan VLC player.
Mengamati Squid
untuk melihat sudah seberapa besar isi folder cache_dir berikan perintah :
du -sh /var/spool/squid
154M /var/spool/squid
Install firefox dan libreoffice di debian squeeze
For my desktop use, I wanted to keep my office suite and web browser updated while continuing to run Debian stable as my base. Here is how to install the latest Firefox and Libreoffice packages on Squeeze.
Download Firefox 4 here. Then as root:
Code:
mv firefox*.tar.bz2 /opt
cd /opt
tar -xvjf firefox*.tar.bz2
ln -s /opt/firefox /usr/local/firefox4
ln -s /usr/local/firefox4/firefox /usr/local/bin/firefox4
rm firefox*.tar.bz2
Firefox 4 can now be run as normal user with command “firefox4″. or “/usr/local/bin/firefox4″. In Gnome, you can add Firefox to the application menu by:
1. right click Applications menu
2. select “edit menus”
3. click on “Internet”
4. select “new item”: Type: Application, Name: Firefox, Command: /usr/local/bin/firefox4
5. To add the Firefox icon in the menu, it is located in: /opt/firefox/icons/mozicon128.png
I just tested it, and it works well, including my plugins and bookmarks from Iceweasel.
Download Libreoffice here. Choose the deb version, then:
Code:
tar -xzf LibO_3*.tar.gz
cd LibO_3*/DEBS/
su
dpkg -i *.deb
cd desktop-integration
dpkg -i *.deb
It will install Libreoffice in /opt and the packages will show up in Synaptic Package Manager under “Local”. The installation automatically creates menu entries in Gnome for Libreoffice applications.
I’ve had no problems thus far using the latest Libreoffice 3.2.2 and Firefox 4. Hope this is helpful for anyone else wanting to install.
Original links : http://www.linuxquestions.org/questions/debian-26/howto-install-latest-firefox-and-libreoffice-in-debian-squeeze-870787/
Compress dan Extract file menggunakan TAR
Tentunya di command linenya linux
Untuk mengcompress ketik,
$ tar -cf nama_file.tar nama_file_yang_akan_dicompress
atau
$ tar -cf nama_file_baru.tar nama_folder
contoh :
$ tar -cf super.tar super.txt
Untuk mengextract ketik :
$ tar -xf
$ tar -xf contoh.tar
membuat DNS server
install bind9 ketik :
sudo apt-get install bind9
masuk ke direktory bind9, ketik :
cd /etc/bind/
lihat is folder, ketik :
ls
bind.keys db.255 db.ip named.conf named.conf.options
db.0 db.coba db.local named.conf.default-zones rndc.key
db.127 db.empty db.root named.conf.local zones.rfc1918
copy file db.local menjadi db.coba, ketik :
sudo cp db.local db.coba
edit file db.coba, ketik :
sudo nano db.coba
isinya kurang lebih seperti ini
aspan.net silakan ganti sesuai selera anda
192.168.1.10 silakan sesuaikan dengan sistem anda
setelah itu copy file db.coba menjadi file db.ip, ketik :
sudo cp db.coba db.ip
edit file db.ip sehingga isinya kurang lebih seperti ini :
;; BIND data file for local loopback interface
;$TTL 604800@ IN SOA ns.aspan.net. root.aspan.net. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS ns.aspan.net.
1 IN PTR ns.aspan.net.
ns IN A 192.168.1.10
@ IN AAAA ::1
youtube-dl akhirnya bekerja kembali, good job linux.
- add preliminary support for Dailymotion videos
- support for WebM formats (vp8 + vorbis)
- support for youtu.be URLs
- add support for the “original” video format in YouTube
- add a –max-quality option
To install the latest youtube-dl in Ubuntu 10.04 Lucid Lynx and 9.10 Karmic Koala (but I’ve only tested it in Lucid), run the following commands in a terminal:
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install youtube-dl
You can also manually download the .deb files if you want.
youtube-dl YOUTUBE-URL
You can download all the available formats, like this:
youtube-dl --all-formats YOUTUBE-URL
For advanced options, type:
youtube-dl --help




tinggalkan komentar