CentOS 5.4 release notice
Download site
如果已經安裝了之前的版本,則可透過以下的命令線上更新系統:
# yum list updates
# yum update
# yum list updates
# yum update
copy / paste original vdi檔。
Windows->cmd->vboxmanage clonehd "original vdi" "new vdi"
OpenSUSE: ln -s /usr/share/fonts/truetype/uming.ttf
Ubuntu: ln -s /usr/share/fonts/truetype/arphic/uming.ttf
#!/bin/bash
select VAR in a1 a2 a3 a4 a5 exit
do
case $VAR in
a1) read -p "Delete a1? (y/Y/n/N)" FLAG
if [ $FLAG = y -o $FLAG = Y ]; then
rm -f ./a1
fi;;
a2) read -p "Delete a2? (y/Y/n/N)" FLAG
if [ $FLAG = y -o $FLAG = Y ]; then
rm -f ./a2
fi;;
a3) read -p "Delete a3? (y/Y/n/N)" FLAG
if [ $FLAG = y -o $FLAG = Y ]; then
rm -f ./a3
fi;;
a4) read -p "Delete a4? (y/Y/n/N)" FLAG
if [ $FLAG = y -o $FLAG = Y ]; then
rm -f ./a4
fi;;
a5) read -p "Delete a5? (y/Y/n/N)" FLAG
if [ $FLAG = y -o $FLAG = Y ]; then
rm -f ./a5
fi;;
exit) exit;;
esac
done
#!/bin/bash太久沒寫了腦袋打結了一下。
function re () {
local tmp
tmp=$1
if [ $tmp -eq 1 ]; then
total=1
else
re $(($tmp-1))
total=$(($tmp*$total))
fi
}
read -p "Data=" VAR
re $VAR
echo "$VAR!=$total"
d1.txt====================abc:12bob:25cdc:36OK:121Tomy:99Jack:108d2.txt====================Jack:9cdc:8OK:11Tomy:22bob:5abc:88試寫一 script 來處理 d1.txt d2.txt 使其變成abc:12:88bob:25:5cdc:36:8Jack:108:9OK:121:11Tomy:99:22
iptables rules:
#iptables -A INPUT -p tcp --dport 22 -i ethx -m state --state NEW -m recent --set
#iptables -A INPUT -p tcp --dport 22 -i ethx -m state --state NEW -m recent --update --seconds 60 --hitcount 5 -j DROP
如此一來,本機於1分鐘內收到超過5個以上的SSH連線需求時,第5個SSH connection就會被drop掉.
緊接著用hping測試連續送出n個TCP port 22 SYN,看看第5個SSH connection是否會被drop:
Reference:
http://www.cyberciti.biz/tips/linux-unix-bsd-openssh-server-best-practices.html
http://tuxtraining.com/2009/06/23/stop-ssh-brute-force-attack-using-susefirewall



這麼下達就可以得到結果了 :
# last|awk -F" " '{print $1}'|grep -v "^$"|grep -v reboot|grep -v wtmp|sort|uniq -c
Packman is the most popular third-party repository available for openSUSE. It contains many packages that aren't in the openSUSE version; either because they cannot be included for legal reasons, because the distribution contains an older version, or simply because it was never packaged for the distribution release.
This is the repository where you can acquire the relevant mp3 and other codecs, as well as many multimedia applications (such as mplayer), torrent clients, games, etc...
之後透過yast的Software/Software Management來安裝所需要的套件就方便了許多.# vi /etc/raddb/radiusd.conf
# vi /etc/raddb/radiusd.confunix {
cache=yes
passwd= /etc/passwd
group=/etc/group
shadow=/etc/shadowradwtmp=${logdir}/radwtmp}





