Lychee is a free open-source photo management tool that allows you to easily organize, share and backup your photos. In this tutorial, we will show you how to install Lychee on Manjaro.
Before we begin, make sure that you have the following:
Before we install Lychee, we need to make sure that all the necessary dependencies are installed on our system. To do so, open a terminal window and run the following command:
sudo pacman -S php php-gd php-intl php-pgsql postgresql imagemagick
This command will install PHP, PostgreSQL, and other required packages.
Once you have installed PostgreSQL, you will need to configure it. To do so, run the following commands:
sudo -iu postgres
initdb --locale $LANG -E UTF8 -D '/var/lib/postgres/data/'
sudo systemctl start postgresql
sudo systemctl enable postgresql
psql -c "CREATE USER lycheeuser WITH PASSWORD 'lycheeuser';"
psql -c "CREATE DATABASE lychee WITH OWNER lycheeuser ENCODING 'UTF8';"
The above commands create a PostgreSQL user and database for Lychee. You can replace lycheeuser
and lycheepassword
with your desired values.
To download and install Lychee, follow these steps:
/var/www/html/lychee/
.sudo chown -R http:http /var/www/html/lychee/
sudo chmod -R 755 /var/www/html/lychee/
Now that Lychee is installed, we need to configure it. To do so, follow these steps:
Rename the uploads/big
folder to uploads/big-dist
.
Rename the uploads/import
folder to uploads/import-dist
.
Copy the uploads
folder from the Lychee installation folder to /var/lib/postgres/data/lychee/
.
Copy the data
folder from the Lychee installation folder to /var/www/html/lychee/
.
Create a copy of the config.php
file and rename it to config_local.php
. The config_local.php
file will hold your custom configuration options.
Edit the config_local.php
file and configure the following options:
<?php
$dbHost = 'localhost';
$dbName = 'lychee';
$dbUser = 'lycheeuser';
$dbPassword = 'lycheeuser';
$lycheeUrl = 'http://localhost/lychee';
Make sure to enter the correct values for your Lychee installation and PostgreSQL database.
Finally, we need to configure our web server to serve Lychee. Follow these steps:
/etc/httpd/conf/httpd.conf
file and add the following lines:Alias /lychee /var/www/html/lychee
<Directory /var/www/html/lychee>
AllowOverride All
</Directory>
sudo systemctl restart httpd
Now that everything is set up, you can access Lychee by visiting http://localhost/lychee
in your web browser.
By following the above steps, you have successfully installed Lychee on Manjaro. Lychee is a powerful photo management tool that makes it easy to organize, share, and backup your photos.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!