Author Archives: Mike Lane

Ubuntu Server 14.04 (Trusty Tahr) – Zentyal 3.5 Installation

ubuntu-server-logo

Zentyal Server is an open source Linux small business server, that can act as a Gateway, Infrastructure Manager, Unified Threat Manager, Office Server, Unified Communication Server or a combination of the above.

I am performing this setup on a minimal virtual machine installation of Ubuntu Server 14.04. At the time of writing Zentyal 3.5 is the most current Zentyal release.

First make sure that repositories and software are up to date:

sudo apt-get update
sudo apt-get upgrade

Add the Zentyal 3.5 repository to /etc/apt/sources.list:

echo "deb http://archive.zentyal.org/zentyal 3.5 main extra" | sudo tee -a /etc/apt/sources.list

Import public keys for Zentyal 3.5:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 10E239FF
wget -q http://keys.zentyal.org/zentyal-3.5-archive.asc -O- | sudo apt-key add -

Update repositories:

sudo apt-get update

Install Zentyal:

sudo apt-get install zentyal
  • When prompted enter a password for the MySQL root user.
  • Confirm port 443 as the Zentyal https port.

From here we simply setup Zentyal using the web-gui. Open Firefox (the only officially supported browser) and enter the url for your Zentyal install: https://zentyal-server-ip.

Confirm the security exception in Firefox and then log in to Zentyal using your Ubuntu Server credentials:

Zentyal - login

Ubuntu Server 14.04 (Trusty Tahr) – Quick MediaDrop Installation

ubuntu-server-logo

MediaDrop is a open source online video platform for managing and delivering video, audio and podcasts.

mediadrop

Sadly I found the official documentation to be lacking and had to cross reference it with other install guides to even get a basic setup running.

This guide will take you through a basic installation of MediaDrop that utilizes the built in Paste Server provided by Python. If you prefer a more permanent solution you can setup an Apache 2 or Nginx web server yourself. For the time being I am happy enough to just have MediaDrop running – having experienced a couple of bugs I do not want to mess with my working configuration any further right now.

My working environment is a minimal installation of Ubuntu 14.04 Server on VMware vSphere 5.x.

Let’s begin our installation – first we will elevate ourselves to the root user and then install MySQL, System libraries, development headers, python libraries and tools:

sudo -i

apt-get install mysql-server mysql-client libjpeg-dev zlib1g-dev libfreetype6-dev libmysqlclient-dev python-dev python-setuptools python-virtualenv git

When prompted enter a password for the MySQL root user.

Setup Python virtual environment:

cd /

virtualenv --no-site-packages venv

Activate the virtual environment:

source venv/bin/activate

Install MediaDrop from Git:

git clone git://github.com/mediadrop/mediadrop.git mediadrop-git

Download and install all the necessary dependencies for MediaDrop into your virtual environment:

cd mediadrop-git

python setup.py develop

Generate the deployment.ini file:

paster make-config MediaDrop deployment.ini

We will now bring up a mysql> prompt to administer the MySQL database:

mysql -u root -p

Enter your MySQL password when prompted.

Create the MySQL database mediadrop_db and the MySQL user mediadrop_user and a password for mediadrop_user:

mysql> create database mediadrop_db;
mysql> grant usage on mediadrop_db.* to mediadrop_user@localhost identified by 'mysecretpassword';
mysql> grant all privileges on mediadrop_db.* to mediadrop_user@localhost;
mysql> exit;

Note: Change ‘mysecretpassword‘ to the password you want for mediadrop_user.

Edit the delpoyment.ini file:

nano deployment.ini

Under the [app:main] heading, look for the sqlalchemy.url setting:

sqlalchemy.url = mysql://username:pass@localhost/dbname?charset=utf8&use_unicode=0

Change the username, pass, and dbname entities to mediadrop_user, password and mediadrop_db:

Note: password here refers to the password that you designated earlier for mediadrop_user.

sqlalchemy.url = mysql://mediadrop_user:mysecretpassword@localhost/mediadrop_db?charset=utf8&use_unicode=0

Setup the built in server:

paster setup-app deployment.ini

Enable simple full text searching:

mysql -u root mediadrop_db < setup_triggers.sql -p

Enter your MySQL password when prompted.

Now that MediaDrop itself is installed and the basics are configured, we can test it out using the Paste server:

paster serve --reload deployment.ini

Open a browser and enter the ip address for your server using port 8080. For example – http://server-ip:8080

To access the admin dashboard you need to append /admin to the above url.

If you restart your server you will need to activate the virtual environment again and run the Paste server again. A basic script to handle this looks like this:

#!/bin/bash
cd /
source venv/bin/activate
cd mediadrop-git
paster serve --reload deployment.ini

Save this as something like mediadrop-start.sh and then make it executable:

chmod +x mediadrop-start.sh

Run the script as follows:

sudo ./mediadrop-start.sh

As a closing note I did encounter issues accessing the admin panel after changing the admin password when using Firefox. I could access the admin panel using Internet Explorer though.

Sources:

http://mediadrop.net/docs/install/index.html

https://docs.google.com/document/pub?id=1DAikm-mCYiNFddClW21S0G-EwzINIC_gUl7pn2jq2zA

Windows Phone 8.1 Update 1 – 0x80188308 Error

Windows8-Phone-Logo

Unfortunately I have been experiencing the following error on my Lumia 520 trying to update to Windows Phone 8.1 Update 1:

Can't update phone

It's a probably a temporary problem. To try again, go to Settings > Phone Update. (0x80188308).

I haven’t seen any resolution to this issue so far as so I decided to simply back up my data and then do a hard reset:

  • From the Start Screen swipe down and tap All Settings. Scroll down and then tap About and then tap reset your phone and follow the prompts.

After the reset log into the Preview for Developers and then go to All Settings, Phone update and Check for Updates.

After this I found that Update 1 installed correctly – current OS version: 8.10.14157.200.

WP8-About

Note: Off the top of my head I don’t recall how much phone storage is required to complete an update but I had over 3.5 Gb available after the update was complete.

Surface Pro 3 – Battery Care

Surface logo

I can’t recall having specific battery care instructions for previous laptops that I have owned but page 101 of the Surface Pro 3 User Guide states the following:

  • Recharge anytime. The battery doesn’t need to be empty or low before you recharge … However, it’s best to let the battery run down to 10% at least once per month before you recharge it.

Windows 8.1 – How to Change the Accent Color

Windows 8 Logo

I ran through the Out of Box Experience too quickly yesterday on Windows 8.1 and forgot to change the accent color. It’s fortunately simple to change.

On the Start Screen type personalize and then select Change the background and colors on start.

Next simply select the accent color from the Personalize panel:

Personalize

Surface Pro 3 – Quick Tip – No PrintScreen Button on the Type Cover

Surface logo

The Surface Pro 3 Type covers lacks the traditional PrintScreen button which is useful for grabbing a quick screenshot of your screen.

Surface Pro 3 Type Cover Keyboard

A workaround is to simply press Fn + Windows + Space in sequence.

The screen will dim briefly and then a screenshot will be stored in Pictures\Screenshots.

 

 

 

Surface Pro 3 – Quick Tip – Visual Studio (Hyper-v) Disables Sleep (Connected Standby)

Surface logo

So I recently installed Visual Studio 2013 on my Surface Pro 3 and then found that I could no longer put it to sleep.

VS 2013 enables Hyper-v in Windows which developers use to test apps in other Operating Systems (such as Windows Phone). The problem is that Hyper-v conflicts with the advanced power management features (Connected Standby) on the Surface Pro 3.

Windows Phone Emulator

Visual Studio 2013 running Windows Phone 8 emulator in Hyper-v

While Hyper-v can be turned on and off this requires a reboot – and the Surface Pro 3 can only be shutdown, restarted or hibernated while Hyper-v is running.

The work-around is to manually enable and disable hyper-v and then reboot.

To disable Hyper-v open an Administrator Command Prompt, enter this command and then reboot:

bcdedit /set hypervisorlaunchtype off

Hyper-V can be enabled again with this command (which also requires a reboot):

bcdedit /set hypervisorlaunchtype auto