M/Monit server on Ubuntu

M/Monit monitoring Server apt-get install libapache2-mod-proxy-html libxml2-dev cd /usr/local/ wget https://mmonit.com/dist/mmonit-3.3-linux-x64.tar.gz tar -zxvf mmonit-3.3-linux-x64.tar.gz /etc/apache2/sites-available/monit <VirtualHost *:80>     ServerAdmin jan@faix.cz     ServerName monit.faix.cz     ServerAlias monitoring.faix.cz     <Location />          Order deny,allow          Allow from all     </Location>     ProxyPass / http://localhost:8080/     ProxyPassReverse / http://localhost:8080/ </VirtualHost> a2enmod proxy proxy_http a2ensite monit service apache2 restart /etc/hosts 127.0.0.1   localhost monit.faix.cz /usr/local/mmonit/conf/server.xml     <Connector address="*" … Read more

Transmission Web Interface on Debian

apt-get install transmission-daemon Your server is running nonstop, so why to download torrents from your desktop, when you can conveniently start the download from your web browser using Transmission-daemon running on your server. service transmission-daemon stop usermod -a -G users debian-transmission usermod -d /var/lib/transmission-daemon debian-transmission chown -R debian-transmission:debian-transmission /etc/transmission-daemon /var/lib/transmission-daemon/info rm /var/lib/transmission-daemon/info/settings.json There has to … Read more

Firewall and router on Debian

Network interfaces /etc/network/interfaces # The loopback network interface auto lo iface lo inet loopback # WAN network interface auto eth0 iface eth0 inet static address 172.16.2.19 netmask 255.255.255.240 network 172.16.2.16 broadcast 172.16.2.31 gateway 172.16.2.17 # LAN network interface auto eth1 iface eth1 inet static address 192.168.122.1 netmask 255.255.255.224 network 192.168.122.0 broadcast 192.168.122.31 UFW apt-get install … Read more

OpenWRT TP-Link TL-WR1043ND

Back in the past I have installed OpenWRT BackFire 10.03 on my TP-Link TL-WR1043ND v1. It was quite pita that time, because I was using WAN port which get disabled after flashing OpenWRT firmware. It was necessary to revert back to crafted TP-Link firmware, which will not disable WAN port after flashing DD-WRT or OpenWRT … Read more

Skype missing shared object file

My Skype refused to start, saying following error: skype: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory First locate “missing” library or use find / -name libGL.so.1 command. locate libGL.so.1 /etc/alternatives/glx–libGL.so.1-x86_64-linux-gnu /etc/alternatives/nvidia–libGL.so.1-x86_64-linux-gnu /usr/lib/mesa-diverted/i386-linux-gnu/libGL.so.1 /usr/lib/mesa-diverted/i386-linux-gnu/libGL.so.1.2.0 /usr/lib/mesa-diverted/x86_64-linux-gnu/libGL.so.1 /usr/lib/mesa-diverted/x86_64-linux-gnu/libGL.so.1.2.0 /usr/lib/x86_64-linux-gnu/libGL.so.1 /usr/lib/x86_64-linux-gnu/nvidia/libGL.so.1 /usr/lib/x86_64-linux-gnu/nvidia/current/libGL.so.1 I’m using Intel Graphics, so I picked up … Read more

Restore WordPress site from backup

I’m doing regullar backups using BackUpWordpress plugin. Find the backup my-site-complete-backup.zip file in directory like this /var/www/wordpress/wp-content/backupwordpress/ and copy it to new WordPress site location. cd /var/www/wordpress/ unzip my-site-complete-backup.zip mysql -h localhost -u root -p database-name < my-site-complete-backup.sql rm -f my-site-complete-backup.sql If you moved your site to another domain name, you will need to do … Read more

VirtualBox and phpvirtualbox

Headless Virtualbox running on Ubuntu 12.04 server http://www.howtoforge.com/phpvirtualbox-running-virtual-machines-with-virtualbox-4.2-and-phpvirtualbox-on-a-headless-ubuntu-12.04-server http://www.howtoforge.com/vboxheadless-running-virtual-machines-with-virtualbox-4.1-on-a-headless-ubuntu-12.04-server http://www.howtoforge.com/managing-a-headless-virtualbox-installation-with-phpvirtualbox-on-nginx-ubuntu-12.04 /etc/apt/sources.list.d/virtualbox.list deb http://download.virtualbox.org/virtualbox/debian precise contrib wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | apt-key add – apt-get update apt-get install linux-headers-$(uname -r) build-essential virtualbox-4.3 dkms wget http://download.virtualbox.org/virtualbox/4.3.10/Oracle_VM_VirtualBox_Extension_Pack-4.3.10-92957.vbox-extpack VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.3.10-92957.vbox-extpack useradd -d /home/vbox -m vbox passwd vbox adduser vbox vboxusers /etc/default/virtualbox VBOXWEB_USER=vbox update-rc.d vboxweb-service defaults phpvirtualbox in … Read more

Grep tips and tricks

Grep configuration file without comments: grep -Ev "(^[[:blank:]]*#|^$)" /etc/nginx/nginx.conf Grep log file without unwanted messages: grep 'Nov 17' /var/log/syslog | egrep -vi "\[UFW BLOCK\] | CRON"

Postfix server configuration

Postfix server (Debian / Ubuntu) is: configured to primary domain faix.cz listening on SMTP port 25 on home-server machine   From Internet it delivers email for following domain: faix.cz From LAN it delivers email for following domain: home.lan Every LAN computer forwards it’s mail for any user to home-server mail server and is processed to … Read more

Chromium v38 sign in problem

I have installed Chromium v38 from my Debian Jessie repositories and I’m facing the following error “Service unavailable; try again later” when a try to sign in from Chromium. Until the new version v38 starts to work correctly, I will stick with previous one v37. Download Chromium v37 packages from here. chromium_37.0.2062.120-2_amd64.deb chromium-l10n_37.0.2062.120-2_all.deb chromium-inspector_37.0.2062.120-2_all.deb apt-get … Read more