Linux, Desktop dan Server, Aspansyahbudin weblog

Membuat multiple domain dalam satu DNS Server

Posted in BIND, DNS Server, Domain by aspansyahbudin on Januari 23, 2012

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)

Posted in Uncategorized by aspansyahbudin on Desember 9, 2011

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…)

Tagged with: , ,

Fedora : validating in Linux

Posted in Uncategorized by aspansyahbudin on November 24, 2011

Fedora use sha256 for verify their iso images.
$ cd Downloads
$ sha256sum Fedora-i386-DVD.iso

Tagged with: , , ,

Download menggunakan wget melewati proxy server

Posted in wget by aspansyahbudin on November 17, 2011

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

Tagged with: , , ,

Cara install youtube-dl 2011

Posted in Uncategorized by aspansyahbudin on November 8, 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

Posted in Uncategorized by aspansyahbudin on Oktober 30, 2011

untuk melihat sudah seberapa besar isi folder cache_dir berikan perintah :
du -sh /var/spool/squid
154M /var/spool/squid

Tagged with: , ,

Install firefox dan libreoffice di debian squeeze

Posted in Uncategorized by aspansyahbudin on Oktober 18, 2011

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/

Tagged with: ,

Compress dan Extract file menggunakan TAR

Posted in Linux by aspansyahbudin on April 23, 2011

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

Tagged with: , ,

membuat DNS server

Posted in Uncategorized by aspansyahbudin on Februari 10, 2011

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.

Posted in repository, ubuntu 10.04, youtube by aspansyahbudin on Desember 4, 2010
original url : http://www.webupd8.org/2010/07/update-youtube-dl-to-get-it-working.html
YouTube keeps making changes to the website which breaks all YouTube download applications, including my favourite YouTube downloader called “youtube-dl”. For this reason, we’ve backported the Maverick version for Ubuntu Karmic and Lucid users – and the updated version is available in the WebUpd8 PPA.
But before you install the latest youtube-dl, a little info on this amazing YouTube command line donwloader.

youtube-dl is a python script (comes in a .deb) for downloading videos from YouTube. The recent versions also support downloading videos from video.google.com, photobucket, dailymotion, and metacafe.
But it’s not just fixing YouTube that’s new in the latest youtube-dl. Here are some recent changes which are not in the Lucid version of youtube-dl:
  • 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
And a lot more.
I’m not sure, but you might have to add the Gstreamer PPA for WebM support.

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.

Using youtube-dl is very easy. To download a YouTube video, use the following command:
youtube-dl YOUTUBE-URL
where YOUTUBE-URL is the exact link to the YouTube video, like this (just an example): http://www.youtube.com/watch?v=BF14bWw1NKk

You can download all the available formats, like this:

youtube-dl --all-formats YOUTUBE-URL

For advanced options, type:

youtube-dl --help
Ikuti

Get every new post delivered to your Inbox.