This is default featured slide 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

Jumat, 19 Maret 2010

cari text menggunakan vi / vim editor

Cara menemukan suatu text menggunakan vi / vim editor yaitu menggunakan command "/"

Caranya:
klik esc lalu /namatextyangakandicari.
misal kita akan mencari text "ketemu"
esc -> /ketemu

untuk memasukan text atau menghapus text, tekan i
yang kemudian akan timbul --INSERT-- yang artinya kita sudah bisa mengedit text.

untuk quit dan save vi / vim yaitu:
esc -> :q (quit tanpa mensave)
esc -> :wq (quit dengan mensave)

Kamis, 18 Maret 2010

LS_COLORS error

ls: unrecognized prefix: do
ls: unparsable value for LS_COLORS environment variable

error diatas kemungkinan disebabkan adanya root backdor.
biasanya akan membuat / merubah file
/bin/ls
/usr/bin/dir
/usr/bin/md5sum
/usr/sbin/ttyload

cara mengatasinya ialah:
install ulang / repair package coreutils
sebelumnya cek file diatas menggunakan
$ lsattr namafilenya
lalu rubah kembali menggunakan chattr
$ chattr -AacDdijsSu namafilenya

Jumat, 05 Maret 2010

delete route

[root@web1 ~]# ip route help
Usage: ip route { list | flush } SELECTOR
ip route get ADDRESS [ from ADDRESS iif STRING ]
[ oif STRING ] [ tos TOS ]
ip route { add | del | change | append | replace | monitor } ROUTE
SELECTOR := [ root PREFIX ] [ match PREFIX ] [ exact PREFIX ]
[ table TABLE_ID ] [ proto RTPROTO ]
[ type TYPE ] [ scope SCOPE ]
ROUTE := NODE_SPEC [ INFO_SPEC ]
NODE_SPEC := [ TYPE ] PREFIX [ tos TOS ]
[ table TABLE_ID ] [ proto RTPROTO ]
[ scope SCOPE ] [ metric METRIC ]
INFO_SPEC := NH OPTIONS FLAGS [ nexthop NH ]...
NH := [ via ADDRESS ] [ dev STRING ] [ weight NUMBER ] NHFLAGS
OPTIONS := FLAGS [ mtu NUMBER ] [ advmss NUMBER ]
[ rtt NUMBER ] [ rttvar NUMBER ]
[ window NUMBER] [ cwnd NUMBER ] [ ssthresh REALM ]
[ realms REALM ]
TYPE := [ unicast | local | broadcast | multicast | throw |
unreachable | prohibit | blackhole | nat ]
TABLE_ID := [ local | main | default | all | NUMBER ]
SCOPE := [ host | link | global | NUMBER ]
FLAGS := [ equalize ]
NHFLAGS := [ onlink | pervasive ]
RTPROTO := [ kernel | boot | static | NUMBER ]
[root@web1 ~]#

[root@web1 network-scripts]# ip route list
unreachable 114.59.126.255 scope host
unreachable 114.56.247.51 scope host
unreachable 188.72.205.152 scope host
207.228.35.0/25 dev eth1 scope link
207.228.56.128/25 dev eth1 proto kernel scope link src 207.228.56.129
169.254.0.0/16 dev eth1 scope link
127.0.0.0/8 dev lo scope link
default via 207.228.35.1 dev eth1
[root@web1 network-scripts]# netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
188.72.205.152 - 255.255.255.255 !H - - - -
207.228.35.0 0.0.0.0 255.255.255.128 U 0 0 0 eth1
207.228.56.128 0.0.0.0 255.255.255.128 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 207.228.35.1 0.0.0.0 UG 0 0 0 eth1
[root@web1 ~]# ip route del 188.72.205.152
[root@web1 ~]# netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
207.228.35.0 0.0.0.0 255.255.255.128 U 0 0 0 eth1
207.228.56.128 0.0.0.0 255.255.255.128 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 207.228.35.1 0.0.0.0 UG 0 0 0 eth1
[root@web1 ~]#


Kamis, 04 Maret 2010

install openssh

./configure --prefix=/usr --sysconfdir=/etc/ssh --with-tcp-wrappers
Configuring your OpenSSH installer, wait a minutes...
checking for gcc... gcc
checking for C compiler default output... configure: error: C compiler cannot create executables

coba lakukan install:
apt-get install build-essential

========================
libwrap is missing

install:
apt-get install libwrap0-dev
yum install tcp_wrappers-devel

=========================
OpenSSL libcrypto is missing

install:
apt-get install libssl-dev
yum install openssl-devel

==========================
PAM Headers Not Found

install:
apt-get install libpam0g-dev
yum install pam-devel