drupal patch

You can patch drupal file, or any other file
with a txt file named something.patch
copy file to a root directory of file to be patched, and run this command
patch -p1 < something.patch

Drupal instalation

tested on: drupal 7, linux mint 17,LAMP
apache install extension
apt install php7.0-gd php7.0-mysql php7.0-common php7.0-xml
copy drupal files to:
cd /var/www/drupal

dont forget to copy .httaccess

- in .htaccess uncoment