Monthly Archives: December 2015

headless remote browser screenshots

Source: http://jerel.co/blog/2010/10/using-firefox-on-a-headless-server-to-make-screenshots-of-websites apt-get install xvfb firefox imagemagick Xvfb :1 -screen 0 1280x960x24 & DISPLAY=:1 firefox http://www.alain.fi & DISPLAY=:1 import -window root -crop 622×948+68+71 -resize 600×400 -quality 90 /var/www/screenshots/screenshot.jpg

Posted in Uncategorized | Leave a comment

rename terminal

You can rename your terminal with this: echo -ne “\033]0;My terminal name\007”

Posted in Uncategorized | Leave a comment

perl errors, apt-get, proxmox

If you get errors like: BEGIN failed–compilation aborted at /usr/share/perl5/PVE/Tools.pm line 6. And then with apt-get you are also getting perl errors, check the perl paths. Grab the list of not found dirs: ls -la /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/share/perl5 … Continue reading

Posted in Uncategorized | Leave a comment

tar gz – exclude directory

You want to backup some files recursively except one directory within: tar cvfz live_20151207.tgz –exclude=’public_html/sites/all/files’ public_html it is important that the exclude is like that: –exclude=’public_html/sites/all/files’ This would FAIL: –exclude=’./public_html/sites/all/files’ Not sure but to remember I think of it as … Continue reading

Posted in Uncategorized | Leave a comment

DTC GPLHost Wheezy – SSH login issue

There is a problem with SSH/SFTP login for users in Wheezy update of DTC installation. This is because the 64 libraries have changed location: /lib64 -> /lib/x86_64-linux-gnu Replace all references to the wrong dir from: /usr/share/dtc/admin/install/functions You should update the … Continue reading

Posted in Uncategorized | Leave a comment

npm node nodejs: Cannot GET /

If you are root user, make sure you do: npm install –unsafe-perm

Posted in Uncategorized | Leave a comment