LinuxFr.org is a French-speaking website about Free software / hardware / culture / stuff.
This git repository is the rails application that run on LinuxFr.org.
The following instructions will help you to install the Rails part of LinuxFr.org on a Debian box.
- First install some Debian packages:
# aptitude install mysql-server mysql-client libmysql++-dev git-core
# aptitude install build-essential openssl libreadline-dev nodejs-legacy
# 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-comprehensive redis-server ruby
Note: you can use libcurl4-gnutls-dev instead of libcurl4-openssl-dev.
- Configure the database:
# mysql -p -u root
<enter your root password for mysql>
> CREATE DATABASE linuxfr_rails CHARACTER SET utf8mb4;
> CREATE USER linuxfr_rails IDENTIFIED BY 'asecretpassword';
> GRANT ALL PRIVILEGES ON linuxfr_rails.* TO "linuxfr_rails"@"localhost";
> QUIT;
(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
- Clone the repository, configure and install gems:
$ git clone git://github.com/linuxfrorg/linuxfr.org.git
$ cd linuxfr.org
$ bin/setup
If you are updating, run instead:
$ bin/update
- Let's run it:
$ bin/rails server
$ x-www-browser http://127.0.0.1:3000/
- 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 -u linuxfr_rails linuxfr_rails
mysql> UPDATE accounts SET role='admin' WHERE login='xxxxxx';
- Reload the page on the site, you should be admin.
If you want the full stack for running LinuxFr.org, you should also look at:
- The admin files
- The migration script
- The board daemon
- The share daemon
- The epub daemon
- The img daemon
- SVGTeX
The code is licensed as GNU AGPLv3. See the LICENSE file for the full license.
The default avatar is a modified Tux.
Feather icons are licenced MIT.
♡2011 by Bruno Michel. Copying is an act of love. Please copy and share.