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

Kernel compilation (Debian Jessie)

Kernel compilation (Debian Jessie) http://www.tecmint.com/kernel-compilation-in-debian-linux/ You will need 8-10 GB of free disk space! apt-get install fakeroot kernel-package wget -c https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.14.20.tar.xz tar -xvJf linux-3.14.20.tar.xz cd linux-3.14.20 cp /boot/config-`uname -r` .config apt-get install libncurses5-dev make menuconfig make-kpkg clean export CONCURRENCY_LEVEL=3 fakeroot make-kpkg –append-to-version "-customkernel" –revision "1" –initrd kernel_image kernel_headers cd .. dpkg -i linux-image-3.14.20-customkernel_1_amd64.deb linux-headers-3.14.20-customkernel_1_amd64.deb Install … Read more

Install Sublime Text 3 in Debian via PPA

I like to have all software up to date using APT repositories. Sadly, there is no repository for my favorite Sublime Text editor for Debian. So first we gonna install add-apt-repository command: sudo apt-get install software-properties-common Let’s do some nasty hack, and install Ubuntu repository into Debian: sudo add-apt-repository ppa:webupd8team/sublime-text-3 Do not update repositories yet, … Read more

Xfce Print Screen key

https://wiki.archlinux.org/index.php/Xfce#Print_Screen_key XFCE Menu –> Settings –> Keyboard >>> Application Shortcuts Add the xfce4-screenshooter -f command to use the “PrintScreen” key in order to take fullscreen screenshots.

transmission-daemon: segfaults with systemd

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=742626 When installing transmission-daemon from APT on a Jessie/Sid with systemd enabled, dpkg fails with: systemctl status transmission-daemon.service: ExecStart=/usr/bin/transmission-daemon -f –log-error (code=killed, signal=SEGV) process exited, code=killed, status=11/SEGV systemd[1]: Failed to start Transmission BitTorrent Daemon. systemd[1]: Unit transmission-daemon.service entered failed state. Solution is to add path to configuration directory “-g /etc/transmission-daemon” into following file: /lib/systemd/system/transmission-daemon.service ExecStart=/usr/bin/transmission-daemon … Read more