All 4 entries tagged Ubuntu

View all 21 entries tagged Ubuntu on Warwick Blogs | View entries tagged Ubuntu at Technorati | There are no images tagged Ubuntu on this blog

November 14, 2007

Glassfish on Ubuntu.. howto

EDIT: It has come to my attention that this starts glassfish with root privileges which wouldn’t be good if this wasn’t a test server! A alternative (and better method) can be found at link cheers Jasper.

One of my colleagues has a java based webpage that he is developing and we have been testing different hosting software… finally settling on Glassfish. I was searching the web for an easy howto and there doesn’t seem to be one so I have written my findings here.
  • Next you need to decide where you want to install it… Personally, I like programs to be installed into /usr/local/appname. So you will need to copy the install.jar to /usr/local (the jar will extract files into a glassfish folder).
  • Next you follow the steps on the webpage above… so basically…

sudo -s
java -Xmx256m -jar glassfish-installer-v2-b58g.jar
cd glassfish
chmod -R +x lib/ant/bin
lib/ant/bin/ant -f setup.xml

  • Next you can either start it with the command

/usr/local/glassfish/bin/asadmin start-domain domain1

  • Or better create a init.d file to start and stop it…

gedit /etc/init.d/glassfish

case ”$1” in
${GLASSFISHPATH}/asadmin start-domain domain1
${GLASSFISHPATH}/asadmin stop-domain domain1
${GLASSFISHPATH}/asadmin stop-domain domain1
${GLASSFISHPATH}/asadmin start-domain domain1
echo $”usage: $0 {start|stop|restart}”
exit 1

  • save and exit
  • chmod a+x /etc/init.d/glassfish
  • to have glassfish start during boot (and stop during halt)

ln -s /etc/init.d/glassfish /etc/rc1.d/K99glassfish
ln -s /etc/init.d/glassfish /etc/rc2.d/S99glassfish

Well, its not a great howto but then the install was pretty simple

June 15, 2007

CPU Scaling in Ubuntu

I noticed that the cpu scaling was a little slow (well programs were crashing before ubuntu increased the Mz) so tried to use the cpu-freq applet but they somehow the big wigs have decided that this is a bad idea! So to re-enable it use the command
“sudo chmod +s /usr/bin/cpufreq-selector”

June 07, 2007

Ubuntu 7.04 Install Problems

OK, so my laptop has been playing up recently (due to the age of the Ubuntu install and the number of times that it has been upgraded/changed/modified). So I decided to put the old HD in an do an fresh install. However, it seems that the new live disk is more demanding on system resources and I could no get it to install on my P3 850Mhz laptop. So I tried the alternate install and although text based it work a treat. Just took a little longer as there are a lot more chooses to be made. So no more graphical installs for me… we until I manage to save up enough money to get a shiny new laptop anyway.

April 27, 2007

Ubuntu Feisty Fawn – Initial opinions

So another Ubuntu has been released and so far my opinions have been OK. This release doesn’t feel a big change from edgy. Stability is has been quite good and the new artwork makes it appear more professional.
The upgrade on my laptop (Xubuntu) went flawlessly and even managed to fix Alsa which I had broke recently. It did however, break the 3D direct rendering of my Rage Mobility graphics card, but then this is only important for hardcore gaming and I wouldn’t attempt this with an 8Mb graphics card. Annoying but not worth trying to fix.
I did a complete re-install of my work desktop. I had broke the exchange back-end of evolution, screwed up the Apache install and free-nx was playing up so I decided to cut my losses and install from fresh. The first annoyance was that my graphics card has two outputs; a DVI and a VGA which I am running two LCD monitors off; didn’t work with the live CD. Unplugging the VGA had no effect but unplugging the DVI and it was fine (just meant crawling around under the desk). After this hitch the install went fine. Playing around with my desktop and the desktop effects is kinda cool. They are however very buggy. Windows don’t go back to where they came from on rotation of the cube and somehow have multiple desktop has got confused. Also Matlab (the program I generally use most) doesn’t display when the effect are turned on. This is probably down to some JAVA flaw but it means no fancy effects at work.
My home desktop has an ATI graphics card (booo!!!) instead of a nVidia so the desktop effect wont work without 3D acceleration and installing the drivers fixes this but breaks the composite extensions which the effects need so no wobbly window here either. Bummer!
E’s laptop upgrade (again Xubuntu) went flawlessly, the new version boots without a huge list of errors, the sound card finally works and the wireless card switch now works which means that if someone has turned it off I don’t have to boot into XP to turn it back on! Very well done here.
So, a lot of minor problems have been solved. ATI graphics cards are still a major headache as the main improvement has been the 3D desktop effect which are buggy (which is too be expected as they are still experimental) but as the ATI Linux drivers are so bad don’t allow you to use.

February 2023

Mo Tu We Th Fr Sa Su
Jan |  Today  |
      1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28               

Search this blog



Most recent comments

  • Thanks for the tutorial. It was very helpful. I made some improvements and additions and wrote about… by Jasper on this entry
  • Oh, and to check that your init.d script works you can just try: – sudo /etc/init.d/glassfish stop T… by on this entry
  • A quickway to find out if it was running would be to use your web browser and locate the home page w… by on this entry
  • Andrew, I worked it out. I did not have the JDK 6 installed (I only installed J2EE 5 w/o the JDK). B… by Chris on this entry
  • Andrew, A great article and right on time! I recently installed Glassfish v2 on Ubuntu 7.10 but when… by Chris on this entry

Blog archive

RSS2.0 Atom
Not signed in
Sign in

Powered by BlogBuilder