Contents |
Gallery2 is currently available in Debian Stable (aka Etch), Testing (aka Lenny) and Debian Unstable (aka Sid) in the package gallery2
Gallery2 requires either the Postgres or MySQL database server. The Debian package only requires the database client, so if you don't have the database server you'll have to install it yourself. Make sure that you have testing or unstable in your /etc/apt/sources.list and first run:
apt-get update
So that you get the latest list of packages.
If you intend to use Gallery in a language other than english, make sure the correct locales are installed on your system.
To see what locales are known by the system, type:
locales -a
If your target language is not listed, you should regenerate it:
dpkg-reconfigure --priority=low locales
And choose the appropriate locales. Make sure to get the "root" locale if you pick a variant (ex: if you use fr_CA, pick also fr_FR) otherwise Gallery won't find your localization.
To install the MySQL server simply run:
apt-get install mysql-server
To install the Postgres server, run:
apt-get install postgresql-7.4
Since the Gallery2 package does not require the postgres client, you'll also have to do:
apt-get install postgresql-client-7.4
For Gallery2 to work properly, you need to create a new database for your gallery. With MySQL, just type:
$ mysqladmin -uroot create gallery2
$ mysql gallery2 -uroot -e"GRANT ALL ON gallery2.* TO username@localhost IDENTIFIED BY 'password'"
Or, if you use Postgres:
$ createdb gallery2 -E UNICODE
If it complains that UNICODE is not a valid encoding name, then try:
$ createdb gallery2 -E SQL_ASCII
If it complains about that, too then try:
$ createdb gallery2
In username, use your own username (e.j mygallery). In password, type your own password. Remember both username and password, because in the galley2 installation you will be asked for that.
To install Gallery2, run:
apt-get install gallery2
This will download and install Gallery2. It will ask you for MySQL database information. You must enter this, even if you're planning on using Postgres. In a later version of the package we will provide better support for Postgres during the debian package installation.
Once Gallery2 is installed, browse to:
http://www.example.com/gallery2
And run through the regular installer.
To see where Gallery2 files are installed, you can run:
dpkg -L gallery2
This will provide you with a complete list of all installed files.