MarcoMC Tech, Cuisine, Traveling…my hobbies, my life

June 14, 2012

How-To Fix a Bricked OS X Lion System After Thunderbolt Software Update Causes Boot Failure?

Filed under: Apple & Mac,How-To,Troubleshooting — Tags: , , — marcomc @ 21:02
Listen to me!
Audio MP3

download mp3
Following the WWDC 2012 Apple has released some new system and applications updates for OS X Lion 10.7; one of them is an update for the Thunderbolt port, and unfortunately brings with it a serious bug that may badly corrupt your system generating a Kernel Panic as soon as it start loading the system.

As reported on many tech blogs (like iClarified https://www.iclarified.com/entry/index.php?enid=22556) many users after the update have not been able to re-boot their systems properly reporting Kernel panics, or simply unable to go further the boot menu. Basically the system got stuck, or more precisely BRICKED!

If you possess a MacBook Pro or MacBook Air purchased during the year 2011 or later or in any case if your Mac has a Thunderbolt port, it is advisable not to install the Thunderbolt Software Update for now, hopefully Apple will release a newer and safer update.

In case you have installed the update and your system is bricked reinstalling the whole system is NOT the only solution to fix the problem.

If you have the luck to have a second Mac computer with a firewire port, you can follow the following steps to ripristine your system with a minimal effort:

  1. Start the bricked Mac into TARGET MODE (pressing ‘T’ before the start-up chime).
  2. On a spare Mac, download from Apple website the latest Combo System Update for Lion 10.7.4.
  3. Run the Combo System Update installation and specifying as target the mounted volume of the bricked Mac. <== VERY IMPORTANT

That will fix the installation of unfortunate Mac

Side Effects: Reinstalling the Combo System Update for Lion 10.7.4. will over-write all the Apple updates released after the 9th of May 2012 and you will have to re-run the Software Update application to reinstall them (don’t forget to skip the Thunderbolt Software Update)

I hope this has been helpful for many of you as much as it has been for me.

March 21, 2012

How-To Redirect PATHINFO (Almost Pretty) Permalinks To Pretty Permalinks

This post is about supporting your former PATHINFO Permalinks structure (a.k.a. Almost-Pretty-Permalinks), on your new web-site using Pretty-Permalinks.

 Redirect 301 /index.php/ https://www.yoursite.com/
 RewriteRule . /index.php [L]

These are the lines of Apache’s configuration that must be present in the website’s main .htaccess file:

 <IfModule mod_rewrite.c>
 RewriteEngine On
 RewriteBase /
 Redirect 301 /index.php/ https://www.yoursite.com/
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteRule . /index.php [L]
 </IfModule>

This case applies to those websites formerly configured to use PATHINFO Permalinks and for which all the old posts and pages have been indexed by the Web Search Engines (Google, Yahoo, Bing, etc) using the former structure that included the HORRIBLE! “/index.php” string in their URIs, i.e.:

https://marcomc.com/index.php/tech/

When these sites finally migrate to the Pretty-Permaling structure, the one that does NOT include the  horrifying “/index.php” piece, i.e.:

https://marcomc.com/tech/

it happens that all the search engines’ indexes will result suddently outdated, and that will penalise the sites at least in two ways:

  1. It will cause a loss of accesses because the back-links to the sites that are present on other blogs or in people’s favourites and bookmarks, or in the search engines’ indexes will be ‘broken’ (old) and the people will be unable to access the pages or posts unless browsing from the homepage.
  2. It will cause a loss of ranking in the search engines’ databases (S.E.O. perspective) because the sites will result ‘broken (unaccessible) and in some cases may even result like sites with duplicated content because the search engines’ spiders will index the pages as NEW pages (due to their new URIs) and the content will match the caches indexed with the old URIs (at least until the caches expire).

To prevent such mayhem you need to put in place a 301 (permanent) redirection that will tell the search engines that all the requests to URIs containing the ‘/index.php’ bit have to redirected to similar URIs not containing it, i.e.:

Redirect 301 /index.php/ https://marcomc.com/

This string gives instructions to the web server about what to communicate to the Search Engines when a PATHINFO request is received.

Most importantly the 301 redirection will instruct the search engines that the URIs containing “/index.php” have to be considered deprecated and that from now on, the site will not use it anymore. This is fundamental to avoid the search engines to consider the content of the site as a duplicated content.

Secondly you will need to put in place also a generic rewrite instruction that will tell the local web server (Apache) to accept all the incoming requests to URIs with a PATHINFO format and return the content of the new and purged URIs:

RewriteRule . /index.php [L]

This string gives instructions to the web server on what it must to do when a PATHINFO request is received.

I did use these redirection settings for my WordPress blog when I did migrate to a full L.A.M.P. server (GNU/Linux, Apache, MySQL, PHP) from the former Windows Server hosting service running Microsoft IIS and that did not support ‘.htaccess’ files but exclusively PATHINFO directives and for which I did not have access to the server’s core configurations, therefore I was forced to use “/index.php” in my permalinks.

If you did like this post leave a comment in sign of appreciation, ad if you are Facebook please consider to ‘Like’ MarcoMC.com page. Check the FB banner on the right widgets column of this page …     ========================================>>

I did take inspiration for this post at following this thread:

https://www.wptavern.com/forum/troubleshooting/489-mod_rewrite-make-pretty-permalinks-prettier.html

March 20, 2012

How-To Send A Command In Background And Keep It Running using ‘nohup’

Filed under: Apple & Mac,How-To,IT,Linux — Tags: , , , , , — marcomc @ 00:13

The shell command ‘nohup‘ in combination with ‘&‘ will allow to send the a command-line instruction in background enabling the process to keep running after the user who issues the command has logged out.

A common use of ‘nohup’ is when you need to issue a remote command via ssh connection and then you need to close the connection but be sure that the issued command will keep running in background, i.e.:

~$ sudo nohup shutdown -r -h 1203192100

I use this ‘trick’ when I want to restart my Mac and GNU/Linux Servers during evening/night hours but I want to submit the command during my office time.
In such way I save myself the time to remotely connect from home.

The ‘nohup’ command is even used to run processes in background as daemons.

nohup is a POSIX command to ignore the HUP (hangup) signal
(cit. from Wikipedia)


March 2, 2012

HOW-TO Disable the Character Accent Menu and Enable Key Repeat in Mac OS X Lion

Filed under: Apple & Mac,How-To,IT — Tags: , , — marcomc @ 16:02

Disable Character Accent Menu
To disable the press and hold accented character picker you need to digit the following commad in a Terminal window:

$ defaults write -g ApplePressAndHoldEnabled -bool false

After that you will have to Log Out and then Log In again. Or just restart the Mac.

If you want to re-enable the functionality, you need to digit

$ defaults write -g ApplePressAndHoldEnabled -bool true

the Log Out and Log In again.

November 24, 2011

How-To Fix “Some of your photos were not copied to the iPad, iPhone, iPod because they cannot be displayed on your iPad, iPhone, iPod”

Filed under: Apple & Mac,How-To,IT,Photography — Tags: , , , , , , , , , — marcomc @ 21:31

It happens, fortunately not so frequently, that during the Photo synchronisation of my iDevices via iTunes I get an error about the copy of my pictures to my iPad or iPhone:

"Some of your photos, including the photo "IMX_xxxx",
were not copied to the ixxx because they cannot be displayed on your ixxx."

I notice that this problem comes out usually after an update or upgrade of Aperture, and having a look around the web it is not a problem isolated to Aperture but it also shows up when you use iPhoto and in rare cases also when you sync your pictures directly from the Pictures folder of your account.

The only solution that worked for me in the time and in different Macs has been to force a complete regeneration of the iPod Photo Cache (se References at the bottom).
According to what software, if any, you use to manage your pictures, you will need to remove the following folders:

  • If you synchronise from the Pictures folder:
    /Users/<username>/Pictures/iPod Photo Cache
  • If you synchronise from the Aperture Library:
    • From the Finder navigate to the Picture folder.
    • Select the Aperture Library archive.
    • Right Click on it and choose Show Package Contents.
    • delete the iPod Photo Cache folder
  • If you synchronise from the iPhoto Library:
    • From the Finder navigate to the Picture folder.
    • Select the iPhoto Library archive.
    • Right Click on it and choose Show Package Contents.
    • delete the iPod Photo Cache folder

This operation will force iTunes to analyse the entire pictures archive and to generate all new copies of the pictures suitable for your iDevice.

In a few occasions I also found useful to proceed the  Rebuild Aperture Database procedure that will force Aperture to reanalyse all the masters of you photo library and regenerate all the preview and thumbnails.

To rebuild the aperture database you need to start Aperture holding the key combination of “Alt+Command” and then confirm the operation, that could take a very long time depending on the dimension of your pictures library.

Hope that this will help you.

 

References:

iTunes: Understanding the iPod Photo Cache folder

MacRumors 

 

 

October 25, 2011

The Crazy Ones read by Steve Jobs

Filed under: Apple & Mac,IT — Tags: , , — marcomc @ 02:52
Listen to me!
Audio MP3

download mp3
Here’s to the crazy ones.

The misfits. The rebels.The troublemakers. The round pegs in the square holes.
The ones who see things differently.
They’re not fond of rules. And they have no respect for the status quo.
You can quote them, disagree with them, glorify or vilify them.
About the only thing you can’t do is ignore them.
Because they change things.
They push the human race forward.
While some may see them as the crazy ones, we see genius.
Because the people who are crazy enough to think they can change the world, are the ones who do.

Apple Inc. (Steve Jobs)

Think Different

Think Different

October 6, 2011

Steve Jobs dies on 5th October 2011

Filed under: Apple & Mac — Tags: , — marcomc @ 00:36

“The world has lost an amazing human being”
Steve Jobs A Visionary Man

Steve Jobs has died on 5th October 2011

From Apple’s official website

Apple has lost a visionary and creative genius, and the world has lost an amazing human being. Those of us who have been fortunate enough to know and work with Steve have lost a dear friend and an inspiring mentor. Steve leaves behind a company that only he could have built, and his spirit will forever be the foundation of Apple.

If you would like to share you thoughts, memories, and condolences, please email [email protected].

https://www.apple.com/

Steve Jobs A Visionary Man

Steve Jobs has died on 5th October 2011

September 3, 2011

How-To Set Up a Continuos Synchronization on The Background With Windows 7 and The Group Policy Editor

Using the Offline Files in Windows Vista or Windows 7 is not always a smooth process and can cause a lot of Offline Folders And Files Synchronization Errors.

Offline Files synchronization errors

Offline Files synchronization errors

I found the latest generation of Windows to be very sensitive in the process to keep synchronized the Offline Files and folders copy with the  remote share.

Depending on the quality of the network you rely or the quality of the link to the share the Windows 7 (or VISTA) clients may think that the share is temporarily unavailable and stop synchronizing the Offline Folder while leaving temporary files on the server.
That may confuse some applications, especially Microsoft Office making them believing that a file you just edited and closed is still opened by another application and will refuse to open such file again.

I.E.. I have a very unadvisable configuration where a Linux server is providing an NFS share to a Mac OS X Snow Leopard server, and that server is then re-sharing via SMB and AFP that share to Windows and Mac OS X clients. I have experienced problem with Windows Clients stopping to synchronize files without any reasonable motivation.

I understood that because of an obvious delay on the communication from the Windows client through the Mac OS X server (via SMB)  to the Linux server (via NFS) would make the Windows client believe that the share was offline with many unconfortable conseguences.

I have found a workaround to this problem playing a little with the Windows’s Group Policy Editor.

As I don’t have a Windows Domain in place I couldn’t generate a policy file to be pushed once for all to all the clients so I had to manually start and configure the Group Policy Editor on each single Window VISTA and Windows 7 machine.

This is how to set up a continuos synchronization on the background with the Local Group Policy Editor:

  1. Start the Local Group Policy Editor

    Launch The Local Group Policy Editor

    Launch The Local Group Policy Editor

  2. Expand the Computer Configuration policies to ‘Network -> Offline Files’
    Group Policy Editor

    Group Policy Editor

    Slow Link Speed

    Slow Link Speed

  3. Access the ‘Configure Backgraund Sync’ option to enable the background sync

    Configure Background Sync

    Configure Background Sync

  4. Activate the ‘Enable Transparent Caching’ option

    Enable Transparent Caching

    Enable Transparent Caching

  5. Access the ‘Configure slow-link mode’ option to enable the support for slow-link networks

    Slow Link Mode

    Slow Link Mode

  6. Access the ‘Configure slow-link speed’ to configure the latency level to detect weather the connection get slow.
    Follow the suggestions shown in the LGPE to calculate the appropriate value.

    Configure Slow Link Speed

    Configure Slow Link Speed

These settings should avoid many of your problems and so far they did not create any additional issue.

Please comment and post your experience about any problems with the use of Offline Files and Folders.

September 1, 2011

How-To fix pGina: “Warning: Current plugin selected could not be loaded!”

Filed under: How-To,IT,Troubleshooting,Windows — Tags: , , — marcomc @ 23:48

After installing pGina and the chosen plugins (i.e. LDAP Auth, LDAP Group, RADIUS) on Windows Vista or Windows 7, it may happen that trying to access the plugin configuration it results in an error loading the plugin with the following error message being returned:

"Warning: Current plugin selected could nor be loaded!
You may not be able to login using pGina!"
Warning: current plugin selected could not be loaded

Warning: current plugin selected could not be loaded

The most common reasons for such error are:

 

  1. The installed plugin is for a different architecture:According to your system you must choose to install the x86 (32 bits) or
    x64 (64 bits) version of the plugin.
    Some plugin may be released on a single version but this doesn’t imply that it will work for both the architectures.
  2. Otherwise it most probably happens the you are missing the installation of the Visual C++ 9.0 (2008) runtime libraries (VC90.CRT 2008):In this case you need simply to download the Microsoft Installer package from Microsoft’s site at

    x86: https://www.microsoft.com/download/en/details.aspx?id=5582
    x64: https://www.microsoft.com/download/en/details.aspx?id=2092

Applying one of these two fixes you should have resolved your problems otherwise you may consider to check the file permissions on the plugin files.

 

August 24, 2011

How the UNIX system Load Avarage is calculated on Mac OS X and Linux

Filed under: Apple & Mac,IT,Linux — Tags: , , , , , , , — marcomc @ 11:58

The Load Avarage values that are shown using the ‘top’ commad or the ‘uptime’ command represent the number of blocking processes in the run queue averaged over a certain time period.

An example fo HIGH Load Avarage:

 load average: 12.54, 12.71, 12.19

these values represent CPU, Disk I/O and Network I/O.

if you run the ‘top’ utility you can seek for the CPU usage and for the CPU I/O waiting time that are represented by the ‘us‘ and ‘wa‘ abbriaviations.

If these uage is permanently around 100% then chances are the problem is related to your CPU.

If the I/O waiting time is mostly above the 80% it means that there could be some problem with the I/O devices suche network cards or failing hard drives.

In my spefic case I notices that in ReadyNAS with 6 disks in RAIDX-2 the load avarage is constatly over 10.00,10.00,10.00. I believe this is normal considering that the ‘md’ process has to keep the RAID chain continuosly checksummed and alligned.

This information has been sources from Andy Millar’s really nice blog I have found digging around: https://www.andymillar.co.uk/blog/2006/12/24/linux-load-average-explained/

 

« Newer PostsOlder Posts »

Powered by WordPress