Archive for February, 2011

How-To configure unattended clients with TeamViewer for Mac (simulating TeamViewer Host)

Friday, February 25th, 2011

09/09/2011 – UPDATE
The TeamViewer team has recently release a new host version for Mac OS X
TeamViewer for Unattended Servers: TeamViewer Host

Despite the name it can be used in any Mac OS X installation (clients and servers)

http://www.teamviewer.com/download/TeamViewerHost.dmg

http://www.teamviewer.com/en/download/index.aspx

Original post:

Because there is not TeamViewer Host for Mac yet, I’ve been chatting with the support team at TeamViewer GmbH about an official workaround to create a TeamViewer unattended client for Mac OS X, this is what they advised to do:

  1. You would have to predefine a permanent password on TeamViewer for Mac.
  2. A standard user should be logged in.
  3. TeamViewer should be part of the auto starting programs.
  4. The Mac should not go in sleep mode.

The main glitch of this solution is that if the user logs out returning to the Login screen then the TeamViewer software is quitted and the connection is lost.

An additional workaround that would help us maintaing the connection to the Mac also when the main user is logged out is:

  1. Create an ‘autologin’ user
  2. Install and configure TeamViewer as suggested in the previous steps to be part auto starting programs for the ‘autologon’ user.
  3. Immediately auto-lock the account and return to the Login screen using Lock My Mac or MacLoc and configuring one of then as part of auto starting programs.

At this point, with a bit longer system initialization, the user of the Mac will behave like usual while an ‘hidden’ account is running TeamViewer for us.

The catchof this solution is that when the user will want to shutdown the system it will be propted with an alert message notifying him that other users are logged in the system and that if he wants to continue with the shutdown process all open documents and data will be lost. MAybe we can find a way to disable this alert…. suggestions are welcome 🙂

WordPress 3.1 update: “Could Not Open the Page, Too Many Redirects”

Thursday, February 24th, 2011

This morning after upgrading my blog to WordPress 3.1 the front side of my blog suddently stopped working.
All my browsers got stuck trying to load www.marcomc.com and Mobile Safari on my iPad and my iPhone was complaining about: “Could Not Open the Page, Too Many Redirects”.

After 1 minute digging the problem on wordpress.org I found the fix at this thread:

http://wordpress.org/support/topic/windows-server-infinite-redirect-after-upgrading-to-31?replies=35

I was still able to access the admin back-end fortunately, just in time to apply this nice plug-in that fix the problem:

Permalink Fix & Disable Canonical Redirects Pack

Apparently this problem is limited to WordPress residing on Windows based hosting. Guess what my hosting is then 😉

How-To install Mac OS X Snow Leopard 10.6.6 on the Asus Eee PC 1005HA Netbook

Monday, February 21st, 2011

How-To Install or Update Mac OS X Snow Leopard 10.6.7 on the Asus Eee PC 1005HA Netbook is now available:
https://www.marcomc.com/index.php/2011/03/how-to-install-or-update-mac-os-x-snow-leopard-10-6-7-on-the-asus-1005ha-netbook/

This is a step-by-step procedure to install Mac OS X Snow Leopard 10.6.6 on the Asus Eee PC 1005HA Netbook having everything working 100%.

Resources

Prerequisites

For British users only

Installer preparation

  1. Use ‘Disk Utility’ to dump the  Mac OS X 10.6.0 Installation DVD on the 8GB USB stick.
  2. Run the MobUSB package and choose as intall destionation the newly created partition on the USB stick (that will probably bring the name of “Mac OS X Snow Leopard 10.6 Retail”, but the name is not importat).
    DO NOT INSTALL IT ON YOUR SYSTEM’S PARTITION!!
  3. Copy the file ‘SnowLeopardAsus.zip’ and ‘SleepEnabler.kext’ into the root of the USB stick

ModUSB install the Chamaleon Boot Loader on the USB stick letting any PC to detect it as a bootable drive, also and most importantly it installs the required kext modules (drivers) to support most of the hardware of your PC/Netbook that otherwise would not be officilay supported by the Apple’s installation disc.
ModUSB differently from myHack tool autodect the hardware you PC has installed and choose the appropriate kext to activate or deactivate.

System Installation

Insert the USB stick on a USB port of your PC/Netbook and force the boot from USB instead of harddrive. On the Asus EeePC 1005HA you need to hold de ESC button during the BIOS initialization.
Now you can perform a standard Mac OS X installation.
during the installation process you need to run the Disk Utility form the Utilities manu to create a partition for Mac OS X Extended (with Journaling).
If you want to keep you Windows installation you need to perform additional modification of you partition before starting the installation process (this will be explained in a separate tutorial).
Ad the end of the installation process you will be returned an error saying that was not possible to complete the installation, THIS IS NORMAL, and it’s due to the fact that the installation system wasn’t capable to install the native Apple’s EFI boot loader, thanks to ModUSB previosly installed on the USB stick this installation will include by default the automatically chosen kext modules and the Chameleon boot loader.
Mind that if we would have use the myHack tool kext and boot loader would have not been installed on the new system and we should have booted the new installed system using as boot loader the USB stick.

First Boot

After the first system bot you’ll notice that everything is working with a couple of Glitches:

  1. sound is noisy/buzzing
  2. you cannot choose a screen resolution other than 800×600 (kext is loaded)
  3. Wi-Fi card is not detected, (kext is loaded).
  4. MMC card reader may not work.
  5. The Keyboard’s Fn keys are not working
  6. Hibernaton/sleep activate when you close the netbook lead but the PC never awakes

Make things working

  1. Install fixkext utility, everytime we add or remove kext form the kext libraries we have to regenerate the mkext cache file using fixkext utility that also takes care that all the kext modules have the right permissions and ownership.
  2. Copy the ‘SleepEnabler.kext’ file and decompress the ‘SnowLeopardAsus.zip’ into the desktop of the newly installed system.
  3. Install Extension for unrecognized devices:
    1. Copy ‘~/Desktop/SnowLeopardAsus/Extra/AsusHotkeys.kext’ to ‘/Extra/Extensions/’ folder.
      This makes working the Keyboard’s Fn keys such the screen brightness and the volume adjustment.
    2. Copy ‘~/Desktop/SnowLeopardAsus/Extra/IO80211Family.kext’ to ‘/Extra/Extensions/’ folder.
      This makes the system to recognize and install the Wi-Fi card.
    3. Copy ‘~/Desktop/SnowLeopardAsus/Extra/IOSDHCIBlockDevice.kext’ to ‘/Extra/Extensions/’ folder.
      This makes the system to recognize and install the MMC card reader.
  4. Backup the Extensions for misbehaving devices:
    1. Create a folder named ‘Old Extensions’ on your Desktop.
    2. Copy ‘/System/Library/Extensions/VoodooHDA.kext’ to ‘~/Desktop/Old Extensions/’.
    3. Copy ‘/System/Library/Extensions/AppleIntelGMA950.kext’ to ‘~/Desktop/Old Extensions/’.
    4. Copy ‘/System/Library/Extensions/AppleIntelIntegratedFramebuffer.kext’ to ‘~/Desktop/Old Extensions/’.
  5. Substitute the Extensions for the misbehaving devices:
    1. Copy ‘SleepEnabler.kext’ to ‘/System/Library/Extensions/’.
      This fix the hibernation/sleep feature.
    2. Copy ‘~/Desktop/SnowLeopardAsus/Kext/AppleIntelGMA950.kext’ to ‘/System/Library/Extensions/’.
    3. Copy ‘~/Desktop/SnowLeopardAsus/Kext/AppleIntelIntegratedFramebuffer.kext’ to ‘/System/Library/Extensions/’.
      This fixes the video card and add the option to choose 1024×600 resolution.
    4. Copy ‘~/Desktop/SnowLeopardAsus/Kext/VoodooHDA.kext’ to ‘/System/Library/Extensions/’.
    5. Double click on ‘~/Desktop/SnowLeopardAsus/VoodooHDA.prePane’ and confirm to ‘Replace’ the preference pane.
      This fixes the audio card issues.
  6. Now, most important, fire the command ‘fixkext’ with root privileges or using sudo:
    $ sudo fixkext

    This will make sure that all the copies Extension will have the right permissions and ownership and will recreate the kext’s cache.
    The kernel can now load the extensions at the next boot

  7. Restart the system and everything should work.

Now you have a fully functional Mac OS X Snow Leopard 10.6.0 running on you Asus EeePC 1005AH.

What still doesn’t work

When awakening form hibernate/sleep mode the USB disks (if any attached) will be not ejected properly (will persist also after the upgrade to Mac OS X Snow Leopard 10.6.6).

 

Now also available:

How-To Install or Update Mac OS X Snow Leopard 10.6.7 on the Asus Eee PC 1005HA Netbook

Upgrade to Mac OS X Snow Leopard 10.6.6

  1. Copy MacOSXUpdCombo10.6.6.dmg in the USB stick.
  2. Uncompress legacy_kernel-Mac_OS_X_10.6.6.tgz and to legacy_kernel-Mac_OS_X_10.6.6.pkg and copy it on the USB stick.
  3. Insert the USB Stick on the Netbook then mount and run the MacOSXUpdCombo10.6.6.dmg.
  4. When the installation is finished it will ask to restart,
    DO NOT RESTART THE SYSTEM YET!!
  5. Install ‘legacy_kernel-Mac_OS_X_10.6.6.pkg’.
    This install an older version of the kernel that is still compatible with the unficcial extensions we previously installed before the upgrade.
  6. Again, substitute the Extensions for the misbehaving devices:
    1. Copy ‘SleepEnabler.kext’ to ‘/System/Library/Extensions/’.
      This fix the hibernation/sleep feature.
    2. Copy ‘~/Desktop/SnowLeopardAsus/Kext/AppleIntelGMA950.kext’ to ‘/System/Library/Extensions/’.
    1. Copy ‘~/Desktop/SnowLeopardAsus/Kext/AppleIntelIntegratedFramebuffer.kext’ to ‘/System/Library/Extensions/’.
      This fixes the video card and add the option to choose 1024×600 resolution.
  7. Now, most important, fire the command ‘fixkext’ with root privileges or using sudo:
    $ sudo fixkext.
  8. No you can reboot the system

What still doesn’t work

— as reported by Eugene —
If you’re getting a kernel panic it is likely due to sleepenabler.kext you need to get one compatible with 10.6.6 from www.kexts.com

Wireless works fine on routers working only in “g” mode but not for mixed “g/n” or even “n”.
A solution is to replace the wireless card:

  1. The chip that you want to look for is Broadcom BCM94322 Half Mini PCIe card. It is also called Dell 1510 or DW1510, there are alse HP variants as well. This is the same chipset as Apple’s Airport Express card in MacBook Pro.
  2. Here is a you tube video: http://youtu.be/yehHh0GmnU0 for the hardware installation.
  3. You need the original IOFamily80211.kext (the one we installed through this guide is not the stock apple one, but modified for the 1005HA card).
  4. Download the patch and run through the terminal following the post here http://www.insanelymac.com/forum/index.php?showtopic=51725.
  5. Optional step is rebranding the Broadcom card so that computer thinks its actually Apple Airport Extreme and not a 3rd party card.
    This gives you speeds up to 300Mbps (the way “n” is intended)

Last Adjustments

After rebooting the system will work exactly as before without the need to install new extensions, anyway you may experience that your microphone is not ‘listening’ so what you need to do is to enter the System Preferences and click on the VoodooHDA pane then:

  1. Select ‘Microphone (fixed)’ from the dropdown menu
  2. Click on the round button that will activate all the available adjustable options
  3. It may help to adjust the ‘Mic’ bar and the ‘Recording Level’ bar

Open ‘Disk Utility‘, select the System drive, run ‘Repair Permissions‘, this will fix possible permissions gone bad during the hackintosh installation 😉
Should fix problems with Javascript crashing in Safari, Chrome and Firefox.

THIS IS IT! Enjoy and please feel free to post any fix suggestion or link/post your tutorial for other models.

How-To user EtherApe graphical network monitor with Windows, Mac OS X or Linux

Monday, February 14th, 2011

EtherApe is a graphical network monitor for Unix that come with most of the GNU/Linux distrubution but is not, now is present in MacPorts for Mac OS X and but has no porting for Windows as well.

The best use of EtherApe is when it’s installed on a server (or any GNU/Linux machine) connected to the last-hop of your network to allow it to ‘sniff’ (analyze) the whole traffic getting in-and-out of your network. I suggest to put it on the  switch or hub that connects your network to the router.

Normally we monitor and manage our network from our workstation trying to access as less as possible the screen of our servers. Because EtherApe would be installed on one of our servers to visualize its output on our screen avoiding the user of screen remotization like VNC, TeamViewer or LogMeIn we need to use X11 protocol forwarding via SSH.

This solution implies that we have and X11 service running on our workstation.
If we are working on a Linux machine it can’t be more easy as we mostprobably are working on a X11 implementation.
If run Mac OS X then we ned to installe Apple’s X11, and you can find the installer inside the Installation disc.

For Windows the game is more tough because it’s not a Unix based system and a X11 server implementation is not part of the standard applications offered as part of the installation options.
Fortunately come in hand the project Xming a free implementation of X Server for Windows: http://www.straightrunning.com/XmingNotes/

The steps to visualize EtherApe on your workstation are:

  1. Install EtherApe on your GNU/Linux server:
    i.e. on a GNU/Debian server: 

    # apt-get install etherape
  2. Install X11 on your workstation:
    1. On Linux most probably you have installed x.org package
    2. On Mac OS X you install the package that you find in the installation disc
    3. for windows you need to donlaod the public release of Xming:
      http://sourceforge.net/project/downloading.php?group_id=156984&filename=Xming-6-9-0-31-setup.exe
  3. Install an SSH client on your workstation
    1. On Linux and Mac OS X it is part of the base system installtion
    2. On Windows you need to install PuTTY:
      http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe
  4. Enable X11 forwarding through SSH on your server:
  5. Edit the file /etc/ssh/sshd_config and add or modify the X11 forwarding setting to
    X11Forwarding yes

    then restart the SSH service to load the new configuration

  6. On Windows only configure Xming to connect via the SSH client to your Linux server and specify to run the program xterm (or any other terminal application you have installed on your server) and specify as connecting user root or any sudoer user because EtherApe needs root privileges to turn the network card in listening mode.
  7. run EtherApe from the ssh connection just fireing the command ‘etherape’

Have fun!