$ apt-get install apache2 $ apt-get install mysql-server $ apt-get install subversion-tools $ apt-get install ruby libdbd-mysql-ruby1.8The other packages you'll have to get manually. The first being rubygems:
$ wget http://rubyforge.org/frs/download.php/5207/rubygems-0.8.11.tgz $ tar xzvf rubygems-0.8.11.tgz $ cd rubygems-0.8.11 $ ruby setup.rbNext, install rails
$ gem install railsChoose Yes to all dependancies. Now to get the Tracks package. Subversion is the quickest way:
$ cd /home/joe $ svn co --username=guest \ http://www.rousette.org.uk/svn/tracks-repos/tags/tracks-1.03 \ tracksUse guest as the password. You can create a new domain for your site. I chose to use tracks.hemingway.com. For more information on this, follow the Debian DNS article.
$ ddns.py add tracks.hemingway.com A 192.168.1.11Next, configure a vhost for the site:
$ vi /etc/apache2/sites-available/tracks <VirtualHost> ServerName tracks.hemingway.com ServerAlias www.tracks.hemingway.com DocumentRoot /home/joe/tracks/public ErrorLog /var/log/apache2/tracks-error.log CustomLog /var/log/apache2/tracks-access.log combined </VirtualHost> $ a2ensite tracksAlso enable the mod-rewrite module
$ a2enmod rewriteAnd restart apache
$ /etc/init.d/apache2 restartNow for configuring MySQL. Create a new database called tracks and import the tables.
$ mysql -u root -p mysql> create database tracks; mysql> grant all privileges on tracks.* to someone@localhost \ identified by 'password' mysql> exit $ cd /home/joe/tracks/db $ mysql -u root -p tracks < tracks_1.0.3_mysql.sqlThe final step is to configure Tracks itself.
$ cd /home/joe/tracks $ mv log.tmpl log $ cd config $ cp database.yml.tmpl database.yml $ cp settings.yml.tmpl settings.ymlFor the database.yml file, you really only need the production section:
production: adapter: mysql database: tracks host: localhost username: someone password: password socket: /var/run/mysqld/mysqld.sockDon't forget to add the socket line. That's Debian specific. In the settings.yml file, all you need to do is edit the email address to your own. For the final step, go to http://yoursite/signup to create an account for yourself. The first account is the Admin account and after it's created, you'll no longer be able to go to the signup page again. Since it's a Rails application, it's going to run pretty slow unless you do some tweaking on it. There's a ton of resources for that, so I won't cover it here. Original Article.
Share this page: