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

Spamassassin and Postifx configuration

http://www.akadia.com/services/postfix_spamassassin.html aptitude install spamassassin spamc /etc/default/spamassassin ENABLED=1 SAHOME="/var/log/spamassassin/" OPTIONS="–create-prefs –max-children 2 –username debian-spamd -H ${SAHOME} -s ${SAHOME}spamd.log" PIDFILE="/var/run/spamd.pid" CRON=1 /etc/postfix/master.cf smtp inet n – – – – smtpd -o content_filter=spamfilter spamfilter unix – n n – – pipe flags=Rq user=debian-spamd argv=/usr/local/bin/spamfilter.sh -oi -f ${sender} ${recipient} mkdir /var/spamchk chmod 775 /var/spamchk chown debian-spamd:debian-spamd /var/spamchk /usr/local/bin/spamfilter.sh #!/bin/sh # —————————————————————– … Read more

FusionInvoice installation on LAMP

FusionInvoice installation on Linux / Apache / MySQL / PHP (LAMP) with czech language support https://www.fusioninvoice.com/ aptitude install apache2 mysql-server php5 php5-mcrypt php5-mysql mkdir /var/www/fusion cd /var/www/ wget -O fusion.zip https://www.fusioninvoice.com/download_file/15/install unzip fusion.zip rm -f fusion.zip mv FusionInvoice-1.3.5-full/ fusion mkdir /var/www/fusion/application/language/cz_CZ cd /var/www/fusion/application/language/cz_CZ wget -O fusion-translation.zip https://crowdin.net/download/project/fusioninvoice.zip unzip -j fusion-translation.zip cs/application/language/* . rm -f fusion-translation.zip … Read more

How to fix “X11 forwarding request failed on channel 0″

https://joshua.hoblitt.com/rtfm/2013/04/how_to_fix_x11_forwarding_request_failed_on_channel_0/ I’m using Ubuntu 12.04. The X11 forwarding is enabled in /etc/ssh/sshd_config (X11Forwarding yes). As I stared more verbose mode: ssh -vvv -X remotehost I received following error: X11 forwarding request failed on channel 0 The solution is to add following to configuration file /etc/ssh/sshd_config: X11UseLocalhost no Do not forget to restart ssh daemon: service … Read more

Install Munin node on CentOS 6.4

rpm -Uhv http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm yum install munin-node As you attempt to install Munin node on CentOS 6.4 from EPEL repository, you may encounter following error message: Transaction Check Error:   file /usr/share/man/man3/XML::SAX::Base.3pm.gz conflicts between attempted installs of perl-XML-SAX-Base-1.04-1.el6.rf.noarch and perl-XML-SAX-0.96-7.el6.noarch   file /usr/share/man/man3/XML::SAX::Exception.3pm.gz conflicts between attempted installs of perl-XML-SAX-Base-1.04-1.el6.rf.noarch and perl-XML-SAX-0.96-7.el6.noarch Simply install perl-XML-SAX-0.96-7: yum install perl-XML-SAX-0.96-7.el6.noarch and … Read more

LVM and RAID guide

http://www.davelachapelle.ca/guides/ubuntu-lvm-guide/ Installing necessary tools: apt-get install lvm2 dmsetup mdadm reiserfsprogs xfsprogs Raid Setup: Please refer to some of my other guides regarding setting up various raid levels. You can, and I would highly recommend, setting up your drives in a raid configruation prior to adding them to a logical volume. By doing so, you’ll have … Read more