Raspberry Pi as WiFi Hotspot

MINImal raspBIAN image for Raspberry Pi (Minibian) What you need Minibian (Debian Jessie 8) 2016-03-12 Dnsmasq as DNS and DHCP server (already running in my network) Raspberry Pi Model B (Rev 1.0, 256Mb) 5V 2A microUSB power adapter 8GB microSD card Ethernet cable Edimax EW-7811Un N150 Wireless USB Adapter Nano (RTL8192CU chipset) Download and copy … Read more

OwnCloud Let’s Encrypt certificate renewal

I use OwnCloud with Let’s Encrypt certificate and recently I received error message below from my ctrontab command: ./letsencrypt-auto renew All renewal attempts failed. The following certs could not be renewed: /etc/letsencrypt/live/cloud.eu/fullchain.pem (failure) 1 renew failure(s), 0 parse failure(s) WARNING: certbot.renewal:Attempting to renew cert from /etc/letsencrypt/renewal/cloud.conf produced an unexpected error: At least one of the … Read more

Let’s Encrypt with Apache on Ubuntu

Clone the Let’s Encrypt repository sudo git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt Access the letsencrypt directory cd /opt/letsencrypt Auto install all dependencies sudo -i ./letsencrypt-auto Generate certificates for your domains Execute the interactive installation and obtain a certificate for each domain. ./letsencrypt-auto certonly –webroot -w /var/www/faix/wordpress/ -d faix.cz -d www.faix.cz ./letsencrypt-auto certonly –webroot -w /var/www/zviretnik/wordpress/ -d zviretnik.eu … Read more

merge multiple JPG to PDF

Have you ever wated to create PDF file from multiple JPG images from Linux command line? It is simple, just type: convert `ls -v *.JPG` output.pdf The convert command is part of imagemagick package. In Debian / Ubuntu / Mint you can install it via command: apt-get install imagemagic

Ntopng on Debian

Here is description how to install Ntopng on Debian. “ntopng” is an open-source network traffic monitor that shows the network usage, the next generation version of the original ntop. NEW ntopng v2.4.1 ntopNG Debian repository. Debian 7 (wheezy) wget http://apt-stable.ntop.org/wheezy/all/apt-ntop-stable.deb dpkg -i apt-ntop-stable.deb grep -q "wheezy-backports" /etc/apt/sources.list || echo "deb http://ftp.debian.org/debian wheezy-backports main" >> /etc/apt/sources.list … Read more

Sarg – Squid Analysis Report Generator

Install Sarg – Squid Analysis Report Generator wget -O sarg-latest.tar.gz http://sourceforge.net/projects/sarg/files/latest/download?source=files tar zxvf sarg-latest.tar.gz cd sarg-* ./configure make sudo make install /usr/local/etc/sarg.conf access_log /var/log/squid3/access.log output_dir /var/www/squid-reports temporary_dir /var/tmp/sarg date_format e overwrite_report yes lastlog 45 resolve_ip yes mkdir -p /var/www/squid-reports /var/tmp/sarg chown www-data:www-data /var/www/squid-reports /var/tmp/sarg chmod 775 /var/tmp/sarg usermod -a -G proxy,staff www-data Generate Sarg report … Read more

Squid transparent proxy

Setup Squid transparent proxy http://thejimmahknows.com/squid-3-1-caching-proxy-with-ssl/ http://codepoets.co.uk/2014/squid-3-4-x-with-ssl-for-debian-wheezy/ Install required dependencies: apt-get build-dep squid3 openssh openssl apt-get install devscripts build-essential fakeroot libtool libssl-dev libcrypto++-dev devscripts ssl-cert squid-langpack libecap2-dev Download Squid sources: cd /usr/src wget http://ftp.debian.org/debian/pool/main/s/squid3/squid3_3.4.8.orig.tar.bz2 wget http://ftp.debian.org/debian/pool/main/s/squid3/squid3_3.4.8-6.debian.tar.xz tar -xvf squid3_3.4.8.orig.tar.bz2 cd squid-3.4.8/ tar -xvf ../squid3_3.4.8-6.debian.tar.xz Include Squid transparent SSL support: vi debian/rules –enable-ssl \ –enable-ssl-crtd \ Build … Read more

Simple differential backups using rdiff-backup

As a user I want to have differential backups of my documents and git directories from my computer at work to my remote off-site server. Frequency of backups is one time a day at 1:00 AM. Retention policy is to keep backups 12 months. Install rdiff-backup on source computer and on destination server also. apt-get … Read more

Setup centralised Syslog server

Server Open access in UFW firewall port 514 tcp/udp: ufw allow from 192.168.122.0/27 port 514 mkdir /var/log/rsyslog chown root:adm /var/log/rsyslog The following code in 90-rsyslog.conf should be placed before the “*.info;mail.none;authpriv.none;cron.none /var/log/syslog” entry which is done using directive $IncludeConfig /etc/rsyslog.d/*.conf in /etc/rsyslog.conf. Be sure you replace server-name below with the name of your central logging … Read more