Selasa, 13 Mei 2008

BUG UBUNTU [danger]

Find ubuntu bugs on laptop on mode battery [out carger],
get fatal script on /etc/acpi/power.sh
load program hdparm -B 1 on every block device [over maximum].
Thats code can make over "load cycle" on laptop machine .

the Bug can make break off, block device like Harrdisk [or storage on active loading] will get over loading maximum, harddisk will be burn [over hot].

Please Becarefully, if using distro ubuntu. Please using carger for save on Ubuntu perform, laptop mode (external power).

Keep enjoy

---- for completly ----

power.sh should be really reworked, here is why:
-------------ONE------------
in power.sh laptop mode is enabled in this way:
function laptop_mode_enable {
$LAPTOP_MODE start

for x in /sys/bus/ide/devices/*/block; do
drive=$(basename $(readlink $x));
$HDPARM -S 12 /dev/$drive 2>/dev/null
$HDPARM -B 1 /dev/$drive 2>/dev/null
done

for x in /sys/bus/scsi/devices/*/block; do
drive=$(basename $(readlink $x));
$HDPARM -S 12 /dev/$drive 2>/dev/null
$HDPARM -B 1 /dev/$drive 2>/dev/null
done
}
and disabled with a similar function.

now, I don't know about IDE devices, but on my Dell d620, (sata, intel ich7) the hard disk and the dvd show as
"/sys/bus/scsi/devices/0:0:0:0/block:sda" and "/sys/bus/scsi/devices/1:0:0:0/block:sr0".

So I think the script should be "for x in /sys/bus/scsi/devices/*/block*;"
This has fixed the problem on my laptop.
This seems to affect both Edgy and Feisty.
------------TWO-------------
Let laptop mode handle the disks or handle those directly?
As of now laptop mode provides a config file to many things that are done by acpi-support, for example controlling hd with hdparm.
I suggest that all those functionalities are disabled and hidden, leaving laptop mode to care only for sysctl and mount options.
For example as of now the user can have laptop_mode to set his hd spin down timeout to 10 seconds, but just after laptop mode power.sh sets the hd parameters itself, with a value that the uset can not customize.
Should be enough to cut some stuff away from the laptop_mode script and config files.
------------THREE-----------
Following from point two, hd parameters should be tunable by the user, and power.sh should not use "magic values". I suggest to put those somewhere else, maybe in /etc/default/acpi-support.
I know those aren't strictly related to acpi, but all powersaving is already being done by acpi-support.
-----------FOUR------------
When setting an hd aggressive power saving we should also set a longer readahead (hdparm -a 1024 or more)
------------FIVE-------------
It would also be interesting to set laptop_mode and disk powersaving when the lid is closed or let the user use the functions laptop_mode_enable and laptop_mode_disable in some custom scripts.
For this I suggest to move those function in /usr/share/acpi-support/power-funcs once everything else has been taken care of.

UPLOADER Release


[ UPLOADER ] The Unix Pekanbaru Loaders ...

.NET Community unix base on Pekanbary city, For the Moderator n learn together
SUN, MAC, BSD, Linux others..

Modulator:
Yudhax
Aedykus

For enjoy make simple life with unix community ...

you can join : on millis
[
http://groups.google.co.id/group/up-loader ]

so...
Lest going up - join

SMS Gateway with Gnokii and PlaySMS

WARNING !!!
———–
PlaySMS is not save for kids!
But if you’re a kid, and you can meet requirement’s below, you can use
PlaySMS, savely!
Kids must:
1. Not nervous when login to Linux console remotely
2. Able to read and understand README first, INSTALL and then FAQ in
this package
3. Able to use Yahoo! to send join PlaySMS mailing list, and ask good
questions
4. Be serious after this WARNING

REQUIREMENT
———–
Download PlaySMS : http://playsms.sourceforge.net/
Download Gnokii : http://www.gnokii.org/

Minimum Required Hardware
- Web servers hardware
- Disk freespace for software and data disk at least 10 MB
Minimum Required Software
- Operating System *NIX based (Linux preferred)
- Web Server (Apache preferred http://httpd.apache.org)
- Database Server MySQL 3.23.47 or latest stable release (http://
www.mysql.com)
- PHP 4.2.2 or latest stable release with mysql module enabled and CGI
version
(http://www.php.net)
Minimum Required Server Operator (or Developer)
- Understand howto make sure installed PHP has MySQL module enabled
(phpinfo)
- Understand howto create/drop MySQL database
- Understand howto insert SQL statement into created database
- OK to read README, INSTALL, FAQ and other docs :)

Gnokii’s Installation:
1. Extract gnokii source package somewhere (eg: /usr/local/src)
2. Configure it to make sure installation path is in /usr/local
# ./configure –prefix=/usr/local
Note: if you want to change to another directory, you better
understand how to
read source of /path_to_source_of_playsms/bin/* files written in bash
script
3. Make and make install, these actions should install gnokii to /usr/
local
# make
# make install
4. Enter directory named smsd in gnokii source directory, compile and
install smsd
Note: if you use gnokii version <>

PlaySMS Web Interface:
1. It is important to meet all minimum requiments above (Its a must!)
2. Setup a system user named ‘playsms’ to manage PlaySMS
# adduser playsms
# passwd playsms
Note: on some Linux distributions adduser and passwd combined
3. On most Linux distributions actions (2) will create system user and
group named playsms
with home directory /home/playsms, there you will install all PlaySMS
files
4. Create public_html on user’s home directory, if its not already
exists
# mkdir /home/playsms/public_html
5. Extract PlaySMS package somewhere (Place in /usr/local/src if you
want to)
tar -zxvf playsms-x.x.x.tar.gz
6. Copy ‘web’ directory to public_html directory and set owner back to
user playsms again
(for security reason)
# cp -rR web/* /home/playsms/public_html
# chown -R playsms /home/playsms/public_html
# chmod 701 /home/playsms
7. Setup database (import database)
# mysqladmin -u root -p create playsms
# mysql -u root -p playsms < /path_to_source_of_playsms/db/playsms.sql Note: you dont need to use MySQL root access nor this method to setup PlaySMS database, but this is beyond our scope, you should read MySQL manual for custom installation method 8. Edit config.php on playsms web directory (/home/playsms/public_html/ config.php) Please read and fill all fields required carefully 9. Enter bin directory and copy playsmsd and playsmsd_start to /usr/ local/bin # cd bin # cp playsmsd playsmsd_start /usr/local/bin/ 10. Enter /etc/init.d or /etc/rc.d/init.d and look for file rc.local, im sure you’ll found it. Edit that file and put “/usr/local/bin/ playsmsd_start” (without quotes) on the bottom of the file (before exit if theres exit). This way playsmsd_start will be run everytime the system startup 11 Browse http://localhost/~playsms and login using default
administrator user
username: admin
password: admin
12. At this point you should be able to logon PlaySMS webbased
interface.

NOTES
—–
1. It is VERY important to set these settings below on your php.ini
safe_mode = Off
register_globals = Off
magic_quotes_gpc = On
2. Dont forget to read FAQ and CHANGELOG carefully

Thin Client dengan KNOPPIX Terminal Server

Thin Client / Diskless adalah sebuah komputer yang tidak dilengkapi
dengan media penyimpanan (storage) antara lain : Harddisk, CDROM.
Namun komputer tersebut bisa melakukan booting dan memiliki sistem
operasi sehingga komputer tersebut bisa digunakan untuk kegiatan
sehari-hari. Hal tersebut bisa dilakukan hanya dengan menggunakan NIC
(network interface card) dan komputer yang terhubung dalam jaringan.

Penggunaan thin client/diskless di sistem operasi linux biasanya
menggunakan LTSP (Linux Terminal Server Project). Namun, kali ini kita
akan mencoba fasilitas yang ada didalam Linux KNOPPIX yaitu KNOPPIX
Terminal Server.

Dalam menggunakan KNOPPIX Terminal Server kita punya beberapa cara,
diantaranya :

1. Linux KNOPPIX diaktifkan dari CD-ROM (tanpa di install).
2. Linux KNOPPIX di-copy ke harddisk (booting dari disket).
3. Linux KNOPPIX di-install ke harddisk

Konfigurasi KNOPPIX Terminal Server melalui CD-ROM dan harddisk

Untuk tipe konfigurasi ini kita tidak perlu menginstall Linux Knoppix
ke dalam harddisk. Kita cukup melakukan booting melalui cd-rom seperti
layaknya kita akan menjalankan Linux Knoppix. Setelah proses boot
selesai langkah selanjutnya adalah :

* Konfigurasi network address komputer yang kita gunakan sebagai
server. Untuk proses ini kita bisa menggunakan perintah netcardconfig
atau memilih KNOPPIX->Network/Internet->Network card configuration
dari menu knoppix. Namun, bila ingin sedikit 'macho' anda bisa
mengetikan perintah ifconfig dari shell.

* (sesuaikan dengan konfigurasi jaringan di lingkungan anda).
Use DHCP Broadcast : No
IP Address : 10.10.11.119
Network Mask : 255.255.255.0
Broadcast Address : 10.10.11.255
Default gateway : 10.10.11.3
Name Server : 10.10.1.6

* Setelah konfigurasi network address selesai, selanjutnya anda
tinggal menggunakan perintah knoppix-terminalserver untuk
mengkonfigurasi Knoppix Terminal Server.

setup (Re)configure server and (re)start
available network device : eth0
- (nic yang ingin digunakan untuk Knoppix terminal server)
IP range of addresses : 10.10.11.201 10.10.11.250
- (disesuaikan dengan jumlah client)
Network modules : SIS900.o
- (pilih sesuai dengan NIC pada client)
Performance & Security : secure, masq, dns
- (tambahkan webproxy apabila memiliki RAM diatas 256MB)
Start server : Yes

Agar kita tidak lagi menggunakan cdrom dalam menggunakan Linux Knoppix
karena kita ingin menggunakan cdrom drive kita untuk membuka file dari
CD, maka kita dapat meng-copy seluruh isi cd Linux Knoppix ke dalam
harddisk (partisi FAT, FAT32, NTFS). Setelah itu kita harus membuat
bootfloppy (KNOPPIX -> utilities -> create bootfloppies for KNOPPIX)
untuk bisa boot kedalam Linux Knoppix yang sudah ter-copy di dalam
harddisk. Untuk bootfloppy dibutuhkan 2 disket.

Instalasi Linux KNOPPIX ke harddisk dan konfigurasi KNOPPIX Terminal
Server.

Diatas kita telah mengetahui bagaimana cara untuk melakukan
konfigurasi Knoppix terminal server tanpa menginstall Linux Knoppix
kedalam harddisk. Sekarang, kita akan mencoba mengkonfigurasi Knoppix
Terminal Server dengan kondisi Linux Knoppix sudah terinstall kedalam
harddisk.

Untuk menginstall Knoppix ke dalam harddisk kita bisa menggunakan
perintah knx2hd (untuk knoppix 3.3 keatas) atau knx-hdinstall (untuk
knoppix 3.2 kebawah) kemudian ikuti langkah-langkah yang ada dilayar.
Setelah selesai proses instalasinya, cobalah untuk melakukan booting
melalui harddisk yang sudah terinstall Linux Knoppix.

Langkah selanjutnya untuk melakukan konfigurasi KNOPPIX Terminal
Server adalah sebagai berikut :

1. booting dari CD Knoppix dengan option boot "knoppix 2"
2. kemudian copy file-file KNOPPIX ke dalam directory NFS :
3. cp -Rp /KNOPPIX/* /mnt/hda1/cdrom
- (Jika Linux Knoppix ter-install di hda1)
4. kemudian reboot tanpa CD Knoppix
5. edit /usr/share/knoppix-terminalserver/templates/miniroot/linuxrc
- dari baris ke 242 - 252 adalah sebagai berikut :
# if we have an NFSDIR, try mounting it
if [ -n "$NFSDIR" ]; then
echo -n "${CRE}${BLUE}Trying to mount CD on" \
"${MAGENTA}$NFSDIR${BLUE}...${NORMAL}"
/static/mount -t nfs -o \
ro,rsize=8192,wsize=8192,hard,intr$SECUREOPTIONS \
"${NFSDIR}" /cdrom > /dev/null 2>&1 && MOUNTED="yes"
# unsuccessful? Blank out NFSDIR and see if pump does better
[ -z "$MOUNTED" ] && echo "${RED}Failed.${NORMAL}" && NFSDIR=
fi

dirubah menjadi seperti berikut :

# if we have an NFSDIR, try mounting it
if [ -n "$NFSDIR" ]; then
echo -n "${CRE}${BLUE}Trying to mount CD on" \
"${MAGENTA}$NFSDIR${BLUE}...${NORMAL}"
/static/mount -t nfs -o \
ro,rsize=8192,wsize=8192,hard,intr$SECUREOPTIONS \
"${NFSDIR}" /KNOPPIX > /dev/null 2>&1 && MOUNTED="yes"
# unsuccessful? Blank out NFSDIR and see if pump does better
[ -z "$MOUNTED" ] && echo "${RED}Failed.${NORMAL}" && NFSDIR=
fi

- dari baris ke 304 - 321 adalah sebagai berikut :
FOUND_KNOPPIX=""
if test -f /cdrom/KNOPPIX/KNOPPIX
then
echo -n "${CRE} ${GREEN}Accessing KNOPPIX CDROM image at ${MAGENTA}
$NFSDIR${GREEN}...${NORMAL}"
FOUND_KNOPPIX="true"
else
dropshell
fi
# Harddisk-installed script part version has been removed
# (KNOPPIX can be booted directly from HD now).
# DEBUG
# echo "6″ > /proc/sys/kernel/printk
$INSMOD /modules/cloop.*o file=/cdrom/KNOPPIX/KNOPPIX
mountit /dev/cloop /KNOPPIX "-o ro$SECUREOPTIONS" || FOUND_KNOPPIX=""

dirubah menjadi seperti berikut :

FOUND_KNOPPIX=""
#if test -f /cdrom/KNOPPIX/KNOPPIX
#then
echo -n "${CRE} ${GREEN}Accessing KNOPPIX CDROM image at ${MAGENTA}
$NFSDIR${GREEN}...${NORMAL}"
FOUND_KNOPPIX="true"
#else
#dropshell
#fi
# Harddisk-installed script part version has been removed
# (KNOPPIX can be booted directly from HD now).
# DEBUG
# echo "6″ > /proc/sys/kernel/printk
#$INSMOD /modules/cloop.*o file=/cdrom/KNOPPIX/KNOPPIX
#mountit /dev/cloop /KNOPPIX "-o ro$SECUREOPTIONS" || FOUND_KNOPPIX=""

6. jalankan knoppix-terminalserver
7. kemudian, lakukan boot pada client

Konfigurasi Diskboot untuk client
Setelah proses diatas selesai semua, yang harus dilakukan kemudian
adalah membuat diskboot untuk client (yang NICnya tidak memiliki
fasilitas (PXE/bootrom). Untuk NIC yang memiliki bootrom kita tinggal
mengeset bios agar boot sequencenya dimulai dari network boot.

Untuk membuat diskboot adalah dengan cara men-download diskboot image
dari http://rom-o-matic.net/5.2.5/ . Cari boot image sesuai dengan
tipe dan merek NIC yang anda gunakan. Pada ROM output format pilih
Floppy bootable ROM Image (.zdsk) kemudian Get ROM.

Setelah selesai proses download, langkah selanjutnya adalah menulis
file tersebut kedalam disket dari shell dengan perintah :

cat eb-5.2.5-tipeNICanda.zdsk > /dev/fd0

Gunakan disket tersebut untuk boot dari komputer client.

Pemanfaatan Thin Client dengan KNOPPIX Terminal Server

Thin client dapat digunakan untuk berbagai keperluan. Diantaranya
adalah untuk client warung internet (warnet) atau pusat komputer di
institusi pendidikan (sekolah atau kampus). Thin client sangat
memudahkan dalam hal pemeliharaan sistem karena sifatnya yang terpusat
di server sehingga client tidak perlu di-install sistem operasi dan
aplikasinya. Hal ini bisa mengurangi beban administratornya .

Referensi : www.knoppix.net

Knoppix Diskless via FreeBSD (PXE-mode)

Steps :

1. "Copy all content" cd knoppix to freebsd server (ex. /usr/diskless/)
cp - Rp /cdrom/* /usr/diskless

2. make directory for save kernel linux/diskless
mkdir /tftpboot

3. edit file /etc/inetd.conf and erase comment(#) from tftp
vi /etc/inetd.conf

4. restart inetd

5. configurasi file dhcpd.conf

6. Add : filename “/pxelinux.0″ -> on file configurasi
dhcpd.conf

7. Add : option-root-path “192.168.0.1:/usr/diskless” -> (/usr/
diskless : up to you about name directory) on file configurasi
dhcpd.conf. 192.168.0.1 -> ip server for save image knoppix
(using NFS).

8. starting dhcpd
/usr/sbin/dhcpd

9. copy file vmlinux, pxelinux.0, boot.msg, logo.16, pxelinux.cfg/
default dari directory /tftpboot ->boot via knoppix condition

10. boot via client