| 124 | |
| 125 | {{{ |
| 126 | sudo apt-get update |
| 127 | sudo apt-get install apache2 |
| 128 | sudo apt-get install libapache2-mod-php5 |
| 129 | sudo apt-get install php5-mysql |
| 130 | sudo a2enmod php5 |
| 131 | sudo apt-get install mysql-server |
| 132 | |
| 133 | cd ~/Tutorials/ |
| 134 | wget http://geni.cs.umass.edu/dicloud-tutorial.tgz |
| 135 | tar xzvf dicloud-tutorial.tgz |
| 136 | mv dicloud-tutorial.tgz DiCloud/source |
| 137 | |
| 138 | cd /var/www |
| 139 | sudo ln -s /home/geni/Tutorials/DiCloud/www/vise vise |
| 140 | cd ~/Tutorials/DiCloud |
| 141 | sudo chown -R www-data www |
| 142 | sudo chgrp -R www-data www |
| 143 | chmod u+x key_install.sh |
| 144 | sudo ln -s /usr/lib/jvm/jdk1.6.0_27 java-6-sun |
| 145 | |
| 146 | mysql -u root -p |
| 147 | mysql> create database dicloud; |
| 148 | mysql> create user vise; |
| 149 | mysql> SET PASSWORD FOR 'vise' = PASSWORD(''); |
| 150 | mysql> quit; |
| 151 | |
| 152 | mysql -u root -p < source/dicloud.schema |
| 153 | mysql -u root -p |
| 154 | mysql> use dicloud; |
| 155 | mysql> INSERT INTO users(id, username, password) VALUES (1, 'admin', SHA1('geni')); |
| 156 | mysql> INSERT INTO admin_rights VALUES (1, true, true, true, true); |
| 157 | mysql> GRANT ALL ON dicloud.* TO 'vise'@'localhost'; |
| 158 | mysql> quit |
| 159 | }}} |
| 160 | |
| 161 | Note that the password for the root MySQL user is geniuser. |