Wednesday, October 22, 2014

How to auto-load MySQL on startup on OSX 10.10 (Yosemite)

After upgrading to OSX Yosemite(10.10), MySQL stopped loading on startup.
The MySQL documentation says:
The Startup Item installation adds a variable MYSQLCOM=-YES- to the system configuration file /etc/hostconfig. If you want to disable the automatic startup of MySQL, change this variable to MYSQLCOM=-NO-.

So, I opened that file and it says:
# This file is going away

As OSX mentioned this file is going away.

You need to create a Property List file (.plist) to start MySQL automatically on system startup.
First, create a new property list file:
sudo vim /Library/LaunchDaemons/com.mysql.mysql.plist
Add the following lines to it:
<!--?xml version="1.0" encoding="UTF-8"?-->
<plist version="1.0">
    <true />
Then update permissions and add it to launchctl:
sudo chown root:wheel /Library/LaunchDaemons/com.mysql.mysql.plist
sudo chmod 644 /Library/LaunchDaemons/com.mysql.mysql.plist
sudo launchctl load -w /Library/LaunchDaemons/com.mysql.mysql.plist
That's it. Now the MySQL service will be started on OS X startup.

Monday, May 26, 2014

Ubuntu 14.04 release party in Tehran, Iran

Ubuntu 14.04 Release Party
There was a release party of the Ubuntu 14.04 in Tehran. It was a great opportunity to see those young geeks there all together. Workshops, presentations and open ideas were the three sections of the festival.
The workshops were about introducing Ubuntu 14.04 features, FOSS business models, programming (Python, Ruby) and embedded Linux. Unlike the previous festivals, many people take part in workshops. The FOSS business models workshop was the most interesting one. Seems people are very curious to learn how to make money in the FOSS territory.
Presenting the new features in Ubuntu 14.04 was the next part of the festival. Danial Behzadi made a perfect presentation. The other presentations were about GNU/Linux news, OpenStack, Using Linux Everywhere and Salam-Donya magazine.
The open idea was the last part of the festival. Five ideas were presented and the participants voted them. The winner got 5,000,000 rial. It was about a network grid computing solution.
Photos by Negar Najimi: