Membuka streaming pada DVR

Bagai mana url streaming pada DVR


masukan di realplayer / quicktime

Migrasi mail server zimbra ke mail server lain / sebaliknya

install aplikasi di salah satu server / di server lain

echo “secret” > /etc/kode1
echo “secret” > /etc/kode2
chmod 600 /etc/kode1
chmod 600 /etc/kode22

apt-get update && apt-get upgrade

sudo apt-get install libdate-manip-perl libterm-readkey-perl libterm-readkey-perl libdigest-hmac-perl libdigest-hmac-perl libdate-manip-perl libmail-imapclient-perl makepasswd rcs perl-doc git

cd /tmp

git clone git://

cd imapsync

sh examples/

sudo make install

apt-get install make

lakukan migrasi dengan perintah

imapsync –authmech1 LOGIN –ssl1 –host1 –user1 –passfile1 /etc/kode1 –host2 –user2 –passfile2 /etc/kode2

materi mikrotik

download di sini

materi dasar jaringan pertemuan 1-4

Materi ini di khususkan untuk SMK kelas XII
file bisa di download di sini

Network Fundamental
OSI Layer
IP address

SNMP Clients

Command line client applications

To configure SNMP client applications on Debian, including snmpwalk:

apt-get install snmp

If you want to resolve OIDs to their text description, also install snmp-mibs-downloader (non-free repository):

apt-get install snmp-mibs-downloader

Edit /etc/snmp/snmp.conf, and comment the line ‘mibs :’.

If you have a SNMP server on localhost, with Community string ‘public’, you can test this:

% snmpwalk -v1 -cpublic localhost
SNMPv2-MIB::sysDescr.0 = STRING: Linux eedesne 2.6.36 #2 SMP Fri Oct 22 00:03:39 BST 2010 i686
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (141766) 0:23:37.66
SNMPv2-MIB::sysContact.0 = STRING: Me

SNMP Servers

This is the daemon providing SNMP services. SNMP ‘agents’ run on the server side, which listen for incoming SNMP requests from clients and provides responses. Install this from the snmpd package:

apt-get install snmpd

Edit /etc/snmp/snmpd.conf to configure. A simple test, is to allow access from localhost. To enable this, uncomment the line:

rocommunity public localhost

You can now query your local server using ‘public’ as your Community string as follows:

% snmpwalk -v1 -cpublic localhost

If you have downloaded MIBs (e.g. using snmp-mibs-downloader) I suggest to comment the following line in /etc/default/snmpd:

export MIBS=/usr/share/snmp/mibs

SNMP on Debian – older information

The following section applies to Debian GNU/Linux 3.1 Sarge, and dates from 2005, so may not be relevant any more.



Starts allways by default. Listens on all interfaces, correct by adding the address you want it to listen on in /etc/default/snmpd to the parameter SNMPDOPTS:

change from

SNMPDOPTS=’-Lsd -Lf /dev/null -p /var/run/’


SNMPDOPTS=’-Lsd -Lf /dev/null -p /var/run/′

It also listens to the smux port (199) on all interfaces, which can only be altered to listening only to localhost by recompiling. More on this later. It can be argued, with security in mind, to configure snmpd to listen only on localhost. To make it accessible over the net you would have to add tricks like a tunnel, but that goes beyond the scope of this document. Feel free to add it to this page if you know how to do it.

Trap server

Does not start by default. See /etc/default/snmpd

Note: does not need to run on ervery server, you only need 1 trap server in your network, unless it’s overloaded or for reasons of redundancy or security.


Needed packages to make building possible:

(install all extra packages with apt-get install packagename)


You need the following extra packages to rebuild snmpd:


Which you can install the easiest (according to with:

apt-get build-dep package

Download the sources in /usr/src:

user@buildserver:/usr/src >apt-get source libsnmp-base libsnmp5 snmpd
Reading Package Lists… Done
Building Dependency Tree… Done
Need to get 9967kB of source archives.
Get:1 http://d-i stable/main net-snmp 5.1.2-6.1 (dsc) [“1086B”]
Get:2 http://d-i stable/main net-snmp 5.1.2-6.1 (tar) [“3254kB”]
Get:3 http://d-i stable/main net-snmp 5.1.2-6.1 (diff) [67.5kB]
Get:4 http://d-i stable/main net-snmp 5.1.2-6.1 (dsc) [“1086B”]
Get:5 http://d-i stable/main net-snmp 5.1.2-6.1 (tar) [“3254kB”]
Get:6 http://d-i stable/main net-snmp 5.1.2-6.1 (diff) [67.5kB]
Get:7 http://d-i stable/main net-snmp 5.1.2-6.1 (dsc) [“1086B”]
Get:8 http://d-i stable/main net-snmp 5.1.2-6.1 (tar) [“3254kB”]
Get:9 http://d-i stable/main net-snmp 5.1.2-6.1 (diff) [67.5kB]
Fetched 9967kB in 1s (7314kB/s)
dpkg-source: extracting net-snmp in net-snmp-5.1.2
Skipping unpack of already unpacked source in net-snmp-5.1.2
Skipping unpack of already unpacked source in net-snmp-5.1.2
user@buildserver:/usr/src >

results in :

user@buildserver:/usr/src >ls -al||grep snmp
drwxrwxr-x 15 user src 4096 2005-08-24 10:42 net-snmp-5.1.2
-rw-r–r– 1 user src 67522 2005-03-31 17:32 net-snmp_5.1.2-6.1.diff.gz
-rw-r–r– 1 user src 1086 2005-03-31 17:32 net-snmp_5.1.2-6.1.dsc
-rw-r–r– 1 user src 3253579 2004-08-10 12:32 net-snmp_5.1.2.orig.tar.gz
user@buildserver:/usr/src >

Rebuild to check your environment :

user@buildserver:/usr/src >cd net-snmp-5.1.2
user@buildserver:/usr/src/net-snmp-5.1.2 >debian/rules binary

Yada, yada, yada …

Use of uninitialized value in scalar assignment at /usr/bin/dh_shlibdeps line 13 8.
dh_gencontrol -a
dh_md5sums -a
dh_builddeb -a
dpkg-deb: building package `snmpd’ in `../snmpd_5.1.2-6.1_i386.deb’.
dpkg-deb: building package `snmp’ in `../snmp_5.1.2-6.1_i386.deb’.
dpkg-deb: building package `libsnmp5′ in `../libsnmp5_5.1.2-6.1_i386.deb’.
dpkg-deb: building package `libsnmp5-dev’ in `../libsnmp5-dev_5.1.2-6.1_i386.deb ‘.
dpkg-deb: building package `libsnmp-perl’ in `../libsnmp-perl_5.1.2-6.1_i386.deb ‘.
user@buildserver:/usr/src/net-snmp-5.1.2 >
user@buildserver:/usr/src/net-snmp-5.1.2 >date
Wed Aug 24 10:59:16 CEST 2005
user@buildserver:/usr/src/net-snmp-5.1.2 >ls -al .. || grep ’08-24 10:5’
drwxrwsr-x 10 user src 4096 2005-08-24 10:53 .
-rw-r–r– 1 user src 1533904 2005-08-24 10:53 libsnmp5_5.1.2-6.1_i386.deb
-rw-r–r– 1 user src 1100654 2005-08-24 10:53 libsnmp5-dev_5.1.2-6.1_i386.deb
-rw-r–r– 1 user src 1004758 2005-08-24 10:53 libsnmp-base_5.1.2-6.1_all.deb
-rw-r–r– 1 user src 808572 2005-08-24 10:53 libsnmp-perl_5.1.2-6.1_i386.deb
drwxrwxr-x 15 user src 4096 2005-08-24 10:53 net-snmp-5.1.2
-rw-r–r– 1 user src 811612 2005-08-24 10:53 snmp_5.1.2-6.1_i386.deb
-rw-r–r– 1 user src 730488 2005-08-24 10:53 snmpd_5.1.2-6.1_i386.deb
-rw-r–r– 1 user src 754554 2005-08-24 10:53 tkmib_5.1.2-6.1_all.deb
user@buildserver:/usr/src/net-snmp-5.1.2 >

[Todo : Find out why building from sources libsnmp-base, libsnmp5 and snmpd produces packages libsnmp5, libsnmp5-dev, libsnmp-base, libsnmp-perl, snmp, snmpd & tkmib]

Using your own packages

Since I prefer installing packages automatically using the same means as the original install method, I’m describing my own way through a debian-local directory on my local web server in combination with apt-proxy. Feel free to install your packages with

dpkg -i ./packagefile.deb

if you feel an urgent need to create work or for testing purposes.

So I run a local apt-proxy which keeps a copy of my downloaded packages on my local web server and have a real (so not proxied) local directory that’s part of my /etc/apt/sources.list (the place apt uses to install new packages and updates over the net) in which I store my home-grown packages:

deb http://d-i.local/debian sarge main contrib non-free # proxied
deb-src http://d-i.local/debian sarge main contrib non-free
deb http://d-i.local/debian-security sarge/updates main contrib non-free
deb-src http://d-i.local/debian-security sarge/updates main contrib non-free
deb http://d-i.local/debian-local


Downgrade php 5.3 to 5.2 in Debian

HOW TO: Downgrade php 5.3 to 5.2 in Debian

20th November, 2011 – Posted by Rocko – No Comments

Has it happened to you, that you made an update and suddenly your programs using php are not working any more??? Well with this HOW TO you will learn how to downgrade php to an earlier version.

I have to say, this tutorial might work downgrading to any php version just with adjusting some parameters.

First lets begin with listing the php packages we have installed to make sure we have php 5.3

So in the console write:

dpkg -l | grep php

Search for the php version, it should say 5.3.x if so, then you are int he correct path🙂

Now let’s add in /etc/apt/sources.list

nano /etc/apt/sources.list

and add the following:

deb lenny main contrib non-free
deb-src lenny main contrib non-free

Now we will do something called pinning:

Create a file in /etc/apt/preferences.d and call it preferences

nano /etc/apt/preferences.d/preferences

Add in the file the following:

Package: php5*
Pin: release a=oldstable
Pin-Priority: 700

Package: *
Pin: release a=stable
Pin-Priority: 600

Now remove php with:

aptitude remove `dpkg -l | grep php| awk ‘{print $2}’ |tr “\n” ” “`

then update and reinstall with old version:

apt-get update
apt-get -t oldstable install `dpkg -l | grep php5| awk ‘{print $2}’ |tr “\n” ” “`

Now check again to see if the old php version is installed doing again:

dpkg -l | grep php

Check if you have now php 5.2.x if so then everything is set!! Might be that you have to reboot your apache or your web server doing:

/etc/init.d/apache2 restart

debian squeeze + freeradius 2.1.10 + daloradius

Install Prerequisites

Apache 2
PHP DB Abstraction Layer (may require PHP Pear)

# aptitude install mysql-server php5 php5-mysql php5-gd php-pear php-db freeradius freeradius-mysql subversion

# aptitude install mysql-server php5-gd php-pear php-db freeradius freeradius-mysql subversion -V
The following NEW packages will be installed:
apache2-mpm-prefork{a} [2.2.16-6+squeeze1] apache2-utils{a} [2.2.16-6+squeeze1] apache2.2-bin{a} [2.2.16-6+squeeze1] apache2.2-common{a} [2.2.16-6+squeeze1] fontconfig-config{a} [2.8.0-2.1]
freeradius [2.1.10+dfsg-2] freeradius-common{a} [2.1.10+dfsg-2] freeradius-mysql [2.1.10+dfsg-2] freeradius-utils{a} [2.1.10+dfsg-2] libapache2-mod-php5{a} [5.3.3-7+squeeze1] libapr1{a} [1.4.2-6]
libaprutil1{a} [1.3.9+dfsg-5] libaprutil1-dbd-sqlite3{a} [1.3.9+dfsg-5] libaprutil1-ldap{a} [1.3.9+dfsg-5] libdbd-mysql-perl{a} [4.016-1] libdbi-perl{a} [1.612-1] libfontconfig1{a} [2.8.0-2.1]
libfreeradius2{a} [2.1.10+dfsg-2] libgd2-xpm{a} [2.0.36~rc1~dfsg-5] libhtml-template-perl{a} [2.9-2] libjpeg62{a} [6b1-1] libltdl7{a} [2.2.6b-2] libmysqlclient16{a} [5.1.49-3] libnet-daemon-perl{a} [0.43-1]
libonig2{a} [5.9.1-1] libpcap0.8{a} [1.1.1-2] libperl5.10{a} [5.10.1-17] libplrpc-perl{a} [0.2020-2] libpng12-0{a} [1.2.44-1] libpython2.6{a} [2.6.6-8+b1] libqdbm14{a} [1.8.77-4] libt1-5{a} [5.1.2-3]
libxpm4{a} [1:3.5.8-1] mysql-client-5.1{a} [5.1.49-3] mysql-common{a} [5.1.49-3] mysql-server [5.1.49-3] mysql-server-5.1{a} [5.1.49-3] mysql-server-core-5.1{a} [5.1.49-3] php-db [1.7.13-2]
php-pear [5.3.3-7+squeeze1] php5-cli{a} [5.3.3-7+squeeze1] php5-common{a} [5.3.3-7+squeeze1] php5-gd [5.3.3-7+squeeze1] php5-suhosin{a} [] ssl-cert{a} [1.0.28] ttf-dejavu-core{a} [2.31-1] libneon27-gnutls{a} [0.29.3-3] libserf-0-0{a} [0.3.1-1] libsvn1{a} [1.6.12dfsg-5] subversion [1.6.12dfsg-5]
0 packages upgraded, 46 newly installed, 0 to remove and 0 not upgraded.
Need to get 38.3 MB of archives. After unpacking 96.6 MB will be used.
Do you want to continue? [Y/n/?]

# mysql -V
mysql Ver 14.14 Distrib 5.1.49, for debian-linux-gnu (i486) using readline 6.1

# freeradius -v
freeradius: FreeRADIUS Version 2.1.10, for host i486-pc-linux-gnu, built on Nov 14 2010 at 20:41:03

# svn co daloradius

Checked out revision 2047.

# cp daloradius/ /var/www -R
# chown www-data:www-data /var/www/daloradius -R
# chmod 644 /var/www/daloradius/library/daloradius.conf.php

# mysql -u root -p
Enter password:mysqladminsecret
mysql> CREATE DATABASE radius;
mysql> quit

# cd /var/www/daloradius/contrib/db/
# mysql -u root -p radius < fr2-mysql-daloradius-and-freeradius.sql
# nano /var/www/daloradius/library/daloradius.conf.php

$configValues['CONFIG_DB_PASS'] = 'mysqlpassword';

And then

http://your ip address/daloradius
username: administrator
password: radius

credit :

Solusi Error : “The following signatures couldn’t be verified because the public key is not available” pada debian / ubuntu

Jika anda menemukan kasus error “The following signatures couldn’t be verified because the public key is not available : NO_PUBKEY F1D53D8C4F368D5D”

Lakukan cara ini dengan login sebagai root

gpg –keyserver –recv F1D53D8C4F368D5D
gpg –export –armor F1D53D8C4F368D5D | apt-key add –

How to Setup a VPN (PPTP) Server on Debian Linux

VPN-ing into your server will allow you to connect to every possible service running on it, as if you were sitting next to it on the same network, without individually forwarding every port combination for every service you would like to access remotely.

Using a VPN connection also has the upshot of, if desired, granting access to other computers on the network as if you where in it locally from anywhere across the internet.

While not the most secure of the VPN solutions out there, PPTP is by far the simplest to install, configure and connect to from any modern system and from windows specifically as the client is a part of the OS since the XP days and you don’t need to mess with certificates (like with L2TP+IPsec or SSL VPNs) on both sides of the connection.

Did i get you interested? then let’s go🙂

You will need to forward port 1723 from the internet to the server to enable the connection (not covered here).
You will see me use VIM as the editor program, this is just because I’m used to it… you may use any other editor that you’d like.

Server Setup

Install the pptp server package:

sudo aptitude install pptpd

Edit the “/etc/pptpd.conf” configuration file:

sudo vim /etc/pptpd.conf

Add to it:



Where the “localip” is the address of the server, and the remoteip are the addresses that will be handed out to the clients, it is up to you to adjust these for your network’s requirements.

Edit the “/etc/ppp/pptpd-options” configuration file:

sudo vim /etc/ppp/pptpd-options

Append to the end of the file, the following directives:




mtu 1490

mru 1490

Where the IP used for the ms-dns directive is the DNS server for the local network your client will be connecting to and, again, it is your responsibility to adjust this to your network’s configuration.

Edit the chap secrets file:

sudo vim /etc/ppp/chap-secrets

Add to it the authentication credentials for a user’s connection, in the following syntax:

username * users-password *

Restart the connection’s daemon for the settings to take affect:

sudo /etc/init.d/pptpd restart

If you don’t want to grant yourself access to anything beyond the server, then you’re done on the server side.
Enable Forwarding (optional)

While this step is optional and could be viewed as a security risk for the extremely paranoid, it is my opinion that not doing it defeats the purpose of even having a VPN connection into your network.

By enabling forwarding we make the entire network available to us when we connect and not just the VPN server itself. Doing so allows the connecting client to “jump” through the VPN server, to all other devices on the network.

To achieve this we will be flipping the switch on the “forwarding” parameter of the system.

Edit the “sysctl” file:

sudo vim /etc/sysctl.conf

Find the “net.ipv4.ip_forward” line and change the parameter from 0 (disabled) to 1 (enabled):


You can either restart the system or issue this command for the setting to take affect:

sudo sysctl -p

With forwarding enabled, all the server side settings are prepared.

We recommend using a “Split Tunnel” connection mode for the VPN client.

A more in depth explanation about the recommended “Split Tunnel” mode, as well as instructions for Ubuntu Linux users can be found in the “Setting up a “Split Tunnel” VPN (PPTP) Client on Ubuntu 10.04” guide.

Melakukan Redirect ke suatu site di Mikrotik

Hal yang kecil namun berefek besar

Kasusnya adalah sebagai berikut, jika ada mempunyai kemampuan dalam membangun HOTSPOT pada Mikrotik, maka hal yang pasti anda temukan adalah ada selalu ingin jika saat client ada login maka akan di redirect ke site yang ada tuju.

Jawabannya sangat mudah, cukup melakukan editing di file alogin.html sehingga muncul seperti berikut :

<title>mikrotik hotspot > redirect</title>
<meta http-equiv=”refresh” content=”0; url=”>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>
<meta http-equiv=”pragma” content=”no-cache”>
<meta http-equiv=”expires” content=”-1″>
<style type=”text/css”>
textarea,input,select {
background-color: #FDFBFB;
border: 1px #BBBBBB solid;
padding: 2px;
margin: 1px;
font-size: 14px;
color: #808080;

body{ color: #737373; font-size: 12px; font-family: verdana; }

a, a:link, a:visited, a:active { color: #AAAAAA; text-decoration: none; font-size: 12px; }
a:hover { border-bottom: 1px dotted #c1c1c1; color: #AAAAAA; }
img {border: none;}
td { font-size: 12px; color: #7A7A7A; }

<script language=”JavaScript”>
function startClock() {
$(if popup == ‘true’)
open(‘$(link-status)’, ‘hotspot_status’, ‘toolbar=0,location=0,directories=0,status=0,menubars=0,resizable=1,width=290,height=200’);
location.href = ‘’;

perhatikan tag yang di beri miring dan tebal, itu yang harus anda rubah dan di arahkan ke site anda
Selamat mencoba , jika ada pertanyaan mari berdiskusi di

PNET Indonesia Mandiri Jl. Paledang No. 290 ( Training Center)


Get every new post delivered to your Inbox.