Backup data to remote SFTP server

http://grysz.com/2011/04/04/configure-amazon-s3-backup-with-backupninja-and-duplicity/ Data backup plan: * pick desired directories with your data you want to backup * you may backup system directories of your choice (in principle /etc /root /home /usr/local /srv etc.) * optionally you may backup MySQL database Used tools (tested on Debian Jessie and Ubuntu 12.04): * BackupNinja 0.9.10 – for MySQL database … Read more

XScreenSaver without keyboard layout indicator workaround

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=644534 From: Ilya Sheershoff Subject: A workaround for keyboard layouts The following worked for me (Debian Jessie with XFCE 4.10 or Ubuntu 10.04 with GNOME 2.30): 1. Created folder: mkdir ~/.startup 2. And a file: touch ~/.startup/xscreensaver-reset-kbd-us.pl 3. Chmodded it: chmod 755 ~/.startup/xscreensaver-reset-kbd-us.pl 4. Edit (copy&paste the code below): nano ~/.startup/xscreensaver-reset-kbd-us.pl #!/usr/bin/perl my $blanked = 0; … Read more

Multisystem on Debian Jessie

If you receive strange error messages upon Multisystem installation on Debian Jessie: ./gui-detect.sh: line 432: /media/Multisystem/.multisystem-test: Permission denied cat: /media/Multisystem/.multisystem-test: No such file or directory cat: /tmp/multisystem/multisystem-laisserpasser-usb: No such file or directory cat: /tmp/multisystem/multisystem-laisserpasser-usb: No such file or directory than just edit your /etc/fstab and add following line: /dev/disk/by-label/Multisystem /media/Multisystem         auto … Read more

SSH RSA fingerprint

SSH RSA fingerprint (-l means “list” instead of create a new key, -f means “filename”): ssh-keygen -lf /etc/ssh/ssh_host_rsa_key.pub

Postfix and AntiSpam Smtp Proxy – ASSP

http://www.howtoforge.com/antispam_smtp_proxy perl -MCPAN -e shell install Compress::Zlib install Digest::MD5 install Email::Valid install File::ReadBackwards install Mail::SPF::Query install Mail::SRS install Net::DNS install Sys::Syslog install Time::HiRes cd /usr/src/ wget http://downloads.sourceforge.net/project/assp/ASSP%20V2%20multithreading/2.4.1%2014085/ASSP_2.4.1_14085_install.zip unzip ASSP_2.4.1_14085_install.zip mkdir -p /usr/share/assp/spam mkdir /usr/share/assp/notspam mkdir /usr/share/assp/errors mkdir /usr/share/assp/errors/spam mkdir /usr/share/assp/errors/notspam mv -f assp/* /usr/share/assp rm -fr ASSP_2.4.1* assp changelog.txt Install.txt MacOSX-launchd.txt quickstart.txt Win32-quickstart-guide.txt chown -R … Read more

Postfix and Greylisting

http://www.howtoforge.com/greylisting_postfix_postgrey apt-get install postgrey /etc/default/postgrey POSTGREY_OPTS="–inet=<ip>:10023 –delay=60" service postgrey start /etc/postfix/main.cf smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, check_policy_service inet:<ip>:10023 service postfix reload

Wake-on-LAN (WOL)

https://wiki.archlinux.org/index.php/Wake-on-LAN http://wiki.xbmc.org/index.php?title=HOW-TO:Set_up_Wake-On-Lan_(Ubuntu) https://fitzcarraldoblog.wordpress.com/2013/02/26/how-to-prevent-a-usb-mouse-auto-suspending-in-linux-when-a-laptops-power-supply-is-disconnected/ First query the driver to see if it’s defaulted to ‘on’ by using ethtool: ethtool eth0 | grep Wake-on To enable the wol feature in the driver, simply run the following: ethtool -s eth0 wol g This command does not last beyond the next reboot. Keep WOL persistent over restarts adding command … Read more

Collectd installation on Debian

apt-get install collectd lighttpd php5-cgi rrdtool perl librrds-perl libconfig-general-perl libcurl3-gnutls libsensors4 librrds-perl librrd4 libhtml-parser-perl default-jre-headless libregexp-common-perl cp -fa /usr/share/doc/collectd/examples/collection3 /var/www/ chown -R www-data:www-data /var/www/collection3/ mkdir /usr/lib/cgi-bin/collectd cp -fa /usr/share/doc/collectd/examples/collection.cgi /usr/lib/cgi-bin/collectd/ configure cpan cpan cpan Config::General cd /etc/lighttpd/conf-enabled ln -s 10-cgi.conf ../conf-available/10-cgi.conf ln -s 10-fastcgi.conf ../conf-available/10-fastcgi.conf ln -s 15-fastcgi-php.conf ../conf-available/15-fastcgi-php.conf ln -s 90-javascript-alias.conf /etc/javascript-common/lighttpd.conf /etc/lighttpd/lighttpd.conf server.modules … Read more

XBMC installation on Debian

XBMC installation: echo "deb http://www.deb-multimedia.org/ jessie main non-free" >> /etc/apt/sources.list echo "deb-src http://www.deb-multimedia.org/ jessie main" >> /etc/apt/sources.list echo "deb http://debian.oppserver.net/xbmc/ jessie main non-free contrib" > /etc/apt/sources.list.d/oppxbmc.sources.list echo "deb-src http://debian.oppserver.net/xbmc/ jessie main non-free contrib" >> /etc/apt/sources.list.d/oppxbmc.sources.list wget http://debian.oppserver.net/gpg-debian.oppserver.net-signing-pubkey.asc -O – | apt-key add – aptitude update aptitude install xserver-xorg-video-intel xserver-xorg-video-vesa xorg-common x11-session-utils xinit alsa-base nfs-common xbmc … Read more