Category Archives: OSX

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

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 »

Getting Things Done – The Quicksilver Way

QuicksilverTypically you have those applications you like and those applications you love to use but every now and then an application comes around that completely changes the way you work and those become the applications you can’t live without. For me, that application is Quicksilver from Blacktree on my OSX machine. Not sure exactly how to describe what exactly Quicksilver is. To say it’s just an “application launcher” would be seriously underminding everything Quicksilver brings to the table.

It took me sometime to get my mind around what Quicksilver was and what it could do. I am probably a yellow belt when it comes to using Quicksilver; I am well beyond using the basic features but still haven’t really scratched the surface of what it can do to really master it. I use a similar application for Linux called Gnome Do and one for my Windows boxes called Launchy but neither of them have the integration and do for me what Quicksilver does. Even the Apple OS X built in Spotlight falls far short in my opinion.

Quicksilver can be a tough application to understand and I personally hadn’t come across a lot of good instructions on how to use it. Been doing the whole trial by fire approach. But fortunately one of my buddies over at Splunk has put together one of the best Quicksilver tutorials I’ve seen to date. Check out Michael Wilde’s Blog entry on “Mac Productivity with Quicksilver”

Fun with SAY

Sometimes it’s the simple things that amaze people and leave them thinking you are some type of computer genius. My daughters have grown up with computers, and I mean hardcore. Their first computer was a SUSE Linux machine; they’ve worked on Windows and OS X boxes and they know their way around them all. At 10 years old, they’ve taken over the IT tech support duties for my wife. Next, I am going to install a phone line in their room so other family members can call them when they need help. What I am trying to say is, their Dad’s vast knowledge of computers doesn’t impress them. Whenever I think I’m showing them something new and cool on the computer, they have an attitude of “huh, I just didn’t know how to do it, now I do and its not that cool”.

I myself get kind of like that too, I am pretty hardcore geek and bells and whistles on computers don’t really impress me. I typically look at things on a much deeper level. That’s why when I read an article sometime back called “Having fun with the SAY command in your Terminal” I thought to myself, “Cute” and filed it away in the back of my mind thinking I will never have a use for that command.

The SAY command on OS X is a Speech Synthesis Manager. If you own an OS X machine, open a terminal window and type “man say” (minus the quotes) for more information, or just type “say Hello. do you want to play a game” and start having fun with it.

One day, one of my daughters and I were having somewhat of a disagreement on if it was more important for her to clean her room or finish watching TV; guess which side I was on. As privileges started to get stripped away, right after “no more pool time” but before “no more Playstation3 time”, she stomps off into her room. Knowing she wasn’t in her room doing what was asked of her, and knowing I was probably too mad myself to try to talk to her, I sat at my laptop tapping the space bar. Then it dawned on me; I fired up a terminal session on my Ubuntu laptop and made a ssh connection to my daughter’s computer in her room and proceeded to test out that SAY command. It went something like this;

say Why are you so mad

I hear a deep synthetic voice mumble come from behind my daughters’ door followed by a somewhat confused sounding voice of a little girl.

say Didnt your dad ask you to clean your room? I like a clean room

Some more little girl mumbles. Is she arguing with the computer now?

say Your dad is probably the smartest man I know, and may be the smartest man on earth, you should listen to him

OK, that last one might have been too much and may have tipped her off. I hear her door open and she yells, “I don’t know how you are doing that but you better show me”

Anyways, SSH with SAY and you can have all sorts of fun with co-workers, family, and friends. Further more they will think you are truly 1337.

Great Mac tar archive tip

Every now and then I just post things I don’t want to forget or worried that the original website might disappear. This is one of the cases. This is a blog posting I came across on a little problem that plaques those of us that enjoy using OS X but have a need to move files to other systems like Linux and Windows.

There is a dirty little secret the Mac hides from you when you are using it but becomes a glaring eyesore when you move to another OS. Some file clean up needs to happen because OSX creates these hidden files that start with a ._ which contains some extended information about the file that no other system reads so they aren’t terrible useful when moving files to these systems. This post from a person working for Splunk, outlines how to tar up files on a OSX machine that is targeted for other systems and exclude the ._ files from the tarring process. Original article can be found here

————— POST ———————-

When building Splunk applications, I’m often working on a Mac. There
are files that begin with ._ that are resource files, which contain
extended attribute information about the files for the OS. This is
great and all but I don’t want to include these files when I package up
an application and upload it to SplunkBase.

If you don’t have deep OSX knowledge, then keeping these files out
of your tarball is harder than it looks. One of our OSX gurus pointed
me toward the answer, and I was so excited (yes, I am a geek) that I
just had to share.

To build a tarball in Leopard that doesn’t contain the ._ files, use:

COPYFILE_DISABLE=true tar cvzf filename.tar.gz dirtotar

In Tiger, use:

COPY_EXTENDED_ATTRIBUTES_DISABLE=true tar czvf filename.tar.gz dirtotar

This is definitely going in my .bashrc so I don’t have to fuss with it again:

export COPYFILE_DISABLE=true

————— PEND OF POST ———————-

Leopard Features

OK, I am by no means an expert with OSX, especially the new Leopard. I also know there have been a lot of new features added with this latest release of OSX so I could have very easily missed this one but when I stumbled onto it I thought it was really pretty cool.

If you select a file and hit the space bar you get a nice preview of the file.

Picture 1

If you do this while you have a folder selected you get some good information on the folder such has folder size.

Picture 2

And just as an FYI, you don’t even need to be in Finder to do this trick. You can do it directly on the Desktop. Just select something and hit the space bar.

Picture 3

Just one of many cool features I didn’t realize lived within Leopard.

Update: Finally found the name to this feature, Quick Look

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