University of Oregon

Repair dhcp issue in Linux VM: "Device eth0 does not seem to be present".

I have Parallels Linux VM that was shared by a co-working and I couldn’t establish an external network connection.
This proved to be really difficult to troubleshoot. I like Linux but I’m not fluent. My first issue was that the “Network settings” preference GUI was missing (perhaps because of the network failure on startup). Then the CMD Line version (system-config-network) wasn’t very helpful either.

So this morning I open another copy of the VM to start with a clean slate.
This time I notice an error message icon at the bottom of the log-in screen. I looked through the log and saw a couple of failures. The first one caught my eye: “Bringing up interface eth0; Device eth0 does not seem to be present, delaying initialization.” [failure]

I searched Google for that sentence and found this post that outlined the exact fix I needed: http://kezhong.wordpress.com/2011/02/04/solving-the-problem-unable-to-activate-nics-after-moved-the-hard-driver-from-a-machine-to-another/

So I confirmed that the OS changed eth0 to eth3 on startup and wasn’t able to get a dhcp. Here are the steps I used (## = comments).

Cmds:

#Result: #Verify Error:
$ sudo service network restart
$ dmesg|grep eth
    ## Result: "udev: renamed network interface eth0 to eth3"
$ cd /etc/sysconfig/network-scripts;
$ sudo mv ifcfg-eth0 ifcfg-eth3
$ sudo vim ifcfg-eth3
    ## Change: DEVICE="eth0" to DEVICE="eth3"
    ## Save: :wq
$ sudo service network restart
    ## Result: "Bringing up interface eth3:  Device eth3 has different MAC 
address than expected, ignoring."
## Get the MAC addresses, and append it to ifcfg-eth3 files.
$ sudo cat /sys/class/net/eth3/address >> ifcfg-eth3
    ## Permission denied
## You can either set the root password or just hand type the mac address
$ su root
$ cat /sys/class/net/eth3/address >> ifcfg-eth3
$ exit
$ sudo vim ifcfg-eth3
    ## Change: HWADDR="… to match the appended mac address and delete appended
 text.
    ## Save: :wq
$ sudo service network restart

Success!
Now I have internet connectivity for the VM!

*This worked for the 2nd copy of the vm I imported as well but in that case eth0 was changed to eth1.

In retrospect I suppose the eth0 was changed because I “copied” the image into parallels. The other option is to “move” the image. But I found that if the network detects two machines with the same MAC Address it stops it cold.

Dim your 24" iMac with Shades

We have a user with light sensitivity and the 24″ iMac he’s using has a known problem of being too bright and man is it! The on-board brightness goes from too bright to blindingly white. So I googled about and found a great post that pointed to Shades by Charcoal Design: http://www.charcoaldesign.co.uk/shades.

It works like a charm.

CheckBoxMate for Firefox 3.6+ with GreaseMonkey

Nargas, wrote this morning;

I recall a while back you used a firefox add-on which allowed you to select a region where check boxes could be un-checked.

That tool would come in handy for me too!

I know right?!
I’ve been lamenting it since the firefox upgrade to 3.6; which disabled the add-on.
However, yesterday I couldn’t take it anymore so it went looking at the developer site again to see if anything had been done about it and lo-and behold someone posted an easy solution.
GreaseMonkey and a new checkbox mate script. Hooray!

It works like a charm too. Click and hold in the one of the checkboxes and proceed to highlight the rest. Release the mouse button and you’ve got “select and check” or “select and uncheck” as the case may be. Everything switches to the alternate state (checked/unchecked).
I love it!

Links:
Greasemonkey for FireFox
https://addons.mozilla.org/en-US/firefox/addon/748/

CheckBoxMate for Greasemonkey
http://userscripts.org/scripts/show/73700

Mac OSX and Firefox contextual menu (aka 'right click' menu) from the keyboard

I’ve been hoping for a ‘right click’ key shortcut on the mac for years.
PC’s have that functionality built in and it’s aggravating to have to pick up the mouse just to take advantage of a spell check suggestion. Alack! Some features seem to exist only in the contextual menu; their menu bar equivalent buried 12 levels deep, and then nested in the 4th tab of a preferences menu.
Mice have their place but efficiency triumphs if you can keep your fingers on the keyboard.
I still shudder at the lack of keyboard shortcuts for the menu bar. Granted, mac users have Ctrl+F2 but that highlights the apple menu and take for example Alt+T, Ctrl+F2 requires a number of ‘arrows’ to get to the Tools menu. Tolerable but inadequate.

Well happy days, I just stumbled upon the contextual menu keyboard shortcut in Firefox: Ctrl+Space. Lovely! I’ve used it six times already to correct misspellings (seven times [two s’s in misspellings]) in this post.

On a hunch, I just checked the about:config page and typed in context. Sure enough there is now an entry for dom.event.contextmenu.enabled which defaults to true.

Hooray Firefox!

Thanks for looking out my carpal tunnels!

Windows 7 – "Virtual" Wi-Fi

Another goodie from the Windows 7: The Top 10 Hidden Features slideshow: “Virtual” Wi-Fi. I use this all the time on my iMac. And i wondered if Win7 supported this.

If you check out the network connections of most Wi-Fi-equipped Windows 7 systems (except those with Starter Edition), you’ll notice an adapter called Microsoft Virtual WiFi Miniport adapter. This virtual adapter can act as a software-based access point; it takes a wired or wireless network connection and makes it available a separate wireless network.

This lets you create your own hotspot from whatever network you’re connected to, which can be handy in many different scenarios, including when you want to connect multiple devices to a Wi-Fi network that charges for access. (Note: to take advantage of this feature, you’ll need a copy of the free Connectify software.)

via Windows 7: The Top 10 Hidden Features – 9. “Virtual” Wi-Fi – Slideshow from PCMag.com.

Windows 7: God Mode

Here’s a nice Win7 feature: God Mode.

It puts hundreds of settings from all around the operating system all in one place.To turn on God Mode, create a new folder on your desktop or anywhere you’d like and name it: GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}. Don’t include the final period. The resulting folder will contain 270 items, representing virtually every configurable option in Windows

via Windows 7: The Top 10 Hidden Features – 1. God Mode – Slideshow from PCMag.com.

Thanks for the heads up Kerry and Eire

Opening Drupal module files in Dreamweaver

I just came across an article that gave me the idea that I could edit Drupal Module and INFO files in dreamweaver as php files with color coding.

Thanks to James: Opening CakePHP Files in Dreamweaver – James Fairhurst.

Here’s what I did.
(more…)

Toggle display of hidden files in Finder with keyboard shortcut [Update 2] « Art Of Geek

This is a great article outlining how to extend some hidden functionality in Snow Leopard’s open/save dialog to the finder; namely: Show/Hide hidden files.

Toggle display of hidden files in Finder with keyboard shortcut [Update 2] « Art Of Geek.

For OS X 10.5 try this one: http://michaelkrol.com/2007/10/01/show-hidden-files-in-os-x-finder/

MacBook Air trouble – error 4SNS/1/40000000:TsOP-128.000

I had some problems with my MacBook Air; Aggressive Kernel task, overheating, followed by involuntary shut downs.
The hardware test returned error: 4SNS/1/40000000:TsOP-128.000. Which I’ve since learned means hard drive sensor error; ref: http://macosx.com/tech-support/mac/received-error-4sns-1-40000000-thop/333699.html.
This started a month ago @ 2 years from the date of purchase. Coolbook and smcFanControl kept me in business for a short time until my keyboard and trackpad stopped responding; at least external peripherals still worked. Suspecting a firmware update was to blame, I wiped out the system and reinstalled, to no avail. So I gave up and brought it my certified apple repair shop and they determined it’s probably the main logic board @ $600 to replace or we could send it back to Apple for a “lower half repair” for $360. I went for the later.

I just got it back today and Apple replaced the
main logic board,
left and right clutch,
antenna,
magnet,
bezel,
and
thermal module.

Wow am I ever glad I sent it back. I thought this machine was in pristine condition. Apparently it needed more help than I thought.

It’s been running for 3 hours and so far so good. I’ll give it a good test next week.
I do have one complaint. There’s a consistent 3 second long ticking noise every 7 seconds; very consistent. It’s getting quieter but it hasn’t gone away yet.

MacBook Air 1.1 1.8GHz Mac OS X (10.5.8) Boot ROM: MBA11.00BB.B03. SMC: 1.23f20