Recent site activity

OSX FAQ

Recent Announcements

  • Frequently asked questions and potential solutions when fighting with OSX.
  • Installing MySQL under OSX Mavericks and Mountain Lion The clean installation of MySQL using the installer of Oracle does not work. You must create a file /etc/my.cnf with the following content to allow MySQL to start ...
    Posted Nov 12, 2013, 5:35 AM by Marcel Baumann
  • OSX Maverick/Mountain Lion and JDK6 Support Trying to run application such as IntelliJ IDEA pops-up a window requesting to install JDK6 - but the OK button does not perform any operation. The problem arises due to ...
    Posted Nov 11, 2013, 10:32 PM by Marcel Baumann
  • How to start and stop Apache Directory LDAP Server On Mac OS X, Apache DS is installed as a launchd service and is loaded at startup time (and upon successful installation).You can stop the server by unloading the ...
    Posted Oct 24, 2013, 6:22 AM by Marcel Baumann
  • Retrieving a google site web site If you want to retrieve one of your google site website for archiving or offline usage use the google-site liberation application. The following values have to be set for ...
    Posted Mar 27, 2013, 2:33 PM by Marcel Baumann
  • How to set global PATH variable under OSX?  Create text files in directory /etc/paths.d/. the text file contains paths you want to add to the PATH variable at system level. The operating system will take care ...
    Posted Oct 25, 2012, 4:40 AM by Marcel Baumann
Showing posts 1 - 5 of 9. View more »

Installing MySQL under OSX Mavericks and Mountain Lion

posted Nov 12, 2013, 5:35 AM by Marcel Baumann

The clean installation of MySQL using the installer of Oracle does not work. You must create a file /etc/my.cnf with the following content to allow MySQL to start.

[client]
socket=/temp/mysql.sock

[mysqld]
socket=/temp/mysql.sock

OSX Maverick/Mountain Lion and JDK6 Support

posted Oct 24, 2013, 11:57 PM by Marcel Baumann   [ updated Nov 11, 2013, 10:32 PM ]

Trying to run application such as IntelliJ IDEA pops-up a window requesting to install JDK6 - but the OK button does not perform any operation. The problem arises due to the unclean transition from Apple JDK to Oracle JDK through Apple. You solve the problem by
  1. Download and install JDK6 from Apple support.
  2. Delete the CurrentJDK link and create a new one to your JDK7 installation
    cd /System/Library/Frameworks/JavaVM.framework/Versions
    sudo rm CurrentJDK
    sudo ln -s /Library/Java/JavaVirtualMachines/jdk1.7.0_xx.jdk/Contents CurrentJDK
  3. If desired you can now remove the JDK6 files
A detailed description can be found under Mediaval Blog.

How to start and stop Apache Directory LDAP Server

posted Apr 11, 2013, 4:34 AM by Marcel Baumann   [ updated Oct 24, 2013, 6:22 AM ]

On Mac OS X, Apache DS is installed as a launchd service and is loaded at startup time (and upon successful installation).

You can stop the server by unloading the launchd service with the following command line:

sudo launchctl unload /Library/LaunchDaemons/org.apache.directory.server.plist
sudo apachectl stop

You can start the server by loading the launchd service with the following command line:

sudo launchctl load /Library/LaunchDaemons/org.apache.directory.server.plist
sudo apachectl start
sudo apachectl restart

You should always verify the configuration of your apache server with the following command line:

sudo apachectl -t

If you want to disable the automatic startup of the server, just modify the plist file :

   <key>Disabled</key>
   <false/>

should be replaced by

   <key>Disabled</key>
   <true/>

Retrieving a google site web site

posted Mar 27, 2013, 2:32 PM by Marcel Baumann   [ updated Mar 27, 2013, 2:33 PM ]

If you want to retrieve one of your google site website for archiving or offline usage use the google-site liberation application. The following values have to be set for my personal website:
  • Host -> sites.google.com
  • Domain -> <empty>
  • Webspace -> marcelbaumann
  • Username -> marcelbaumann@gmail.com
  • Password -> *****
The application did its job as expected.

How to set global PATH variable under OSX?

posted Oct 25, 2012, 4:40 AM by Marcel Baumann   [ updated Oct 25, 2012, 4:40 AM ]

 Create text files in directory /etc/paths.d/. the text file contains paths you want to add to the PATH variable at system level. The operating system will take care of the construction of the PATH variable. This approach is simple to maintain.

Digital Signature under OSX Lion

posted Oct 24, 2011, 12:05 PM by Marcel Baumann   [ updated Oct 24, 2011, 12:12 PM ]

Years ago, I threw my printer in the trash. I got tired of stupid ink, and stupid drivers, and that stupid grey box taking up space on my desk. I haven’t missed it since. Okay, fine. There’s one time I always miss it: whenever I need to print and sign a contract. Thanks to a fancy (but somewhat hidden) new feature in Lion’s Preview app, I’ll never miss my printer again. Open up a PDF in Preview. Click the annotations button (), then click the signature button (), then hit “Create Signature from Built-in iSight”. Scribe your signature onto a white piece of paper, hold it up to your iSight, and bam: you’ve got a stampable version of your signature sitting in Preview. Mr. Printer, meet Mr. Trash Can.

The initial post can be found under Tech Geek.

MySQL under OSX Lion

posted Oct 7, 2011, 11:09 AM by Marcel Baumann

When upgrading to OSX Lion the configuration of mysql is cleanly initialized. Therefore tools using PHP and mySQL stop to work with a socket error. You must find the new location of the mysql.sock file and create a symbolic link to restore the mysql configuration. In my configuration I had to 
sudo ln -s /tmp/mysql.sock /var/mysql/mysql.sock
Once the link provides access to the socket file at the expected location, all applications should work correctly.

PHP under OSX Lion

posted Aug 4, 2011, 2:36 AM by Marcel Baumann   [ updated Oct 7, 2011, 10:49 AM ]

Enable the PHP Apache module in the configuration file under /etc/apache2/httpd.conf.

PHP applications often require that the timezone is set in your PHP installation. By default the OSX PHP installation does not set the time zone. you must
sudo cd /etc
sudo cp php.ini.default php.ini
sudo nano php.ini
and set the timezone in the configuration file. In my case Europe/Zurich.

User Site Running under OSX Lion

posted Jul 17, 2010, 2:29 PM by Marcel Baumann   [ updated Oct 7, 2011, 11:00 AM ]

To have your private Site - personal web site under Apache 2 - running under OSX Lion I had to add the following configuration in /private/etc/apache2/httpd.conf to enable access
<directory "/Users/shortusername/Sites">
  Options Indexes FollowSymLinks MultiViews
   AllowOverride None
   Order allow,deny
   Allow from all
</directory>
This configuration tells the Apache server that the user personal files are accessible through the web server. For a detailed discussion consult the documentation of the Apache server. The user short user name is the folder name you see in the finder view. The same change applies to OSX Snow Leopard

1-9 of 9