diff --git a/Linux-ubuntu.textile b/Linux-ubuntu.textile index 00e9f30..d9bffa1 100644 --- a/Linux-ubuntu.textile +++ b/Linux-ubuntu.textile @@ -10,16 +10,13 @@ In these instructions some things may be different from set up to set up. Some w h3. 1 - Installing all dependencies - -$ sudo tasksel install lamp-server +
$ sudo tasksel install lamp-server
 
-$ sudo aptitude install ruby libdbd-mysql-ruby rake libopenssl-ruby libapache2-mod-passenger
-
+$ sudo aptitude install ruby libdbd-mysql-ruby rake libopenssl-ruby libapache2-mod-passenger
h3. 2 - Download and set permissions for tracks - -$ wget http://github.com/bsag/tracks/zipball/1.7.1 +
$ wget http://github.com/bsag/tracks/zipball/1.7.1
 
 $ unzip ./bsag-tracks-1.7.1-0-g13db454.zip
 
@@ -38,7 +35,7 @@ $ sudo find /var/lib/tracks -type f -exec chmod 600 '{}' \;
 $ sudo find /var/lib/tracks/script -type f -exec chmod 700 '{}' \;
 
 $ sudo ln -s /var/lib/tracks/public /var/www/tracks
-
+
Note: the zip and extracted directory filenames will probably be different Note: it's not possible to move the configuration files to ''/etc'' as is usual with Debian applications without having to change the code. If such is desired, the file ''config/boot.rb'' will require some editing. @@ -47,7 +44,7 @@ The ''find'' and ''chmod'' commands will set permissions as ''700'' for all dire h3. 3 - Create MySQL database - +

 $ sudo mysql -u root -p
 mysql> CREATE DATABASE tracks;
 Query OK, 1 row affected (0.03 sec)
@@ -57,7 +54,7 @@ Query OK, 0 rows affected (0.08 sec)
 
 mysql> quit;
 Bye 
-
+
Note: if you choose a different database name, MySQL user to access the database or different password, they'll have to be change accordingly here and on the following. It's not difficult to do so, just requires a bit of extra attention. @@ -65,31 +62,29 @@ h3. 4 - Configure tracks The file ''config/database.yml'' needs to be edited. Edit ONLY the production section - +

 production:
   adapter: mysql
   database: tracks
   host: localhost
   username: tracksuser
   password: trackspassword
-
+
The file ''config/site.yml'' needs to be edited. Choose a new salt word and set the correct time zone. The only things that need to be changed are - +

 salt: ''change-me'' 
-
-
+
 time_zone: ''UTC''
-
+
To get a list of available time zones, use the command - -$ sudo rake --rakefile=/var/lib/tracks/Rakefile time:zones:local - +
$ sudo rake --rakefile=/var/lib/tracks/Rakefile time:zones:local 
+
h3. 5 - Populate database @@ -101,12 +96,11 @@ h3. 6 - Configure and restart apache Create a file for the tracks application on apache configuration and set it to use Passenger - -$ echo "RailsBaseURI /tracks" | sudo tee /etc/apache2/conf.d/tracks.conf +
$ echo "RailsBaseURI /tracks" | sudo tee /etc/apache2/conf.d/tracks.conf
 
 $ sudo mv /var/lib/tracks/public/.htaccess /var/lib/tracks/public/.dontneedhtaccess
 
 $ sudo /etc/init.d/apache2 restart
-
+
Open the URL http://localhost/tracks to start tracks. Whatever is the URL of your webserver, just add tracks to access to it remotely. \ No newline at end of file