PictShare is an open-source image hosting platform that allows you to upload, share, and store images. In this tutorial, we will guide you on how to install PictShare on the latest version of Kali Linux.
PictShare requires the Apache web server and PHP to run.
Open the terminal and run the following command to update the packages:
sudo apt-get update
Next, install the Apache web server and PHP by running the following command:
sudo apt-get install apache2 php libapache2-mod-php
After installation, start the Apache web server by running the following command:
sudo systemctl start apache2
Also, enable Apache to start at boot time by running the following command:
sudo systemctl enable apache2
PictShare requires MariaDB as the database management system. Run the following command to install it:
sudo apt-get install mariadb-server
Start the MariaDB service by running the following command:
sudo systemctl start mariadb
Then, secure the MariaDB installation by running the following command and answering the prompts:
sudo mysql_secure_installation
Login to MariaDB by running the following command:
sudo mysql -u root -p
You will be prompted to enter the root password that you set during the MariaDB installation.
Create a new database for PictShare by running the following commands:
create database pictshare;
create user 'pictshare'@'localhost' identified by '<your-password>';
grant all privileges on pictshare.* to 'pictshare'@'localhost';
exit;
Replace <your-password>
with a strong password of your choice.
Download the latest stable release of PictShare from the official website:
sudo wget http://pictshare.org/download/pictshare-latest.zip
Extract the downloaded file by running the following command:
sudo unzip pictshare-latest.zip -d /var/www/html/
Rename the extracted folder to pictshare
by running the following command:
sudo mv /var/www/html/pictshare-master /var/www/html/pictshare
Change the ownership of the pictshare
folder to the Apache user by running the following command:
sudo chown -R www-data:www-data /var/www/html/pictshare
Rename the global.config.example.php
file to global.config.php
by running the following command:
sudo mv /var/www/html/pictshare/include/global.config.example.php /var/www/html/pictshare/include/global.config.php
Open the global.config.php
file using a text editor:
sudo nano /var/www/html/pictshare/include/global.config.php
Update the following parameters in the file:
define('MYSQL_HOST','localhost');
define('MYSQL_USER','pictshare');
define('MYSQL_PASS','<your-password>');
define('MYSQL_DB','pictshare');
define('PATH', '/pictshare/');
Replace <your-password>
with the password that you set for the pictshare
user earlier.
Save and close the file by pressing CTRL
+X
, Y
, and ENTER
.
Create a new Apache VirtualHost configuration file for PictShare by running the following command:
sudo nano /etc/apache2/sites-available/pictshare.conf
Add the following content to the file:
<VirtualHost *:80>
DocumentRoot /var/www/html/pictshare
<Directory /var/www/html/pictshare/>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/pictshare_error.log
CustomLog ${APACHE_LOG_DIR}/pictshare_access.log combined
</VirtualHost>
Save and close the file by pressing CTRL
+X
, Y
, and ENTER
.
Enable the new VirtualHost configuration by running the following command:
sudo a2ensite pictshare.conf
Restart the Apache web server by running the following command:
sudo systemctl restart apache2
Open a web browser and navigate to http://localhost/pictshare
or the IP address of your Kali Linux machine (e.g., http://192.168.1.100/pictshare
).
You should see the PictShare interface, where you can upload and manage your images.
In this tutorial, we have shown you how to install PictShare on Kali Linux Latest. With PictShare, you can easily host, upload, and share your images on your own server.
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!