Archive for the ‘Open Source’ Category
Tomcat 6 on Debian Lenny
I need to install Tomcat 6 for a school assignment. I thought the installation process was easy as counting 123, but it turned out to be a few hours long of head scratching. Well, the first start is to setup a few environment variables as required by Tomcat:
CATALINA_BASE=/home/kenno/bin/apache-tomcat-6.0.13
CATALINA_HOME=/home/kenno/bin/apache-tomcat-6.0.13
export CATALINA_HOME;
export CATALINA_BASE# JAVA_HOME and Path to java, javac
JAVA_HOME=/usr/lib/j2sdk1.6-sun/bin
export JAVA_HOME;
export PATH=${JAVA_HOME}/bin:${PATH}:.
It can be stored in a setEnv.sh file, and run with source setEnv.sh to load those variables.
Then when I tried to run Tomcat with the following command, there was some error with the BASEDIR:
kenno@kampongcham:~$ $CATALINA_HOME/bin/startup.sh The BASEDIR environment variable is not defined correctly This environment variable is needed to run this program
I wasted a few hours trying to search for solutions on Google, and as when I was about to temporarily give up for dinner, I found an unexpected answer from one of the blogs.
“I need to set all the shell scripts in $CATALINA_HOME/bin to be executable”
So let’s fix it:
kenno@kampongcham:~$ cd $CATALINA_HOME/bin kenno@kampongcham:~/bin/apache-tomcat-6.0.13/bin$ chmod +x *.sh
Finally, it’s done. We can now run tomcat without any errors:
kenno@kampongcham:~/bin/apache-tomcat-6.0.13/bin$ ./startup.sh Using CATALINA_BASE: /home/kenno/bin/apache-tomcat-6.0.13 Using CATALINA_HOME: /home/kenno/bin/apache-tomcat-6.0.13 Using CATALINA_TMPDIR: /home/kenno/bin/apache-tomcat-6.0.13/temp Using JRE_HOME: /usr/lib/j2sdk1.6-sun/bin
That’s it folks. When you setup Tomcat on your machine, make sure you specify the correct path to all the variables mentioned above.
Thanks to Michael for the solution: Tomcat 6 on OSX
ស្ថាបនា និង ដំឡើង បានស៊ី លើ ស៊ូសាលីណាក់ ១០.១
ដោយ Magnus Hoglund
- ប្រសិនបើលោកអ្នកបានដំឡើង កំណែចាស់របស់បានស៊ី សូមចាប់ផ្តើមដោយលុបវាជាមុនសិន។
- ដំឡើងកញ្ចប់ទាំងនេះ (ដោយប្រើ Yast)៖
- mono-develop
- monodoc-core
- sqlite-devel
- libmusicbrainz-devel
- gstreamer010-devel
- libgnomeui-devel
- gnome-desktop-devel
- nautilus-cd-burner-devel
- យកកំណែថ្មីបង្អស់របស់ បានស៊ី ពី http://banshee-project.org។ ក្នុងសាច់រឿងនេះ កំណែចុងក្រោយគឺ ០.១១.២
ទាញយកឯកសារ៖
banshee-0.11.2.tar.gz
banshee-offical-plugins-0.11.2.tar.gz - ស្រាយ បានស៊ី (banshee-0.11.2.tar.gz) ទៅថតបណ្តោះអាសន្នមួយ។
tar xzvf banshee-0.11.2.tar.gz
- បើកស្ថានីយ៍មួយ ក្នុងថតនេះ ហើយរត់៖
./configure
រត់៖
make - ប្តូរទៅជាឫស (su) រួចរត់៖ make install
- ចេញទៅជាអ្នកប្រើធម្មតា និង ចាប់ផ្តើម បានស៊ី (/usr/local/bin/banshee &)
- ការដំឡើង plugins របស់ បានស៊ី អាចធ្វើបានដោយវិធីដូចគ្នា។ ក្នុងករណីរបស់ខ្ញុំ ៗបានស្រាយ banshee-offical-plugins-0.11.2.tar.gz និងរត់ ពាក្យបញ្ជាដូចខាងលើ (មានន័យថា៖ “./configure” “make” “make install”)
នេះជាការស្រេច សូមរីករាយសប្បាយជាមួយបានស៊ី!

អត្ថបទខាងលើបានបកប្រែពី Novel Cool Solution។ អត្ថបទដើមជាភាសាអង់គ្លេសអាចរកឃើញនៅទីនេះ។ វីធីរៀបរាប់ខាងលើ បានផ្ទៀងផ្ទាត់ដោយខ្ញុំបាទ ជាមួយអូផេនស៊ូសា កំណែ១០.១។ បើមិត្តអ្នកអានមានចម្ងល់ ឬបានឃើញភាពខុសឈ្គងមួយណា សូមមេត្តាអោយខ្ញុំដឹងផង។ អរគុណ៕
F-Spot Crashed on SuSE 10.1
Ever since this SuSE 10.1 installed, I could never once run F-Spot. I couldn’t remember what is the version of F-Spot that originally comes with SuSE 10.1 CDs, but even that one didn’t work. So, I upgraded it to 0.1.1 (the latest version at the time of writing is 0.2.2), but the same problem still remained. This is how it looks like when I run the program:
kenno@localhost:~> f-spot
Starting new FSpot server
XXXXX
System.ArgumentNullException: Argument cannot be null.
Parameter name: s
in System.Int32:Parse (System.String s)
in MetaItem:get_ValueAsInt ()
in FSpot.Database.Updater:Run (.Db database)
in Db:Init (System.String path, Boolean create_if_missing)
in FSpot.Core:.ctor ()
in FSpot.Driver:Main (System.String[] args)
XXXXX
Starting new FSpot server
Starting new FSpot server
Starting new FSpot server
Starting new FSpot server
On KDE desktop environment, there is also a very good native photo management application called digiKam which I have been using to organize my photos. Because of this less free time due to school related stuffs, getting the F-Spot running on my Linux box has been a low priority. Having said that, I never forget about it. Today, I just finished all my exams for this semester, and I decided to dig around in Google to look for the answer. Just as last time, there was no luck with Google. Then I tried to talk to the developers of F-Spot in the #f-spot. It was so hopeless still. It seemed no one in there was awake!
When I was about to give up on this program, I decided to give the last try at SuSE Community forum. I searched for “f-spot can’t start”, and found a few related threads, but most of them were just single post with no answers. However, I found this one which was very helpful. It turned out that the fix was the easiest one ever. All you have to do is to remove the old F-Spot db/configuration file in your home directory (~/.gnome2/f-spot/photos.db), restart F-Spot, and voilla, it runs like magic!
The next step is to find out how to compile F-Spot 0.2.2 to run on SuSE 10.1!
Firefox 2.0 rpm សំរាប់ស៊ូសេ១០.១
ទោះបីជាFirefox 2.0បានបញ្ចេញប៉ុន្មានថ្ងៃមកហើយក៏ដោយ មិនមានអ្នកណាធ្វើកញ្ចប់ RPM សំរាប់ស៊ូសេលីណាក់ទេ។
ថ្ងៃនេះសំណាងល្អ ខ្ញុំបានទៅលេងទំព័រវ៉ិបនេះដែលនិយាយពីលីណាក់និងអូផិនសស់ ក៏ប្រទះឃើញដំណឹងទាក់ទងនឹង កញ្ចប់RPM
នៃFirefox 2.0សំរាប់ស៊ូសេ។
បើកុំព្យួទ័ររបស់អ្នកដើស៊ូសេលីណាក់ ហើយចង់បានFirefox 2.0 ដែរនោះ អ្នកអាចទៅទាញយកវាបានពី៖
SUSE 10.1 (i586) (១) | SLED 10 (i586) (២)
Firefox 2.0ក៏ត្រូវការ dependencies ពីរដែរ៖ mozilla-nss និង mozilla-nsrp។ អ្នកអាចទាញយកពួកវាពីរបណ្តាញខាងលើ។
ខ្ញុំទើបតែបានupdateរបស់ខ្ញុំថ្មីៗនេះ ហើយមានការពេញចិត្តជាមួយកំណែប្រែ២ នេះយ៉ាងខ្លាំង។ ខាងក្រោមនេះជារូប screenshot
Firefox 2.0 ដើរលើស៊ូសេ១០.១៖
(១) បណ្តាញសំរាប់ Open SuSE
(២) បណ្តាញសំរាប់ SuSE Linux Enterprise Desktop (paid version)
ប្រភពព៍តមាន៖ Linux and Open Source Blog
Disable sshd in SuSE 10.1
With the latest release of Open SuSE, version 10.1 at the time of writing, the ssh daemon (sshd) is turned on by default. Some sources on the web suggested that it doesn’t do any harms to have it on since it won’t be able to access from outside your LAN if the firewall is turned on. However, I think if you don’t need to use it, there is no point to leave it on.
Here is how you can disable the sshd:
Go to Yast2 -> System -> System Services (Runlevel) and just disable the sshd.
