Tinderbox/Tbox3 Setup: Difference between revisions

Line 18: Line 18:
==== MySQL ====
==== MySQL ====


First you need a tinderbox user, for example tbox3 which the code uses. For the below, "pass" is assumed to be the password you assigned to the tbox3 user.
First, install mysql.  I'm running Debian, so I use apt-get:
 
  yourmachine:~# apt-get install mysql-server mysql-client mysql-common
 
(Note that the current version is 4.0.24, as of this writing, on 2006-05-21 Sunday.)
 
Set a password for the MySQL root user (replace "pass" with the password you choose).
 
  yourmachine:~# mysqladmin -u root password 'pass'
 
Now you need a tinderbox user, for example tbox3 which the code uses.
 
  yourmachine:~# adduser
  Enter a username to add: tbox3
  Adding user `tbox3'...
  Adding new group `tbox3' (1001).
  Adding new user `tbox3' (1001) with group `tbox3'.
  Creating home directory `/home/tbox3'.
  Copying files from `/etc/skel'
  Enter new UNIX password: pass
  Retype new UNIX password: pass
  passwd: password updated successfully
  Changing the user information for tbox3
  Enter the new value, or press ENTER for the default:
          Full Name []: Tinderbox3
          Room Number []:
          Work Phone []:
          Home Phone []:
          Other []:
  Is the information correct? [y/N] y
  yourmachine:~#
 
For the below, "pass" is assumed to be the password you assigned to the tbox3 user.


   yourmachine:~# mysql
   yourmachine:~# mysql
Line 31: Line 63:
Next, download and expand the tinderbox3 sources:
Next, download and expand the tinderbox3 sources:


   wget http://www.johnkeiser.com/mozilla/tbox3.tgz
   yourmachine:~# wget http://www.johnkeiser.com/mozilla/tbox3.tgz
   tar xzvf tbox3.tgz
   yourmachine:~# tar xzvf tbox3.tgz


Now create the tables:
Now create the tables:


   cd tbox3/sql
   yourmachine:~# cd tbox3/sql
   ./setup-mysql.pl --username tbox3 --password pass
   yourmachine:~# ./setup-mysql.pl --username tbox3 --password pass


This gives errors saying it can't drop tables. That's okay; if you run it
This gives errors saying it can't drop tables. That's okay; if you run it
21

edits