Getting the PHP runtime for App Engine to run on Ubuntu

AppEngine + PHPExciting news out of Google I/O 2013 reveals PHP support on Google AppEngine. As a php and a appengine-nerd, this is great news. And setting up the local development environment on Ubuntu (13.04) was a breeze.

The PHP runtime for AppEngine requires the cgi-version of php 5.4 (and above) and python  2.7 (and above). Most Ubuntu-installations have python installed, but i’ll cover those steps as well, feel free to skip those if they are redundant for you.

Installing Python

sudo apt-get install python

Installing php5-cgi
(this should be safe to install even if you currently have a php-version installed since it’s the cgi version)

sudo apt-get install php5-cgi

Grabbing the AppEngine for PHP SDK

wget http://commondatastorage.googleapis.com/appengine-php/appengine-php-sdk-1.8.0.zip
unzip appengine-php-sdk-1.8.0.zip

Starting a local AppEngine instance using php5-cgi

./dev_appserver.py /path/to/your/app –php_executable_path=/usr/bin/php5-cgi

Your app should now be serving on http://localhost:8080/.

More details can be found in the official documentation:
https://developers.google.com/appengine/docs/php/gettingstarted/

How to re-enable workspaces on Ubuntu 13.04 Raring Ringtail


enableworkspacesCanonical (the makers of Ubuntu) decided to remove the highly useful workspaces on default Ubuntu installations. But have no fear, this guide re-enables the workspaces within a minute or so.

It’s actually a lot easier than i thought, so ignore below and just open Settings -> Appearance and click on Behavior. Now you can re-enable workspaces with the “Enable Workspaces”-checkbox.

I’ve also updated the screenshot to better illustrate this.

———–

First off we need to install unity-tweak-tool, either click on the link or type in the following commands in a Terminal (Ctrl + Alt + T)

sudo apt-get install unity-tweak-tool

Now open unity-tweak-tool using the Terminal:

unity-tweak-tool

In the window, click the “Workspace Settings”-icon (check the picture above) and flip “Workspace Switcher” to “On”.

Workspaces have now been re-enabled on your machine and it’s a persistent settings, so you don’t need to redo this if you reboot your machine.

How to fix Unity And Compiz not showing after Ubuntu 13.04 upgrade

Ubuntu 13.04 Raring RingtailAfter upgrading my installation of 12.10 Quantal Quetzal to Ubuntu 13.04 raring ringtail Unity decided to go in to hiding mode. Not sure why this happened, but resetting Unity And Compiz solved the issue for me.

Resetting Unity and Compiz is exactly what it sounds like. It will reset all customizations and configurations you’ve done to Unity and Compiz. So make sure that you backup any settings you wish to keep. Your mileage may vary.

Before resetting we need to install dconf-tools on your machine:

sudo apt-get install dconf-tools

Now run the following command to reset Unity and Compiz:

dconf reset -f /org/compiz/

All you need to do now is to logout and login and Unity should re-appear on you brand spanking fresh version of Ubuntu. Enjoy!

Changing the default font-size on Ubuntu 12.04

Are you like me and feel a bit overwhelmed by the default massive font-size in Ubuntu? Well, if you’re on Ubuntu 12.04 you’re in luck. Since there is a really easy way to change this setting.

Luckly and thanks to some helpful individual we have MyUnity. MyUnity is a simple little tool that let you tweek most of Unity in 12.04 without having to install gnome-tweak-tool. The usage is really straightforward and it’ll have you customizing Ubuntu in no time.

This is how my default Ubuntu 12.04 looked like:

Changing the font using MyUnity:

And the result:

It seems like this tool only work with 12.04 and older, so please read the appropriate documentation if you try and use it on a Ubuntu version below this. Also, i strongly recommend that you reboot your machine after doing the settings.

Good luck and happy Ubuntu-ing!