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

How do I upgrade from x86 to x64 without losing settings

http://askubuntu.com/questions/6176/how-do-i-upgrade-from-x86-to-x64-without-losing-settings 1) Backup your /etc and /home folders (I have /home as its own partition, you may need more folders if you have any custom folders… or /var/www if you have Apache, maybe backup databases if you had any). You may use for example fsarchiver. 2) Run dpkg –get-selections > installed-software to save the list … Read more

How to setup OpenVPN with bridging on Ubuntu 12.04

https://help.ubuntu.com/12.04/serverguide/openvpn.html http://ubuntuguide.org/wiki/OpenVPN_server # Setup your router to forward port 1194 to OpenVPN server or place server in DMZ (all incoming traffic is forwaded to OpenVPN server) # install OpenVPN and bridge utilities apt-get -y install openvpn bridge-utils # setup bridge br0 interface and modify primary interface eth0 (assign eth0 IP address to br0 interface) /etc/network/interfaces … Read more

Postfix SMTP Authentication

http://linux.about.com/od/ubusrv_doc/a/ubusg29t05.htm http://www.jimmy.co.at/weblog/?p=52 apt-get install sasl2-bin libsasl2-2 libsasl2-modules Configure Postfix to do SMTP AUTH using SASL (saslauthd): postconf -e 'smtpd_sasl_local_domain =' postconf -e 'smtpd_sasl_auth_enable = yes' postconf -e 'smtpd_sasl_security_options = noanonymous' postconf -e 'broken_sasl_auth_clients = yes' postconf -e 'smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination' postconf -e 'inet_interfaces = all' echo 'pwcheck_method: saslauthd' > /etc/postfix/sasl/smtpd.conf echo 'mech_list: plain login' > … Read more