Monthly Archives: July 2012

IAX TRUNK & FLOW CALL


 

 

 

 

NSF SERVER


 

[root@localhost yum.repos.d]# rpm -aq | grep nfs
nfs-utils-lib-1.0.8-7.6.el5
system-config-nfs-1.3.23-1.el5
nfs-utils-1.0.9-44.el5

Kalau tidak ada install
[root@localhost yum.repos.d]# yum install nfs*
[root@localhost yum.repos.d]# rpm -aq | grep portmap
portmap-4.0-65.2.2.1

Kalau tidak ada install portmap
[root@localhost yum.repos.d]# yum install portmap
Pastikan semua service jalan (rpcidmapd,nfs,nfslock,portmap)

[root@localhost yum.repos.d]# /etc/init.d/rpcidmapd status
rpc.idmapd (pid 1857) is running…

[root@localhost yum.repos.d]# /etc/init.d/nfs status
rpc.mountd (pid 2594) is running…
nfsd (pid 2591 2590 2589 2588 2587 2586 2585 2584) is running…
rpc.rquotad (pid 2566) is running…

[root@localhost yum.repos.d]# /etc/init.d/nfslock start
Starting NFS statd:
Chkconfig service agar jalan di runlevel 3,5

[root@localhost yum.repos.d]# chkconfig portmap on
[root@localhost yum.repos.d]# chkconfig nfslock on
[root@localhost yum.repos.d]# chkconfig nfs on
[root@localhost yum.repos.d]# chkconfig rpcidmapd on

[root@localhost yum.repos.d]# rpcinfo -p 192.168.0.136
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100011 1 udp 623 rquotad
100011 2 udp 623 rquotad
100011 1 tcp 626 rquotad
100011 2 tcp 626 rquotad
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100021 1 udp 36418 nlockmgr
100021 3 udp 36418 nlockmgr
100021 4 udp 36418 nlockmgr
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100021 1 tcp 49184 nlockmgr
100021 3 tcp 49184 nlockmgr
100021 4 tcp 49184 nlockmgr
100005 1 udp 650 mountd
100005 1 tcp 653 mountd
100005 2 udp 650 mountd
100005 2 tcp 653 mountd
100005 3 udp 650 mountd
100005 3 tcp 653 mountd
100024 1 udp 790 status
100024 1 tcp 793 status

Server SUMBER yang menghsare

[root@localhost uploads]#vim /etc/export
/var/www/html/new_tms 192.168.0.*(rw,sync)

[root@localhost uploads]# exportfs -va
exporting 192.168.0.*:/var/www/html/new_tms
Mounting manual dari destination
mount -t nfs 192.168.0.136:/var/www/html/new_tms /var/www/html/new_tms

Agar di Mounting otomatis pada saat reboot, tambahkan di server tujuan

[root@server11 ~]# vim /etc/fstab
192.168.0.136:/var/www/html/new_tms /var/www/html/new_tms nfs defaults 1 1

[root@server11 ~]# mount
192.168.0.136:/var/www/html/new_tms on /var/www/html/new_tms type nfs (rw,addr=192.168.0.136)

How to extract and rebuild RPM


[root@svrrepo rpm]# ls -l redhat-logos-60.0.14-10.el6.centos.noarch.rpm
-rw-r–r– 1 root root 10978244 Jul 13 14:38 redhat-logos-60.0.14-10.el6.centos.noarch.rpm

 

[root@svrrepo rpm]# rpm2cpio redhat-logos-60.0.14-10.el6.centos.noarch.rpm |cpio -idv > output 2>&1


[root@svrrepo rpm]# more output


cpio: ./boot/grub/splash.xpm.gz not created: newer or same age version exists
./boot/grub/splash.xpm.gz
cpio: ./etc/favicon.png not created: newer or same age version exists
./etc/favicon.png
./usr/lib/anaconda-runtime
./usr/lib/anaconda-runtime/boot
./usr/lib/anaconda-runtime/boot/syslinux-splash.png
./usr/lib/anaconda-runtime/splashtolss.sh
./usr/lib/anaconda-runtime/syslinux-vesa-splash.jpg
./usr/share/anaconda
./usr/share/anaconda/pixmaps
./usr/share/anaconda/pixmaps/anaconda_header.png
./usr/share/anaconda/pixmaps/progress_first-lowres.png
./usr/share/anaconda/pixmaps/progress_first.png
./usr/share/anaconda/pixmaps/splash.png
./usr/share/anaconda/pixmaps/syslinux-splash.png
./usr/share/backgrounds/default.png
./usr/share/backgrounds/default.xml
./usr/share/backgrounds/default_1920x1200.png
./usr/share/backgrounds/default_1920x1440.png
./usr/share/backgrounds/simple_waves.jpg
./usr/share/doc/redhat-logos-60.0.14
./usr/share/doc/redhat-logos-60.0.14/COPYING
./usr/share/firstboot/themes/RHEL
./usr/share/firstboot/themes/RHEL/firstboot-left.png
./usr/share/firstboot/themes/RHEL/firstboot-small.png
./usr/share/firstboot/themes/RHEL/splash-small.png
./usr/share/firstboot/themes/RHEL/workstation.png
./usr/share/gnome-background-properties/desktop-backgrounds-default.xml
./usr/share/icons/System/16×16/places/start-here.png
./usr/share/icons/System/24×24/places/start-here.png
./usr/share/icons/System/32×32/places/start-here.png
./usr/share/icons/System/36×36/places/start-here.png
./usr/share/icons/System/48×48/places/start-here.png
./usr/share/icons/System/96×96/places/start-here.png
./usr/share/icons/hicolor
./usr/share/icons/hicolor/16×16/apps/system-logo-icon.png
./usr/share/icons/hicolor/24×24/apps/system-logo-icon.png
./usr/share/icons/hicolor/32×32/apps/system-logo-icon.png
./usr/share/icons/hicolor/36×36/apps/system-logo-icon.png
./usr/share/icons/hicolor/48×48/apps/system-logo-icon.png
./usr/share/icons/hicolor/96×96/apps/system-logo-icon.png
./usr/share/icons/hicolor/scalable/apps/xfce4_xicon1.svg
./usr/share/kde-settings
./usr/share/kde-settings/kde-profile
./usr/share/kde-settings/kde-profile/default
./usr/share/kde-settings/kde-profile/default/share
./usr/share/kde-settings/kde-profile/default/share/icons
./usr/share/kde-settings/kde-profile/default/share/icons/Fedora-KDE
./usr/share/kde-settings/kde-profile/default/share/icons/Fedora-KDE/16×16
./usr/share/kde-settings/kde-profile/default/share/icons/Fedora-KDE/16×16/places
./usr/share/kde-settings/kde-profile/default/share/icons/Fedora-KDE/16×16/places/start-here.png
./usr/share/kde-settings/kde-profile/default/share/icons/Fedora-KDE/24×24
./usr/share/kde-settings/kde-profile/default/share/icons/Fedora-KDE/24×24/places
./usr/share/kde-settings/kde-profile/default/share/icons/Fedora-KDE/24×24/places/start-here.png
./usr/share/kde-settings/kde-profile/default/share/icons/Fedora-KDE/32×32
./usr/share/kde-settings/kde-profile/default/share/icons/Fedora-KDE/32×32/places
./usr/share/kde-settings/kde-profile/default/share/icons/Fedora-KDE/32×32/places/start-here.png
./usr/share/kde-settings/kde-profile/default/share/icons/Fedora-KDE/36×36
./usr/share/kde-settings/kde-profile/default/share/icons/Fedora-KDE/36×36/places
./usr/share/kde-settings/kde-profile/default/share/icons/Fedora-KDE/36×36/places/start-here.png
./usr/share/kde-settings/kde-profile/default/share/icons/Fedora-KDE/48×48
./usr/share/kde-settings/kde-profile/default/share/icons/Fedora-KDE/48×48/places
./usr/share/kde-settings/kde-profile/default/share/icons/Fedora-KDE/48×48/places/start-here.png
./usr/share/kde-settings/kde-profile/default/share/icons/Fedora-KDE/96×96
./usr/share/kde-settings/kde-profile/default/share/icons/Fedora-KDE/96×96/places
./usr/share/kde-settings/kde-profile/default/share/icons/Fedora-KDE/96×96/places/start-here.png
./usr/share/kde4/apps
./usr/share/kde4/apps/kdm/themes/CentOS6
./usr/share/kde4/apps/kdm/themes/CentOS6/KdmGreeterTheme.desktop
./usr/share/kde4/apps/kdm/themes/CentOS6/background.png
./usr/share/kde4/apps/kdm/themes/CentOS6/box.png
./usr/share/kde4/apps/kdm/themes/CentOS6/centos6.xml
./usr/share/kde4/apps/kdm/themes/CentOS6/screenshot.png
./usr/share/kde4/apps/kdm/themes/CentOS6/session_button-li.png
./usr/share/kde4/apps/kdm/themes/CentOS6/session_button.png
./usr/share/kde4/apps/kdm/themes/CentOS6/system-logo-white.png
./usr/share/kde4/apps/kdm/themes/CentOS6/system_button-li.png
./usr/share/kde4/apps/kdm/themes/CentOS6/system_button.png
./usr/share/kde4/apps/ksplash/Themes/CentOS6
./usr/share/kde4/apps/ksplash/Themes/CentOS6/1920×1200
./usr/share/kde4/apps/ksplash/Themes/CentOS6/1920×1200/background.png
./usr/share/kde4/apps/ksplash/Themes/CentOS6/1920×1200/description.txt
./usr/share/kde4/apps/ksplash/Themes/CentOS6/1920×1200/progressbar1.png
./usr/share/kde4/apps/ksplash/Themes/CentOS6/1920×1200/progressbar2.png
./usr/share/kde4/apps/ksplash/Themes/CentOS6/1920×1200/progressbar3.png
./usr/share/kde4/apps/ksplash/Themes/CentOS6/1920×1200/progressbar4.png
./usr/share/kde4/apps/ksplash/Themes/CentOS6/1920×1200/progressbar5.png
./usr/share/kde4/apps/ksplash/Themes/CentOS6/1920×1200/splash.png
./usr/share/kde4/apps/ksplash/Themes/CentOS6/Preview.png
./usr/share/kde4/apps/ksplash/Themes/CentOS6/Theme.rc
./usr/share/pixmaps/poweredby.png
./usr/share/pixmaps/redhat
./usr/share/pixmaps/redhat/rhad.png
./usr/share/pixmaps/redhat/rpm.tif
./usr/share/pixmaps/redhat/rpmlogo-200.png
./usr/share/pixmaps/redhat/rpmlogo-32.png
./usr/share/pixmaps/redhat/rpmlogo-48.png
./usr/share/pixmaps/redhat/rpmlogo-64.png
./usr/share/pixmaps/redhat/rpmlogo-mini.png
./usr/share/pixmaps/redhat/shadowman-transparent.png
./usr/share/pixmaps/system-logo-small.png
./usr/share/pixmaps/system-logo-white.png
./usr/share/pixmaps/system-logo.png
./usr/share/pixmaps/system-release-white.png
./usr/share/plymouth/themes/rings
./usr/share/plymouth/themes/rings/animation-00.png
./usr/share/plymouth/themes/rings/animation-01.png
./usr/share/plymouth/themes/rings/animation-02.png
./usr/share/plymouth/themes/rings/animation-03.png
./usr/share/plymouth/themes/rings/animation-04.png
./usr/share/plymouth/themes/rings/animation-05.png
./usr/share/plymouth/themes/rings/animation-06.png
./usr/share/plymouth/themes/rings/animation-07.png
./usr/share/plymouth/themes/rings/animation-08.png
./usr/share/plymouth/themes/rings/animation-09.png
./usr/share/plymouth/themes/rings/animation-10.png
./usr/share/plymouth/themes/rings/animation-11.png
./usr/share/plymouth/themes/rings/animation-12.png
./usr/share/plymouth/themes/rings/animation-13.png
./usr/share/plymouth/themes/rings/header-image.png
./usr/share/plymouth/themes/rings/progress-00.png
./usr/share/plymouth/themes/rings/progress-01.png
./usr/share/plymouth/themes/rings/progress-02.png
./usr/share/plymouth/themes/rings/progress-03.png
./usr/share/plymouth/themes/rings/progress-04.png
./usr/share/plymouth/themes/rings/progress-05.png
./usr/share/plymouth/themes/rings/progress-06.png
./usr/share/plymouth/themes/rings/progress-07.png
./usr/share/plymouth/themes/rings/progress-08.png
./usr/share/plymouth/themes/rings/progress-09.png
./usr/share/plymouth/themes/rings/progress-10.png
./usr/share/plymouth/themes/rings/progress-11.png
./usr/share/plymouth/themes/rings/progress-12.png
./usr/share/plymouth/themes/rings/progress-13.png
./usr/share/plymouth/themes/rings/progress-14.png
./usr/share/plymouth/themes/rings/progress-15.png
./usr/share/plymouth/themes/rings/progress-16.png
./usr/share/plymouth/themes/rings/progress-17.png
./usr/share/plymouth/themes/rings/progress-18.png
./usr/share/plymouth/themes/rings/progress-19.png
./usr/share/plymouth/themes/rings/progress-20.png
./usr/share/plymouth/themes/rings/progress-21.png
./usr/share/plymouth/themes/rings/progress-22.png
./usr/share/plymouth/themes/rings/progress-23.png
./usr/share/plymouth/themes/rings/progress-24.png
./usr/share/plymouth/themes/rings/progress-25.png
./usr/share/plymouth/themes/rings/progress-26.png
./usr/share/plymouth/themes/rings/progress-27.png
./usr/share/plymouth/themes/rings/progress-28.png
./usr/share/plymouth/themes/rings/progress-29.png
./usr/share/plymouth/themes/rings/progress-30.png
./usr/share/plymouth/themes/rings/progress-31.png
./usr/share/plymouth/themes/rings/progress-32.png
./usr/share/plymouth/themes/rings/progress-33.png
./usr/share/plymouth/themes/rings/progress-34.png
./usr/share/plymouth/themes/rings/progress-35.png
./usr/share/plymouth/themes/rings/throbber-00.png
./usr/share/plymouth/themes/rings/throbber-01.png
./usr/share/plymouth/themes/rings/throbber-02.png
./usr/share/plymouth/themes/rings/throbber-03.png
./usr/share/plymouth/themes/rings/throbber-04.png
./usr/share/plymouth/themes/rings/throbber-05.png
./usr/share/plymouth/themes/rings/throbber-06.png
./usr/share/plymouth/themes/rings/throbber-07.png
./usr/share/plymouth/themes/rings/throbber-08.png
./usr/share/plymouth/themes/rings/throbber-09.png
./usr/share/plymouth/themes/rings/throbber-10.png
./usr/share/plymouth/themes/rings/throbber-11.png
./usr/share/plymouth/themes/rings/throbber-12.png
./usr/share/plymouth/themes/rings/throbber-13.png
./usr/share/plymouth/themes/rings/throbber-14.png
./usr/share/plymouth/themes/rings/throbber-15.png
./usr/share/plymouth/themes/rings/throbber-16.png
./usr/share/plymouth/themes/rings/throbber-17.png
./usr/share/plymouth/themes/rings/throbber-18.png
./usr/share/plymouth/themes/rings/throbber-19.png
./usr/share/plymouth/themes/rings/throbber-20.png
./usr/share/plymouth/themes/rings/throbber-21.png
./usr/share/plymouth/themes/rings/throbber-22.png
./usr/share/plymouth/themes/rings/throbber-23.png
./usr/share/wallpapers/CentOS6
./usr/share/wallpapers/CentOS6/contents
./usr/share/wallpapers/CentOS6/contents/images
./usr/share/wallpapers/CentOS6/contents/images/1920×1200.png
./usr/share/wallpapers/CentOS6/contents/images/1920×1440.png
./usr/share/wallpapers/CentOS6/contents/images/simple_waves.jpg
./usr/share/wallpapers/CentOS6/metadata.desktop
22701 blocks

How can i change image “png & jpg” and rebuild again to “redhat-logos-60.0.14-10.el6.centos.noarch.rpm”  ???

Thanks

Linux Memory Calculation


free -m => FALSE

Formula :

(used-buffers-cached)/total * 100%

#!/bin/bash
 free -m | grep "Mem:" | cut -f2 -d:|sed 's/\([0-9]\) /\1\,/g' | sed -e 's/[\t ]//g;/^$/d' | while read array; do \
 used=`echo $array | cut -d',' -f2`
 buffers=`echo $array | cut -d',' -f5`
 cached=`echo $array | cut -d',' -f6`
 total=`echo $array | cut -d',' -f1`
 HASIL=`echo - | awk '{ print '$((used-buffers-cached))'/'$total'}'`
 echo `printf "Usage Memory = %.2f" $HASIL`"%";
 done

by moses

Shell Script Division,Subtraction,Addition


Floating Point Division
X=2
Y=4
echo - | awk '{ print '$X'/'$Y'}'
Subtraction on Shell Script
X=2
Y=4
echo $((X-Y))
Float Shell Script
X=100
printf "%.2f\n" $X
Addition on Shell Script
X=1 Y=2 Z=3
echo $((X+Y+Z))
Remove Space On Shell Script
X="1 2 3 4 5"
echo $X | sed -e 's/[\t ]//g;/^$/d'

Install Dahdi and Wanpipe on new Kernel


Install Dahdi and Wanpipe on new Kernel

[root@localhost asterisk]# tar -zxvf dahdi-linux-2.4.1.2.tar.gz -C /usr/src/
[root@localhost asterisk]# cd /usr/src/dahdi-linux-2.4.1.2
[root@localhost asterisk]# make KSRC=/usr/src/kernels/2.6.32-279.1.1.el6.x86_64
[root@localhost asterisk]# make install KSRC=/usr/src/kernels/2.6.32-279.1.1.el6.x86_64

[root@localhost asterisk]# tar -zxvf /home/ecentrix/installer/wanpipe-3.5.20.tgz -C /usr/src
[root@localhost asterisk]# cd /usr/src/wanpipe-3.5.20
./Setup dahdi –with-linux=/usr/src/kernels/2.6.32-279.1.1.el6.x86_64
[root@localhost asterisk]# wanrouter hwprobe
[root@localhost asterisk]# wancfg_dahdi
[root@localhost asterisk]# wanrouter list
[root@localhost asterisk]# wanrouter status

By

Moses

 

shisdew

Listens until think alike

moses.spaceku@yahoo.com / voip ipbx

Hosted PBX, IP-PBX SOHO/ CALL CENTER, VOICE GATEWAY, VOICE CARD, COST EFECTIVE SOLUTIONS (LCR), GSM/CDMA GATEWAY

%d bloggers like this: