Grocy is a free and open-source web-based self-hosted grocery and household management solution. This guide will help you install Grocy on Kali Linux.
Before you begin the installation, make sure you have the following:
sudo apt-get update
sudo apt-get install mariadb-server mariadb-client -y
sudo systemctl start mariadb
sudo systemctl enable mariadb
sudo mysql -u root
CREATE DATABASE grocy;
GRANT ALL ON grocy.* to 'grocyuser'@'localhost' IDENTIFIED BY 'password';
Note: Replace password
with your desired password.
FLUSH PRIVILEGES;
exit;
wget https://github.com/grocy/grocy/releases/download/v3.2.4/grocy_3.2.4.zip
Note: Replace v3.2.4
with the latest version.
unzip grocy_3.2.4.zip -d /var/www/html/
cd /var/www/html/grocy
curl
to download dependencies:sudo apt install curl
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
sudo apt install php-gd php-curl php-mbstring php-mysql php-xml
sudo composer install --no-dev
cp config-dist.php config.php
nano config.php
Find the line that says define('GROCY_DATABASE_NAME', 'your_database_name');
and replace your_database_name
with the database name you created earlier.
Find the line that says define('GROCY_DATABASE_USER', 'your_database_username');
and replace your_database_name
with the username you created earlier.
Find the line that says define('GROCY_DATABASE_PASSWORD', 'your_database_password');
and replace your_database_password
with the password you created earlier.
Save and exit the configuration file.
sudo a2enmod rewrite
sudo nano /etc/apache2/sites-available/grocy.conf
<VirtualHost *:80>
ServerAdmin admin@yourdomain.com
ServerName yourdomain.com
ServerAlias www.yourdomain.com
DocumentRoot /var/www/html/grocy
<Directory /var/www/html/grocy>
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/grocy_error.log
CustomLog ${APACHE_LOG_DIR}/grocy_access.log combined
</VirtualHost>
Note: Replace yourdomain.com
with your domain name.
sudo a2ensite grocy.conf
sudo systemctl reload apache2
http://yourdomain.com/
Congratulations! You have successfully installed Grocy on Kali Linux.
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!