Install EyeOS on Sheevaplug

From PlugWiki
Jump to: navigation, search

Steps to be followed to install EyeOS on Sheevaplug

Requirements

Hardware

  • Sheevaplug

Software

  • PHP (Version 5.2.0 or above)
  • Apache (Version 2.x)
  • Php5-cli
  • Php5-mysql
  • PHP-unit
  • Libapache2-mod-php5

Installation Steps

  • Connect the ethernet cable of the Sheevaplug to WAN and power it on. Please follow the steps listed at the Plugcomputer.org site to get a serial terminal [[1]]
  • Install the package Apache2 using command
   # apt-get install apache2
  • Install the package Php5-cli using command
   # apt-get install php5-cli
  • Install the package Php5-mysql using command

This command installs the mysql server.

   # apt-get install php5-mysql
  • Install the package PHP-unit using command
   # apt-get install phpunit
  • Install the package libapache2-mod-php5 using command
   # apt-get install libapache2-mod-php5
  • Download the tar ball available at [[2]] and uncompress it in your web server directory on the Sheevaplug.

For example:

   # cd /var/www/<mywebdir>
   # wget http://sourceforge.net/projects/eyeos/files/eyeos2/eyeOS-2.0.0.1.tar.gz/download
   # gunzip eyeOS-2.0.0.1.tar.gz
   # tar xvf eyeOS-2.0.0.1.tar
  • Connect to mysql using
   # mysql -u root -h localhost -p
  • Enter the root password for your sheevaplug device(e.g. "nosoup4u" which is the default root password for the Sheevaplug device).
  • Create a database and select that database for the eyeOS's tables.
   [mysql] CREATE DATABASE eyeos;
  • Make the database useable.
   [mysql] USE eyeos;
  • Execute all the scripts located in the following directories in the same order using
   [mysql] source /var/www/<mywebdir>/eyeos/extras/EyeosUMSQL/EyeosUMSQL.sql
   [mysql] source /var/www/<mywebdir>/eyeos/extras/EyeosEventsNotification/EyeosEventNotification.sql
   [mysql] source /var/www/<mywebdir>/eyeos/extras/EyeosPeopleSQL/EyeosPeopleSQL.sql
  • At the STORAGE section of the "/var/www/<mywebdir>/settings.php" file, set the values for the database access as
   define('SQL_CONNECTIONSTRING', 'mysql:dbname=eyeos;host=127.0.0.1');
   define('SQL_USERNAME', 'root');
   define('SQL_PASSWORD', 'root'); 

Replace "eyeos" with the name of the database that you created above.

Replace the host "127.0.0.1" with the hostname of your Sheevaplug device e.g. sheevaplug-debian.

Replace the password "root" in the above file with "nosoup4u" (which is the default root password for the Sheevaplug device).

  • Execute the following commands on the shell to set correct permissions
   # sudo chown -R www-data:www-data /var/www/<mywebdir>/eyeos
   # sudo chmod -R 777 /var/www/<mywebdir>/eyeos
  • Installation of the package libapache2-mod-php5 creates a file: /etc/php5/apache2/php.ini
  • Edit this file and add these lines at the end of the file.
   extension=pdo.so
   extension=pdo_mysql.so
  • If an apache server instance is already running, restart it using
   # /etc/init.d/apache2 restart
  • else start the apache2 server using
   # /etc/init.d/apache2 start
  • The system comes up with two users created by default - root (password: root) and john (password: john).
  • If all the steps have been followed, you should be able to access your EyeOS start page through the address

you set up on your web server ( for example:"http://<IP address of your Sheevaplug>/<mywebdir>). Once this is done, you can login to your EyeOS 2.0 with the default credentials or create a new user if you wish.

Personal tools