Category Archives: Geek Stuff

I need a web site

All to common of a conversation.

Nasty Bug – Ubuntu 10.04 on VMWare Fusion OSX

Came across a nasty little bug when I installed the latest Ubuntu 10.04 (LTS) into a virtual machine using VMWare Fusion 3.02 on my OSX box. This was a fresh install and the install itself went smooth, the problem occured when the initial login screen appeared. Although my mouse worked just fine and I was able to click on the user to log in, I wasn’t able to type anything. My keyboard was completely unusable within the virtual machine. I was not able to type any input via the keyboard.

After doing some Googling I discovered that once you got past the login screen the keyboard would work fine. The only way to login was to initiate the on-screen keyboard and type in your password. You can bring up the on-screen keyboard by clicking on the Universal Access icon on the lower right hand side of the screen and choosing “Use on-screen keyboard”. One side note here, when I first checked the box to use the on-screen keyboard, the keyboard would flash and disappear. What I needed to do was keep the box check and reboot the machine, when the login screen returned, the keyboard was there.

Once I logged in the physical keyboard worked fine. I was able to use it in all the applications and didn’t notice any problems, but once I logged out and returned to the login screen, again no input from the physical keyboard. Now I needed to fix this.

What didn’t work :-(

At this point I go into basic trouble resolution mode and decided to start by reinstalling and upgrading the VMWare tools. Not going to get into a step by step here how to do that but the short of it is after reinstalling the VMWare tools and rebooting I was stuck in the same situation and needed to use the on-screen keyboard to log in. Next obvious step, apply all patches to the Ubuntu desktop, did this, rebooted, still no go.

What did work :-)

Clearly, you are not reading this article to learn how not to fix it. Trust me after doing enough searches there are plenty discussion threads out there with “This doesn’t work for me either, anyone fix this yet?” to keep you reading for hours. I found a couple good links that I will post at the end of this article that got things resolved. The short answer is I logged into the machine, fired up and console window, type in the command

sudo dpkg-reconfigure console-setup

For keyboard I selected “Apple” and then just selected the defaults for everything else. Once I exited the configuration wizard, I restarted the machine and all was right with the Ubuntu world again. Did a couple reboots to make sure and everything seems to be working fine now.

One more side note

This issue  occurred on a clean install of the current Ubuntu 10.04 LTS release. I had been previously running the beta version of the 10.04 release which worked fine and never had a problem with the keyboard input. However, after patching that box today, same issue occurred.

The Links

Two links basically lead me to my resolution

[Nagios] Error: Could not stat() command file ‘/var/lib/nagios3/rw/nagios.cmd’!

System: Ubuntu 9.10 | Nagios 3.x

This is another post that is more of a note to myself than anything else. Been doing a lot of Nagios configuring and decided to implement the ability to push commands from the web interface. I followed the basic instructions to configure “External Commands” but after doing and going to the web interface to test it, I got the following error message;

Error: Could not stat() command file ‘/var/lib/nagios3/rw/nagios.cmd’!

The external command file may be missing, Nagios may not be running, and/or Nagios may not be checking external commands. An error occurred while attempting to commit your command for processing.

The file was there so I did what any good geek should do, I did a quick google search. The closet thing I could find was some commands to fix the issue on Debian systems. Since I was running Ubuntu, which is for all intensive purposes Debian, I figured I would try it.  So I ran the following set of command;

sudo /etc/init.d/nagios3 stop
sudo dpkg-statoverride –update –add nagios www-data 2710 /var/lib/nagios3/rw
sudo dpkg-statoverride –update –add nagios nagios 751 /var/lib/nagios3
sudo /etc/init.d/nagios3 start

This worked like a charm and the web interface began accepting commands.

Sony Electronics Creates Open Source Development Community

Last week Sony open the doors to a new web site, as well as a new approach for the organization, called Sony DeveloperSony Developer is meant to become a hub for Open Source development efforts for Sony Electronic products.

Currently, Sony has enabled the community for “SNAP” which is an application framework for consumer electronic devices. From the SNAP site;

“SNAP stands for Sony’s Networked Application Platform and is part of an emerging new ecosystem for making downloadable applications available to networked devices like TV’s, Blu-ray Disk players and other Consumer Electronic products. SNAP is in the very early stages of development and has a lot of room to grow”

This will open an avenue that will allow developers to get their applications onto SNAP enabled devices such as televisions. SNAP is based on the GNUstep community, whose origin dates back to the OpenStep standard developed by NeXT Computer Inc (now Apple Computer Inc.) which also implements the extensions added by Apple in the form of Cocoa. The main language on GNUstep for SNAP is ObjectiveC and the SNAP development web site points a lot of great resources on ObjectC from beginners guide to optimization.

Sony offers a guides and a SDK for download to start with your development efforts. It’s mentioned on the SNAP web site that some good examples of applications would be “Games, Widgets (weather, news, traffic, etc), remote controls, social apps, media sharing apps, media players, home automation”. Also according to the web site Sony will be hosting contest in the future for SNAP developers with prizes ranging from Sony televisions to Sony Walkman.

Another section of the Sony Developer Web site will be the dash section, which is currently unavailable but from what I’ve heard should be opened in the coming weeks. dash is the Sony new Personal Internet Viewer. Developed with Flex, Sony is hoping to encourage and foster application developed on the dash product.

‘report_activate_error’: RubyGem version error

So from time to time I will post small things to my blog that I just want to keep track of or remember how I did something. This is one of those post. I should prefix this post to anyone who happens to come across it and read it, I am by no means a “Rails Developer” and as a matter of fact, I ran into this problem working through a “How to” books.

The issue

I am running OSX 10.6.2 and although I had Ruby on Rails working on it at one time, some how, some where it broke. Now there is nothing more frustrating to a n00b who is trying to work through a tutorial on how to learn a new programming language and not being able to get past the first chapter because something about the base install of the programming language that you don’t know anything about and you’re trying to learn, wont work.

The Actual Error

When I try to create my first controller this is what happens

ruby script/generate controller main welcome

And this is what the system kicked out to me

/Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/initializer.rb:271:in `require_frameworks’: RubyGem version error: rack(1.0.0 not ~> 1.0.1) (RuntimeError)

from /Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/initializer.rb:134:in `process’

from /Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `send’

from /Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `run’

from /Users/eric/Dropbox/Code/Rails/r4music1/config/environment.rb:9

from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require’

from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require’

from /Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/commands/generate.rb:1

from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require’

from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require’

from script/generate:3

Sidebar
Naturally, the first thing I do is start hitting Google and start clicking on links. A lot of similar issues with a wide variety of solutions. From just doing a simple ‘sudo gem update’, to making sure rake is installed, to making sure you have the correct rake version installed. None of which worked for me. Finally, I stumbled onto Wojno’ Site and following the steps in his post I manage to resolve my problem.
The Fix
If you didn’t want to click on Wonjno’s link here are the steps that fixed my problem. Had to change a couple of things because my install paths were a little different since I was running a different OS.
We begin by uninstalling the problem package
sudo gem uninstall rack
When prompted, make sure you remove all versions of the rack packages. Now this is one place where my experience differed a little. I ended up getting prompted to uninstall rails itself. I’m a brave soul, that didn’t scare me, so yeah I uninstalled it.
Here is what that looked like
sudo gem uninstall rack
Remove executables:
rackup
in addition to the gem? [Yn]  Y
Removing rackup
You have requested to uninstall the gem:
rack-1.0.0
actionpack-2.3.3 depends on [rack (~> 1.0.0)]
actionpack-2.3.5 depends on [rack (~> 1.0.0)]
If you remove this gems, one or more dependencies will not be met.
Continue with Uninstall? [Yn]  Y
OK, that was a little scary but we will fix it.
I did manually remove the directory for the older version of rack
sudo rm -rf /Library/Ruby/Gems/1.8/gems/rack-1.0.1/
Now we reinstall things. Don’t forget we need to reinstall the rails itself
sudo gem install -v=2.3.5 rails
sudo gem install rack
After that, life was good, at least for me. If you found this article and actually read it in hopes that it helped fix your issue, well then I hope you had some success as well.

Posted via web from shocm

Wireless Power

I just love this concept. I can imagine homes of the future being built with this technology built into it. The thought of just laying down your phone or MP3 player on the table and it getting charged while there is just cool.

Internet Famous with Splunk

There have been some pretty famous spokesmen in the past who’ve made huge impacts to the companies they were representing. OJ Simpson and Hertz, before the whole legal issues of course. Michael Jackson and Pepsi, hum again before the legal problems and hair catching of fire stuff. Micheal Jordon and Nike, he hasn’t done anything too bad yet right?

Well now lump Eric Van Johnson in this category, hopefully minus the legal issues for awhile. In what will most certainly send this companies revenues through the roof, I have done my first video “endorsement” of a product. Now this is not my first brush with Internet stardom, a few years back I got my picture taken with Irina Slutsky of GETV but that was different she was more stalking me than anything else, this time it was business.

Oddly enough it’s not an Open Source product and I don’t even particularly care for it’s licensing model but with that aside, the product itself is very solid. Splunk on the most basic level is a indexing and search service for system log files. But its extendability really expands the product much further than just that.

Check out my video endorsement and then go and buy stock in this company. Mind you they are not publicly traded at this time but you shouldn’t let that stop you as they are obviously going to go main stream now that they have me doing commercials for them ;-)

Splunk> Eric Van Johnson
splunk-splunk-at-sony-electronics-eric-van-johnson

http://www.splunk.com/article/2741

Killing IM with killall and taskkill

I’ve stated before how I am fortunate to be in a position where I typically work on a Linux, OSX, and Windows desktops on regular basis. Depending on what I am doing and my location I might spend a good amount of time on any of these systems. For the most part, my life style makes this pretty easy. I live in “the cloud” a lot for things like email and even documents. I keep things standard complaint and use tools that are typically cross-platformed or have counterparts on other platforms. This has afforded me some great freedoms and have allowed me to unchain myself and not be too dependent on any one solution. Instead my life has become one of preference and knowledge.

However, with everything there has always been pain points, one for me has been IM. While yes, it no longer matters which platform I am on at any given time I am still able to access my Yahoo, AIM, MSN, Gtalk accounts, the issue comes into play when I move from one machine to another and forget to sign out of IM on the previous machine. Some of the IM services alert you when you are logged onto one accounts from multiple systems and allows you to decide what to do, like AIM which gives you an option to send it a command to log you out of your previous session. Some just don’t care, like Gtalk which doesn’t seem to be concerned with how many times and from how many locations you are logged in, I don’t particularly like this approach. Then there are services like Yahoo that just get upset and decides to log you out from one of your accounts, couple that with IM clients that battle to keep their connection like Trillian and you can end up in a situation where you can’t log into your account because another is already logged in and wont let go.

I’ve come up with a few approaches that have made this situation somewhat manageable. On my Linux and OSX box this is pretty simple, there is a command line command called ‘killall‘ that comes to the rescue. With the line ‘killall pidgin’ or ‘killall Adium’ my IM clients on Linux and OSX respectively, end. Add the ability to ssh into these systems and if I forget to log out I simple do a quick ssh connection to these boxes, run my command and I am done. Furthermore, I typically have a good idea when I wont be at those computers, so with that information and the killall command, I am able to add crontab entries to automatically run my command. So for example, I know at 3AM I don’t want to be up IM’ing with anyone so I run that command at that time in case I left my IM client running before going to bed. I also know Monday through Friday I am typically at work and in my office around 8AM so I run that command on my home systems at that time too in case I left the house without logging out. The command ends up looking like this in crontab, 00 03,08 * * * /usr/bin/killall Adium > /dev/null 2>&1 Worse case scenario, I ssh back to the system and manually run the command. Its a great system and works like a charm.

At work the story is a little different. First off, the system I run IM on is a Windows machine which doesn’t have the cool ability to just SSH to and even if I did install an SSH server on the machine it is located behind a corporate firewall so I wouldn’t be able to get it anyways from the outside. I do have the ability to log in via VPN but that is a lot of work to log into the corporate VPN and RDP to my desktop just to turn off an IM client. Windows also doesn’t really have crontab, it does have a “scheduler” which acts kind of acts like crontab but that coupled with the fact that Windows doesn’t really have the same powerful command line tools that Linux and OSX have makes this simple task a little tougher to accomplish.
Get the whole story »

Firefox Downloads +1

Firefox 3 browser, 3 millions plus downloads worldwide and growing. Wonder what its like being the only dude in Eritrea to have downloaded it. That guy (or gal lets be fair) deserves a some Firefox swag.

http://www.spreadfirefox.com/en-US/worldrecord/

'Warcraft' Sequel Lets Gamers Play A Character Playing 'Warcraft'

This is taking Online Roll Playing to the next level allowing you to play a character playing a character in a game. I think it might be time to start playing games online.


‘Warcraft’ Sequel Lets Gamers Play A Character Playing ‘Warcraft’

Secured for spam by MLW and Associates, LLP's Super CAPTCHASecured by Super-CAPTCHA © 2009-2010 MLW & Associates, LLP. All rights reserved.