Skip to content
This repository has been archived by the owner on Feb 25, 2025. It is now read-only.

url shortener which creates a print. for denouncing despicable content without giving it views or pagerank

License

Notifications You must be signed in to change notification settings

piratas/naofode.partidopirata.org

This branch is 1 commit ahead of naofode/nao.usem.xyz:master.

Folders and files

NameName
Last commit message
Last commit date
Oct 31, 2014
Oct 31, 2014
Oct 21, 2014
Jun 21, 2017
Feb 17, 2016
May 10, 2014
May 10, 2014
Feb 21, 2016
May 10, 2014
May 10, 2014
Feb 18, 2016
May 10, 2014
May 10, 2014
Feb 21, 2016
Aug 11, 2014
Oct 31, 2014
May 10, 2014
Oct 31, 2014
Aug 11, 2014
Jun 21, 2017

Repository files navigation

naofo.de

url shortener which creates a print. for denouncing despicable content without giving it views or pagerank / it's all about http://wkhtmltopdf.org/

simple installation guide for ubuntu 14.04

dependencies:

  • python
  • apache
  • php5
  • php5-curl
  • php5-mysql
  • mysql
  • wkhtmltoimage
  • imagemagick

other requirements:

  • recaptcha
  • google analytics

steps:

  1. add apache variables in /etc/apache2/envvars:

    export naofode_privatekey='recaptcha-public-key'
    export naofode_publickey='recaptcha-private-key'
    export naofode_dsn='mysql:host=localhost;dbname=naofode'
    export naofode_dbuser='???'
    export naofode_dbpass='???'

  2. alter recaptcha site key in static.php

  3. alter analytics javascript in index.php

  4. create database table:

    mysql> source /path/to/schema.sql

  5. edit files static.php to match your local configuration.

    also, currently you'll have to change line 11 of file lib/Thrash.class.php to suit your environment.

  6. alter <Directory /var/www/> in /etc/apache2/apache2.conf:

    AllowOverride All

  7. execute

    mkdir /var/www/html/prints

  8. execute

    chown www-data:www-data /var/www/html/prints

  9. execute

    a2enmod rewrite

  10. execute

    service apache2 restart

Troubleshooting

xvfb

On a headless server I had to use xfvb as mentioned here and here.

On a debian based system you have to: sudo apt-get install xvfb

Otherwise, the capture.sh file should be changed to not use xvfb.

About

url shortener which creates a print. for denouncing despicable content without giving it views or pagerank

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 89.7%
  • CSS 7.2%
  • JavaScript 2.4%
  • Other 0.7%