Rully's Blog

21 September 2005

Cacti

Assalamu'alaikum Warahmatullahi Wabarakatuh

Coba install cacti. Langsung aja:

1. # apt-get install cacti
(Install apache, php, mysql, dsb)

2. # adduser cacti

3. # mysqladmin --user=root create cacti

4. # mysql -u root -e "grant all privileges on cacti.* to cacti@localhost identified by 'cacti'; flush privileges;"

5. # zcat /usr/share/doc/cacti/cacti.sql.gz | mysql -u cacti --password=cacti cacti

6. # echo "extension=mysql.so" >> /etc/php4/apache/php.ini

7. # /etc/init.d/apache restart
(Restart apache)

8. Browse ke http://localhost/cacti/

9. Login & rubah password
Username: admin
Password: admin

menjadi:
Username: admin
Password: terserah lah

10. Selesai

Wassalamu'alaikum Warahmatullahi Wabarakatuh

09 September 2005

Install "Network controller: Intel Corporation PRO/Wireless 2200BG (rev 05)" di kernel 2.6.13

Assalamu'alaikum Warahmatullahi Wabarakatuh

Setelah berhasil compile kernel 2.6.13, seperti biasa ... wi-fi jadi gak berfungsi lagi. Oprek lagi, dan berhasil jalan.

1. Download ipw2200-1.0.6.tgz
:/usr/src$ wget -c [url file ipw2200-1.0.6.tgz]

2. Ekstrak
:/usr/src# tar -xvvzf ipw2200-1.0.6.tgz

3. Download ieee80211-1.0.3.tgz
:/usr/src$ wget -c [url file ieee80211-1.0.3.tgz]

4. Ekstrak
:/usr/src# tar -xvvzf ieee80211-1.0.3.tgz

5. :/usr/src/ieee80211-1.0.3# make

6. :/usr/src/ieee80211-1.0.3# make install

7. :/usr/src/ieee80211-1.0.3# make IEEE80211_INC=/lib/modules/`uname -r`/build/include install

8. :/usr/src/ipw2200-1.0.6# make

9. :/usr/src/ipw2200-1.0.6# make install

10. Tambahkan module ipw2200 ke kernel
:/usr/src/ipw2200-1.0.6# modprobe ipw2200

11. :/usr/src/ipw2200-1.0.6# ./load

12. Wi-fi dikenali kembali
:~# iwconfig

13. Edit file interfaces
auto lo
iface lo inet loopback

auto eth1
iface eth1 inet dhcp

wireless-essid
diisi essid hot spot atau acces point
wireless-key s:diisi essid key nya

14. Restart networking
:~# /etc/init.d/networking stop
:~# /etc/init.d/networking start


15. Terhubung ke Internet

Wassalamu'alaikum Warahmatullahi Wabarakatuh

08 September 2005

Upgrade ke Kernel 2.6.13

Assalamu'alaikum Warahmatullahi Wabarakatuh

Hari ini coba upgrade ke kernel 2.6.13 di Acer Travelmate 4002 NLMi

1. Download source kernel linux-2.6.13.tar.gz
:/usr/src$ wget -c [url source linux-2.6.13.tar.gz]

2. Ekstrak
:/usr/src# tar -xvvzf linux-2.6.13.tar.gz

3. Copy file (misal) config-2.6.12 & rubah menjadi .config
:/usr/src/linux-2.6.13# cp /boot/config-2.6.12 .
:/usr/src/linux-2.6.13# mv config-2.6.12 .config

4. Dibiasakan membaca HELP kalo ada pilihan yang gak ngerti, nulis lspci & dmesg bisa sangat membantu. Kernel sebelumnya (2.6.12) itu hasil memilih dengan sangat "selektif" dan cukup lama. (Hampir) semua yang diperlukan di include di kernel & (sangat) sedikit yang [M] modularizes features.

:/usr/src/linux-2.6.13# make menuconfig

Lanjut ... (singkatnya)

5. Linux Kernel v2.6.13 Configuration
Processor type and features --->
Subarchitecture Type (PC-compatible), Processor family (Pentium M) --->
.
Power management options (ACPI, APM) --->
CPU Frequency scaling ---> <*> Intel Enhanced SpeedStep, [*] Use ACPI tables to decode valid frequency/voltage pairs, [*] Built-in tables for Banias CPUs
.
Bus options (PCI, PCMCIA, EISA, MCA, ISA) --->
[*] PCI support, PCI access mode (Any) --->
PCCARD (PCMCIA/CardBus) support --->
--- PC-card bridges
<*> CardBus yenta-compatible bridge support
.
Networking --->
<*> IrDA (infrared) subsystem support --->
Infrared-port device drivers --->
--- SIR device drivers
<*> IrTTY (uses Linux serial driver)
.
Device Drivers --->
.
.
Network device support --->
Ethernet (10 or 100Mbit) --->
[*] Ethernet (10 or 100Mbit)
<*> Broadcom 4400 ethernet support (EXPERIMENTAL)
.
.
Graphics support --->
<*> Support for frame buffer devices
<*> ATI Radeon display support
[*] DDC/I2C for ATI Radeon support
.
Sound --->
<*> Sound card support
Advanced Linux Sound Architecture ---> PCI devices --->
<*> ALi M5451 PCI Audio Controller
<*> Intel/SiS/nVidia/AMD/ALi AC97 Controller
Open Sound System --->
Intel ICH (i8xx) audio support
.
File systems --->
<*> Ext3 journalling file system support
[*] Ext3 extended attributes
[*] Ext3 POSIX Access Control Lists
[*] Ext3 Security Labels
CD-ROM/DVD Filesystems --->
<*> ISO 9660 CDROM file system support
[*] Microsoft Joliet CDROM extensions
[*] Transparent decompression extension
<*> UDF file system support
DOS/FAT/NT Filesystems --->
<*> MSDOS fs support
<*> VFAT (Windows-95) fs support
(437) Default codepage for FAT
(iso8859-1) Default iocharset for FAT
<*> NTFS file system support
[*] NTFS write support
.
.

dst.
Masih banyak lagi. Intinya, pilih seefisien mungkin yang di include ke kernel.

Save Configuration to an Alternate File
.config < Ok >
Do you wish to save your new kernel configuration? < Yes >


6. :/usr/src/linux-2.6.13# make

7. :/usr/src/linux-2.6.13# make install

8. Install kalo ada sebagian dari kernel yang dijadikan modules
:/usr/src/linux-2.6.13# make modules_install

9. Update Grub (manual)
:/# vim /boot/grub/menu.lst

Tambahkan (misal):
title Debian GNU/Linux, kernel 2.6.13
root (hd0,1)
kernel /boot/vmlinuz root=/dev/hda2 nomce psmouse.proto=imps quiet
initrd (hd0,1)/boot/initrd.
savedefault
boot


10. Reboot with the new kernel and enjoy

Wassalamu'alaikum Warahmatullahi Wabarakatuh

KDE 3.4.2 (can't login to root)

Assalamu'alaikum Warahmatullahi Wabarakatuh

Hari ini coba upgrade KDE ke 3.4.2.

1. Ubah sources list ke experimental & sid (sebelumnya testing & unstable).
:~# apt-get update && apt-get dist-upgrade

2. Setelah selesai instalasi, logout. Lalu jalankan Xwindow
:~# startx

3. Dan... wew, gak jalan. Restart.
:~# reboot

KDE 3.4.2 berjalan dengan baik. Tapi ... gak bisa login langsung ke root. Walah, mana lupa file apa yang harus di edit biar bisa login ke root. Sebelum-sebelumnya udah beberapa kali nemuin masalah ini setiap upgrade KDE. Coba nyari di direktori /etc/pam.d/, file /etc/securetty, di direktori /etc/security/, di Control Centre di desktop, dsb. Akhirnya setelah googling, ketemu. Ternyata di file kdmrc.

4. Di Terminal Program, login ke root
:~$ su
Password:


5. Edit file kdmrc
:~# vi /etc/kde3/kdm/kdmrc

Ubah baris
AllowRootLogin=false

menjadi
AllowRootLogin=true

6. Logout & login langsung root

Wassalamu'alaikum Warahmatullahi Wabarakatuh