Data Login User
cat secure|grep "May 9"|grep "LOGIN ON" > /tmp/login_20160509.log
Jumlah yang Login
wc -l /tmp/login_20160509.log|cut -d' ' -f1
Seleksi Baris
sed -n '190 p' /tmp/login_20160509.log
Grep Data
DATETIME cat /tmp/login_20160509.log|cut -d' ' -f4
USER cat /tmp/login_20160509.log|cut -d' ' -f11
IP cat /tmp/login_20160509.log|cut -d' ' -f13
PTS cat /tmp/login_20160509.log|cut -d' ' -f9
Dari sini kita dapat melakukan import data ke Database seperti MySQL atau Oracle.
Selamat Ngoprek.
Tuesday, May 10, 2016
Thursday, June 11, 2015
SETUP LDAP on Ubuntu 12.04.03 LTS x86_64
Operating System: Ubuntu 12.04.03 LTS Server
Hostname : ldap.ubuntu.co.id
IP Address : 192.168.169.2
### Install openLDAP
root@ubuntu:~# apt-get install slapd ldap-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libldap-2.4-2 libodbc1
Suggested packages:
libmyodbc odbc-postgresql tdsodbc unixodbc-bin
The following NEW packages will be installed:
ldap-utils libodbc1 slapd
The following packages will be upgraded:
libldap-2.4-2
1 upgraded, 3 newly installed, 0 to remove and 434 not upgraded.
Need to get 2,423 kB of archives.
After this operation, 5,515 kB of additional disk space will be used.
Do you want to continue [Y/n]?
pada saat instalasi akan password untuk Administrator LDAP
Administrator password : cikarang
### Configure file /etc/ldap/ldap.conf
root@ubuntu:~# nano /etc/ldap/ldap.conf
...
BASE dc=ubuntu,dc=co,dc=id
URI ldap://192.168.169.2
...
### Run the Configuration Assistant
root@ubuntu:~# dpkg-reconfigure slapd
Omit OpenLDAP server configuration? NO
DNS domain name? ubuntu.co.id
Organization name? ubuntu
Administrator password? cikarang
Confirm password? cikarang
Database backend to use? HDB
Do you want the database to be removed when slapd is purged? YES
Move old database? YES
Allow LDAPv2 protocal? NO
LDAP server is up and running now.
### TESTING
root@ubuntu:~# ldapsearch -x
# extended LDIF
#
# LDAPv3
# base (default) with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#
# transvision.co.id
dn: dc=ubuntu,dc=co,dc=id
objectClass: top
objectClass: dcObject
objectClass: organization
o: ubuntu
dc: ubuntu
# admin, ubuntu.co.id
dn: cn=admin,dc=ubuntu,dc=co,dc=id
objectClass: simpleSecurityObject
objectClass: organizationalRole
cn: admin
description: LDAP administrator
# search result
search: 2
result: 0 Success
# numResponses: 3
# numEntries: 2
### Troubleshoot
1. Cek Service
root@ubuntu:~# service slapd status
* slapd is running
2 Cek port
root@ubuntu:~# nmap 192.168.169.2
Starting Nmap 5.21 ( http://nmap.org ) at 2015-06-10 23:23 UTC
Nmap scan report for 192.168.169.2
Host is up (0.0000040s latency).
Not shown: 999 closed ports
PORT STATE SERVICE
389/tcp open ldap
Nmap done: 1 IP address (1 host up) scanned in 0.55 seconds
3. Cek proses
root@ubuntu:~# ps aux|grep ldap
openldap 5883 0.0 0.1 275536 5092 ? Ssl 23:20 0:00 /usr/sbin/slapd -h ldap:/// ldapi:/// -g openldap -u openldap -F /etc/ldap/slapd.d
Hostname : ldap.ubuntu.co.id
IP Address : 192.168.169.2
### Install openLDAP
root@ubuntu:~# apt-get install slapd ldap-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libldap-2.4-2 libodbc1
Suggested packages:
libmyodbc odbc-postgresql tdsodbc unixodbc-bin
The following NEW packages will be installed:
ldap-utils libodbc1 slapd
The following packages will be upgraded:
libldap-2.4-2
1 upgraded, 3 newly installed, 0 to remove and 434 not upgraded.
Need to get 2,423 kB of archives.
After this operation, 5,515 kB of additional disk space will be used.
Do you want to continue [Y/n]?
pada saat instalasi akan password untuk Administrator LDAP
Administrator password : cikarang
### Configure file /etc/ldap/ldap.conf
root@ubuntu:~# nano /etc/ldap/ldap.conf
...
BASE dc=ubuntu,dc=co,dc=id
URI ldap://192.168.169.2
...
### Run the Configuration Assistant
root@ubuntu:~# dpkg-reconfigure slapd
Omit OpenLDAP server configuration? NO
DNS domain name? ubuntu.co.id
Organization name? ubuntu
Administrator password? cikarang
Confirm password? cikarang
Database backend to use? HDB
Do you want the database to be removed when slapd is purged? YES
Move old database? YES
Allow LDAPv2 protocal? NO
LDAP server is up and running now.
### TESTING
root@ubuntu:~# ldapsearch -x
# extended LDIF
#
# LDAPv3
# base
# filter: (objectclass=*)
# requesting: ALL
#
# transvision.co.id
dn: dc=ubuntu,dc=co,dc=id
objectClass: top
objectClass: dcObject
objectClass: organization
o: ubuntu
dc: ubuntu
# admin, ubuntu.co.id
dn: cn=admin,dc=ubuntu,dc=co,dc=id
objectClass: simpleSecurityObject
objectClass: organizationalRole
cn: admin
description: LDAP administrator
# search result
search: 2
result: 0 Success
# numResponses: 3
# numEntries: 2
### Troubleshoot
1. Cek Service
root@ubuntu:~# service slapd status
* slapd is running
2 Cek port
root@ubuntu:~# nmap 192.168.169.2
Starting Nmap 5.21 ( http://nmap.org ) at 2015-06-10 23:23 UTC
Nmap scan report for 192.168.169.2
Host is up (0.0000040s latency).
Not shown: 999 closed ports
PORT STATE SERVICE
389/tcp open ldap
Nmap done: 1 IP address (1 host up) scanned in 0.55 seconds
3. Cek proses
root@ubuntu:~# ps aux|grep ldap
openldap 5883 0.0 0.1 275536 5092 ? Ssl 23:20 0:00 /usr/sbin/slapd -h ldap:/// ldapi:/// -g openldap -u openldap -F /etc/ldap/slapd.d
Tuesday, May 19, 2015
Install VLC on CentOS 7
Sepertinya gak nyambung dengan Nama Blog Saya, tapi gak apa-apalah selama itu komunitas linux akan saya tulis apapun klo itu penting.
Kali ini saya akan berbagi bagaimana cara install VLC di CentOS 7
Install Repo VLC di:
Install VLC:
^0^ Semoga bermanfaat
Kali ini saya akan berbagi bagaimana cara install VLC di CentOS 7
Install Repo VLC di:
[root@localhost ~]# rpm -ivh ~rijalhanif/Downloads/REPO_CENTOS7/nux-dextop-release-0-1.el7.nux.noarch.rpm
Install VLC:
[root@localhost ~]# yum install vlc
^0^ Semoga bermanfaat
Friday, May 1, 2015
Keep Cache Hasil Instal Aplikasi Ubuntu 15.04
Ternyata saat ini, Ubuntu (saya pakai 15.04) mengubah beberapa konfigurasi salah satunya adalah untuk menjaga file hasil instalasi software baik menggunakan apt-get atau synaptic package manager dengan menyediakan file sendiri.
Silahkan ikuti petunjuk dibawah:
Before:
APT::Archives::MaxAge "30";
APT::Archives::MinAge "2";
APT::Archives::MaxSize "500";
Change to:
APT::Archives::MaxAge "0";
APT::Archives::MinAge "0";
APT::Archives::MaxSize "0";
Dicoba install aplikasi apapun, kemudian cek di directory:
Dan.. source file .deb nya masih ada dan keep selamanya. :)
Silahkan ikuti petunjuk dibawah:
rijalhanif@rijalhanif-Vostro-2420:~$ sudo su
root@rijalhanif-Vostro-2420:~# nano /etc/apt/apt.conf.d/20archive
Before:
APT::Archives::MaxAge "30";
APT::Archives::MinAge "2";
APT::Archives::MaxSize "500";
Change to:
APT::Archives::MaxAge "0";
APT::Archives::MinAge "0";
APT::Archives::MaxSize "0";
Dicoba install aplikasi apapun, kemudian cek di directory:
root@rijalhanif-Vostro-2420:~# apt-get install dosbox
root@rijalhanif-Vostro-2420:~# ls -l /var/cache/apt/archives/*.deb
-rw-r--r-- 1 root root 845028 Okt 13 2014 /var/cache/apt/archives/dosbox_0.74-4_amd64.deb
-rw-r--r-- 1 root root 110184 Okt 25 2014 /var/cache/apt/archives/libmikmod3_3.3.7-1_amd64.deb
-rw-r--r-- 1 root root 163052 Sep 9 2014 /var/cache/apt/archives/libopenal1_1%3a1.15.1-5_amd64.deb
-rw-r--r-- 1 root root 8840 Sep 9 2014 /var/cache/apt/archives/libopenal-data_1%3a1.15.1-5_all.deb
-rw-r--r-- 1 root root 162384 Jul 2 2014 /var/cache/apt/archives/libsdl1.2debian_1.2.15-10ubuntu1_amd64.deb
-rw-r--r-- 1 root root 11656 Des 23 2013 /var/cache/apt/archives/libsdl-net1.2_1.2.8-4_amd64.deb
-rw-r--r-- 1 root root 74718 Apr 28 2014 /var/cache/apt/archives/libsdl-sound1.2_1.0.3-7build1_amd64.deb
Dan.. source file .deb nya masih ada dan keep selamanya. :)
Friday, August 22, 2014
Disable SELinux
Disable SELinux
Edit /etc/selinux/config# This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=disabled # SELINUXTYPE= can take one of these two values: # targeted - Only targeted network daemons are protected. # strict - Full SELinux protection. SELINUXTYPE=targeted
Monday, March 17, 2014
Run Others Linux Distro beside Ubuntu
Klo gak begitu ngerti judulnya,, inti nya adalah pasangin beberapa distro linux berbarengan di Ubuntu (native) yang sudah diintall.
Beberapa distro ini bisa file iso aja intall-an, atau partisi (portable linux).
Cukup mainkan di file 40_custom,
Isi file modifikasinya adalah:
#####################################################
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "Ubuntu 10.04.3 LTS x86" {
# Status Fixed
insmod iso9660
set isofile="/ubuntu-10.04.3-desktop-i386.iso"
loopback loop (hd0,7)$isofile
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile noprompt noeject
initrd (loop)/casper/initrd.lz
}
menuentry "Ubuntu 10.04.3 LTS x86_64 (noimage)" {
# Status Fixed
insmod iso9660
set isofile="/ubuntu-10.04.iso"
loopback loop (hd0,7)$isofile
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile noprompt noeject
initrd (loop)/casper/initrd.lz
}
menuentry "Ubuntu 12.04.3 LTS x86" {
# Status Fixed
insmod iso9660
set isofile="/ubuntu-12.04.3-desktop-i386.iso"
loopback loop (hd0,7)$isofile
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile noprompt noeject
initrd (loop)/casper/initrd.lz
}
menuentry "Ubuntu 12.04.3 LTS x86_64" {
# Status Fixed
insmod iso9660
set isofile="/ubuntu-12.04.3-desktop-amd64.iso"
loopback loop (hd0,7)$isofile
linux (loop)/casper/vmlinuz.efi boot=casper iso-scan/filename=$isofile noprompt noeject
initrd (loop)/casper/initrd.lz
}
menuentry "MultiSystem" {
# Status Fixed
insmod iso9660
set isofile="/multisystem_en_fr_rc6.iso"
loopback loop (hd0,7)$isofile
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile noprompt noeject
initrd (loop)/casper/initrd.lz
}
menuentry "YLMF 3.0" {
# Status Fixed
insmod iso9660
set isofile="/ylmf_os_3.0.iso"
loopback loop (hd0,7)$isofile
linux (loop)/casper/vmlinuz boot=casper quiet splash iso-scan/filename=$isofile noprompt noeject
initrd (loop)/casper/initrd.img
}
menuentry "BlankOn 9.0 Suroboyo x86_64" {
# Status Fixed
insmod iso9660
set isofile="/BlankOn-9.0-desktop-amd64.iso"
loopback loop (hd0,7)$isofile
linux (loop)/boot/vmlinuz boot=live config quiet console=tty12
initrd (loop)/boot/initrd.img
boot
}
menuentry "Slax 7.0.8 x86_64 (/dev/sda7 - /slax7 - Slackware 14.x)" {
# Status Fixed
set root=(hd0,7)
linux /slax7/boot/vmlinuz from=/slax7 ramdisk_size=16384 root=/dev/ram0 rw autoexec=xconf;startx perch
initrd /slax7/boot/initrfs.img
}
menuentry "Slax 6.1.2 (/dev/sda9 - /slax - Slackware 12.2.0)" {
# Status Fixed
# Only on the vfat partition
set root=(hd0,9)
linux /boot/vmlinuz root=/dev/ram0 ramdisk_size=16384 rw autoexec=xconf;startx
initrd /boot/initrd.gz
}
menuentry "Slax 7.0.8 x86_64 (iso - Slackware 14.x)" {
## Status Fixed
insmod iso9660
set isofile="/slax-English-US-7.0.8-x86_64.iso"
loopback loop (hd0,7)$isofile
linux (loop)/slax/boot/vmlinuz from=$isofile ramdisk_size=16384 root=/dev/ram0 rw
initrd (loop)/slax/boot/initrfs.img
}
menuentry "Slax 6.1.2 (iso - Slackware 12.2.0)" {
## Status Fixed
## Only on the vfat partition
set root=(hd0,9)
set isofile="/slax-6.1.2.iso"
loopback loop $isofile
linux (loop)/boot/vmlinuz from=$isofile ramdisk_size=16384 root=/dev/ram0 rw autoexec=xconf;startx
initrd (loop)/boot/initrd.gz
}
menuentry "Tinycore" {
## Status Fixed
insmod iso9660
set isofile="/TinyCore-current.iso"
loopback loop (hd0,7)$isofile
linux (loop)/boot/vmlinuz
initrd (loop)/boot/core.gz
}
menuentry "grml64-full - release 2013.09" {
insmod iso9660
set isofile="/grml64-full_2013.09.iso"
loopback loop (hd0,7)$isofile
linux (loop)/boot/grml64full/vmlinuz apm=power-off boot=live live-media-path=/live/grml64-full/ bootid=grml64full201309 findiso=$isofile nomce
initrd (loop)/boot/grml64full/initrd.img
}
menuentry "grml64-small - release 2013.09" {
## Status Fixed
insmod iso9660
set isofile="/grml64-small_2013.09.iso"
loopback loop (hd0,7)$isofile
echo 'Loading kernel...'
linux (loop)/boot/grml64small/vmlinuz apm=power-off boot=live live-media-path=/live/grml64-small/ bootid=grml64small201309 findiso=$isofile nomce
echo 'Loading initrd...'
initrd (loop)/boot/grml64small/initrd.img
}
menuentry 'Parted Magic ISO ' {
## Status Fixed
insmod iso9660
set isofile="/pmagic-5.6.iso"
loopback loop (hd0,7)$isofile
linux (loop)/pmagic/bzImage iso_filename=$isofile boot=live
initrd (loop)/pmagic/initramfs
}
menuentry 'Gparted ISO' {
## Status Fixed
insmod iso9660
set isofile="/gparted-live-0.6.2-2.iso"
set root=(hd0,7)
loopback loop (hd0,7)$isofile
linux (loop)/live/vmlinuz boot=live config union=aufs noswap noprompt ip=frommedia toram=filesystem.squashfs findiso=$isofile
initrd (loop)/live/initrd.img
}
menuentry "Tinycore" {
insmod iso9660
set isofile="/TinyCore-current.iso"
loopback loop (hd0,7)$isofile
linux (loop)/boot/vmlinuz
initrd (loop)/boot/core.gz
}
menuentry 'GeeXboX 3.1 (3.1) Fix' {
## Status Fixed
insmod part_msdos
insmod ext2
set root='hd0,msdos10'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos10 --hint-efi=hd0,msdos10 --hint-baremetal=ahci0,msdos10 79087e3b-4cb6-4459-9362-63b39fac14fd
else
search --no-floppy --fs-uuid --set=root 79087e3b-4cb6-4459-9362-63b39fac14fd
fi
linux /boot/vmlinuz root=/dev/sda10 rootfs=flat vga=795 loglevel=3 rw
initrd /boot/initrd
}
#####################################################
Beberapa distro ini bisa file iso aja intall-an, atau partisi (portable linux).
Cukup mainkan di file 40_custom,
Isi file modifikasinya adalah:
#####################################################
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "Ubuntu 10.04.3 LTS x86" {
# Status Fixed
insmod iso9660
set isofile="/ubuntu-10.04.3-desktop-i386.iso"
loopback loop (hd0,7)$isofile
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile noprompt noeject
initrd (loop)/casper/initrd.lz
}
menuentry "Ubuntu 10.04.3 LTS x86_64 (noimage)" {
# Status Fixed
insmod iso9660
set isofile="/ubuntu-10.04.iso"
loopback loop (hd0,7)$isofile
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile noprompt noeject
initrd (loop)/casper/initrd.lz
}
menuentry "Ubuntu 12.04.3 LTS x86" {
# Status Fixed
insmod iso9660
set isofile="/ubuntu-12.04.3-desktop-i386.iso"
loopback loop (hd0,7)$isofile
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile noprompt noeject
initrd (loop)/casper/initrd.lz
}
menuentry "Ubuntu 12.04.3 LTS x86_64" {
# Status Fixed
insmod iso9660
set isofile="/ubuntu-12.04.3-desktop-amd64.iso"
loopback loop (hd0,7)$isofile
linux (loop)/casper/vmlinuz.efi boot=casper iso-scan/filename=$isofile noprompt noeject
initrd (loop)/casper/initrd.lz
}
menuentry "MultiSystem" {
# Status Fixed
insmod iso9660
set isofile="/multisystem_en_fr_rc6.iso"
loopback loop (hd0,7)$isofile
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile noprompt noeject
initrd (loop)/casper/initrd.lz
}
menuentry "YLMF 3.0" {
# Status Fixed
insmod iso9660
set isofile="/ylmf_os_3.0.iso"
loopback loop (hd0,7)$isofile
linux (loop)/casper/vmlinuz boot=casper quiet splash iso-scan/filename=$isofile noprompt noeject
initrd (loop)/casper/initrd.img
}
menuentry "BlankOn 9.0 Suroboyo x86_64" {
# Status Fixed
insmod iso9660
set isofile="/BlankOn-9.0-desktop-amd64.iso"
loopback loop (hd0,7)$isofile
linux (loop)/boot/vmlinuz boot=live config quiet console=tty12
initrd (loop)/boot/initrd.img
boot
}
menuentry "Slax 7.0.8 x86_64 (/dev/sda7 - /slax7 - Slackware 14.x)" {
# Status Fixed
set root=(hd0,7)
linux /slax7/boot/vmlinuz from=/slax7 ramdisk_size=16384 root=/dev/ram0 rw autoexec=xconf;startx perch
initrd /slax7/boot/initrfs.img
}
menuentry "Slax 6.1.2 (/dev/sda9 - /slax - Slackware 12.2.0)" {
# Status Fixed
# Only on the vfat partition
set root=(hd0,9)
linux /boot/vmlinuz root=/dev/ram0 ramdisk_size=16384 rw autoexec=xconf;startx
initrd /boot/initrd.gz
}
menuentry "Slax 7.0.8 x86_64 (iso - Slackware 14.x)" {
## Status Fixed
insmod iso9660
set isofile="/slax-English-US-7.0.8-x86_64.iso"
loopback loop (hd0,7)$isofile
linux (loop)/slax/boot/vmlinuz from=$isofile ramdisk_size=16384 root=/dev/ram0 rw
initrd (loop)/slax/boot/initrfs.img
}
menuentry "Slax 6.1.2 (iso - Slackware 12.2.0)" {
## Status Fixed
## Only on the vfat partition
set root=(hd0,9)
set isofile="/slax-6.1.2.iso"
loopback loop $isofile
linux (loop)/boot/vmlinuz from=$isofile ramdisk_size=16384 root=/dev/ram0 rw autoexec=xconf;startx
initrd (loop)/boot/initrd.gz
}
menuentry "Tinycore" {
## Status Fixed
insmod iso9660
set isofile="/TinyCore-current.iso"
loopback loop (hd0,7)$isofile
linux (loop)/boot/vmlinuz
initrd (loop)/boot/core.gz
}
menuentry "grml64-full - release 2013.09" {
insmod iso9660
set isofile="/grml64-full_2013.09.iso"
loopback loop (hd0,7)$isofile
linux (loop)/boot/grml64full/vmlinuz apm=power-off boot=live live-media-path=/live/grml64-full/ bootid=grml64full201309 findiso=$isofile nomce
initrd (loop)/boot/grml64full/initrd.img
}
menuentry "grml64-small - release 2013.09" {
## Status Fixed
insmod iso9660
set isofile="/grml64-small_2013.09.iso"
loopback loop (hd0,7)$isofile
echo 'Loading kernel...'
linux (loop)/boot/grml64small/vmlinuz apm=power-off boot=live live-media-path=/live/grml64-small/ bootid=grml64small201309 findiso=$isofile nomce
echo 'Loading initrd...'
initrd (loop)/boot/grml64small/initrd.img
}
menuentry 'Parted Magic ISO ' {
## Status Fixed
insmod iso9660
set isofile="/pmagic-5.6.iso"
loopback loop (hd0,7)$isofile
linux (loop)/pmagic/bzImage iso_filename=$isofile boot=live
initrd (loop)/pmagic/initramfs
}
menuentry 'Gparted ISO' {
## Status Fixed
insmod iso9660
set isofile="/gparted-live-0.6.2-2.iso"
set root=(hd0,7)
loopback loop (hd0,7)$isofile
linux (loop)/live/vmlinuz boot=live config union=aufs noswap noprompt ip=frommedia toram=filesystem.squashfs findiso=$isofile
initrd (loop)/live/initrd.img
}
menuentry "Tinycore" {
insmod iso9660
set isofile="/TinyCore-current.iso"
loopback loop (hd0,7)$isofile
linux (loop)/boot/vmlinuz
initrd (loop)/boot/core.gz
}
menuentry 'GeeXboX 3.1 (3.1) Fix' {
## Status Fixed
insmod part_msdos
insmod ext2
set root='hd0,msdos10'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos10 --hint-efi=hd0,msdos10 --hint-baremetal=ahci0,msdos10 79087e3b-4cb6-4459-9362-63b39fac14fd
else
search --no-floppy --fs-uuid --set=root 79087e3b-4cb6-4459-9362-63b39fac14fd
fi
linux /boot/vmlinuz root=/dev/sda10 rootfs=flat vga=795 loglevel=3 rw
initrd /boot/initrd
}
#####################################################
Thursday, March 13, 2014
Repo CentOS6/Oracle 6 Buaya terbaik, terupdate, dan cepat
Gak yakin??
Cek keseluruhan repo disini: http://mirror-status.centos.org/#id
# vim /etc/yum.repos.d/CentOS-Base.repo
#+++++++++++++++++++++++++++++++++++++++++++++++
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-6 - Base
baseurl=http://buaya.klas.or.id/centos/6/os/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://buaya.klas.or.id/centos/6/os/x86_64/RPM-GPG-KEY-CentOS-6
#released updates
[updates]
name=CentOS-6 - Updates
baseurl=http://buaya.klas.or.id/centos/6/updates/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://buaya.klas.or.id/centos/6/os/x86_64/RPM-GPG-KEY-CentOS-6
#additional packages that may be useful
[extras]
name=CentOS-6 - Extras
baseurl=http://buaya.klas.or.id/centos/6/extras/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://buaya.klas.or.id/centos/6/os/x86_64/RPM-GPG-KEY-CentOS-6
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-6 - Plus
baseurl=http://buaya.klas.or.id/centos/6/centosplus/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://buaya.klas.or.id/centos/6/os/x86_64/RPM-GPG-KEY-CentOS-6
#contrib - packages by Centos Users
[contrib]
name=CentOS-6 - Contrib
baseurl=http://buaya.klas.or.id/centos/6/contrib/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://buaya.klas.or.id/centos/6/os/x86_64/RPM-GPG-KEY-CentOS-6
#+++++++++++++++++++++++++++++++++++++++++++++++
Semoga bermanfaat,, :)
Cek keseluruhan repo disini: http://mirror-status.centos.org/#id
# vim /etc/yum.repos.d/CentOS-Base.repo
#+++++++++++++++++++++++++++++++++++++++++++++++
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-6 - Base
baseurl=http://buaya.klas.or.id/centos/6/os/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://buaya.klas.or.id/centos/6/os/x86_64/RPM-GPG-KEY-CentOS-6
#released updates
[updates]
name=CentOS-6 - Updates
baseurl=http://buaya.klas.or.id/centos/6/updates/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://buaya.klas.or.id/centos/6/os/x86_64/RPM-GPG-KEY-CentOS-6
#additional packages that may be useful
[extras]
name=CentOS-6 - Extras
baseurl=http://buaya.klas.or.id/centos/6/extras/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://buaya.klas.or.id/centos/6/os/x86_64/RPM-GPG-KEY-CentOS-6
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-6 - Plus
baseurl=http://buaya.klas.or.id/centos/6/centosplus/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://buaya.klas.or.id/centos/6/os/x86_64/RPM-GPG-KEY-CentOS-6
#contrib - packages by Centos Users
[contrib]
name=CentOS-6 - Contrib
baseurl=http://buaya.klas.or.id/centos/6/contrib/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://buaya.klas.or.id/centos/6/os/x86_64/RPM-GPG-KEY-CentOS-6
#+++++++++++++++++++++++++++++++++++++++++++++++
Semoga bermanfaat,, :)
Tuesday, December 24, 2013
Repo CentOS 6.5 X86_64 (latest updated) dari Kambing
# CentOS-Base.repo
# http://kambing.ui.ac.id/centos/6.5/
# /etc/yum.repos.d/CentOS-Base.repo
[SCL]
name=CentOS
baseurl=http://kambing.ui.ac.id/centos/6/SCL/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://kambing.ui.ac.id/centos/RPM-GPG-KEY-CentOS-6
[CentOSPlus]
name=CentOS
baseurl=http://kambing.ui.ac.id/centos/6/centosplus/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://kambing.ui.ac.id/centos/RPM-GPG-KEY-CentOS-6
[Contrib]
name=CentOS
baseurl=http://kambing.ui.ac.id/centos/6/contrib/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://kambing.ui.ac.id/centos/RPM-GPG-KEY-CentOS-6
[Extras]
name=CentOS
baseurl=http://kambing.ui.ac.id/centos/6/extras/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://kambing.ui.ac.id/centos/RPM-GPG-KEY-CentOS-6
[Fasttrack]
name=CentOS
baseurl=http://kambing.ui.ac.id/centos/6/fasttrack/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://kambing.ui.ac.id/centos/RPM-GPG-KEY-CentOS-6
[OS]
name=CentOS
baseurl=http://kambing.ui.ac.id/centos/6/os/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://kambing.ui.ac.id/centos/RPM-GPG-KEY-CentOS-6
[Updates]
name=CentOS
baseurl=http://kambing.ui.ac.id/centos/6/updates/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://kambing.ui.ac.id/centos/RPM-GPG-KEY-CentOS-6
# http://kambing.ui.ac.id/centos/6.5/
# /etc/yum.repos.d/CentOS-Base.repo
[SCL]
name=CentOS
baseurl=http://kambing.ui.ac.id/centos/6/SCL/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://kambing.ui.ac.id/centos/RPM-GPG-KEY-CentOS-6
[CentOSPlus]
name=CentOS
baseurl=http://kambing.ui.ac.id/centos/6/centosplus/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://kambing.ui.ac.id/centos/RPM-GPG-KEY-CentOS-6
[Contrib]
name=CentOS
baseurl=http://kambing.ui.ac.id/centos/6/contrib/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://kambing.ui.ac.id/centos/RPM-GPG-KEY-CentOS-6
[Extras]
name=CentOS
baseurl=http://kambing.ui.ac.id/centos/6/extras/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://kambing.ui.ac.id/centos/RPM-GPG-KEY-CentOS-6
[Fasttrack]
name=CentOS
baseurl=http://kambing.ui.ac.id/centos/6/fasttrack/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://kambing.ui.ac.id/centos/RPM-GPG-KEY-CentOS-6
[OS]
name=CentOS
baseurl=http://kambing.ui.ac.id/centos/6/os/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://kambing.ui.ac.id/centos/RPM-GPG-KEY-CentOS-6
[Updates]
name=CentOS
baseurl=http://kambing.ui.ac.id/centos/6/updates/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://kambing.ui.ac.id/centos/RPM-GPG-KEY-CentOS-6
Monday, December 23, 2013
Install Pacemaker on CentOS 5
Installing on RHEL-5 Compatible Distributions: CentOS, Scientific Linux, etc
1. Get Repo
wget -O /etc/yum.repos.d/pacemaker.repo http://clusterlabs.org/rpm-next/epel-5/clusterlabs.repo
yum install -y pacemaker corosync
2. Manual Add Repo
Files: /etc/yum.repos.d/pacemaker.repo
-------------------------------------------------------------------
[clusterlabs-next]
name=High Availability/Clustering server technologies (epel-5-next)
baseurl=http://www.clusterlabs.org/rpm-next/epel-5
metadata_expire=45m
type=rpm-md
gpgcheck=0
enabled=1
-------------------------------------------------------------------
Semoga bermanfaat, :)
Source: http://clusterlabs.org/wiki/Install#Installing_on_RHEL-5_Compatible_Distributions:_CentOS.2C_Scientific_Linux.2C_etc
Source: http://clusterlabs.org/wiki/Install#Installing_on_RHEL-5_Compatible_Distributions:_CentOS.2C_Scientific_Linux.2C_etc
Repo CentOS 5.9 (latest updated) dari Kambing
# /etc/yum.repos.d/CentOS-Base.repo
---------------------------------------------------------------
# CentOS-Base.repo
# http://kambing.ui.ac.id/centos/5.9/
[AddOns]
name=CentOS
baseurl=http://kambing.ui.ac.id/centos/5/addons/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://kambing.ui.ac.id/centos/RPM-GPG-KEY-CentOS-5
[CentOSPlus]
name=CentOS
baseurl=http://kambing.ui.ac.id/centos/5/centosplus/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://kambing.ui.ac.id/centos/RPM-GPG-KEY-CentOS-5
[Contrib]
name=CentOS
baseurl=http://kambing.ui.ac.id/centos/5/contrib/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://kambing.ui.ac.id/centos/RPM-GPG-KEY-CentOS-5
[Extras]
name=CentOS
baseurl=http://kambing.ui.ac.id/centos/5/extras/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://kambing.ui.ac.id/centos/RPM-GPG-KEY-CentOS-5
[Fasttrack]
name=CentOS
baseurl=http://kambing.ui.ac.id/centos/5/fasttrack/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://kambing.ui.ac.id/centos/RPM-GPG-KEY-CentOS-5
[OS]
name=CentOS
baseurl=http://kambing.ui.ac.id/centos/5/os/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://kambing.ui.ac.id/centos/RPM-GPG-KEY-CentOS-5
[Updates]
name=CentOS
baseurl=http://kambing.ui.ac.id/centos/5/updates/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://kambing.ui.ac.id/centos/RPM-GPG-KEY-CentOS-5
---------------------------------------------------------------
Semoga bermanfaat, :)
---------------------------------------------------------------
# CentOS-Base.repo
# http://kambing.ui.ac.id/centos/5.9/
[AddOns]
name=CentOS
baseurl=http://kambing.ui.ac.id/centos/5/addons/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://kambing.ui.ac.id/centos/RPM-GPG-KEY-CentOS-5
[CentOSPlus]
name=CentOS
baseurl=http://kambing.ui.ac.id/centos/5/centosplus/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://kambing.ui.ac.id/centos/RPM-GPG-KEY-CentOS-5
[Contrib]
name=CentOS
baseurl=http://kambing.ui.ac.id/centos/5/contrib/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://kambing.ui.ac.id/centos/RPM-GPG-KEY-CentOS-5
[Extras]
name=CentOS
baseurl=http://kambing.ui.ac.id/centos/5/extras/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://kambing.ui.ac.id/centos/RPM-GPG-KEY-CentOS-5
[Fasttrack]
name=CentOS
baseurl=http://kambing.ui.ac.id/centos/5/fasttrack/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://kambing.ui.ac.id/centos/RPM-GPG-KEY-CentOS-5
[OS]
name=CentOS
baseurl=http://kambing.ui.ac.id/centos/5/os/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://kambing.ui.ac.id/centos/RPM-GPG-KEY-CentOS-5
[Updates]
name=CentOS
baseurl=http://kambing.ui.ac.id/centos/5/updates/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://kambing.ui.ac.id/centos/RPM-GPG-KEY-CentOS-5
---------------------------------------------------------------
Semoga bermanfaat, :)
Friday, December 20, 2013
Menggunakan YUM dibelakang PROXY di CentOS
Walau trik ini sudah banyak yang tahu, namun saya hanya ingin meramaikan blog mengenai tutoriak/trik mengenai Linux. Bagi yang belum tahu atau sedang asyik-asyiknya bermain Linux berikut trik sederhananya yah.. :)
Konfigurasi 1 (cara pertama)
Memasangkan proxy di dalam file /etc/yum.conf:
proxy=http://192.168.1.2:1
proxy_username=admin@rijalhanif.net
proxy_password=123password
Konfigurasi 2 (cara kedua)
Memasangkan proxy di variable environment
http_proxy="http://jaya@rijal.com:123456@192.168.1.187:8080"
export http_proxy
Konfigurasi 1 (cara pertama)
Memasangkan proxy di dalam file /etc/yum.conf:
proxy=http://192.168.1.2:1
proxy_username=admin@rijalhanif.net
proxy_password=123password
Konfigurasi 2 (cara kedua)
Memasangkan proxy di variable environment
http_proxy="http://jaya@rijal.com:123456@192.168.1.187:8080"
export http_proxy
Wednesday, December 18, 2013
Ganti nama ethX di CentOS/RHEL
Adakalanya nama ethX anda berubah menjadi ethX dengan urutan yang tidak sesuai atau tidak bermula dari awal.
1. Buka file: /etc/udev/rules.d/70-persistent-net.rules
2. Ganti bagian eth, menjadi eth0 atau disesuaikan dengan keinginan Anda.
SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:50:56:b2:23:e0″, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”eth0″
3. Buka file: /etc/sysconfig/network-scripts/ifcfg-eth0
Atau jika tidak ada, rename dari konfigurasi sebelumnya, mungkin dari nama ifcfg-eth3
*Thanks, Semoga bermanfaat.
1. Buka file: /etc/udev/rules.d/70-persistent-net.rules
2. Ganti bagian eth, menjadi eth0 atau disesuaikan dengan keinginan Anda.
SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:50:56:b2:23:e0″, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”eth0″
3. Buka file: /etc/sysconfig/network-scripts/ifcfg-eth0
Atau jika tidak ada, rename dari konfigurasi sebelumnya, mungkin dari nama ifcfg-eth3
*Thanks, Semoga bermanfaat.
Tuesday, December 17, 2013
Auto Login User on Ubuntu (Tested 10.04)
Buat file di: /etc/gdm/custom.conf
Isikan dengan:
[daemon]
TimedLoginEnable=true
AutomaticLoginEnable=true
TimedLogin=monitor
AutomaticLogin=monitor
TimedLoginDelay=10
DefaultSession=gnome
Lalu.. restart Ubuntu anda:
# shutdown -r now
Isikan dengan:
[daemon]
TimedLoginEnable=true
AutomaticLoginEnable=true
TimedLogin=monitor
AutomaticLogin=monitor
TimedLoginDelay=10
DefaultSession=gnome
Lalu.. restart Ubuntu anda:
# shutdown -r now
Friday, September 6, 2013
Install SquidGuard Manager 1.12 on Red Hat X86_64
Persiapan:
1. Download file http://www.sourceforge.net/projects/squidguardmgr/
2. Kopi filenya ke direktori /usr/local/src/
Compile:
[root@tester src]# tar xfvz squidguardmgr-1.12.tar.gz
[root@tester src]# cd squidguardmgr-1.12
[root@tester squidguardmgr-1.12]# perl -v
This is perl, v5.8.8 built for x86_64-linux-thread-multi
Copyright 1987-2006, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
[root@tester squidguardmgr-1.12]# perl Makefile.PL
Path to squidGuard configuration file? [] /usr/local/squidGuard/squidGuard.conf
Do you use c-icap SquidClamav v6.x services? [no] no
Path to squidclamav program? [off] off
What is the user (uid) running Squid or SquidGuard? [squid] squid
Writing Makefile for squidguardmgr
Done...
Now type 'make && make install'
[root@tester squidguardmgr-1.12]# make && make install
cc -o squid_wrapper/squid_wrapper squid_wrapper/squid_wrapper.c
sh install_all.sh
-----------------------------------------------------------------------------
1. Modify Apache httpd.conf to change the running uid and gid to squid user.
2. Modify your httpd.conf to allow access to CGI scripts like follow:
Alias /squidguardmgr /var/www/squidguardmgr/
Options +ExecCGI
AddHandler cgi-script .cgi
DirectoryIndex squidguardmgr.cgi
Order deny,allow
Deny from all
Allow from 192.168.1.24
3. If necessary, set additional grants to Squidguard Manager in httpd.conf.
Restart and ensure that httpd is running.
4. Browse to http://proxy.host.dom/squidguardmgr/ to ensure that things are
working properly.
For more information, see http://squidguardmgr.darold.net/.
-----------------------------------------------------------------------------
1. Download file http://www.sourceforge.net/projects/squidguardmgr/
2. Kopi filenya ke direktori /usr/local/src/
Compile:
[root@tester src]# tar xfvz squidguardmgr-1.12.tar.gz
[root@tester src]# cd squidguardmgr-1.12
[root@tester squidguardmgr-1.12]# perl -v
This is perl, v5.8.8 built for x86_64-linux-thread-multi
Copyright 1987-2006, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
[root@tester squidguardmgr-1.12]# perl Makefile.PL
Path to squidGuard configuration file? [] /usr/local/squidGuard/squidGuard.conf
Do you use c-icap SquidClamav v6.x services? [no] no
Path to squidclamav program? [off] off
What is the user (uid) running Squid or SquidGuard? [squid] squid
Writing Makefile for squidguardmgr
Done...
Now type 'make && make install'
[root@tester squidguardmgr-1.12]# make && make install
cc -o squid_wrapper/squid_wrapper squid_wrapper/squid_wrapper.c
sh install_all.sh
-----------------------------------------------------------------------------
1. Modify Apache httpd.conf to change the running uid and gid to squid user.
2. Modify your httpd.conf to allow access to CGI scripts like follow:
Alias /squidguardmgr /var/www/squidguardmgr/
Options +ExecCGI
AddHandler cgi-script .cgi
DirectoryIndex squidguardmgr.cgi
Order deny,allow
Deny from all
Allow from 192.168.1.24
3. If necessary, set additional grants to Squidguard Manager in httpd.conf.
Restart and ensure that httpd is running.
4. Browse to http://proxy.host.dom/squidguardmgr/ to ensure that things are
working properly.
For more information, see http://squidguardmgr.darold.net/.
-----------------------------------------------------------------------------
Thursday, September 5, 2013
Install SquidGuard 1.4 on Red Hat 6.4 X86_64
Persiapan:
1. Install Berkeley DB http://rijalbuntu.blogspot.com/2013/09/install-berkeley-db-4329-on-redhat-64.html
2. Download file http://www.squidguard.org/Downloads/squidGuard-1.4.tar.gz
3. Kopikan ke /usr/local/src
Compile:
[root@tester src]# tar xvfz squidGuard-1.4.tar.gz
[root@tester src]# cd squidGuard-1.4
[root@tester squidGuard-1.4]# ../configure --with-db=/usr/local/BerkeleyDB.4.3 --with-ldap
[root@tester squidGuard-1.4]# make
[root@tester squidGuard-1.4]# make install
Installing squidGuard
Done.
Installing configuration file
Created directory /usr/local/squidGuard
Assigned /usr/local/squidGuard to user squid
Created directory /usr/local/squidGuard/db
Assigned /usr/local/squidGuard/db to user squid
Created directory /usr/local/squidGuard/log
Assigned /usr/local/squidGuard/log to user squid
Copied sample squidGuard.conf
/usr/local/squidGuard/squidGuard.conf is now readable
The initial configuration is complete.
Congratulation. SquidGuard is sucessfully installed.
Pengecekan:
[root@tester local]# cd /usr/local/squidGuard
[root@tester squidGuard]# ls -l /usr/local/squidGuard
total 12
drwxr-xr-x 2 squid root 4096 Sep 5 11:19 db
drwxr-xr-x 2 squid root 4096 Sep 5 11:19 log
-rw-r--r-- 1 root root 1240 Sep 5 11:19 squidGuard.conf
Convert textfile to db:
[root@tester squidGuard]# /usr/local/bin/squidGuard -C all
[root@tester squidGuard]# tail -f log/squidGuard.log
2013-09-05 11:31:58 [17227] New setting: dbhome: /usr/local/squidGuard/db
2013-09-05 11:31:58 [17227] New setting: logdir: /usr/local/squidGuard/log
2013-09-05 11:31:58 [17227] Added User: root
2013-09-05 11:31:58 [17227] Added User: foo
2013-09-05 11:31:58 [17227] Added User: bar
2013-09-05 11:31:58 [17227] destblock good missing active content, set inactive
2013-09-05 11:31:58 [17227] destblock local missing active content, set inactive
2013-09-05 11:31:58 [17227] init domainlist /usr/local/squidGuard/db/blacklists/adult/domains
2013-09-05 11:32:20 [17227] create new dbfile /usr/local/squidGuard/db/blacklists/adult/domains.db
2013-09-05 11:32:22 [17227] init urllist /usr/local/squidGuard/db/blacklists/adult/urls
2013-09-05 11:32:22 [17227] create new dbfile /usr/local/squidGuard/db/blacklists/adult/urls.db
2013-09-05 11:32:22 [17227] init expressionlist /usr/local/squidGuard/db/blacklists/adult/expressions
2013-09-05 11:32:22 [17227] squidGuard 1.4 started (1378355518.638)
2013-09-05 11:32:22 [17227] db update done
2013-09-05 11:32:22 [17227] squidGuard stopped (1378355542.671)
Cek hasilnya:
[root@tester squidGuard]# ls -l db/blacklists/adult/*.db
-rw-r--r-- 1 root root 44257280 Sep 5 11:32 db/blacklists/adult/domains.db
-rw-r--r-- 1 root root 3444736 Sep 5 11:32 db/blacklists/adult/urls.db
1. Install Berkeley DB http://rijalbuntu.blogspot.com/2013/09/install-berkeley-db-4329-on-redhat-64.html
2. Download file http://www.squidguard.org/Downloads/squidGuard-1.4.tar.gz
3. Kopikan ke /usr/local/src
Compile:
[root@tester src]# tar xvfz squidGuard-1.4.tar.gz
[root@tester src]# cd squidGuard-1.4
[root@tester squidGuard-1.4]# ../configure --with-db=/usr/local/BerkeleyDB.4.3 --with-ldap
[root@tester squidGuard-1.4]# make
[root@tester squidGuard-1.4]# make install
Installing squidGuard
Done.
Installing configuration file
Created directory /usr/local/squidGuard
Assigned /usr/local/squidGuard to user squid
Created directory /usr/local/squidGuard/db
Assigned /usr/local/squidGuard/db to user squid
Created directory /usr/local/squidGuard/log
Assigned /usr/local/squidGuard/log to user squid
Copied sample squidGuard.conf
/usr/local/squidGuard/squidGuard.conf is now readable
The initial configuration is complete.
Congratulation. SquidGuard is sucessfully installed.
Pengecekan:
[root@tester local]# cd /usr/local/squidGuard
[root@tester squidGuard]# ls -l /usr/local/squidGuard
total 12
drwxr-xr-x 2 squid root 4096 Sep 5 11:19 db
drwxr-xr-x 2 squid root 4096 Sep 5 11:19 log
-rw-r--r-- 1 root root 1240 Sep 5 11:19 squidGuard.conf
Convert textfile to db:
[root@tester squidGuard]# /usr/local/bin/squidGuard -C all
[root@tester squidGuard]# tail -f log/squidGuard.log
2013-09-05 11:31:58 [17227] New setting: dbhome: /usr/local/squidGuard/db
2013-09-05 11:31:58 [17227] New setting: logdir: /usr/local/squidGuard/log
2013-09-05 11:31:58 [17227] Added User: root
2013-09-05 11:31:58 [17227] Added User: foo
2013-09-05 11:31:58 [17227] Added User: bar
2013-09-05 11:31:58 [17227] destblock good missing active content, set inactive
2013-09-05 11:31:58 [17227] destblock local missing active content, set inactive
2013-09-05 11:31:58 [17227] init domainlist /usr/local/squidGuard/db/blacklists/adult/domains
2013-09-05 11:32:20 [17227] create new dbfile /usr/local/squidGuard/db/blacklists/adult/domains.db
2013-09-05 11:32:22 [17227] init urllist /usr/local/squidGuard/db/blacklists/adult/urls
2013-09-05 11:32:22 [17227] create new dbfile /usr/local/squidGuard/db/blacklists/adult/urls.db
2013-09-05 11:32:22 [17227] init expressionlist /usr/local/squidGuard/db/blacklists/adult/expressions
2013-09-05 11:32:22 [17227] squidGuard 1.4 started (1378355518.638)
2013-09-05 11:32:22 [17227] db update done
2013-09-05 11:32:22 [17227] squidGuard stopped (1378355542.671)
Cek hasilnya:
[root@tester squidGuard]# ls -l db/blacklists/adult/*.db
-rw-r--r-- 1 root root 44257280 Sep 5 11:32 db/blacklists/adult/domains.db
-rw-r--r-- 1 root root 3444736 Sep 5 11:32 db/blacklists/adult/urls.db
Install Berkeley DB 4.3.29 on Redhat 6.4 X86_64
Persiapan:
1. Download file http://download.oracle.com/berkeley-db/db-4.3.29.tar.gz
2. Kopikan ke /usr/local/src
Compile:
[root@tester src]# tar xvfz db-4.3.29.tar.gz
[root@tester src]# cd /usr/local/src/db-4.3.29/
[root@tester db-4.3.29]# cd build_unix
[root@tester build_unix]# ../dist/configure
[root@tester build_unix]# make clean
[root@tester build_unix]# make
[root@tester build_unix]# make install
Installing DB include files: /usr/local/BerkeleyDB.4.3/include ...
Installing DB library: /usr/local/BerkeleyDB.4.3/lib ...
cp -p .libs/libdb-4.3.so /usr/local/BerkeleyDB.4.3/lib/libdb-4.3.so
cp -p .libs/libdb-4.3.lai /usr/local/BerkeleyDB.4.3/lib/libdb-4.3.la
cp -p .libs/libdb-4.3.a /usr/local/BerkeleyDB.4.3/lib/libdb-4.3.a
ranlib /usr/local/BerkeleyDB.4.3/lib/libdb-4.3.a
chmod 644 /usr/local/BerkeleyDB.4.3/lib/libdb-4.3.a
cp -p libdb.a /usr/local/BerkeleyDB.4.3/lib/libdb.a
ranlib /usr/local/BerkeleyDB.4.3/lib/libdb.a
chmod 644 /usr/local/BerkeleyDB.4.3/lib/libdb.a
PATH="$PATH:/sbin" ldconfig -n /usr/local/BerkeleyDB.4.3/lib
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/BerkeleyDB.4.3/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Installing DB utilities: /usr/local/BerkeleyDB.4.3/bin ...
cp -p .libs/db_archive /usr/local/BerkeleyDB.4.3/bin/db_archive
cp -p .libs/db_checkpoint /usr/local/BerkeleyDB.4.3/bin/db_checkpoint
cp -p .libs/db_deadlock /usr/local/BerkeleyDB.4.3/bin/db_deadlock
cp -p .libs/db_dump /usr/local/BerkeleyDB.4.3/bin/db_dump
cp -p .libs/db_load /usr/local/BerkeleyDB.4.3/bin/db_load
cp -p .libs/db_printlog /usr/local/BerkeleyDB.4.3/bin/db_printlog
cp -p .libs/db_recover /usr/local/BerkeleyDB.4.3/bin/db_recover
cp -p .libs/db_stat /usr/local/BerkeleyDB.4.3/bin/db_stat
cp -p .libs/db_upgrade /usr/local/BerkeleyDB.4.3/bin/db_upgrade
cp -p .libs/db_verify /usr/local/BerkeleyDB.4.3/bin/db_verify
Installing documentation: /usr/local/BerkeleyDB.4.3/docs ...
Install to System:
[root@tester BerkeleyDB.4.3]# vim /etc/ld.so.conf.d/BerkeleyDB.conf
Masukkan "/usr/local/BerkeleyDB.4.3/lib"
[root@tester BerkeleyDB.4.3]# ldconfig
[root@tester BerkeleyDB.4.3]# ldconfig -v | grep libdb-4
ldconfig: /etc/ld.so.conf.d/kernelcap-2.6.18-348.el5.conf:6: duplicate hwcap 0 nosegneg
libdb-4.3.so -> libdb.so
libdb-4.2.so -> libdb-4.2.so
libdb-4.3.so -> libdb-4.3.so
libdb-4.1.so -> libdb-4.1.so
libdb-4.2.so -> libdb-4.2.so
libdb-4.3.so -> libdb-4.3.so
libdb-4.1.so -> libdb-4.1.so
libdb-4.3.so -> libdb.so
Pengecekan:
[root@tester src]# cd /usr/local/BerkeleyDB.4.3/
[root@tester BerkeleyDB.4.3]# ls -l /usr/local/BerkeleyDB.4.3/
total 16
drwxr-xr-x 2 root root 4096 Sep 5 10:27 bin
drwxr-xr-x 12 root root 4096 Sep 5 10:27 docs
drwxr-xr-x 2 root root 4096 Sep 5 10:27 include
drwxr-xr-x 2 root root 4096 Sep 5 10:27 lib
1. Download file http://download.oracle.com/berkeley-db/db-4.3.29.tar.gz
2. Kopikan ke /usr/local/src
Compile:
[root@tester src]# tar xvfz db-4.3.29.tar.gz
[root@tester src]# cd /usr/local/src/db-4.3.29/
[root@tester db-4.3.29]# cd build_unix
[root@tester build_unix]# ../dist/configure
[root@tester build_unix]# make clean
[root@tester build_unix]# make
[root@tester build_unix]# make install
Installing DB include files: /usr/local/BerkeleyDB.4.3/include ...
Installing DB library: /usr/local/BerkeleyDB.4.3/lib ...
cp -p .libs/libdb-4.3.so /usr/local/BerkeleyDB.4.3/lib/libdb-4.3.so
cp -p .libs/libdb-4.3.lai /usr/local/BerkeleyDB.4.3/lib/libdb-4.3.la
cp -p .libs/libdb-4.3.a /usr/local/BerkeleyDB.4.3/lib/libdb-4.3.a
ranlib /usr/local/BerkeleyDB.4.3/lib/libdb-4.3.a
chmod 644 /usr/local/BerkeleyDB.4.3/lib/libdb-4.3.a
cp -p libdb.a /usr/local/BerkeleyDB.4.3/lib/libdb.a
ranlib /usr/local/BerkeleyDB.4.3/lib/libdb.a
chmod 644 /usr/local/BerkeleyDB.4.3/lib/libdb.a
PATH="$PATH:/sbin" ldconfig -n /usr/local/BerkeleyDB.4.3/lib
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/BerkeleyDB.4.3/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Installing DB utilities: /usr/local/BerkeleyDB.4.3/bin ...
cp -p .libs/db_archive /usr/local/BerkeleyDB.4.3/bin/db_archive
cp -p .libs/db_checkpoint /usr/local/BerkeleyDB.4.3/bin/db_checkpoint
cp -p .libs/db_deadlock /usr/local/BerkeleyDB.4.3/bin/db_deadlock
cp -p .libs/db_dump /usr/local/BerkeleyDB.4.3/bin/db_dump
cp -p .libs/db_load /usr/local/BerkeleyDB.4.3/bin/db_load
cp -p .libs/db_printlog /usr/local/BerkeleyDB.4.3/bin/db_printlog
cp -p .libs/db_recover /usr/local/BerkeleyDB.4.3/bin/db_recover
cp -p .libs/db_stat /usr/local/BerkeleyDB.4.3/bin/db_stat
cp -p .libs/db_upgrade /usr/local/BerkeleyDB.4.3/bin/db_upgrade
cp -p .libs/db_verify /usr/local/BerkeleyDB.4.3/bin/db_verify
Installing documentation: /usr/local/BerkeleyDB.4.3/docs ...
Install to System:
[root@tester BerkeleyDB.4.3]# vim /etc/ld.so.conf.d/BerkeleyDB.conf
Masukkan "/usr/local/BerkeleyDB.4.3/lib"
[root@tester BerkeleyDB.4.3]# ldconfig
[root@tester BerkeleyDB.4.3]# ldconfig -v | grep libdb-4
ldconfig: /etc/ld.so.conf.d/kernelcap-2.6.18-348.el5.conf:6: duplicate hwcap 0 nosegneg
libdb-4.3.so -> libdb.so
libdb-4.2.so -> libdb-4.2.so
libdb-4.3.so -> libdb-4.3.so
libdb-4.1.so -> libdb-4.1.so
libdb-4.2.so -> libdb-4.2.so
libdb-4.3.so -> libdb-4.3.so
libdb-4.1.so -> libdb-4.1.so
libdb-4.3.so -> libdb.so
Pengecekan:
[root@tester src]# cd /usr/local/BerkeleyDB.4.3/
[root@tester BerkeleyDB.4.3]# ls -l /usr/local/BerkeleyDB.4.3/
total 16
drwxr-xr-x 2 root root 4096 Sep 5 10:27 bin
drwxr-xr-x 12 root root 4096 Sep 5 10:27 docs
drwxr-xr-x 2 root root 4096 Sep 5 10:27 include
drwxr-xr-x 2 root root 4096 Sep 5 10:27 lib
Saturday, May 18, 2013
INSTALL XRDP ON REDHAT
[root@localhost ~]# ls -l |grep xrdp
-rw-r--r-- 1 root root 285498 Jan 25 08:49 xrdp-0.5.0-0.13.el5.x86_64.rpm
[root@localhost ~]# rpm -ivh xrdp-0.5.0-0.13.el5.x86_64.rpm
warning: xrdp-0.5.0-0.13.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 217521f6
Preparing... ########################################### [100%]
1:xrdp ########################################### [100%]
[root@localhost ~]# chkconfig --list |grep xrdp
xrdp 0:off 1:off 2:off 3:off 4:off 5:off 6:off
[root@localhost ~]# chkconfig xrdp on
[root@localhost ~]# chkconfig --list |grep xrdp
xrdp 0:off 1:off 2:on 3:on 4:on 5:on 6:off
[root@localhost ~]# service xrdp start
Starting xrdp: [ OK ]
Starting xrdp-sesman: [ OK ]
[root@localhost ~]# service xrdp status
xrdp (pid 5019) is running...
xrdp-sesman (pid 5023) is running...
[root@localhost xrdp]# pwd
/etc/xrdp
[root@localhost xrdp]# ls -l
total 92
-rw-r--r-- 1 root root 8756 Nov 18 2010 km-0407.ini
-rw-r--r-- 1 root root 8655 Nov 18 2010 km-0409.ini
-rw-r--r-- 1 root root 8744 Nov 18 2010 km-040c.ini
-rw-r--r-- 1 root root 8732 Nov 18 2010 km-0410.ini
-rw-r--r-- 1 root root 9169 Nov 18 2010 km-0419.ini
-rw-r--r-- 1 root root 8760 Nov 18 2010 km-041d.ini
-rw------- 1 root root 1019 May 18 07:59 rsakeys.ini
-rw-r--r-- 1 root root 636 Nov 18 2010 sesman.ini
-rwxr-xr-x 1 root root 2009 Nov 18 2010 startwm.sh
-rw-r--r-- 1 root root 181 Nov 18 2010 xrdp.ini
-rwxr-xr-x 1 root root 2299 Nov 18 2010 xrdp.sh
[root@localhost xrdp]# vim xrdp.ini
####################
[globals]
bitmap_cache=yes
bitmap_compression=yes
port=3389
crypt_level=high
channel_code=1
[xrdp1]
name=sesman-Xvnc
lib=libvnc.so
username=ask
password=ask
ip=127.0.0.1
port=-1
####################
[root@localhost BACKUP]# netstat -tanp|grep xrdp
tcp 0 0 127.0.0.1:3350 0.0.0.0:* LISTEN 5023/xrdp-sesman
tcp 0 0 0.0.0.0:3389 0.0.0.0:* LISTEN 5019/xrdp
[root@localhost BACKUP]# netstat -tanp|grep :3389
tcp 0 0 0.0.0.0:3389 0.0.0.0:* LISTEN 5019/xrdp
Tuesday, January 22, 2013
Trash di Terminal
RM mungkin sudah banyak yang tahu, namun mungkin sedikit yang sadar bahwa RM dalam linux itu sama seperti SHIFT+DELETE dalam Win***.
Nah, gimana nih klo kita mau menghapus sementara yang artinya file/folder tersebut memang tidak kita butuhkan kembali namun mungkin sewaktu-waktu mau kita restore. Permasalah tersebut dapat kita atasi dengan cara trash (win: Recycle bin). Saya yakin bagi anda yang sudah kenal Linux, pasti gak asing dengan tempat penitipan sementara itu (baca Trash). Caranya yang simple dalam GUI Linux memang hanya dengan klik kanan, delete. Namun tahukan anda bahwa trash tersebut juga bisa kita operasikan via Terminal?? Woke berikut oprekannya,,
1. Instal paket trash-cli
# apt-get install trash-cli
2. Hapus file dengan trash
# trash /home/rijalhanif/modul_igos_trainn2013.pdf
3. Tiga utilitas penting, list-trash, restore-trash, empty-trash
4. Cek file apa saja yang ada dalam KOTAK Trash,
# list-trash
2013-01-22 10:33:33 /home/jaya/modul_igos_trainn2013.pdf
2013-01-22 10:33:33 /home/jaya/sample
2013-01-22 10:33:33 /home/jaya/sample1
2013-01-22 10:33:33 /home/jaya/sample2
5. Restore file
# restore-path
0 2013-01-22 10:33:33 /home/jaya/modul_igos_trainn2013.pdf
1 2013-01-22 10:33:33 /home/jaya/sample
2 2013-01-22 10:33:33 /home/jaya/sample1
3 2013-01-22 10:33:33 /home/jaya/sample2
What file to restore [0..3]:
Isikan nomor berapa file yang akan direstore [0..3]??
6. Mengosongkan KOTAK Trash
# empty-trash
# list-trash (hasilnya kosong)
--semoga bermanfaat
Nah, gimana nih klo kita mau menghapus sementara yang artinya file/folder tersebut memang tidak kita butuhkan kembali namun mungkin sewaktu-waktu mau kita restore. Permasalah tersebut dapat kita atasi dengan cara trash (win: Recycle bin). Saya yakin bagi anda yang sudah kenal Linux, pasti gak asing dengan tempat penitipan sementara itu (baca Trash). Caranya yang simple dalam GUI Linux memang hanya dengan klik kanan, delete. Namun tahukan anda bahwa trash tersebut juga bisa kita operasikan via Terminal?? Woke berikut oprekannya,,
1. Instal paket trash-cli
# apt-get install trash-cli
2. Hapus file dengan trash
# trash /home/rijalhanif/modul_igos_trainn2013.pdf
3. Tiga utilitas penting, list-trash, restore-trash, empty-trash
4. Cek file apa saja yang ada dalam KOTAK Trash,
# list-trash
2013-01-22 10:33:33 /home/jaya/modul_igos_trainn2013.pdf
2013-01-22 10:33:33 /home/jaya/sample
2013-01-22 10:33:33 /home/jaya/sample1
2013-01-22 10:33:33 /home/jaya/sample2
5. Restore file
# restore-path
0 2013-01-22 10:33:33 /home/jaya/modul_igos_trainn2013.pdf
1 2013-01-22 10:33:33 /home/jaya/sample
2 2013-01-22 10:33:33 /home/jaya/sample1
3 2013-01-22 10:33:33 /home/jaya/sample2
What file to restore [0..3]:
Isikan nomor berapa file yang akan direstore [0..3]??
6. Mengosongkan KOTAK Trash
# empty-trash
# list-trash (hasilnya kosong)
--semoga bermanfaat
Wednesday, December 19, 2012
Connect Network (Wired/Wireless/Vpn/Modem) menggunakan Terminal
Yang males nge klik sana-sini, untuk melakukan koneksi internet atau intranet linux anda, dan juga bagi pengguna network manager untuk pengelolaannya? Cara ini merupakan opsi bagi Anda.
Network Manager biasa terdapat pada distribusi linux yang menggunakan gnome sebagai desktop environment and graphical user interface nya.
List All Connection Name
# nmcli con
NAME UUID TYPE TIMESTAMP-REAL
Android Hotspot4919 8743ecaf-ca93-403f-85ed-bb1820ee5ae3 802-11-wireless Wed 19 Dec 2012 06:41:55 AM WIT
Nahlah_kos 1 0bade6d1-dad0-4e2a-a304-1c540e9bb15a 802-11-wireless Tue 18 Dec 2012 10:19:24 PM WIT
TelvisNet 709043a3-6558-4cfe-85f3-6431898788c9 802-11-wireless Tue 18 Dec 2012 03:18:41 PM WIT
Smartfren connection 876fb032-0d72-4cc0-8602-84617cfef80a gsm never
Wired connection 1 12fbc46e-421e-419a-819e-769c479e6833 802-3-ethernet Sun 16 Dec 2012 05:02:33 PM WIT
Nahlah_kos 92843df1-6153-41c9-bf85-4bc2efb23244 802-11-wireless Mon 17 Dec 2012 09:38:56 PM WIT
TelvisNet 1 b7928930-1423-44b3-9bb3-a46373983c47 802-11-wireless Tue 18 Dec 2012 06:13:28 PM WIT
VPN Kantor 610b1705-f01f-4ed8-9389-f62c295d4398 vpn Wed 19 Dec 2012 06:36:55 AM WIT
Start Connection
# nmcli con up id 'VPN Kantor'
Active connection state: unknown
Active connection path: /org/freedesktop/NetworkManager/ActiveConnection/10
state: VPN connecting (need authentication) (2)
state: VPN connecting (3)
state: VPN connecting (getting IP configuration) (4)
Connection activated
Down Connection
# nmcli con up id 'VPN Kantor'
--- semoga bermanfaat
Wednesday, August 1, 2012
Cek Port Jaringan
Bagi para sesepuh jaringan mungkin sudah terbiasa dengan hal ini, bahkan mungkin sehari-harinya sering digunakan untuk mengetahui/memonitoring port dalam jaringan mereka.
Di Ubuntu, perintah tersebut dapat menggunakan:
Cek port Telnet [23]
Cek port Http [80]
Cek port Ftp [21]
Selebihnya cek sendiri ya port yang lain,
Di Ubuntu, perintah tersebut dapat menggunakan:
Cek port Telnet [23]
$ netstat -an | grep LISTEN | grep ":23 "Cek port Http [80]
$ netstat -an | grep LISTEN | grep ":80 "Cek port Ftp [21]
$ netstat -an | grep LISTEN | grep ":21 "Selebihnya cek sendiri ya port yang lain,
Subscribe to:
Posts (Atom)
