My RPi Projects

NextCloud nc.bebubi.comNextCloudPi 
          #curl -sSL https://raw.githubusercontent.com/nextcloud/nextcloudpi/master/install.sh | bash
PiVPN    PiVPN Simplest OpenVPN setup and configuration, designed for Raspberry Pi      
         #curl -L https://install.pivpn.io | bash
PiHole   PiHole
         #curl -sSL https://install.pi-hole.net | bash

         Whitelist anudeepND
         Blocklist Blocklist Project
WordPress Build a LAMP Web Server with WordPressNote: WordPress installation uses lighttpd server which is part of PiHole. 

Condensed installation steps:

+ Install PHP 7 and Related Modules
  apt install php php-cgi php-mysql php-gd php-pear php-mcrypt php-xmlrpc -y

+ Install MySQL
  apt-get install mysql-server php-mysql -y

+ Download WordPress
  cd /var/www/html/
  wget http://wordpress.org/latest.tar.gz
  tar xzf latest.tar.gz
  mv wordpress/* .
  rm -rf wordpress latest.tar.gz
  chown -R www-data: .

+ Set up your WordPress Database
  mysql_secure_installation

    You will be asked Enter current password for root (enter for none): — press Enter.
    Type in Y and press Enter to Set root password?.
    Type in a password at the New password: prompt, and press Enter. 
      Important: remember this root password, as you will need it later to set up WordPress.
    Type in Y to Remove anonymous users.
    Type in Y to Disallow root login remotely.
    Type in Y to Remove test database and access to it.
    Type in Y to Reload privilege tables now.
    When complete, you will see the message All done! and Thanks for using MariaDB!.

+ Create the WordPress database
  mysql -uroot -p
  create database wordpress;
  GRANT ALL PRIVILEGES ON wordpress.* TO 'root'@'localhost' IDENTIFIED BY 'YOURPASSWORD';
  FLUSH PRIVILEGES;

+ Restart Lighttpd
  sudo systemctl stop lighttpd.service
  sudo systemctl start lighttpd.service
  sudo systemctl enable lighttpd.service

+ WordPress configuration
  Open the web browser on your Pi and goto http://<your_ip> 
  You should see a WordPress page asking to pick your language.

Completed installation directory structure:
pi@home-pi2:~ $ cd /var/www/html/
pi@home-pi2:/var/www/html $ ls -ltr
total 216
-rw-r--r--  1 www-data www-data  4764 Nov 30  2017 wp-trackback.php
-rw-r--r--  1 www-data www-data  8403 Nov 30  2017 wp-mail.php
-rw-r--r--  1 www-data www-data  3306 Nov 30  2017 wp-load.php
-rw-r--r--  1 www-data www-data   369 Nov 30  2017 wp-blog-header.php
-rw-r--r--  1 www-data www-data   420 Nov 30  2017 index.php
-rw-r--r--  1 www-data www-data  3068 Aug 17  2018 xmlrpc.php
-rw-r--r--  1 www-data www-data 19935 Jan  1 20:37 license.txt
-rw-r--r--  1 www-data www-data  2898 Jan  8 04:30 wp-config-sample.php
-rw-r--r--  1 www-data www-data  3847 Jan  9 08:37 wp-cron.php
-rw-r--r--  1 www-data www-data  6919 Jan 12 06:41 wp-activate.php
-rw-r--r--  1 www-data www-data  2502 Jan 16 05:29 wp-links-opml.php
-rw-r--r--  1 www-data www-data 31085 Jan 16 16:51 wp-signup.php
-rw-r--r--  1 www-data www-data  2283 Jan 21 01:34 wp-comments-post.php
-rw-r--r--  1 www-data www-data 18962 Mar 28 19:04 wp-settings.php
-rw-r--r--  1 www-data www-data  7447 Apr  8 23:59 readme.html
-rw-r--r--  1 www-data www-data 39574 Apr 15 23:39 wp-login.php
drwxr-xr-x  9 www-data www-data  4096 May 21 19:24 wp-admin
drwxr-xr-x 20 www-data www-data 12288 May 21 19:24 wp-includes
drwxr-xr-x  7 www-data www-data  4096 May 30 03:35 admin
-rw-r--r--  1 www-data www-data  3378 May 30 03:35 index.lighttpd.orig
drwxr-xr-x  2 www-data www-data  4096 May 30 03:36 pihole
-rw-rw-rw-  1 www-data www-data  3174 May 30 03:46 wp-config.php
drwxr-xr-x  7 www-data www-data  4096 May 31 19:25 wp-content
RetroPie
https://retropie.org.uk/download/https://github.com/retropie/retropie-setup/wiki/Wiimote-Controller