PeminangBidadari

Entries from January 2006

mySQL PHPmyAdmin

January 17, 2006 · Leave a Comment

Install mysql
root@xinot-edu:~# groupadd mysql
root@xinot-edu:~# useradd -g mysql mysql
root@xinot-edu:~#cd /usr/
root@xinot-edu:~# tar -zxvf /path/to/mysql-VERSION-OS.tar.gz
root@xinot-edu:~#ln -s full-path-to-mysql-VERSION-OS mysql
root@xinot-edu:~#cd mysql
root@xinot-edu:~#scripts/mysql_install_db –user=mysql
root@xinot-edu:~#chown -R root .
root@xinot-edu:~#chown -R mysql data
root@xinot-edu:~#chgrp -R mysql .
root@xinot-edu:~#bin/mysqld_safe –user=mysql &
root@xinot-edu:/usr/mysql# cp /usr/mysql/support-files/mysql.server /etc/rc.d/rc.mysqld
root@xinot-edu:/usr/mysql# chmod +x /etc/rc.d/rc.mysqld
root@xinot-edu:/usr/mysql# pico -w /etc/rc.d/rc.mysqld

*Edit kalimat berikut
datadir=/usr/local/mysql/data
basedir=/usr/local/mysql
if test “$datadir” != “/usr/local/mysql/data”

*Sesuaikan seperti installan anda
datadir=/usr/mysql/data
basedir=/usr/mysql
if test “$datadir” != “/usr/mysql/data”

root@xinot-edu:/usr/mysql# pico -w /etc/my.cnf

*masukan kalimat berikut
[mysqld]
basedir=/usr/mysql

root@xinot-edu:/usr/mysql# /etc/rc.d/rc.mysqld start
root@xinot-edu:/usr/mysql# ln -s /usr/mysql/bin/mysql /usr/bin/mysql
root@xinot-edu:/usr/mysql# ln -s /usr/mysql/bin/mysqladmin /usr/bin/mysqladmin

Agar lebih aman berikan passwd pada mysql, caranya
root@xinot-edu:/usr/mysql# mysqladmin -u root password password-anda

untuk login gunakan command
root@xinot-edu:/usr/mysql# mysql -u root -p
Enter password:

Install PHPMyadmin
root@xinot-edu:/var/www/htdocs# tar -jxvf /home/tonix/phpMyAdmin-2.7.0-pl2.tar.bz2
root@xinot-edu:/var/www/htdocs# mv phpMyAdmin-2.7.0-pl2/ idman
root@xinot-edu:/var/www/htdocs# cd idman/
root@xinot-edu:/usr# cp config.default.php config.inc.php
root@xinot-edu:/var/www/htdocs# pico -w config.inc.php

*Edit kalimat berikut
$cfg['Servers'][$i]['auth_type'] = ‘config’; // Authentication method (config, http or cookie based)?

*menjadi
$cfg['Servers'][$i]['auth_type'] = ‘http’; // Authentication method (config, http or cookie based)?

Buka pake web browser

http://[alamat-web-Anda]/idman/

Categories: sys

Upgrading the kernel

January 15, 2006 · Leave a Comment

Compile kernel Vmware

root@edu:/usr/src# tar -jxvf /home/linux-2.6.15.tar.bz2
root@edu:/usr/src# ln -s linux-2.6.15/ linux
root@edu:/usr/src# cd linux
root@edu:/usr/src/linux# pico -w Makefile

*Edit kalimat berikut

EXTRAVERSION = .4
HOSTCFLAGS = -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer
HOSTCXXFLAGS = -O2

*menjadi

EXTRAVERSION = -=tanggal-kompile=-
HOSTCFLAGS = -Wall -Wstrict-prototypes -O3 -fomit-frame-pointer
HOSTCXXFLAGS = -O3

root@edu:/usr/src/linux# make clean
root@edu:/usr/src/linux# make menuconfig
sesuaikan dg hardware anda
root@edu:/usr/src/linux# make bzImage && make modules && make modules_install

root@xinot-edu:/usr/src/linux# cp System.map /boot/
root@xinot-edu:/usr/src/linux# cp arch/i386/boot/bzImage /boot/
root@xinot-edu:/usr/src/linux# pico -w /etc/lilo.conf
edit lilo Anda sesuaikan dg nama kernel baru Anda
Berikut adalah contoh conf lilo.conf nya

# LILO configuration file
# generated by ‘liloconfig’
#
# Start LILO global section
boot = /dev/hda
message = /boot/boot_message.txt
prompt
timeout = 1200

# Override dangerous defaults that rewrite the partition table:
change-rules
reset
# VESA framebuffer console @ 1024×768x256
vga = 773
# Linux bootable partition config begins

#kernel lama orig
#image =
/boot/vmlinuz
# root = /dev/hda3
# label = Linux
#
read-only

#kernel baru anda
image = /boot/bzImage
root =
/dev/hda3
label = coreSyu
read-only

# Linux bootable partition config ends

root@xinot-edu:/usr/src/linux# lilo

————————————
Problem saat compile

/bin/sh: cmp: command not found
Inconsistent kallsyms data
Try setting CONFIG_KALLSYMS_EXTRA_PASS
make: *** [vmlinux]
Error 1

Solusi

ambil paket diffutils-2.8.1-i386-1.tgz dari CD slack 10.2 dir slackware/ap/
root@xinot-edu:/usr/src/linux# installpkg diffutils-2.8.1-i386-1.tgz


Categories: sys