KONFIGURASI SERVER PADA DEBIAN WOODY 3.0or6
Pertama installkan paket paket yang diperlukan oleh system :
#apt-get install squid dhcpd bind9 postfix squirrelmail ipopd uw-imapd vim
NOTE : Media CD yang diperlukan untuk paket tersebut adalah :
1. CD1
2. CD3
3. CD6
4. CD4
telah selesai installasi paket barulah melangkah ke konfigurasi :
#mv /etc/dhcpd.conf /home/ ---------------> pindahkan konfigurasi asli ke home dengan alasan supaya cepat
#vim /etc/dhcpd.conf
isikan :
subnet 10.252.6.0 netmask 255.255.255.0 {
range 10.252.6.100 10.252.6.200;
option domain-name-servers 10.252.6.10;
option routers 10.252.6.10;
}
simpan konfigurasi lalu tutup editor
#/etc/init.d/dhcpd restart
restart services dhcpd
setelah itu buat dns
#vim /etc/bind9/named.conf
zone "smkn2-tsm.sch.id" {
type master;
file "/etc/bind/db.smkn2";
};
zone "redhat.org" {
type master;
file "/etc/bind/db.smkn2";
zone "susefaq.sourceforge.net" {
type master;
file "/etc/bind/db.smkn2"
zone "linux.or.id" {
type master;
file "/etc/bind/db.smkn2";
};
zone "debian-administration.org" {
type master;
file "/etc/bind/db.smkn2";
};
zone "gentoo.org" {
type master;
file "/etc/bind/db.smkn2";
};
zone "6.252.10.in-addr.arpa" {
type master;
file "/etc/bind/db.smkn2-rev";
};
#vim /etc/bind9/db.smkn2
$TTL 3600
@ IN SOA smkn2-tsm.sch.id. root.localhost {
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
@ IN NS smkn2-tsm.sch.id.
IN MX 10 mail.smkn2-tsm.sch.id.
smkn2-tsm.sch.id. IN A 10.252.6.10
debian-administration.org. IN A 10.252.6.10
redhat.org. IN A 10.252.6.10
linux.or.id. IN A 10.252.6.10
gentoo.org. IN A 10.252.6.10
susefaq.sourceforge.net. IN A 10.252.6.10
mail IN CNAME smkn2-tsm.sch.id.
www IN CNAME smkn2-tsm.sch.id.
#vim /etc/bind9/db.smkn2-rev
$TTL 3600
6.252.10.in-addr.arpa. IN SOA smkn2-tsm.sch.id. root.localhost {
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
@ IN NS smkn2-tsm.sch.id.
IN MX 10 mail.smkn2-tsm.sch.id.
10 IN PTR smkn2-tsm.sch.id.
10 IN PTR debian-administration.org.
10 IN PTR redhat.org.
10 IN PTR linux.or.id.
10 IN PTR gentoo.org.
10 IN PTR susefaq.sourceforge.net.
#/etc/init.d/bind9 restart
konfigurasi postfix :
#vim /etc/postfix/main.cf
ganti option berikut ini :
my_network = 10.252.6.0/24
poho deui........ naon teh...
cara lain konfig postfix
#dpkg-reconfigure postfix
#/etc/squirrelmail/conf.pl
ganti server name : smkn2-tsm.sch.id
imap server : uw
#vim /etc/hosts
10.252.6.10 smkn2-tsm.sch.id. lks06 ( nama host = lks06 )
#/etc/init.d/network restart
#/etc/init.d/postfix restart
konfigurasi web server
supaya index html langung kabaca tina www.smkn2-tsm.sch.id
#vim /etc/apache/site-available/default
tutup options
Redirect_match
#Redirect_match
#cd /var/www/
setelah itu buat script html "SELAMAT DATANG DI LKS 2008 Jawa Barat" --------> teuing kumaha tah.. basa kamarimah dicarekan lewat we..
terus supaya alias squirrelmail jadi webmail pada url http://wwww.smkn2-tsm.sch.id/webmail
#vim /etc/squirrelmail/apache.conf
ganti options squirrelmail dengan webmail
setelah itu restart services
#/etc/init.d/apache restart
konfigurasi proxy
#vim /etc/squid.conf
acl localnet 10.252.6.0/24
acl blacklist url_regex -i "/etc/blacklist.acl"
http_access allow lan
http_access deny blacklist
httpd_accel_host virtual
httpd_accel_port 80 -----------> poho deui....
httpd_accel_with_proxy on
httpd_header_host on -------------> suer poho deui.. biasa pake squid versi 2.6Stable14 Eweuh Nu karariyeu keur transparent
buat file blacklist.acl
#vim /etc/blacklist.acl
www.redhat.org
www.linux.or.id
susefaq.sourceforge.net
www.gentoo.org
www.debian-administration.org
#/etc/init.d/squid restart
transparent langsung
#iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-ports 3128
NOTE : JANGAN BUKA INTERNET EXPLORER ( DITEST ) JIKA SEMUA KONFIGURASI DIATAS SELESAI, KARNA BAKAL NGEREPOTIN
Thursday, June 12, 2008
Sunday, June 1, 2008
Ngebangun Video Hosting Server
iseng iseng tambah ngak ada yang ditulis mending apa aja deh..tulis. hehe...
berikut ini hasil experimen saya di ubuntu 7.10 ( oprekan terbaru ) yaitu buat video server hosting itu tuh kayak youtube gitu....
langsung aja deh....
Program / codec yang dibutuhkan antara lain :
wget http://www3.mplayerhq.hu/MPlayer/releas ... 22.tar.bz2
wget http://rubyforge.org/frs/download.php/9 ... .5_rc6.tgz
wget http://easynews.dl.sourceforge.net/sour ... .97.tar.gz
wget http://superb-west.dl.sourceforge.net/s ... 0.5.0.tbz2
wget http://downloads.xiph.org/releases/ogg/ ... 1.3.tar.gz
wget http://downloads.xiph.org/releases/vorb ... 1.2.tar.gz
Setelah itu diektrak.
bunzip2 essential-20061022.tar.bz2; tar xvf essential-20061022.tar
tar zxvf flvtool2_1.0.5_rc6.tgz
tar zxvf lame-3.97.tar.gz
bunzip2 ffmpeg-php-0.5.0.tbz2; tar xvf ffmpeg-php-0.5.0.tar
tar zxvf libogg-1.1.3.tar.gz
tar zxvf libvorbis-1.1.2.tar.gz
Kemudian kita membuat beberapa direktori tambahan
mkdir /usr/local/lib/codecs/
mv essential-20061022/* /usr/local/lib/codecs/
chmod -R 755 /usr/local/lib/codecs/
Kita juga membutuhkan SVN Ruby
yum install subversion
yum install ruby
yum install ncurses-devel
Dapatkan ffmpeg dan mcodec terbaru
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
Masukan baris berikut kedalam /etc/ld.so.conf
Code: Select all
/usr/local/lib
kemudian jalankan
ldconfig -v
Compile LAME
cd /usr/local/src/lame-3.97
./configure
make
make install
Compile libOGG
cd /usr/local/src/libogg-1.1.3
./configure
make
make install
Compile libVorbis
cd /usr/local/src/libvorbis-1.1.2
./configure
make
make install
Compile flvtool2
cd /usr/local/src/flvtool2_1.0.5_rc6
ruby setup.rb config
ruby setup.rb setup
ruby setup.rb install
Compile MPlayer
cd /usr/local/src/mplayer
./configure
make
make install
Compile FFMPEG
cd /usr/local/src/ffmpeg
./configure --enable-libmp3lame --enable-libogg --enable-libvorbis --disable-mmx --enable-shared
echo '#define HAVE_LRINTF 1' >> config.h
make
make install
Create sh tambahan lagi
ln -s /usr/local/lib/libavformat.so.50 /usr/lib/libavformat.so.50
ln -s /usr/local/lib/libavcodec.so.51 /usr/lib/libavcodec.so.51
ln -s /usr/local/lib/libavutil.so.49 /usr/lib/libavutil.so.49
ln -s /usr/local/lib/libmp3lame.so.0 /usr/lib/libmp3lame.so.0
ln -s /usr/local/lib/libavformat.so.51 /usr/lib/libavformat.so.51
Lakukan sebelum mengcompile ffmpeg php
yum install automake
yum install autoconf
yum install libtool
Lakukan Compile FFMPEG-PHP
cd /usr/local/src/ffmpeg-php-0.5.0
phpize
./configure
make
make install
Masukan FFMPEG-PHP sebagai extention PHP
masukan baris ini ke php.ini file
extension=ffmpeg.so
Restart Apache dan jalankan FFMPEG-PHP
/etc/init.d/apache2 restart
cek apakah ffmpeg-php telah aktif pada php
php -r 'phpinfo();' | grep ffmpeg
kalo ada berarti muncul.....
berikut ini hasil experimen saya di ubuntu 7.10 ( oprekan terbaru ) yaitu buat video server hosting itu tuh kayak youtube gitu....
langsung aja deh....
Program / codec yang dibutuhkan antara lain :
wget http://www3.mplayerhq.hu/MPlayer/releas ... 22.tar.bz2
wget http://rubyforge.org/frs/download.php/9 ... .5_rc6.tgz
wget http://easynews.dl.sourceforge.net/sour ... .97.tar.gz
wget http://superb-west.dl.sourceforge.net/s ... 0.5.0.tbz2
wget http://downloads.xiph.org/releases/ogg/ ... 1.3.tar.gz
wget http://downloads.xiph.org/releases/vorb ... 1.2.tar.gz
Setelah itu diektrak.
bunzip2 essential-20061022.tar.bz2; tar xvf essential-20061022.tar
tar zxvf flvtool2_1.0.5_rc6.tgz
tar zxvf lame-3.97.tar.gz
bunzip2 ffmpeg-php-0.5.0.tbz2; tar xvf ffmpeg-php-0.5.0.tar
tar zxvf libogg-1.1.3.tar.gz
tar zxvf libvorbis-1.1.2.tar.gz
Kemudian kita membuat beberapa direktori tambahan
mkdir /usr/local/lib/codecs/
mv essential-20061022/* /usr/local/lib/codecs/
chmod -R 755 /usr/local/lib/codecs/
Kita juga membutuhkan SVN Ruby
yum install subversion
yum install ruby
yum install ncurses-devel
Dapatkan ffmpeg dan mcodec terbaru
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
Masukan baris berikut kedalam /etc/ld.so.conf
Code: Select all
/usr/local/lib
kemudian jalankan
ldconfig -v
Compile LAME
cd /usr/local/src/lame-3.97
./configure
make
make install
Compile libOGG
cd /usr/local/src/libogg-1.1.3
./configure
make
make install
Compile libVorbis
cd /usr/local/src/libvorbis-1.1.2
./configure
make
make install
Compile flvtool2
cd /usr/local/src/flvtool2_1.0.5_rc6
ruby setup.rb config
ruby setup.rb setup
ruby setup.rb install
Compile MPlayer
cd /usr/local/src/mplayer
./configure
make
make install
Compile FFMPEG
cd /usr/local/src/ffmpeg
./configure --enable-libmp3lame --enable-libogg --enable-libvorbis --disable-mmx --enable-shared
echo '#define HAVE_LRINTF 1' >> config.h
make
make install
Create sh tambahan lagi
ln -s /usr/local/lib/libavformat.so.50 /usr/lib/libavformat.so.50
ln -s /usr/local/lib/libavcodec.so.51 /usr/lib/libavcodec.so.51
ln -s /usr/local/lib/libavutil.so.49 /usr/lib/libavutil.so.49
ln -s /usr/local/lib/libmp3lame.so.0 /usr/lib/libmp3lame.so.0
ln -s /usr/local/lib/libavformat.so.51 /usr/lib/libavformat.so.51
Lakukan sebelum mengcompile ffmpeg php
yum install automake
yum install autoconf
yum install libtool
Lakukan Compile FFMPEG-PHP
cd /usr/local/src/ffmpeg-php-0.5.0
phpize
./configure
make
make install
Masukan FFMPEG-PHP sebagai extention PHP
masukan baris ini ke php.ini file
extension=ffmpeg.so
Restart Apache dan jalankan FFMPEG-PHP
/etc/init.d/apache2 restart
cek apakah ffmpeg-php telah aktif pada php
php -r 'phpinfo();' | grep ffmpeg
kalo ada berarti muncul.....
Subscribe to:
Posts (Atom)