Get Faster booting time slackware

Written By pcbolong on Sunday, May 22, 2011 | 8:32 PM

Salah satu cara yang saya lakukan untuk mempercepat booting adalah mengedit file "rc.M" yang terletak pada direktori
/etc/rc.d/rc.M

Saya akan menghapus script mengenai pengaturan icon cache files dan mime database. Script tersebut dihapus untuk mengurangi proses yang tidak perlu saat proses booting. Dilihat dari script nya, proses kedua nya adalah jika ada perubahan terhadapa icon dan mime pipe pada procesor akan disimpan dalam database. Proses penyimpanan database tersebut membutuhkan waktu yang tidak sedikit. Berikut script dari kedua proses tersebut.

# Update any existing icon cache files:
if find /usr/share/icons 2> /dev/null | grep -q icon-theme.cache ; then
for theme_dir in /usr/share/icons/* ; do
if [ -r ${theme_dir}/icon-theme.cache ]; then
echo "Updating icon-theme.cache in ${theme_dir}..."
/usr/bin/gtk-update-icon-cache -t -f ${theme_dir} 1> /dev/null 2> /dev/null &
fi
done
# This would be a large file and probably shouldn't be there.
if [ -r /usr/share/icons/icon-theme.cache ]; then
echo "Deleting icon-theme.cache in /usr/share/icons..."
#/usr/bin/gtk-update-icon-cache -t -f /usr/share/icons 1> /dev/null 2> /dev/null &
rm -f /usr/share/icons/icon-theme.cache
fi
fi



Dan

# Update mime database:
if [ -x /usr/bin/update-mime-database -a -d /usr/share/mime ]; then
echo "Updating MIME database: /usr/bin/update-mime-database /usr/share/mime &"
/usr/bin/update-mime-database /usr/share/mime 1> /dev/null 2> /dev/null &
fi


Sudah selesai, dan sekarang, cobalah untuk reboot slackware. Dan rasakan bedanya. Akan berkurang beberapa juta detik. Hahaha lebayy...
C U

0 comments: