Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

The new version of will be in Ruby on Rails. It's my resolution for 2009. -- NoNo is a french web site speaking of Linux and Free Software.

This git repository is the rails application that run on


The following instructions will help you to install the Rails part of on a Debian box.

1) First install some Debian packages:

# aptitude install mysql-server mysql-client libmysql++-dev git-core
# aptitude install build-essential openssl libreadline6 libreadline6-dev
# aptitude install curl libcurl4-openssl-dev zlib1g zlib1g-dev libssl-dev
# aptitude install libxml2-dev libxslt-dev autoconf libgmp-dev libyaml-dev
# aptitude install ncurses-dev bison automake libtool imagemagick libc6-dev
# aptitude install hunspell hunspell-fr openjdk-6-jdk redis-server

2) Configure the database:

# mysql -p -u root
<enter your root password for mysql>
> CREATE DATABASE linuxfr_rails;
> GRANT ALL PRIVILEGES ON linuxfr_rails.* TO "linuxfr_rails"@"localhost";
(return to user)

Statistics need time zone at SQL level. You'll need to population time_zone* tables.
# mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -p -u root mysql

3) Install RVM (more details on ):

$ curl -L | bash

And follow the instructions.

4) Install Ruby with RVM:

$ rvm install 2.1.1
$ rvm use --default 2.1.1

5) Clone the repository, configure and install gems:

$ git clone git://
$ cd
$ cp config/database.yml{.sample,}
$ cp config/secret.yml{.sample,}
$ gem install bundler rake
$ bundle install

6) Finish to configure:

$ desi install
$ desi start
$ ./bin/rake db:setup
(if you're updating, you'll need an other step: redis-cli flushdb)
$ ./bin/rake elasticsearch:import FORCE=y

7) Let's run it:

$ ./bin/rails server
$ x-www-browser

8) Create an admin account:

  • Create an account
  • Get confirmation link in the console and confirm the account
  • Get password in the console
  • Give admin role to this account with mysql linuxfr_rails mysql> UPDATE accounts SET role='admin' WHERE login='xxxxxx';
  • Reload the page on the site, you should be admin.

See also

If you want the full stack for running, you should also look at:

How to run the specs

1) Be sure that redis and ElasticSearch are running

2) And now, just run rspec (and repeat this step until done):

$ .bin/rspec spec

How to generate a CSS

CSS are written in sass and compiled with the Rails assets pipeline. If you just want to compile a CSS without installing Rails and all its dependency, you can install the sass gem and launch:

./bin/compile_sass app/assets/stylesheets/application.css.scss > app.css


The code is licensed as GNU AGPLv3. See the LICENSE file for the full license.

The default avatar is a modified Tux.

Iconic icons are licenced CC by-sa 3.0.

♡2011 by Bruno Michel. Copying is an act of love. Please copy and share.

Something went wrong with that request. Please try again.