Thursday, 26 February 2009

web server ready on slitaz

lighttpd, php, mysql, joomla, all are contained in slitaz server forum and there exists two isos:

  1. Joomla on LightTPD/Slitaz

  2. slitaz with apache php mysql and without Desktop?


sqlite dan cms

Gara-gara Slitaz, I turned to lighttpd, php dan sqlite. Mestinya menarik ketika kita punya webserver dari gabungan 2 hal ringan dan kecil. But when it comes to CMS yang sudah ada (misal cms made simple, wordpress dan mediawiki all at once), permasalahannya jadi tidak sederhana. I haven't dig deep but it seems perlu penyesuaian-penyesuaian agar db dari banyak CMS yang umumnya menggunakan mysql sebagai basis, dirubah ke sqlite. In summary, things don't work out of the box.

These two links may tell more:

  1. CMSMADESIMPLE AND SQLITE - HOW TO SETUP


  2. Tentang ADOdb dan Class MySQL, SQLite




This posting "sqlite vs mysql" clarifies well.

Monday, 23 February 2009

Running consideo.jar

I finally got the clue to run Consideo modeller on my Debian Lenny.
The quick fix was here:
extract consideo_4.5.zip onto /tmp or /opt
$ java -jar /opt/consideo_4.5/consideo.jar

Oh my Goodness!
By the way,
$ java -version
java version "1.6.0_0"
OpenJDK Runtime Environment (build 1.6.0_0-b11)
OpenJDK Server VM (build 1.6.0_0-b11, mixed mode)

The second and the third I think is redundant. Also particularly, OpenJDK doesn't run Freemmind 0.8.1. But as long is it doesn't crash my system then it's ok. We might leave stripping for later work.

Radeon X1200 and Debian Etch

Notes:

  1. ati driver works but crash after a while. Forcing xorg.conf to use 256MB of Video memory makes xorg unable to load driver.

  2. vesa driver works, but flicker. Forcing to use 256MB of RAM make screen better but still flicks.

  3. fglrx and fbdev don't work.


Good notes, perhaps but need to be verified.

Most importantly, my ASUS mobo with HDMI is defect in its VGA since it was bought in December 2007. It was got serviced lately. Sympthom like above enlived the Video but then crashed.

Friday, 20 February 2009

xorg.conf Debian Lenny

Waktu pasang Debian Lenny dengan cara 'frugal install' (ini istilah sendiri yang dicomot aja dari DSL/Slitaz), ada kebingungan karena xorg.conf persis dengan style Ubuntu.

Pendekatan baru ini cocok untuk laptop, saya kira, tapi nggak cocok untuk desktop yang hampir nggak pernah ganti monitor. Memang user yg belum paham setingan xorg dengan terminal akan bingung kalau ganti dari monitor CRT yang Horizontal Sync dan Vertical Refresh ratenya jauh diatas ke monitor LCD yang ratenya rendah.

Solusinya sederhana. Insert aja line HorizSync, VertRefrresh, dan Modes. Yang pernting 3 ini, kalau Identifiernya mau diganti sesukanya ya terserah, asal konsisten dari atas ke bawah.

Tambahan, drivernya langsung aku ganti "ati". Bener juga, driver ini sudah ada di kernel.

Berikut, lines yang bisa buat contekan. Kalau mau ganti LCD, tinggak hapus/sesuaikan HorizSync dan VertRefresh. Gicu, bok.
Section "Device"
Identifier      "Configured Video Device"
Driver          "ati"
EndSection

Section "Monitor"
Identifier      "HP A4330A"
HorizSync       20-85
VertRefresh     50-120
EndSection

Section "Screen"
Identifier      "Default Screen"
Monitor         "HP A4330A"
DefaultDepth    24
SubSection "Display"
Depth           24
Modes           "1280x1024"
EndSubSection
EndSection

Wednesday, 18 February 2009

Freemind at Debian Lenny

I believe the procedure is for etch too.

The mostly used Freemind that is for mind mapping (to note in meeting) is now enliven in my new Lenny. here's the summary:
$ sudo apt-get install sun-java6-jre libcommons-lang-java
$ sudo dpkg -i freemind_0.8.1-1_all.deb

And here's the full notes:
$ sudo dpkg -i freemind_0.8.1-1_all.deb
Selecting previously deselected package freemind.
(Reading database ... 152886 files and directories currently installed.)
Unpacking freemind (from freemind_0.8.1-1_all.deb) ...
dpkg: dependency problems prevent configuration of freemind:
freemind depends on libcommons-lang-java; however:
Package libcommons-lang-java is not installed.
freemind depends on libforms-java; however:
Package libforms-java is not installed.
freemind depends on libjaxp1.2-java; however:
Package libjaxp1.2-java is not installed.
freemind depends on librelaxng-datatype-java; however:
Package librelaxng-datatype-java is not installed.
dpkg: error processing freemind (--install):
dependency problems - leaving unconfigured
Processing triggers for man-db ...
Processing triggers for menu ...
Errors were encountered while processing:
freemind
$ sudo apt-get install libcommons-lang-java
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these:

Debian Lenny

The nowly issued Debian is 5.0 (Lenny) right on 14 February 2009.

I might comment this is a Desktop Linux rather than an ordinary Debian.

And there's no much to say but kick your computer with DVD 1 and add it into your grub boot loader.

The bad is I might soon forget how to administer my system with console...

Mounting hardisk as user

Doing
$ sudo mount /dev/sda5 /mnt

may result user unable to read or write the drive. If you want to mount the drive and utilize it as user, do
$ sudo mkdir /media/sda5

then add the line into /etc/fstab
/dev/sda5       /media/sda5     ext3    ro,user,noauto  0       0

Note that 'ro' means the drive is mounted read only and 'user' gives all user to drive the mount. Now you can mount the drive as user:
$ mount /media/sda5

Or better create a desktop icon telling to point to /media/sda5 so you can double click it to mount the drive.

Sunday, 15 February 2009

MySQL on localhost

sirrma.bppt.go.id that's meant for disaster mitigation site (and is short of Sistem Reduksi Risiko Multi Bencana) is on. Time to restrict the database server!

Here's the clue when you require to do so:

To make mysql listen only on the localhost interface, add the following to each of the three sections in /etc/my.cnf (googled reference)




bind-address = 127.0.0.1


Or control from within phpmyadmin's .htaccess:




hostOrder deny,allow
Deny from all
Allow from localhost


Friday, 13 February 2009

About Puppy Linux

http://www.murga-linux.com/puppy/viewtopic.php?t=30136

Choosing a Linux Distro

As I previously wrote about my old Armada M300 laptop, I quickly realize that DSL, despite its speed, is not ready for productive environment. The laptop may roam around as a presentation tool to show computer user that Linux may live in an old machine and still usable. Hence, I grab Puppy and Slitaz that've been recognized to comprehend my consideration.

Slitaz is small and beatiful. More, the cooking edition is nearly 1 GB so I assume it must be very ready for office works. However, but it doesn't run well in the machine. I assume it must be because it runs on RAM and take 80s out of 128 MB M300 RAM. Secondly, it uses Enlightenment that runs GLX. But I must check it up again.

Puppy looks happy in the machine and runs fast enough even though it looks fatty.

On LUG meeting yesterday (Friday 13 Feb 2009), where discussion is on 'Selecting a Distro', I sum up my experience that machine with 128 MB of RAM may take Puppy, while 256 MB machine may take Slitaz. Pentium 4 class better use Desktop approach with Distro such as Ubuntu, Mandriva or SuSE.

A server might consider Debian and Centos.

Ok, hope this will add what's been reported in LUG meeting.

Thank you.

Monday, 2 February 2009

Damn Small Linux 4.4

My Compaq Armada M300 has finally embraced Damn Small Linux 4.4 after long been enlived with Xubuntu. The latest felt slow for most of time, particularly when i need to blog in my wordpress like now. Even on local wordpress. I think the hardware gets old.
I'm happy to see DSL works well. Thought Linux 2.4 is old and unable to handle hardware heaps such as USB and wireless card but the menu is there, even though I haven't try anything on.
Some note, it's easier to turn NIC on before attempting dsl-hdinstall.
My big thanks to DSL team! The new version 4.4 really gives alot, including remastering a DSL. Bravo folks!