Category Archives: Linux

Proxy gateway squid 2.7 CentOS 5


Skenario:
Internet:192.168.1.1 — eth1:192.168.1.5:CentOS Squid:eth0:192.168.0.254 — LAN

I.Setting Statik IP Address,DNS,Hostname:
Using wizard:
# system-config-network-tui

or manual setup IP Address:
-Setting IP Address Statik eth0
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
Continue reading

Setup DHCP server CentOS 5


-Install paket DHCP server
# yum -y install dhcp

-Backup File Original Konfigurasi DHCP
# mv /etc/dhcpd.conf /etc/dhcpd.conf.asli

-File contoh default konfigurasi dhcp ada di /usr/share/doc/dhcp-versidhcp/dhcpd.conf.sample
Copy file terserbut ke /etc/dhcpd.conf untuk diedit :

# cp /usr/share/doc/dhcp-3.0.5/dhcpd.conf.sample /etc/dhcpd.conf
Continue reading

Cara mengetahui running services di CentOS/RedHat


Berikut cLi untuk melihat daftar running services di CentOS/RedHat :

– Service command,melihat daftar running services
# service --status-all
# service --status-all | grep ntpd
# service --status-all | less

Contoh command untuk mengetahui status apache (httpd) service:
# service httpd status

– List all known services (configured via SysV)
# chkconfig --list

– List service and their open ports
# netstat -tulpn

– Turn on / off service
# ntsysv
ntsysv adalah interface sederhana untuk setting runlevel services dimana biasanya bisa disetting dari chkconfig.

Contoh command chkconfig:
# chkconfig httpd off
# chkconfig ntpd on

 


Find file on linux

# find / -name ‘squid’ -type d
# find / -name squid
# find / -iname squid.conf

Note:
the fist parameter “/” is where to look in this case “/” the entire system.
-name could be -iname to ignore case also -type is not mandatory

For more options
# man find

Get system info on linux

References
http://rud.web.id/baca/artikel/148/cara-mudah-cek-processor-memory-harddisk-vga-dll
http://www.computerbob.com/guests/how_to_get_system_info_in_linux.php

 
Untuk mengetahui system information di Linux dapat menggunakan beberapa command melalui terminal/konsol, (harus menggunakan user account root):

# cat /proc/cpuinfo | Informasi Processor
# cat /proc/meminfo | Informasi Memory
# lshw | Untuk list perangkat keras
# fdisk -l | Informasi Harddisk dan partisi
# lspci | Informasi lengkap jenis Controller, BUS, PCI, dll
# lspci -nn | Informasi singkat jenis Controller, BUS, PCI, dll
# lspci | grep VGA | Informasi VGA / Display Card
# lspci | grep Eth | Informasi Ethernet Card / NIC / LAN Card
# uname -a | Informasi Kernel dan jenis Processor

Perintah Linux yang lebih lengkap dapat dilihat disini