Myami on Ubuntu » History » Version 13
Jim Pulokas, 08/09/2012 11:33 AM
1 | 1 | Jim Pulokas | h1. myami on Ubuntu |
---|---|---|---|
2 | |||
3 | This is a work in progress. Use at your own risk. This is mainly a log of various experiences installing myami on Ubuntu which will gradually evolve into a more formal document. This will attempt to demonstrate the installation of all of myami including both leginon and appion on a single Ubuntu host. This will also include running MySQL, Apache Torque, etc. on this local host without needing to connect to any other host. |
||
4 | |||
5 | 3 | Jim Pulokas | h2. Installing a basic Ubuntu system |
6 | 1 | Jim Pulokas | |
7 | We use Ubuntu 12.04 LTS (Precise) Desktop 64 bit. Install a basic system from an image on CD or bootable USB drive. Default selections during the install process, no 3rd party repositories, no network configuration and no updates during the installation. This makes it easier in the remainder of this document to know that we have started from a known base system. Reboot. |
||
8 | |||
9 | Following the initial reboot: |
||
10 | 4 | Jim Pulokas | * connect to the internet (click network icon in upper right) |
11 | 3 | Jim Pulokas | * update packages:<pre>sudo apt-get update |
12 | sudo apt-get upgrade</pre> |
||
13 | 1 | Jim Pulokas | * Reboot |
14 | 3 | Jim Pulokas | |
15 | You now have a basic up-to-date Ubuntu system |
||
16 | |||
17 | 12 | Jim Pulokas | h2. Configuring MySQL |
18 | |||
19 | * create /etc/mysql/conf.d/myami.cnf with the following contents:<pre>[mysqld] |
||
20 | default-storage-engine=myisam |
||
21 | query_cache_size = 100M |
||
22 | query_cache_limit = 100M</pre> |
||
23 | * restart mysql server:<pre>sudo service mysql restart</pre> |
||
24 | * create databases for leginon and appion:<pre>sudo mysqladmin create leginondb |
||
25 | sudo mysqladmin create projectdb</pre> |
||
26 | 13 | Jim Pulokas | * create user and grand privileges... login to mysql as root:<pre>mysql -u root mysql</pre> |
27 | **once inside mysql client, grant privs:<pre>create user user usr_object@'localhost'; |
||
28 | 12 | Jim Pulokas | grant all privileges on leginondb.* to usr_object@'localhost'; |
29 | grant all privileges on projectdb.* to usr_object@'localhost'; |
||
30 | grant alter, create, insert, select, update on `ap%`.* to usr_object@localhost;</pre> |
||
31 | |||
32 | 1 | Jim Pulokas | h2. Installing additional packages required by myami |
33 | 4 | Jim Pulokas | |
34 | 5 | Jim Pulokas | There are many additional packages to install, but we can try to condense that list to the smallest set necessary to pass to the update command which will then figure out all the other dependencies. |
35 | |||
36 | Here is a single command to install all the necessary packages:<pre>sudo apt-get install subversion vim python-MySQLdb python-wxgtk2.8 python-fs mysql-server php5 php5-mysql libssh2-php php5-gd</pre>During installation, you will be prompted several times to create a mysql root password. This can optionally be left blank at the expense of less security. Note: installing the vim text editor is my own preference... use an inferior text editor if you wish :) |
||
37 | |||
38 | 8 | Jim Pulokas | The Scipy package is also required, but the current version 0.9.0 that comes with Ubuntu 12.04 is broken. You need to grab the more recent version of Scipy from Ubuntu Quantal (development version). To make a clean installation that will not confuse the package manager we have prepared a mini-repository that includes this new scipy. You can download and install scipy using the following set of commands copied into your terminal.<pre>sudo mkdir /usr/local/share/myami</pre>That should get your password in the sudo cache so you can copy the rest of these without entering a password:<pre>cd /usr/local/share/myami |
39 | 9 | Jim Pulokas | sudo wget http://emg.nysbc.org/attachments/download/1488/ubuntu-scipy-0.10.1.tar.bz |
40 | 7 | Jim Pulokas | sudo tar jxf ubuntu-scipy-0.10.1.tar.bz |
41 | 10 | Jim Pulokas | sudo sh -c 'echo "deb file:///usr/local/share/myami/ubuntu-scipy-0.10.1 ./" > /etc/apt/sources.list.d/myami.list' |
42 | 7 | Jim Pulokas | sudo apt-get update |
43 | 11 | Jim Pulokas | sudo apt-get install python-scipy</pre>Make sure that last line executes (may have to hit enter). Also, you may have to confirm installing it without authentication. |