Archiv pro rubriku: Linux

Lokální eMail

#apt-get install postfix
#apt-get install bsd-mailx

#cat /etc/postfix/main.cf
mydestination =
inet_interfaces = loopback-only
relayhost = mail.upcmail.cz:25
sender_canonical_maps = hash:/etc/postfix/sender_canonical
recipient_bcc_maps = hash:/etc/postfix/recipient_bcc
smtp_generic_maps = hash:/etc/postfix/generic
smtp_header_checks = regexp:/etc/postfix/smtp_header_checks

#cat /etc/aliases
root: root@steflovi.cz

# newaliases
/etc/mail/aliases: 1 aliases, longest 17 bytes, 21 bytes total

owncloud – MemCache

#apt-get install memcached

v /var/www/owncloud/config/config.php

‚memcache.local‘ => ‚\OC\Memcache\Memcached‘,
‚memcache.distributed‘ => ‚\OC\Memcache\Memcached‘,
‚memcached_servers‘ => array(
array(‚localhost‘, 11211),
),

Test memcache :

#telnet localhost 11211
Trying 127.0.0.1…
Connected to localhost.
Escape character is ‚^]‘.
stat

RAMlog

sudo apt-get update
sudo apt-get upgrade
sudo wget http://www.tremende.com/ramlog/download/ramlog_2.0.0_all.deb
sudo dpkg -i ramlog_2.0.0_all.deb
sudo reboot
sudo reboot

# cd /tmp/
# sudo apt-get install lsof
# wget http://www.tremende.com/ramlog/download/ramlog-2.0.0.tar.gz
# tar -xvf ramlog-2.0.0.tar.gz
# cd ramlog-2.0.0
# cp -a ramlog /etc/init.d/ramlog
# cp -a ramlog.8.gz /usr/share/man/man8/ramlog.8.gz
# cp -a ramlog.cron /etc/cron.daily #or to other dir based on your need
# cp -a ramlog.logrotate /etc/logrotate.d/ramlog
# cp -a ramlog.conf /etc/default/ramlog
# /etc/init.d/ramlog getlogsize

Mail BPi

#apt-get install postfix
#apt-get install bsd-mailx

#cat /etc/postfix/main.cf
mydestination =
inet_interfaces = loopback-only
relayhost = mail.upcmail.cz:25
sender_canonical_maps = hash:/etc/postfix/sender_canonical
recipient_bcc_maps = hash:/etc/postfix/recipient_bcc
smtp_generic_maps = hash:/etc/postfix/generic
smtp_header_checks = regexp:/etc/postfix/smtp_header_checks

#cat /etc/aliases
root: root@steflovi.cz

# newaliases
/etc/mail/aliases: 1 aliases, longest 17 bytes, 21 bytes total