Thursday, November 19, 2009

Installing Tomcat On 64 bit Linux

So am doing one project where I have to work on exposing spring bean as soap webservice, json, restful webservice and as ejb.

As tomcat being easy and free server to host, I went down to install it and run my project using tomcat.

I will put spring beans and other stuff later. I would start with the installation of the tomcat software on my ubuntu sorry kubuntu linux 64bit.

1. Get the tomcat binaries from tomcat download site.

2. Get the 64bit jdk from sun's java site. make sure you are downloading 64 bit version of the jdk. For tomcat you just need jre, but I am using jdk (it contains jre), the reason being I would be using the same to configure eclipse to use this jdk.

3. Make the jdk-6u17-linux-x64.bin executable. Depending on the release, the file name would be different.

chmod 755 jdk-6u17-linux-x64.bin
./jdk-6u17-linux-x64.bin


4. This will create the jdk folder and the required jar files.

5. Move the jdk folder to /opt folder. I prefer to do this as I keep all my installed software in /opt.

sudo mv jdk1.6.0_17 /opt

6. Now similarly extract the tomcat folder and put it in the /opt directory.

7. Now create a group named tomcat.

sudo groupadd tomcat

8. Now create a user named tomcat

sudo useradd -g tomcat -s /usr/sbin/nologin -m -d /home/tomcat tomcat

note that this user cannot login into a a shell, this is for security reasons. So no one can hack into and login into the system using tomcat id.

9. Now change the ownership of tomcat directory in /opt to tomcat.

sudo chown tomcat:tomcat -R tomcat.6.0.20

10. Now add yourself to the tomcat group, (required if you want to put the files in tomcat directory by copying, pasting)

usermod -G -a tomcat username

11. Now log out and login.

12. Browse to tomcat/bin directory. Open the setclasspath.sh file in your favorite text editor.

add variable following variables just under CLASSPATH = line.

JAVA_HOME=/opt/jdk1.6.0_17
JRE_HOME=${JAVA_HOME}/jre

Save the file.

13. Now run the command ./startup.sh. Your tomcat should be up and running. If not refer to the logs file under tomcat/logs directory for debugging.

to check if tomcat is up and running, open firefox or your favorite browser and go to url. http://localhost:8080/.

And you are all set now...

Hope this helps...

Tuesday, November 17, 2009

Silence GTK Sound In KDE4

I switched to kde4 as like its sleek modern looking UI. However, I was not able to move or find alternate for firefox.

Every now and then firefox alert used to give this annoying bell like sound, it is really frustrating. I found a solution for this annoyance.

Open up ~/.gtkrc or ~/.gtkrc-kde4 in your favourite editor. Add the following two lines to the file.

gtk-enable-event-sounds= 0
gtk-error-bell=0

Now log out and login. And you are all set.. the annoying sound is gone.

Friday, August 28, 2009

Ubuntu 9.10's New X Based Boot Splash

Looks very neat... waiting for betas to come out... so that I can upgrade to karmic...

Ubuntu 9.10's New X Based Boot Splash: "Softpedia: 'Dear Ubuntu fans, we are proud to announce that, as of this morning, Canonical added a brand-new X-based boot splash, which will be present in the upcoming Ubuntu 9.10 (Karmic Koala) operating system, due for release on October 29th'"

Thursday, August 27, 2009

Microsoft's New Tollgate: exFAT on Flash Media

Not good news going forward... why not use a open source file system for all the gadgets which are going to use SD card???

Microsoft's New Tollgate: exFAT on Flash Media: "Linux Today Blog: 'What is exFAT and why should you care? Because the SD Card Association made exFAT the standard file system for the new SDXC cards, and because exFAT is a Microsoft filesystem that claims to be like so totally interoperable, but it isn't.'"

Ariya Hidayat: Nokia N900: Linux-based mobile phone

Am thinking of buying one of these when it comes...

Ariya Hidayat: Nokia N900: Linux-based mobile phone: "

Finally it's out. N900 is the first Linux-based 3G/HSPA phone from Nokia, powered by Maemo. There are already some high-quality awesome pictures of the phone, or just enjoy the following taken by my countryman who is working for Maemo. Or watch its 75-second promo video clip. Price is not set yet, but seems to be in the EUR 500 range. The geek side of you might want to glance at the specifications (and mark that OpenGL ES 2.0!).




"

Tuesday, August 25, 2009

fix ati screen reset issue.

I have one of this 780g chipset htpc with ubuntu running on it. the issue I faced with latest ati driver was that resolution of the system used to go to 1080p every time I rebooted my machine. My computer is connected to a 720p TV so this made the reading of content a tad too difficult from the sofa. So I searched on the net for some time and found this awesome thread which saved my eyes the pain of squeaking...

http://ubuntuforums.org/showthread.php?t=1226887

To summarise, you need to do the following...

Click System --> Perference --> Display... click "NO" ... now change the resolution to what you would like in my case 720p and that's it you are all set...

Upgrading to XBMC (XBox Media Center) 9.04.1 in Ubuntu is Easy

Upgrading to XBMC (XBox Media Center) 9.04.1 in Ubuntu is Easy: "Ubuntu Manual: 'XBMC is an award winning free and open source software for Linux, Windows, Mac OS X, and XBox. Not so familiar with this popular application, here is a quick preview on what all XBMC Media Center can do for you.'"

Saturday, August 22, 2009

Set Up Space-Saving, Permanent Gmail and Reader Tabs in Firefox [Customization]

Set Up Space-Saving, Permanent Gmail and Reader Tabs in Firefox [Customization]: "Ed. note: Reader Harsha Kotcherlakota wrote in to our tips box with a very detailed, very cool guide to how he uses a few Firefox extensions we've featured to create dedicated,..."


found this really awesome way to make firefox space saving and time saving... firefox is my most preferred browser... with the extension capability it is rocking...

Tuesday, June 2, 2009

Use Thunderbird to sync google account

I use google as my primary account for mails, contact, calendar. It used to be yahoo but with google coming with host of features and good syncing capability I decided to make it primary. I have one yahoo account but I do not check/use it frequently any longer.

So, here you go on how to sync your mails, contacts and calendar. You can use many applications but I use thunderbird and so have selected it as an example.

1. Email... head to this link and configure imap in thunderbird.
2. Calendar.... for calendar install the lightning extension of thunder as given here. Now configure calendar as given here.
3. Google Contacts... for contacts in the address book refer to this link to sync your google contacts with thunderbird.

And thats it you are all set to now sync your google account with thunderbird... hope you have sucess too...

I am trying to sync orkutbirthdays with thunderbird via google calendar but no luck so far... will keep you posted....

Force Skype to use qt4 theme

I use skype for chatting and online talk with my friends and family back home. However, every time I use skype I hate that even though it is a qt4 app (now), it still does not honour my kde settings.

So, I did some research (read googling) and found out the following way would easily solve the problem.

When starting skype, just use the switch "--disable-cleanlook" and it should pick up the theme which is selected in the kde4 settings. Or if you want to use a particular style then you can pass the theme name as "--style .

skype --disable-cleanlooks

Hope it helps some one... enjoi...

Friday, May 22, 2009

How to Install Sopcast Player Linux

Seems google codes are creating lot of new things for linux. A new addition to this is the sopcast player.

So, here is the easy step to install sopcast player.

1. Head down to this site.
2. Click on downloads.
3. Select the package rpm or deb or simple .gz file.
4. Install it and enjoy...

If you are getting error related to library file just put a comment and will tell you which one to install.

Now just start it and enjoi the world of sopcast.

It is heartening to see so many apps now coming for linux.

Thursday, May 21, 2009

At last desktop effects on my asus m51ta-x2... yoo... hoo....

Seems the latest git for ati open source driver has the dri (direct rendering infrastructure) working. So, after installing the drivers from the source I was able to enabled desktop effects in my kde4. Yup sweetness of success atlast... so here are the steps to enable it...

Open your favorite command line too (konsole, terminal, xterm etc)

sudo apt-get install build-essential autoconf automake libtool pkg-config git-core

sudo apt-get install libdrm-dev x11proto-gl-dev mesa-common-dev xutils-dev x11proto-xf86dri-dev x11proto-fonts-dev x11proto-randr-dev x11proto-video-dev x11proto-xext-dev x11proto-xinerama-dev x11proto-render-dev xserver-xorg-dev

git clone git://anongit.freedesktop.org/xorg/driver/xf86-video-ati

cd xf86-video-ati

./autogen.sh --prefix=/usr --enable-dri

make

sudo make install

Now reboot your computer. I thought restarting kdm should have worked, but it seems the driver files are not getting loaded.

Open your system settings and go to desktop effects. Click enable, but before you press apply go to advanced and change the rendering to xrenderer. Now click apply and there you go.. linux eye kandy the way you want :-D....

some changes are done from the steps given here. All credit goes to the post in the link and to open source ati developers... hats off to you guys...

Tuesday, April 7, 2009

still stuck with ms office???

check out this link which gives alternate to ms office, i have tried most of them and most are able to replace all the functionality which you would be dong with ms office.

here is the link...

Monday, April 6, 2009

How To Install TVUPlayer On LINUX

I have installed latest version of TVU player on ubuntu jaunty. I am sure lot of people will like it as I know it is one of the program which is there on windows and there is no linux alternate.

So, here are the steps.

1. Go to the wine-doors site and download the latest version of wine doors. For ubuntu I downloaded the .deb file. You can install some other version based on your distro.

2. Now, once download is over, install the .deb file.

3. It will come as a menu in wine, click on wine-doors or from terminal you can run wine-doors command

4. When it starts for the first time give your information and make sure you check "I have a valid windows license". I have one on the same machine.

5. Now, wine doors will download package list.

6. Select the packages IE6, windows media player 9, msxml4, visual basic runtime 6, visual c++ runtime 6.

7. Wine doors will download the packages and install them.

8. Once packages are installed download the latest version of TVUplaer 2.4.1 from TVU site.

9. Install TVU Player.

10. Start TVU player. Select the channel you want.

11. Run your favourite media player and open url http://localhost:8901/

and enjoi...

Thursday, April 2, 2009

Everything working on the new asus..

Atlast I have everything working on the new asus laptop... was challenge... but it seems the new jaunty release of favorite distro ubuntu has everything working except for sound.... so the following things are working out of the box...

1. boot without any acpi=off in the boot option.
2. wireless
3. lan
4. graphics card not sure which one is in use though, there is no 3d acceleration so no compiz as of now... this is due to merging of the latest open source ati drivers using radeonhd rather than using fglrx.
5. usb driver..
6. web cam... skyp is showing the web cam... some mic problem there but i have never got mic to work on first go.. :-)
7. bluetooth... the internal blueotth works without any issue.

not working
1. sound not working but was able to get it resolved by following instructions here..
2. no compiz...
3. very loud fan... and temperature remains in upper 60s..

so if you are having trouble with your asus with intrepid, then get hold of jaunty ... it is still in beta but it is quite matured by now... and stable too...

Friday, March 27, 2009

Sucess Atlast...

Today the jaunty beta as released or may be yesterday... I downloaded the desktop cd... no go.. :-(... then downloaded the alternate cd...

and installed the OS... now here is the key for it...

1. install the os from alternate.. you may have to include acpi=off in the boot option of the alternate cd.
2. after install, it will give blank screen and will not work...
3. reboot, go to recovery option and select fix x...
4. now, continue normal boot...
5. enjoi... your login screen will come up and you are all set...

some issues i have found so far...

1 compiz not working... looking at how to fix that... some how it is not using properietary driver.. have to look at that... will update once i have more issues or some other updates...

Installing Linux On ASUS ...

As I had expected based on the forums and other places I have read that there would be issue in installing linux on this baby...

The laptop looks pretty good, not stylish or as designer as the laptops like dell studio or hp hdx or lenovo ideapad... but for lesser dough you cannot get them with this config...

Anyways that is beside the point... come back to the moot point...

I tried installing alpha of jaunty, intrepid with acpi=off and noapic as per some thread but no go on that... would get stuck on some step or the other on booting itself... never came to see gdm login... so thought would try fedora instead... fedora 10.1 installed without any issue with acpi=off... but then there were some update and everything went bonkers... so now I am stuck with vista... I wanted vista to play games...

now I am waiting for the new version of jaunty to come may be beta and I will give another try to it to see if it works... if it works then custom compile the kernel to get acpi on and then if there are any other updates then I will keep updating this blog...


I am waiting for

Thursday, March 26, 2009

asus M51TA-X2 and kubuntu...

I am getting this new laptop ... well here is the config... I specifically bought this as it does not support linux, so would be fun installing and playing with it to make linux work :-)...

Model
Brand ASUS
Series M51 Series
Model M51TA-X2
General
Operating System Windows Vista Home Premium
CPU Type AMD Turion X2 Ultra ZM-82 2.2G
Screen 15.4" WXGA+
Memory Size 4GB DDR2
Hard Disk 250GB
Optical Drive DVD Super Multi
Graphics Card ATI Mobility Radeon HD 3650
Video Memory 512MB
Card slot 1 x Express Card
Other Features 30days Zero Bright Dot LCD
CPU
CPU Type AMD Turion X2 Ultra
CPU Speed ZM-82(2.20GHz)
CPU L2 Cache 2MB
Display
Screen Size 15.4"
Wide Screen Support Yes
Display Type Wide XGA+
Resolution 1440 x 900
Operating Systems
Operating System Windows Vista Home Premium
Graphics
GPU/VPU ATI Mobility Radeon HD 3650
Video Memory Dedicated 512MB
Graphic Type Dedicated Card
Hard Drive
HDD 250GB
HD RPM 5400rpm
Memory
Memory 4GB
Optical Drive
Optical Drive Type DVD Super Multi
Optical Drive Interface Integrated
Communications
WLAN 802.11n Wireless LAN
Bluetooth Yes
Ports
Card Slot 1 x Express Card
USB 4
IEEE 1394 1
Video Port 1 x VGA, 1 x HDMI
Other port 1 x E-SATA
Audio Ports 1 x Microphone-in jack
1 x Headphone-out jack (S/PDIF)
Audio
Audio Integrated Sound card
Speaker Internal Speakers
Input Device
Touchpad Yes
Keyboard Standard
Supplemental Drive
Card Reader MMC, SD, MS/PRO
Webcam 1.3MP
Power
Battery 6-cell lithium ion
Manufacturer Warranty
Accidental Damage Warranty 1 year ASUS Accidental Damage Warranty - Drops, Fire, Spill, Surge for purchase after 9/10/07
Parts 2 years limited
Labor 2 years limited