Archive for the ‘Slackware’ Category

Linux-file-system-hierarchy-Linux-file-structure-optimized

http://www.blackmoreops.com/2015/02/14/linux-file-system-hierarchy/

Advertisements

I’LL Miss U..

Posted: May 18, 2014 in Freebsd, Slackware

I Think I Really Miss U.. 

Slackaware

But this really make me CRAZY…

FreeBSDlogo

 

SORRY FOR THAT.. ;p

Code to grep file

Posted: July 28, 2011 in archlinux, Debian, Freebsd, Slackware, squid

This is simple code to grep file …

This code using by other to grep squid configurations and other like apache.conf.

# cat /etc/squid/squid.conf | sed ‘/ *#/d; /^ *$/d’

(thanks to kotnik for small sed trick)

to safe file use this

# cat /etc/squid/squid.conf | sed ‘/ *#/d; /^ *$/d’ > /etc/squid/squid.conf-new

to view or search something in squid access.log use this command

# grep ‘string-to-search’ /var/log/squid/access.log

Simple trick but you can use it…

### http://www.cyberciti.biz/tips/linux-setup-transparent-proxy-squid-howto.html

mysql -u username -p –default-character-set=utf8 “database” < backup.sql

THANKS TO BRO HARIS !!!

Untuk high performance network rules dia :-

1) Pakai cat6 dan pastikan hubungan server dan switch menggunakan
1GB/s (Gigabit switch).

2) pakai OS 64bit

3) Perlu buat kernel tunning terutama TCP tunning, files limit dan process limit

http://people.redhat.com/alikins/system_tuning.html

http://www.performancewiki.com/linux-tuning.html

Yang ni yang paling saya suka walaupun untuk Oracle

http://www.puschitz.com/TuningLinuxForOracle.shtml

Slackware 13- Minimal Install

Posted: March 6, 2011 in Slackware

This is the best guide to install Slackware 13 .. thanks to the Author you make my day….

Follow this step and you will get Slackware install in a minute ..

http://cybercenter.com.pt/?p=15

# turn on the network
dhcpcd eth0
# then, download the tagfiles
wget http://cybercenter.com.pt/slack-minimal/tagfiles/slackware-13.1/tagfiles.tar.gz

# and extract them
tar zxvf tagfiles.tar.gz

# you are now ready to start the installer

IPTABLES – Block Script

Posted: February 13, 2011 in archlinux, Debian, Slackware

root@web:~# pico /skrip/ip
root@web:~# pico /skrip/ipsub
root@web:~# pico /skrip/block

####################### PUT THIS ON /skrip/block ##################

BLOCKDB=’/skrip/ip’
IPS=$(grep -Ev “^#” $BLOCKDB)
for i in $IPS
do
iptables -A INPUT -s $i -j DROP
iptables -A OUTPUT -d $i -j DROP
iptables -A INPUT -p tcp -s $i –dport 21 -j DROP
iptables -A INPUT -p tcp -s $i –dport 80 -j DROP
done

#BLOCK SUBNET
BLOCKSUB=’/skrip/ipsub’
IPS=$(grep -Ev “^#” $BLOCKSUB)
for i in $IPS
do
iptables -A INPUT -s $i -j DROP
iptables -A OUTPUT -d $i -j DROP
iptables -A INPUT -p tcp -s $i –dport 21 -j DROP
iptables -A INPUT -p tcp -s $i –dport 80 -j DROP
done

####################### PUT THIS ON /skrip/block ##################

root@web:~# chmod +x /skrip/block

root@web:~#/skrip/block

*** put ip /skrip/ip

root@web:~#echo ‘123.123.123.123’ >> /skrip/ip

*** put ip range on /skrip/ipsub

root@web:~#echo ‘123.123.123.0/24’ >> /skrip/ipsub