MeTube is a video sharing web application that is built on PHP, MySQL, and Bootstrap. In this tutorial, we will guide you step by step on how to install MeTube on Kali Linux.
First, you need to clone the MeTube repository from the GitHub.
git clone https://github.com/alexta69/metube.git
Next, configure your Apache server. The document root should point to the metube
directory which is in the cloned repository.
sudo nano /etc/apache2/sites-available/metube.conf
Copy and paste the below code in the file.
<VirtualHost *:80>
ServerName metube.local
DocumentRoot /var/www/html/metube
DirectoryIndex index.php
<Directory /var/www/html/metube/>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Save and close the file. Then, enable the virtual host.
sudo a2ensite metube.conf
sudo systemctl reload apache2
Now, create a new MySQL database metube
and add a new user.
mysql -u root -p
CREATE DATABASE metube;
CREATE USER 'metube_user'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON metube.* TO 'metube_user'@'localhost';
FLUSH PRIVILEGES;
exit;
Update the MeTube configuration file with the database credentials.
cd /var/www/html/metube
cp config.php.sample config.php
nano config.php
Update the following lines with the above-created MySQL user credentials.
$dbhost = 'localhost';
$dbname = 'metube';
$dbuser = 'metube_user';
$dbpass = 'password';
Install necessary PHP dependencies by running the following command.
sudo apt install php7.x-mysql php7.x-gd php7.x-xml php7.x-mbstring php7.x-curl
Finally, visit http://metube.local
in your web browser. You will see the sign-in page of MeTube.
Enter the default administrator credentials, admin
as the username and password
for the password.
You have now successfully installed MeTube on your Kali Linux machine.
Happy video sharing :)
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!