Red Hat have recently introduced zero cost developer subscriptions for RHEL, and before that for JBoss as well. In this article we will install Red Hat JBoss developer studio on Ubuntu. We wont go trough process of creating Red Hat account that is needed for getting free subscriptions, and there is two reasons for that. First, it is simple, so no need for guide. Second, I created my Red Hat account years ago and cant create another one for purpose of this tutorial. So we just assume that you have Red Hat account.
Installing and setting up Red Hat JBoss Developer Studio
First dependency is off course Java.
sudo apt install openjdk-8-jdk libwebkitgtk-3.0
Go to Red Hat download site or download installer with EAP (that is Enterprise Application Platform).
Open your download dir and open terminal there. Type like this:
miki@miki-VirtualBox:~/Downloads$ java -jar devstudio-*
This will start the graphical install
When it finishes, you should be greeted with Red Hat Central
In the search bar, type helloworld and select the first link as shown:
The window will show up, you need to click finish. It will download dependencies
When this is over, also click finish. Next we start the Application Server. We go to servers tab in bottom of the workspace, and there we find stopped server.
We click the green run icon to start it. When console stop throwing out messages server is started and we need to run our application. In the project explorer (left pane by default) right click the HelloWorld application and chose Run as and then Run on Server. Click finish and wait a few seconds, then you will get browser in central pane asking you to chose between JSON and XML. Chose XML and you should get Hello World! That means set up is successful and Developer Studio is ready to for development.
Connecting the Studio with OpenShift
Lets say you are developing really big application for really big servers, and you don't want it to hog all the resources of your little laptop. Then you would want to test your application on some cloud platform, say Red Hat OpenShift. Again, we assume that you have Red Hat login.
First lets install dependencies
sudo apt-get install ruby-full rubygems git-core
sudo gem install rhc
Next in Red Hat JBoss Developer studio on Red Hat central pane chose "OpenShift Application" button.
On this window we need sign up here button which will close the window (we need to open it again latter) and give you Red Hat login screen. Type your credentials, chose Free Plan for OpenShift and complete the registration process. After that, fire up a terminal, type rhc setup and work the prompt as follows (the .... are skipped output for clarity, user input is bold and ## is my comment where you need to hit enter)
Enter the server hostname: |openshift.redhat.com| ##just hit enter
Login to openshift.redhat.com:email@example.com
Generate a token now? (yes|no) yes
Your public SSH key must be uploaded to the OpenShift server to access code.
Upload now? (yes|no)
keys (type: ssh-rsa)
yourhost (type: ssh-rsa)
Provide a name for this key: |nameforyourkey| ## hit enter
Back to Red Hat Central
After finishing this we go back to Red Hat Central and open New OpenShift Application window again (last pic from above)
We need to use all default like the pic, except enter user name and password we created. When we click next, we get prompted to pick existed or new application. We chose new and in Basic Cartridges I will choose JBoss Unified Push Server
Next we need to create domain, name and gear. I did it like this
When you set that you can click Finish
It should give you how and where to login to your new application, like this:
Lets head there and see if we can access our push server
It will ask you change password, and then:
From here on, you can delete this and put some other cartridge, say WildFly. I know that I will dig into this push notifications. Red Hat products bundled with support usually cost pretty penny, and when they offer something for free to developers, it would be crazy not to use it. After years of avoiding Eclipse like a plague, I finally switched to Eclipse-based IDE because Red Hat have made it usable. This guide shown you how to get started with Red Hat JBoss Developer Studio and OpenShift. Thank you for reading.
You might also like
Filed Under : LINUX HOWTO