How to show real visitor’s IP address after installing CloudFlare protection while running Apache web server on Debian 7 or Debian 8

Well it's fairly self explanatory - you are running any service that needs customer's real IP address and now you have a problem - it shows only the proxy address of CloudFlare, this is especially painful when you do for example access restrictions (IP restrictions) via .htaccess file. So how to fix this on Debian 7? Btw. the # means you need to be root just fyi... 1) Check for dependencies: # apt-get install libtool apache2-threaded-dev 2) wget the necessary files: # wget https://www.cloudflare.com/static/misc/mod_cloudflare/mod_cloudflare.c (Just Read more [...]

How to recursively change ownership of a directory in Ubuntu 14.04 LTS

Hi guys, today I would like to share with you how to recursively change the ownership of a directory in Ubuntu 14.04 LTS. Obviously this also works in Ubuntu 12.04 LTS, Debian 7 and others. Btw. "recursively" means the folder and everything what's inside (files, sub directories etc..)... it's fairly easy - assuming you want to do recursive change of ownership of folder /tmp/mydirectory to user "root" within group "root": chown -R root:root /tmp/mydirectory That was easy. Wasn't it? ;). Enjoy Read more [...]

How to install VMware tools for Workstation 11.0 in Debian 7.x x64

Installation of VMware tools in latest Debian is fairly easy: 1) Click Install VMware tools on host computer 2) mount the VMware CD: mount /dev/cdrom /mnt/cdrom 3) Copy the VMwareTools-*.tar.gz file from /media/vmware  to any directory on your HDD 4) unpack the files: tar -xvzf VMwareTools*.tar.gz 5) go to the vmware-tools-distrib  directory and run following: apt-get update apt-get install build-essential apt-get install linux-headers-$(uname -r) 6) Install the tools: sudo ./vmware-install.pl 7) Read more [...]

How to auto-start OpenVPN client in Debian 6 and Ubuntu 12.04 (also works for Debian 7 and Ubuntu 14.04)

Update 2015-04-16: This how to was originally written for Debian 6 and Ubuntu 12.04 but I can assure you that it has been tested with success on Ubuntu 14.04 LTS. Just make sure you really use file client.conf (NOT client.ovpn). I had this huge problem - my Debian desktop did not reconnect to the VPN on reboot so here is a small how-to what needs to be done :). Assumptions: You have working installation of OpenVPN client so when you are in /etc/openvpn and type: openvpn client.conf , where Read more [...]