Tomcat 6

When we are working with Java web-apps we can use many servers, to do our job but the most popular web server is Tomcat. So today I’m gonna tell you how to install Tomcat on your machine for all those Linux users. And this is how we do it :D
First you have to have Java to check that you have to enter the following command in the terminal:
Code:
dpkg --get-selections | grep sun-java

And if you get an output like this we are good to go

sun-java6-bin install
sun-java6-jdk install
sun-java6-jre install

but if you don’t get that then you have to install Java too, for that you can use this command
Code:
sudo apt-get install openjdk-6-jdk

Ok now this is how we are going to install Tomcat, first lets go to /etc/apt/sources.list you can use the GUI but if you are not a fan of GUI then you can use the following command in the terminal
Code:
sudo gedit /etc/apt/sources.list

then add these two lines to the end of your source list

deb http://us.archive.ubuntu.com/ubuntu/ jaunty multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ jaunty multiverse

then you have to update the source list
Code:
sudo apt-get update

Then finally after the update you can install tomcat by
Code:
sudo apt-get install tomcat6 tomcat6-docs tomcat6-examples tomcat6-admin

Then after the installation go to /etc/tomcat6/tomcat-users.xml
Code:
sudo gedit /etc/tomcat6/tomcat-users.xml

Then add these two lines inside the tags

< role rolename=”admin” />
< user username=”tomcatman” password=”tomcat” roles=”admin,manager” />

Note:
If the < and > marks are not shown here properly make sure to add them if you are copy pasting this

And how we are ready to start tomcat to start, restart and stop these are the commands
Code:
sudo /etc/init.d/tomcat6 start
sudo /etc/init.d/tomcat6 restart
sudo /etc/init.d/tomcat6 stop

Ok then after starting tomcat you can go to

http://localhost:8080/

start your work :D

~~ Rusiru Boteju ~~

Phoenix BIOS and bluetooth

Hey guys I dunno how much will this apply to your laptop but this was really useful to me as I’m using a laptop(Toshiba A200-130) with Phoenix BOIS with inbuilt blue-tooth.
In my laptop I have blue-tooth inbuilt so I just have to press the button to turn it on and off and it worked pretty well when I was using Vista (it’s the OS which this laptop came with don’t have it anymore ;-) ). But after installing Mint I couldn’t make it work. I was so upset with that because to get some images from my phone I had to use the cable. I tried so many things such as installing the toshset package etc. and I wasted a lot of time(but its all worth it :-D ) doing those still no use blue-tooth is not working. I talked with the guys in the Mint IRC channel nope they didn’t have an answer too but for my amusement when I reboot from Vista it works and that made me thinking what the hell is wrong and I told the guys in the Mint IRC again about that but still they didn’t know may be they didn’t think in that way(that there is something wrong with the BIOS).
Then finally after searching a lot in ubuntu forums and all I found the answer :-D that is the Omnibook module(as i can remember Chathura told me about that but I’m not sure ;-) ). But yet again thats about Phoenix BIOS what is Phoenix BIOS?? I didn’t know but I have seen it somewhere but couldn’t remember where. So I didn’t install it. But on the next day when I turned on the laptop I saw it :-D the Phoenix logo #:-s finally I remembered where I have seen the logo then I installed it and now its working :-D
So now I’m gonna tell you guys how to do it:
So first and foremost you have to install the necessary dependencies those are
Code:
subversion
build-essential
linux-source
linux-headers-generic

To install those you have to use this command
Code:$ sudo apt-get install subversion build-essential linux-source linux-headers-generic

Then you have to create a folder in your home directory called as omnibook and use the svn to download the latest omnibook module source
Code:
$ cd ~
$ mkdir omnibook
$ cd omnibook
$ svn co https://omnibook.svn.sourceforge.net/svnroot/omnibook/omnibook/trunk

When downloading it done you have to go to the trunk folder
Code:
$ cd trunk

Now you have to build and install the module
Code:
$ make
$ sudo make install

And then load the module by giving the following command which will run the depmod and modprobe
Code:
$ sudo make load

Now you have to go to the /proc/omnibook which will exist now
Code:
$ cd /proc/omnibook
$ ls

Now in my case when I went to the /proc/omnibook I saw just
dmi
version
but if you have other files like wifi, bluetooth, lcd, temparature, touchpad, or others, then your machine is supported. But if dmi and version are the only files you have then your laptop is not supported, This becomes really interesting when it comes to Toshiba laptops but if the laptop you have is not Toshiba I’ll tell you the workaround later on but if your laptop is supported then,
You can enable blue-tooth by giving the following command
Code:
$ sudo su
# echo 1 > bluetooth

and you can disable blue-tooth by
Code:
$ sudo su
# echo 0 > bluetooth

Instead of using the root console to enable and disable this module you can use the “userser=1″ option this is how to do it:
Code:
$ sudo depmod -a
$ sudo modprobe omnibook userset=1

And now we reached the interesting part but before that I have to WARN you that is:

Warning! Force load in unsupported machines will may result in unpredictable results!!

so you have to be careful when doing this and also remember I have warned!! you :-) ok then here it goes :D
This is the place you have to encounter the “ectype” option( in my case it was ectype=12 and there are ectypes from 10 to 14 you can check those if your one doesn’t work with 12)
When you load the module you have to use the command given
Code:
$ sudo depmod -a
$ sudo modprobe omnibook ectype=12

and now you should be able to see the list of files in /proc/omnibook
blank
bluetooth
display
dmi
hotkeys
lcd
temperature
touchpad
version
wifi

but still if you can’t see these modules and you are using a Toshiba laptop just give me some more time ;-)

Now you have to make this module start on boot for that first make a file called omnibook.modprobe in /etc/modprobe.d/ and place the module options in it:
Code:
options omnibook ectype=12 userset=1

and then append “omnibook” to /etc/modules to load it at boot:
Code:
$ sudo su
# echo “omnibook” > /etc/modules

Ok then now we are done! thank you for waiting if you still can’t see the earlier list of files. This is was really disturbing for me too at the beginning but it’s something to do with the Toshiba laptops :-P to make the modules work you have to turn off the laptop for some time like 30mins or so( don’t ask me how it happens have no clue about it but it works :-D ).
Bye for now :-h

Note:
I got all this all this information form http://ubuntuforums.org/showthread.php?t=316358.

~~ Rusiru Boteju ~~

The first

Hello every one this is my first post on this blog. I have been blogging for some time but never blogged about technology (it was always poems :-D ) but after all we are dealing with the technology all the time, how to do this? how to do that? and also we do it in our own way (may be because we are dealing with the equipments we bought to our selves). Ok in this blog what I am gonna do is I’m gonna tell you guys about how i do things(basically :-D ) and mostly abut Linux (cos FOSS ROCKS!! :-P ). I am  using Linux Mint (ok i know that you are thinking “isn’t it ubuntu??” yes its already ubuntu but different) I like it because its easy to use and yeah as same as ubuntu but with extra functionalities such as additional software, look and feel etc. and also as its based on ubuntu you have excellent support. Ok that basically about wat i use ;-) anyway what i write will be mostly on those and also about programming languages etc. Ok i guess thats enough for now. Bye!

Follow

Get every new post delivered to your Inbox.