OS X Update (10.6.8)

Kon’nichiwa (“hello” in Japanese),

Recently Apple has sent out an update for their new OS: OS X Lion (10.7). This update is in preparation for their first try at releasing an OS online via their recent Mac App Store.

When Apple updated from 10.6.6 to 10.6.7 there were font issues and a slight battery decrease. With the update from 10.6.7 to 10.6.8 (the most recent one in preparation for the OS X Lion) a major battery decrease is introduced. I just recently bought my MacBook Pro 13″. Now by default it came with 10.6.7 and as of right now I can’t find a way to downgrade. If I could downgrade I would revert back to 10.6.6 (battery life around 9-10 hours off of a single charge) and patch the security issues myself. With the new update I went from 6-7 hours of battery life to 2 1/2 max.

Yesterday I have ran across a way to fix it. Yes you will need to reset your SMC (System Management Controller). However, before you do this the only way (for whatever reason) to get the SMC reset to work is to take care of the dock issue. Oh yah by the way that’s that other main issue. If you open up Activity Monitor and look for Dock in the processes you will see it is taking up 100% of your CPU. Now this isn’t entirely correct (look below at the CPU core graphs); it should only be taking up 100% of a single core of your CPU (well it actually shouldn’t be doing that at all which is why we are going to fix it).

– Go to your Home folder (whatever your user name is most likely) and locate these to files via the following folder paths:
~/Library/Preferences/com.apple.dock.db
~/Library/Preferences/com.apple.dock.plist

– Delete the above stated files.
– Log out and Log back in.

If you look at your Activity Monitor and check your processes you will see that the dock will no longer be taking up 100% of a CPU core. You will probably also notice that your dock has reverted back to it’s original settings. Wait to set your Dock back up again until after the SMC reset.

– Now we must reset your SMC. To do this, plug in your MagSafe adapter to your MacBook. Write down the following keyboard key combo (if you tend to forget):
Shift+Control+Option+[Power Button]

– Shut down your MacBook.
– Hold down the above Keyboard shortcut simultaneously and release simultaneously.
– You should notice when you release the keys your adapter light will change from orange to green (if it’s charging).
– When it turns orange again turn on your MacBook again
– Unplug your adapter and check your battery life estimation

You should notice that your battery life has increased to its normal levels again. Now given this isn’t a guarantee but it will more than likely work. There have also been reports that only the user account that was logged in at the time of the update are affected. I did not test this theory because the above method worked. Please feel free to give feedback on your results.

Trash Can Cleanliness: Not As Dirty As Me

Gnome Global Menu (GN)

Gnome-Global Menu (GN) is an applet available for Linux (Ubuntu) that will give you a Mac styled menu bar that replaces the file bar for most programs. It is a single File bar that adapts to which ever program is selected or “focused”. There are some programs that aren’t affected and you will have to use the default bar. A major one would be Firefox which doesn’t work because it does not comply with GNU specifications. (For those who don’t like me calling it a Mac menu bar deal with it cause Mac was the first to incorporate it)

Using the PPA to install GN

  1. Open SystemAdministrationSoftware Sources
  2. Pres the Other Software tab
  3. Press Add to add a new repository.
  4. Enter the APT line for the extra repository.
  5. After adding source close out and it will ask you to reload software
  6. You will have to download the GPG key so that you can download the software. Here is the key: Global Menu GPG Key
  7. Open up Software Sources again and go the Authentication tab and click “Import Key File…”
  8. Click the GPG key you just downloaded and then close out.
  9. To install GM start Terminal and type:
  10. sudo apt-get install gnome-globalmenu

  11. After installation right click on the desired bar and add Global Menu Applet
  12. Log out and log back in and you should have you bar ready to go.

The advantage to using the PPA package is that you will get automatic updates and the program is handled automatically. This makes uninstalling just as easy. Now i will show you how to use the source files (*.tar.gz/*.tar.bz2) to install/compile them yourself. The Advantages of managing a program yourself is that you can change it to your needs. You can also use source files to test betas and variants.

Source Install

  1. First download the source file. Which is in a *.tar.gz or *.tar.bz2 archive
  2. Extract the folder inside to a directory that you want to manage from
  3. Look inside the folder for installation instructions to install and/or compile, which are contained in a simple .txt file usually called “INSTALL”
    • Some programs do not have the option to compile into a *.deb package and only do a direct install
    • First to make management of your programs easier we will use a program that will compile the files, keep track of the files, and install the program while still giving you control over the program and packaging.
    • This program is called checkinstall
      install using:
      sudo aptitude install checkinstall
  4. With checkinstall the install will become easier. Open Terminal
  5. We need to mount the globalmenu folder to access the files in Terminal using:
    cd /home/user/documents/globalmenu-0.18
    cd is used to mount the directory. make sure to include the program folder last so that you actually mount into it. Don’t use that exact directory it is only an example.
  6. Then enter in the command:
    ./configure
    This step will find all the dependencies and make sure you have the needed files to make the program work, *At the end it will tell you what files you are missing. Make note of them and I will explain what to do. You will not need to complete this until you have the dependencies.
  7. Assuming you have all the dependencies you will now enter:
    sudo checkinstall
  8. It will ask you to type in a description for the package. Follow all the instructions that will be shown in the Terminal. It will ask you various things like seeing a list of all the files. If you notice it doesn’t give you a [y/n] option. it only shows one letter. that because it’s the recommended action. if you just press enter then it will take the default action and continue with the compiling and installing. I suggest that you take the default actions because all those options are asking you is if you want to see all the files and dependencies that were extracted installed.
  9. When it is finished it will show you a command to uninstall it and give you various commands on making short cuts for easier access. Unless you are compiling a library or dependency then it will only give you the uninstall command

*If you had dependency problems download the source files for the dependencies that you were missing and use this same tutorial to install those using the same steps. If possible try finding the .deb packages or PPA for the dependencies to make installing them easier. After installing all the needed files go back to the beginning, Mount the folder, configure, and checkinstall. If you have any questions just leave them in a comment below and I will answer to the best of my knowledge. Good luck!

NOTICE: I will be adding screen shots of the terminal and examples of codes. Later I will do a screen-cast on this and add to the post.