Jan 10, 2012

Posted by Fandi | 0 comments

Email Quota didn’t change

Email Quota didn’t change

Disk space usage for email accounts is recalculated every four hours.
root@mail # du -sh recruitment*
8.6M recruitment-rspj
I have recalculated the disk space usage for email accounts via the following commands:
/scripts/mailperm [account] –verbose
/scripts/generate_maildirsize –verbose –confirm [account]
Upon checking, it’s now displayed properly.
Please let us know if you have any further questions.
Thank you.

Disk space usage for email accounts is recalculated every four hours.root@mail # du -sh recruitment*8.6M recruitment-rspj
I have recalculated the disk space usage for email accounts via the following commands:
/scripts/mailperm [account] –verbose/scripts/generate_maildirsize –verbose –confirm [account]
Upon checking, it’s now displayed properly.
Please let us know if you have any further questions.
Thank you.

Regards

Fandi Kurnia

Read More
Sep 29, 2011

Posted by Fandi | 0 comments

Install APC

Install APC

To set up the Alternative PHP Cache (APC) just follow the instructions below:

1. Install the required packages:

# sudo apt-get install php-pear php5-dev apache2-threaded-dev

2. Install APC:

# sudo pecl install apc

3. Create file /etc/php5/conf.d/apc.ini with the following content:

extension=apc.so

4. Restart Apache2:

# sudo /etc/init.d/apache2 restart

After restarting the Apache2 web server a APC section should be included in the phpinfo() output.

Read More
Sep 29, 2011

Posted by Fandi | 0 comments

Upgrade Centos

Upgrade Centos

yum clean all
yum update glibc\*
yum update yum\* rpm\* python\*
yum clean all
yum update
reboot


Read More
Aug 22, 2011

Posted by Fandi | 0 comments

Ping : send to host : Invalid Argument

Ping : send to host : Invalid Argument

Suatu hari internet komputer kantor error, saya menggunakan speedy sebagai internet service provider (ISP). setelah internet sedang “down” saya kira dial up pc saya yang error ternyata memang dari speedy-nya yang error. Sehingga tidak dapat digunakan cukup lama, lumayan juga kerugian yang kami capai untuk internet yang mati tersebut. Ternyata setelah koneksi internet dari “speedy” sudah diperbaiki kembali masalah lain yang datang. Setelah di coba memang tidak ada masalah dari “speedy” tetapi ketiak saya coba menggunakan dial-up ada error dari PC FreeBSD saya, cukup lama internet tersebut tidak bisa terkoneksi.

Berikut ini adalah pemecahan terhadap masalah tersebut:

Saya melakukan pengecekan di “/etc/rc.conf”

ternyata ada tambahan :

default route =”10.0.0.2″

hilangkan teks di atas, setelah itu me-restart netstart. Kemudian internet kembali normal kembali.

Read More
Jul 11, 2011

Posted by Fandi | 0 comments

Instalasi snmpd di FreeBSD

Instalasi snmpd di FreeBSD

bsd# cd /usr/ports/net-mgmt/net-snmp/
bsd# make && make install clean setelah kalian install mrtg, tinggal membuat config file snmpd tersebud
bsd# pico /usr/local/share/snmp/snmpd.conf
####Isi dari snmpd.conf#####
com2sec local     localhost        public
com2sec mynetwork    192.168.10.0/24   public
group MyRWGroup  any        local
group MyROGroup   v1        mynetwork
group MyROGroup   v2c        mynetwork
view all    included  .1                               80
access MyROGroup “”      any       noauth    exact     all    none   none
access MyRWGroup “”      any       noauth    0      all    all    all

####End of snmpd.conf#####
bsd# rehash
agar snmpd otomatis jalan saat server di restart
bsd# echo “/usr/local/sbin/snmpd -c /usr/local/snmp/share/snmp/snmpd.conf” >> /etc/rc.local
untuk melihat snmpd kalian sudah jalan apa belom
bsd# snmpwalk -v 1 -c public HOSTNAME system
info : HOSTNAME ini dapat kalian ganti sesuai nama yg anda tulis di snmpd.conf
maka hasilnya akan seperti ini

SNMPv2-MIB::sysDescr.0 = STRING: FreeBSD bsd.lemontreenet.net 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jul  4 07:54:01 UTC 2008     agit@bsd.lemontreenet.net :/usr/obj/usr/src/sys/LEMON i386
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.8
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (248432) 0:41:24.32
SNMPv2-MIB::sysContact.0 = STRING: Tubagus  < tubagus@indofreebsd.or.id >
SNMPv2-MIB::sysName.0 = STRING: bsd.lemontreenet.net
SNMPv2-MIB::sysLocation.0 = STRING: LemonTree, FreeBSD  NOC
SNMPv2-MIB::sysServices.0 = INTEGER: 72
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORID.1 = OID: IF-MIB::ifMIB
SNMPv2-MIB::sysORID.2 = OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.3 = OID: TCP-MIB::tcpMIB
SNMPv2-MIB::sysORID.4 = OID: IP-MIB::ip
SNMPv2-MIB::sysORID.5 = OID: UDP-MIB::udpMIB
SNMPv2-MIB::sysORID.6 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup
SNMPv2-MIB::sysORID.7 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance
SNMPv2-MIB::sysORID.8 = OID: SNMP-MPD-MIB::snmpMPDCompliance
SNMPv2-MIB::sysORID.9 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance
SNMPv2-MIB::sysORDescr.1 = STRING: The MIB module to describe generic objects for network interface sub-layers
SNMPv2-MIB::sysORDescr.2 = STRING: The MIB module for SNMPv2 entities
SNMPv2-MIB::sysORDescr.3 = STRING: The MIB module for managing TCP implementations
SNMPv2-MIB::sysORDescr.4 = STRING: The MIB module for managing IP and ICMP implementations
SNMPv2-MIB::sysORDescr.5 = STRING: The MIB module for managing UDP implementations
SNMPv2-MIB::sysORDescr.6 = STRING: View-based Access Control Model for SNMP.
SNMPv2-MIB::sysORDescr.7 = STRING: The SNMP Management Architecture MIB.
SNMPv2-MIB::sysORDescr.8 = STRING: The MIB for Message Processing and Dispatching.
SNMPv2-MIB::sysORDescr.9 = STRING: The management information definitions for the SNMP User-based Security Model.
SNMPv2-MIB::sysORUpTime.1 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.2 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.3 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.4 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.5 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.6 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.7 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.8 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.9 = Timeticks: (0) 0:00:00.00

Read More
Jul 10, 2011

Posted by Fandi | 0 comments

Building a kernel on FreeBSD

Building a kernel on FreeBSD

Building a Kernel

Note: It is required to have the full FreeBSD source tree installed to build the kernel.

  1. Change to the /usr/src directory:
    # cd /usr/src
  2. Compile the kernel:
    # make buildkernel KERNCONF=MYKERNEL
  3. Install the new kernel:
    # make installkernel KERNCONF=MYKERNEL

Read More
Jul 4, 2011

Posted by Fandi | 0 comments

No buffer space available: get socket to connect t...

No buffer space available: get socket to connect to listener”

The apache 2.2 daemon starts to fill up the error log file with this error: “No buffer space available: get socket to connect to listener” … what do you do … what do you do ?! You search google for hours trying to find the sollution, and then it hits you: you change these sysctl variables:
sysctl -w kern.random.sys.harvest.ethernet=0
sysctl -w kern.ipc.nmbclusters=262144
sysctl -w kern.ipc.maxsockbuf=2097152
sysctl -w kern.ipc.maxsockets=98624
sysctl -w kern.ipc.somaxconn=1024
and maybe you should also tweak some apache directives to fit the load you receive on the server in peak hours:
StartServers 22
MinSpareServers 25
MaxSpareServers 25
MaxClients 256
MaxRequestsPerChild 400
Of course the above values will not necessarily work for you but you can play with them to find the best values for your setup.

Read More
Jun 28, 2011

Posted by Fandi | 0 comments

SshopenSSHkeys

SshopenSSHkeys

Generating RSA Keys
mkdir ~/.ssh
chmod 700 ~/.ssh
ssh-keygen -t rsa
You will be prompted for a location to save the keys, and a passphrase for the keys. This passphrase will protect your private key while it’s stored on the hard drive and be required to use the keys every time you need to login to a key-based system:
Generating public/private rsa key pair.
Enter file in which to save the key (/home/b/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/b/.ssh/id_rsa.
Your public key has been saved in /home/b/.ssh/id_rsa.pub.
your public password is now available as .ssh/id_rsa.pub in your home folder
key encryption level
ssh-keygen -t rsa -b 4096
Transfer Client key to Host
ssh-copy-id <user>@<host>
Transfer Client key to host using another port
ssh-copy-id ‘-p <xxxx>  -i ~/.ssh/id_rsa2.pub <user>@<host>’

Generating RSA Keysmkdir ~/.ssh chmod 700 ~/.sshssh-keygen -t rsa
You will be prompted for a location to save the keys, and a passphrase for the keys. This passphrase will protect your private key while it’s stored on the hard drive and be required to use the keys every time you need to login to a key-based system:

Generating public/private rsa key pair.Enter file in which to save the key (/home/b/.ssh/id_rsa):Enter passphrase (empty for no passphrase):Enter same passphrase again:Your identification has been saved in /home/b/.ssh/id_rsa.Your public key has been saved in /home/b/.ssh/id_rsa.pub.
your public password is now available as .ssh/id_rsa.pub in your home folder

key encryption level ssh-keygen -t rsa -b 4096

Transfer Client key to Host
ssh-copy-id <user>@<host>Transfer Client key to host using another port
ssh-copy-id ‘-p <xxxx>  -i ~/.ssh/id_rsa2.pub <user>@<host>’

Read More
Jun 20, 2011

Posted by Fandi | 0 comments

Install Sound Driver

Install Sound Driver

Alo sharper, hari ini coba menulis lagi nih. Apa yang sudah saya lakukan kemarin? mulai sabtu, jam 11 malam sampai minggu jam 10 malam. Wow, saya menghabiskan waktu 23 jam untuk melakukan installasi sound card di windows 7. hihi, ini sunggu membuang waktu saya. Jadi saya coba sharing, semoga di lain hari bisa lebih cepat dalam penyelesaiannya :

1. Cari type motherboardnya ( di google atau site bersangkutan), atau coba baca di bukunya. Untuk mespesifikasikan jenis hardware yang akan menentukan driver / software yang dibutuhkan. contoh kemaren di butuhkan Realtek AL880 8 channel audio.

2.  Kemudia coba download file mengenai Driver tersebut di site bersangkutan, perusahaan pembuat sound card seperti, realtek, c-media, dll. mempunyai websitenya masing-masing. Realtek AL880 8 Channel audio, kalian bisa download di link berikut :

http://www.realtek.com.tw/downloads/downloadsCheck.aspx?Langid=1&PNid=24&PFid=24&Level=4&Conn=3&DownTypeID=3&GetDown=false3

3. Install biasa. Akhirnya berhasil juga

Jadi coba lakukan seperti tahap-tahap tersebut.

Salam
Fandi Kurnia

Read More
Jun 15, 2011

Posted by Fandi | 0 comments

Perhitungan bilangan 5 pangkat 2

Perhitungan bilangan 5 pangkat 2

5 x 5 = 25

15 x 15 = 225

25 x 25 = 625

Caranya :

1 x 2 = 2 taruh di paling depan

tambahkan 25 di bagian belakang

jawaban : 225

simple

Read More

« Previous Entries

1 visitors online now
1 guests, 0 members
Max visitors today: 3 at 12:16 pm WIT
This month: 6 at 01-06-2012 12:33 pm WIT
This year: 6 at 01-06-2012 12:33 pm WIT
All time: 78 at 06-01-2011 07:30 pm WIT