How to Install GlassFish on CentOS RedHat Fedora

March 9, 2010 · Leave a Comment
Filed under: Featured, GlassFish, JAVA, Karmic Koala, Ubuntu, WebServers 

How to Install GlassFish ESB on CentOS / Red Hat / Fedora

I did my installation on a CentOS 5.4 and I confirm all works, just follow
step-by-step.

Download JDK 6u12
# cd /usr
# wget http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/VerifyItem-Start/jdk-6u12-linux-i586.bin?BundledLineItemUUID=wFlIBe.lB8gAAAElzSEadwyv&OrderID=8fxIBe.lQPoAAAEluyEadwyv&ProductID=1O1IBe.pLl4AAAEerDlTv_an&FileName=/jdk-6u12-linux-i586.bin

Download GlassFish 2.1
# wget http://dlc-cdn.sun.com/jbi/binaries/glassfishesb/v2.1/promoted/rc2/glassfishesb-v2.1-full-installer-linux.sh

Check current Java Version
# java -version
java version “1.6.0″
OpenJDK Runtime Environment (build 1.6.0-b09)
OpenJDK Server VM (build 1.6.0-b09, mixed mode)
# chmod +x /usr/jdk*
# ./usr/jdk-6u12-linux-i586.bin
Accept License, and enter

Adjust path
#vim /etc/profile
#OPENMQ_HOME=/home/mcf/MessageQueue/mq
JAVA_HOME=/usr/jdk1.6.0_12
PATH=/usr/jdk1.6.0_12/bin:$PATH
CLASSPATH=$CLASSPATH:.:$JAVA_HOME:$JAVA_HOME/lib:$OPENMQ_HOME/lib/jms.jar:$OPENMQ_HOME/lib/fscontext.jar:$OPENMQ_HOME/lib/imq.jar:$OPENMQ_HOME/lib
#CARBON_HOME=/home/mcf/wso2greg-3.0.0

#export OPENMQ_HOME CARBON_HOME
export PATH CLASSPATH JAVA_HOME
:wq
You may need to logout and login then:
# java -version
java version “1.6.0_12″
Java(TM) SE Runtime Environment (build 1.6.0_12-b04)
Java HotSpot(TM) Server VM (build 11.2-b01, mixed mode)

Create user
# adduser esb
# passwd esb
# mkdir /usr/local/GlassFishESBv21
# mkdir /home/esb
# chown esb:root -R /usr/local/GlassFishESBv21
# mv /usr/glassfishesb-v2.1-full-installer-linux.sh /home/esb
# chown esb:root -R /home/esb/GlassFishESBv21
# chmod 755 -R /home/esb/GlassFishESBv21

Add it to sudoers just for now
# vim /etc/sudoers

esb ALL=GRANT(ALL) ALL




:wq

Login into the Gnome interface localy (via VNC wont work)
with the esb user execute from /home/esb
# sudo bash glassfishesb-v2.1-full-installer-linux.sh

On the install GUI
Set NetBeans IDE to:
/usr/local/GlassFishESBv21/netbeans
Set Install GlassFish to:
/usr/local/GlassFishESBv21/glassfish

Now lets configure the service to autostart
# cd /etc/rc.d/init.d
# vim glassfish

#Script to start/stop/restart GlassFish
# chkconfig: 35 20 80
# description: GlassFish ESB 2.1 Daemon
GFPATH=/usr/local/GlassFishESBv21/glassfish/bin
case “$1″ in
start)
${GFPATH}/asadmin start-database
${GFPATH}/asadmin start-domain domain1
;;
stop)
${GFPATH}/asadmin stop-database
${GFPATH}/asadmin stop-domain domain1
;;
restart)
${GFPATH}/asadmin stop-domain domain1
${GFPATH}/asadmin start-domain domain1
;;
*)
echo $”Usage: $0 {start|stop|restart}”
exit 1
esac

# chkconfig –add glassfish
# chkconfig –level 35 glassfish on
# service glassfish start

Once the service start it Should Display:

Starting database in the background.
Log redirected to /usr/local/GlassFishESBv21/glassfish/databases/derby.log.
Command start-database executed successfully.
Starting Domain domain1, please wait.
Default Log location is /usr/local/GlassFishESBv21/glassfish/domains/domain1/logs/server.log.
Redirecting output to /usr/local/GlassFishESBv21/glassfish/domains/domain1/logs/server.log
Domain domain1 is ready to receive client requests. Additional services are being started in background.
Domain [domain1] is running [Sun GlassFish Enterprise Server v2.1 (9.1.1) (build b60e-fcs)] with its configuration and logs at: [/usr/local/GlassFishESBv21/glassfish/domains].
Admin Console is available at [http://localhost:4848].
Use the same port [4848] for “asadmin” commands.
User web applications are available at these URLs:
[http://localhost:8080 https://localhost:8181 ].
Following web-contexts are available:
[/web1 /__wstx-services ].
Standard JMX Clients (like JConsole) can connect to JMXServiceURL:
[service:jmx:rmi:///jndi/rmi://SERVERESB:8686/jmxrmi] for domain management purposes.
Domain listens on at least following ports for connections:
[8080 8181 4848 3100 3820 3920 8686 ].
Domain does not support application server clusters and otherstandalone instances.

To login via web go to

http://<serverIP>:4848

Notes:
Remeber to open firewall for ports required
Check with ps if service is running
Reference to official documentation at:
https://open-esb.dev.java.net/

Minimal install of XBMC on Ubuntu Karmic Koala (9.10)

February 9, 2010 · 2 Comments
Filed under: Featured, Karmic Koala, Ubuntu 

Ok, so I have been building a media centre for about a week now, and I have had a lot of trouble getting it setup and working right, but now XBMC has released version 9.11 alpha 1 version of its popular media centre software which is now compatible with Ubuntu 9.10.

After all the trouble I had, I thought I would share with you how I installed it, and got XBMC to boot on load. I am using an ASUS AT3N7A-I with a 1.6 dual core atom processor and NVidia ION chipset, 2GB of ram and a 1TB hard drive. So I will only be showing you how to use the NVidia drivers for linux, but to be honest NVidia driver support for linux is better than ATI support.

First, download the minimal install of Ubuntu Karmic Koala (12.1mb x86 12.2mb x64)

Download either the x86 or x64 version dependent on your hardware.

Once the disk image has downloaded either burn it to CD or use UNetbootin to boot from a USB pen drive.

Reboot the computer you wish to install xbmc on, and boot from the CD or USB pen drive, you may need to change some settings in your bios to boot from CD or USB.

Start the installation, and follow the onscreen instructions to set your language and keyboard layout. Enter a username and password for your main account, for this I entered xbmc.

The installer will ask you what packages to install, scroll down to OpenSSH Server and press SPACE, then press ENTER to continue.

After the installation has completed, your computer will reboot.

When you get to the login screen, login with the username and password you entered.

Once you have logged in we need to add the PPA for XBMC.

sudo nano /etc/apt/sources.list

And these lines to the end.


deb http://ppa.launchpad.net/nvidia-vdpau/ppa/ubuntu karmic main
deb-src http://ppa.launchpad.net/nvidia-vdpau/ppa/ubuntu karmic main
deb http://ppa.launchpad.net/team-xbmc/karmic-ppa/ubuntu karmic main
deb-src http://ppa.launchpad.net/team-xbmc/karmic-ppa/ubuntu karmic main

We will need to add the a key to aptitude to stop it complaining.

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 64234534 40618B66 CEC06767 318C7509 91E7EE5E

Sometimes the key server will return this error:
gpg: keyserver timed out
gpg: keyserver receive failed: keyserver error

A trick I found was to ping the key server address, after it responded try and run the previous command again:

ping keyserver.ubuntu.com

Now we need to update aptitude.

sudo apt-get update

Now we will install the NVidia drivers:

sudo apt-get install nvidia-glx-190

You will need to enter your password again.

Next, we want sound for our media, so we will install some sound drivers.

sudo apt-get install linux-sound-base alsa-base alsa-utils

Your user needs to be added to the sound group.

sudo usermod -a -G audio xbmc

Change xbmc to the username that you entered.

The sound level will be set to zero, to change the volumes we need to enter the sound mixer.

sudo alsamixer

Use you up and down keys and set the volumes to the maximum they will go. Press the right key until you get to IEC958, EC958 D, EC958 1 and press M on each of them to un-mute them.

Press ESC to quit out of the mixer.

To make alsa save the volumes run.

sudo alsactl store 0

Now we can install XBMC.

sudo apt-get install xbmc xbmc-skin-* xbmc-eventclients-* xbmc-scripts-*

This will install xbmc, all the skins and eventclients.

Now X will need to know about your monitor, so run:

sudo nvidia-xconfig

XBMC will need to control power settings of the computer:

sudo apt-get install pm-utils policykit

And give your user access to these power features:

sudo polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.suspend
sudo polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.hibernate
sudo polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.reboot
sudo polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.shutdown
sudo polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.reboot-multiple-sessions
sudo polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.shutdown-multiple-sessions

Again you will have have to change –user xbmc to the username that you entered in the installation.

Now the last thing to do is make XBMC launch at startup.

sudo nano /etc/init/tty1.conf

Change the line

exec /sbin/getty 38400 tty1

To

exec /bin/login -f xbmc < /dev/tty1 > /dev/tty1 2>&1

Next we need to get Ubuntu to clear the screen and start X:

nano ~/.bash_profile

And add these lines to the file:

case "`tty`" in
/dev/tty1) clear && startx &>/dev/null;;
esac

Now we need to tell X to start XBMC:

nano ~/.xsessionrc

Add the lines:

exec xbmc --standalone

This next step is OPTIONAL, to hide all the information about what is being loaded, we shall install a usplash boot screen.

sudo apt-get install usplash libusplash-dev usplash-theme-xbmc-*

Once the splash screen installation has completed we need to select a splash screen:

sudo update-alternatives --config usplash-artwork.so

Enter the number of the splash screen you wish to use, find examples below:

Pulsating Logo
Spinner Black
Spinner Blue
XBMC Logo

All the previews where created by DU-Duke

Next set the screen resolution of your tv in the usplash settings:

sudo nano /etc/usplash.conf

And add these lines:

resx=1920
resy=1080

My TV is 1080p, so the settings above will suite yours if it is full HD, for 720p enter:

resx=1280
resy=720

To make the new splash screen active run:

sudo update-initramfs -u

Now reboot your computer:

sudo reboot

When the computer restarts, you should see the splash screen you selected, and XBMC should boot up.

Now, go into XBMC’s Videos settings and select VDPAU for the render mode (if your graphics card supports it) and edit the Sound settings:

Audio Output: Digital
AC3: Off
DTS: Off
Audio Capable Device: plughw:hdmi
Passthrough Output Device: hdmi
Downmix: On

And that’s it, you should have a fully functional media centre running the latest version of Ubuntu and XBMC.

As this is an alpha version, you will need to perform some updates now and again until the final release is out.

To so this, ssh into your computer and update it:

ssh xbmc@your media centre IP
sudo apt-get upgrade

Now I can’t take all the credit for this, I have collected some information from other sources and put them together from here:

http://xbmc.org/forum/showthread.php?t=53812
http://xbmc.org/forum/showthread.php?t=38804

Thanks to jonassw from XBMC forums, who suggested using the latest version of the NVidia drivers.

How to Install Mplayer and Multimedia Codecs (libdvdcss2,w32codecs,w64codecs) in Ubuntu 9.10 (Karmic)

MPlayer is a movie and animation player that supports a wide range of codecs and file formats, including MPEG 1/2/4,DivX 3/4/5, Windows Media 7/8/9, RealAudio/Video up to 9, Quicktime 5/6, and Vivo 1/2. It has many MX/SSE (2)/3Dnow(Ex) optimized native audio and video codecs, but allows using XAnim’s and RealPlayer’s binary codec plugins, and Win32 codec DLLs. It has basic VCD/DVD playback functionality, including DVD subtitles, but supports many text- based subtitle formats too. For video output, nearly every existing interface is supported. It’s also able to convert any supported files to raw/divx/mpeg4 AVI (pcm/mp3 audio), and even video grabbing from V4L devices.

Install Mplayer in Ubuntu 9.10 (Karmic)

You nned to make sure you have enabled universe,multiverse repositories

Now you need to run the following command to update the source list

sudo apt-get update

Install mplayer using the following command

sudo apt-get install mplayer

or

Click on the following link

apt://mplayer

If you want to open mplayer go to Applications—>Sound&Video—> Mplayer Movie Player

Install w32 video codecs and libdvdcss2 in Ubuntu 9.10 (Karmic)

Support for WMV, RealMedia and other formats has been bundled into the w32codecs package. This package is not available from the Ubuntu repositories due to licensing and legal restrictions.To play encrypted DVDs, the libdvdcss2 package is essential.

The following command adds Medibuntu’s repository to Ubuntu. It also adds Medibuntu’s GPG key to your keyring, which is needed to authenticate the Medibuntu packages.

sudo wget http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list  --output-document=/etc/apt/sources.list.d/medibuntu.list

sudo apt-get -q update

sudo apt-get --yes -q --allow-unauthenticated install medibuntu-keyring

sudo apt-get -q update

For i386 Users install Codecs using the following command

sudo apt-get install w32codecs libdvdcss2

For amd64 Users install Codecs using the following command

sudo apt-get install w64codecs libdvdcss2

Using above download locations you can install most of the mutimedia codecs for ubuntu.

Mplayer Plugin for Firefox

If you want to install Mplayer with plug-in for Mozilla Firefox run the following command

sudo apt-get install mozilla-mplayer

or click on the following link

apt://mozilla-mplayer

Things to do after installing Ubuntu9.10 Karmic Koala

December 30, 2009 · Leave a Comment
Filed under: Featured, Karmic Koala, Ubuntu 
Ubuntu 9.10 Karmic koala will be released in few hours,  after you install karmic or upgrading, you will need to add some softwares, repositories,  you can also make the look of karmic better by adding cairo dock menu for example. You can always add more themes , see this article : Great themes for Ubuntu9.10 Karmic koala Here are things i see are important to do after installing Ubuntu karmic Koala :

1- Add Medibuntu repositories :

Medibuntu is a packaging project dedicated to distributing software that cannot be included in Ubuntu for various reasons, related to geographical variations in legislation regarding intellectual property, security and other issues. by adding Medibuntu repostories you will be able to install many softwares like Google-Earth , opera ,Win32codecs , Msfonts  and more by the normal command :

sudo-apt-get install <software-name>

Click here and Follow the steps to add medibuntu repostories to ubuntu 9.10 karmic Koala in my previous post.

2- Install PlayOnLinux :

PlayOnLinux is a piece of sofware which allows you to easily install and use numerous games and softwares designed to run with Microsoft®’s Windows®.
You can install many windows games like callofduty, doom ,…. Msfonts ,Itune ,Microsoft office 2007 (see our howto install MS office 2007 using playonlinux)

You can install playonlinux from Ubuntu software center

Or by using the command :

sudo apt-get install playonlinux





3- Enchance launch-bar menu in karmic with cairo-dock :

Cairo-Dock is an animated application launch bar for the desktop, comparable to the dock in Mac OS X or Rocket Dock (for Windows).  It is compatible with Compiz, but it can also run without a composite manager . Cairo-Dock can run under GNOME, KDE and XFCE.


Open the terminal and copy and past the command bellow :

sudo -v
echo "deb http://repository.cairo-dock.org/ubuntu $(lsb_release -sc) cairo-dock ## Cairo-Dock-Stable" | sudo tee -a /etc/apt/sources.list 
wget -q http://repository.cairo-dock.org/cairo-dock.gpg -O- | sudo apt-key add -  

Update the installation :

sudo apt-get update  

Now install cairo-dock :

sudo apt-get install cairo-dock cairo-dock-plug-ins

4- Add screenlets to your Desktop :

Screenlets are small owner-drawn applications that can be described as “the virtual representation of things lying/standing around on your desk”. Sticknotes, clocks, rulers, … the possibilities are endless. The goal of the Screenlets base-classes is to simplify the creation of fully themeable mini-apps that each solve basic desktop-work-related needs and generally improve the usability and eye-candy of the modern composited Linux-desktop.

sudo apt-get install screenlets

Read more in our previous article

5- Ubuntu Gaming made easy with PlayDeb

If you are a fun of gaming so is important to add Playdeb repositories to your Karmic koala. Playdeb is a gaming repository for Ubuntu – aimed to provide titles already available on getdeb.net in an easier to install and update format. You can install many games by a simple click

Please see how to add playdeb.net repository in this link : Ubuntu Gaming made easy with PlayDeb

6- Important softwares you must have :

These softwares you can install from Ubuntu software center :

– Vlc : The best media player for Linux it play almast everything , he has many features that you can not find in any other media player , see this article to know more about vlc : Things you didn’t know VLC media player can do


-Vuze : the most popular Bitorrent client :

– Moovida Media center : Moovida is much more than a simple media player… it is a cutting edge media center bringing the best of the internet to your TV screen. Automatically creating your own digital library you can browse from your sofa with a remote control. The elegant and easy to use interface automatically displays artwork and fan art throughtout and gives you access to movie synopsis and artist info.

Install Thunderbird:  the best mail / News client from Mozilla :

– Filezilla the best ftp client for linux :

Pidgin the best messenger client and 30 plugins, you can enjoy chat with freinds using voice and cam :


Openshot video editor : Openshot is a video editor for linux, is one of the best ones existing actually for linux. The news is that now has a PPA this mean easy install for Ubuntu users, but the big news is that the new version come with 30 new effects. See the video demonstration what you can do with Openshot : Install openshot on karmic koala

10 Essential Applications For Ubuntu 9.10 Karmic Koala… | Crazy

December 2, 2009 · 1 Comment
Filed under: Featured, Karmic Koala, Ubuntu 

10 Essential Applications For Ubuntu 9.10 Karmic Koala… – Just another useless weblog!


Crazy Crispy’s Blog – http://blog.crispytown.com/

[How To] Ubuntu 9.10 'Karmic Koala' Libgtk1.2 – Aimbots.net

December 1, 2009 · Leave a Comment
Filed under: Featured, Karmic Koala, Ubuntu 

Originally posted here! ___ Hai, Ever since Ubuntu’s (+all of it’s variants) latest version, 9.10 ‘Karmic Koala‘, was released people seem to be.


Aimbots.net – http://aimbots.net/

How to connect VPN via PPTP with Ubuntu

November 28, 2009 · 1 Comment
Filed under: Featured, Karmic Koala, Ubuntu 

First, I had to install PPTP for NetworkManager

sudo apt-get install network-manager-pptp

Now, we can do setting PPTP VPN.

Just enter gateway, username and password your PPTP VPN will be now ready to work.

But for me, I want to go out to normal internet with my internet router not to go through my office network. I have to do something a bit.

In editing vpn, click on tab IPv4 setting -> Routes.

Enter ip(s) that want to use vpn and netmark.

You can leave another 2 columns, gateway and metric blank.

Thick in box “Use this connection only for resources on its network”

done.

Credit : VPN – Ubuntu Wiki, Howto configure PPTP VPN in Ubuntu Intrepid and Jaunty

Dual Panel Nautilus For Ubuntu Karmic Koala

November 21, 2009 · Leave a Comment
Filed under: Featured, Karmic Koala, Ubuntu 
The dual panel Nautilus which previously was only available for Ubuntu Jaunty is now available for Ubuntu Karmic Koala. Thanks to the author’s comment, I kept checking to see when Karmic packages were finally available and it didn’t took long until he finally build them.
dual panel nautilus ubuntu karmic
Download dual panel Nautilus for Karmic:

-i386:
libnautilus-extension1_2.28.1-0ubuntu3~hb1~karmic1_i386.deb (59.3 KiB)
nautilus-data_2.28.1-0ubuntu3~hb1~karmic1_all.deb (4.4 MiB)
nautilus_2.28.1-0ubuntu3~hb1~karmic1_i386.deb (1.1 MiB)

-amd64:
libnautilus-extension1_2.28.1-0ubuntu3~hb1~karmic1_amd64.deb (60.4 KiB)
nautilus-data_2.28.1-0ubuntu3~hb1~karmic1_all.deb (4.4 MiB)
nautilus_2.28.1-0ubuntu3~hb1~karmic1_amd64.deb (1.2 MiB)

You can add the PPA instead of just downloading the files, if you wish. You will also find Jaunty packages in the PPA.

Once you install it, restart Nautilus:

killall nautilus && nautilus &

Then press F3 to open the second panel in Nautilus or via the menu.

If you want to start Nautilus by default in dual-panel mode, press Alt + F2, type:

gconf-editor

then navigate to apps/nautilus/preferences and enable the option called start_with_extra_pane.

starting udev hangs openSUSE

November 13, 2009 · 1 Comment
Filed under: Debian, Featured, Karmic Koala, Kernal, Linux, OpenSUSE, RedHat Linux, Ubuntu 

So I am trying to install opensuse 11.2 on my laptop. I know it is not the DVD because I used it to install on my desktop, which worked just fine. When I am initialing booting to the installer of 11.2 start udev hangs. Eventually it gets past it and recommends using broken_modules. The installation will continue up to the partitioning of ext4 then it just dies. An installation error has occured or something of that nature. Might have something to do with this? -> Doesnt support DPO or LUA – openSUSE Forums

I have not tried a text install, nor do I know how. And I was using Live KDE cds before 11.2 came out. And the last two KDE 4.3.2 & 4.3.3 didnt work due to the error that I linked to. So I doubt the live cd would help.

You could also try typing these in the boot argument (any combination, one or all of them)

edd=off acpi=off noapic

Ubuntu 9.10 (Karmic Koala): Popping Audio Fix

November 9, 2009 · Leave a Comment
Filed under: Featured, Karmic Koala, Ubuntu 

It is not much of a secret that the launch of Ubuntu 9.10 aka Karmic Koala has not gone quite as smoothly as Canonical Ltd would have hoped, however developments are slowly being made which are beginning to help rectify some of the most annoying issues associated with the release.

Following all of the responses regarding my previous ‘Ubuntu 9.10 (Karmic Koala): Are You Experiencing Problems?‘ article I thought I would scour the web for fixes that may help out some of our readers.

The first fix I have found relates to a popping noise which is experienced with some Intel HDA (high-definition) audio chipsets, this fix was originally posted on YouTube by a user called “shmalignant“, the fix is pretty simple, rather than explain it myself I have embedded the video below, heres the direct link to the video.

I must just add that although there are no likely problems associated with this fix, if you choose to attempt the fix it is at your own risk (editing this particular .conf file shouldn’t cause problems.

Did this fix work for you?

Next Page »