Ubah mirror update dengan perintah:
# mv /etc/apt/sources.list sources.list.original # vi /etc/apt/sources.list
Masukkan kode berikut:
<< share | open source | linux | network | security
# mv /etc/apt/sources.list sources.list.original # vi /etc/apt/sources.list
# vi /etc/network/interfaces # sudo ufw disable # apt-get install nmap
# sudo apt-get update # sudo apt-get install squid # sudo apt-get install squid squidclient squid-cgi # sudo apt-get install gcc # sudo apt-get install build-essential # sudo apt-get install sharutils # sudo apt-get install ccze # sudo apt-get install libzip-dev # sudo apt-get install automake1.9
cat /etc/issueexample:
**// [backcode@localhost ~]# cat /etc/issue CentOS release 5.4 (final) Kernel \r an \m //**
ps -eo user,pcpu,pmem | tail -n +2 | awk '{num[$1]++; cpu[$1] += $2; mem[$1] += $3} END{printf("NPROC\tUSER\tCPU\tMEM\n"); for (user in cpu) printf("%d\t%s\t%.2f\t%.2f\n",num[user], user, cpu[user], mem[user]) }'Fungsi :
for USER in `ls /var/spool/cron`; do echo "=== crontab for $USER ==="; echo $USER; doneFungsi :
# sudo yum update # sudo yum install squid # sudo yum remove squid # sudo yum install squidclient squid-cgi gcc build-essential sharutils ccze ibzip-dev automake glibc-devel e2fsprogs-devel
# cd /tmpDownload Lusca Squid
# wget http://backcode.googlecode.com/files/squid-2.7.STABLE9+patch.tar.gzExtract Lusca Squid yang telah didownload:
# tar -xvzf squid-2.7.STABLE9+patch.tar.gz
/** * SyntaxHighlighter */ function foo() { if (counter <= 10) return; // it works! }