Category Archives: Operating Systems

zsh: non-standard shell error

Getting the following error when trying to change your mac terminal to use zsh?

chsh: /usr/local/bin/zsh: non-standard shell

All you need to do to fix this is to add the zshell path ( /usr/local/bin/zsh) to your /etc/shells file.

sudo vim /etc/shells

I added  /usr/local/bin/zsh to the end of the file.





Installing TrueCrypt7.1a for OSX Yosemite

Open the .dmg

You’ll find the .mpkg. Right*click and “Show Package Contents

Open Contents Dir

Open Packages Dir

Install each of the 4 packages in this order:
1. OSXFUSECore.pkg,
3. MacFUSE.pkg,
4. TrueCrypt.pkg

Taken from the source listed below.  They also have other ways of accomplishing the same thing, but I found the way listed above to be the easiest and least technical


Install RVM and HomeBrew for Yosemite (Mac OSX v10.10)

Download “Command Line Tools (OS X 10.10)” for Xcode 6.1.1 from

Screen Shot 2014-12-03 at 9.57.54 AM

I installed rvm for multi-user.

\curl -sSL | sudo bash -s stable

This will automatically download and install homebrew for you.

Make sure the user who is installing this, has added “rvm” to their groups. You can do this under “System Preferences” –> “Users & Groups”. Go to rvm group, and check off the usernames you would like to add the group to. (make sure the lock the botton is unlocked).

Screen Shot 2014-12-03 at 10.03.04 AM Screen Shot 2014-12-03 at 10.03.16 AM Screen Shot 2014-12-03 at 10.03.40 AM

Installing ruby version 2.1.5

rvm install 2.1.5

RVM will automatically grab all the dependencies, packages, and updates via homebrew.

ownCloud v5.0 on Eucalyptus Cloud with Ubuntu 12.04 Server installation

Want to host your own DropBox clone? I’m going to go over our setup for hosting our own dropbox clone using owncloud and a server instance from our in house eucalyptus cloud.

Since we are hosting this inside ubuntu 12.04 server edition, most of the installation will be done in the command line.  Open up the command line from within your server and begin.

1. Install the package dependencies required inside ubuntu 12.04 server. (update to latest ubuntu packages first, might have to reboot after upgrade, open a new terminal after upgrade to check for restart messages)
sudo apt-get update && sudo apt-get upgrade && sudo apt-get autoclean && sudo apt-get autoremove && sudo apt-get dist-upgrade
sudo apt-get install apache2 php5 php5-gd php-xml-parser php5-intl php5-sqlite php5-mysql smbclient curl libcurl3 php5-curl

2. Download owncloud (version 5 at this time of writing).

3.  Unzip owncloud and move it to the hosted apache document root. Modify permissions to be accessible for your webserver (we are using apache)
tar xvf owncloud-5.0.0.tar.bz2
sudo mv owncloud /var/www/
sudo chown www-data:www-data -R /var/www/owncloud

4.  Modify apache configuration to host owncloud. (We want to host with SSL for security  so we will be using a self signing certificate).

apache config

sudo a2enmod rewrite headers ssl
openssl genrsa -des3 -out ip-172-31-254-122.key 1024
openssl req -new -newkey rsa:2048 -nodes -keyout ip-172-31-254-122.key -out ip-172-31-254-122.csr
openssl x509 -req -days 365 -in ip-172-31-254-122.csr -signkey ip-172-31-254-122.key -out ip-172-31-254-122.crt
sudo mv ip-172-31-254-122.crt /etc/ssl/certs/
sudo mv ip-172-31-254-122.key /etc/ssl/private

5.   Install mysql or percona database.  (We are using Percona-5.5 and we will be building percona from source.) [or use my script to install]
Because we are installing this on a eucalyptus cloud instance, which has limited hdd storage in root, I will move the mysql data directory to /var/lib/mysql/data

sudo apt-get install build-essential cmake bison ncurses-base ncurses-bin ncurses-runtime ncurses-dev
cmake -L && cmake . && make && sudo make install
sudo addgroup –system mysql
sudo adduser –system mysql –no-create-home -ingroup mysql
cd /usr/local/mysql
sudo chown -R mysql:mysql .
sudo mkdir /var/lib/mysql
sudo ./scripts/mysql_install_db –user=mysql –basedir=/usr/local/mysql
sudo chown -R root .
sudo chown -R mysql data
sudo mkdir /var/run/mysqld
sudo chown -R mysql:mysql /var/run/mysqld
cd /usr/local/mysql/support-files
sudo cp my-large.cnf /etc/my.cnf
sudo chown mysql:mysql /etc/my.cnf

# modify mysql configuration file  using your own custom settings as they vary depending on hardware and preference.
sudo vim /etc/my.cnf 

sudo mkdir /var/log/mysql
sudo chown mysql /var/log/mysql
cd /usr/local/mysql/support-files
sudo cp mysql.server /etc/init.d/mysql
sudo chmod +x /etc/init.d/mysql
sudo update-rc.d mysql defaults
sudo /etc/init.d/mysql restart
mysqladmin -u root password
sudo ln -s /var/run/mysqld/mysqld.sock /tmp/mysql.sock
cd /usr/local/mysql
sudo ./bin/mysql_secure_installation

6.  open web browser and navigate to your owncloud domain or ip and follow the on screen configuration directions.

owncloud install

ubuntu 12.10 runs very slow on virtualbox 4.2.10

What’s causing the problem?

in short, 12.10 no longer includes unity 2d and VirtualBox settings don’t have 3d acceleration enabled with unity 3d.

How to fix?

Found this great fix given by Mathew Buckett inside the askubuntu forums.

Ubuntu 12.10 no longer includes Unity 2D, which was implemented for platforms that can’t provide 3D acceleration. Instead, Ubuntu 12.10 has Unity run under LLVM, making code intended for the GPU run on the CPU. It is much slower than using the GPU.

To check if your Ubuntu 12.10 guest is using 3D acceleration, run this command:

$ /usr/lib/nux/unity_support_test -p
Not software rendered:    no
Not blacklisted:          yes
GLX fbconfig:             yes
GLX texture from pixmap:  yes
GL npot or rect textures: yes
GL vertex program:        yes
GL fragment program:      yes
GL vertex buffer object:  yes
GL framebuffer object:    yes
GL version is 1.4+:       yes

Unity 3D supported:       no

As you can see, “Not software rendered” and “Unity 3D supported” both return “no” in this example, which means Unity is using slow LLVMpipe.

How to enable 3D acceleration (VirtualBox 4.2.x only)

These instructions are intended for VirtualBox 4.2.4 or 4.2.6, installed from VirtualBox’s website, not from Ubuntu’s repo. Future versions of VirtualBox may fix this problem automatically, or may need a different workaround. (i’m using 4.2.10, and will provide my changes in bold). 

  1. Install VirtualBox Oracle VM VirtualBox Extension Pack.
  2. Create a VirtualBox instance and install Ubuntu 12.10 on it.
  3. Install some required packages for the guest additions:
    sudo apt-get install linux-headers-$(uname -r) build-essential
  4. Install the guest additions by clicking Devices, Install Guest Additions and running this command from the CD-ROM’s directory: (/media/[username]/VBOXADDITIONS_4.2.10_84104/)
    sudo ./
  5. Add the vboxvideo driver to the instance by running:
    sudo bash -c 'echo vboxvideo >> /etc/modules'
  6. Shutdown the VirtualBox instance.
  7. Open the settings of the Virtualbox instance, navigate to “Display”, and tick “Enable 3D acceleration”.
  8. Boot your Ubuntu 12.10 guest, and check that 3D acceleration is working by running:
    /usr/lib/nux/unity_support_test -p

If windows seem to disppear, install CompizConfig Settings Manager and disable Framebuffer Object (FBO) in the OpenGL section:

  1. Install the CompizConfig Settings Manager:
    sudo apt-get install compizconfig-settings-manager
  2. Run the CompizConfig Settings Manager:
  3. Select the OpenGL section and then untick the Framebuffer Object option. If this fixes the issue it should be immediately visible. No reboot is required.