Monday, May 6, 2013

Siently add a management user in JBoss EAP6/AS7

Adding a management user is required and simple to doin EAP6.  AS7 is the same even though its a dead branch.

If you need to add the user silently simply add the "--silent=true" flag to the command :


jboss-eap-6.0/bin/add-user.sh --silent=true <username> <password> [ManagementRealm]

Thursday, March 28, 2013

bash: javaws: command not found...

I'm currently running Fedora 17.  I got the following error starting up a .jnlp file for a web conference :


bash: javaws: command not found...


I checked alternatives, but there was no javaws. A quick yum install solved it :

sudo yum install icedtea-web

Friday, March 15, 2013

Fedora, docking stations and external monitors

I am running Fedora 17 and using a docking station with an external monitor.  Beefy Miracle does not play well in this scenario; apparently Fedora 18, Spherical Cow, doesn't either.

I found the answer on the blog "Note to Self", http://note-to-self.baker.com/This blog post has a solution for 17, and this post has one for 18.

Tuesday, December 18, 2012

find and mv files in bash

I thought I would document this shell command for posterity's sake.  My bash skills are sketchy so I will need to look it up again.

I downloaded a few zip files this morning and needed to move them to a new directory.  Moving them to a new directory from the command line was trivial:


for i in $(find . -type f -newermt 2012-12-18); do cp $i /[NEW DIRECTORY PATH/; done;

Monday, December 10, 2012

You have already activated torquebox...

Working with TorqueBox this afternoon I got the following error just after creating a new application :

You have already activated torquebox-core 2.1.2, but your Gemfile requires torquebox-core 2.0.3.redhat.1. Using bundle exec may solve this.

A quick check inside my .rvm/gems/jruby-1.6.7.2@appname/ folder showed that I had two versions of torquebox installed :



I deleted the incorrect version, 2.1.1.  Everything was fine.

Tuesday, August 14, 2012

Fedora fonts and infinality.net

I use Fedora, and I really like Gnome 3.  Gnome-shell is extremely productive.  However, Fedora is not known for the beauty of its' fonts.

A colleague suggested that I install the infinality fonts from infinality.net
 .

Run :
sudo yum install fontconfig-infinality
sudo yum install freetype-infinality

Fedora looks great.

Be  careful though : it deleted a lot of my preferences.

Tuesday, July 3, 2012

rvm requirements

I recently upgraded to Fedora 17, Beefy Miracle.  The first time I used rvm to install a gem I got the following :

ERROR:  Loading command: install (LoadError)
    no such file to load -- zlib
ERROR:  While executing gem ... (NameError)
    uninitialized constant Gem::Commands::InstallCommand

I ran :

rvm notes

and

rvm requirements

And installed everything listed as a requirement for Fedora 17. That still didn't do the trick. I reinstalled 1.9.2 with :

rvm install 1.9.2

And finally :

sudo yum install -y gcc ruby-devel libxml2 libxml2-devel libxslt libxslt-devel1.9.2

Finally!

The moral of the story is :
  • run rvm requirements 
  • check the error logs if there are any (the location is the last line of the output)