Set time zone on Raspberry pi

Run this command which should work in most of distro.
Select the correct Zone that you wish to apply:

Example (London):

cp /usr/share/zoneinfo/Europe/London /etc/localtime

How to re-enable the systray (indicator panel) on Ubuntu 14.04

Installation in the terminal:

sudo apt-add-repository ppa:fixnix/indicator-systemtray-unity
sudo apt-get update
sudo apt-get install indicator-systemtray-unity

Once installed, you can enable it by this command:

gsettings list-recursively net.launchpad.indicator.systemtray

If you wish to remove it, run this command:

sudo apt-get --purge remove indicator-systemtray-unity

resize2fs: Bad magic number in super-block;

On Centos 7.0, you are trying to resize using “resize2fs2 the new logical volume once you have add a new volume to your group;

this error:

 

[root@centos7 ~]# resize2fs "yourvolumegroup"
resize2fs 1.42.9 (28-Dec-2013)
resize2fs: Bad magic number in super-block while trying to open "yourvolumegroup"
Couldn't find valid filesystem superblock.

On Centos 7.x, its using now XFS (look into the /etc/fstab), default should be xfs.

Instead of using resize2fs, use this command:

xfs_growfs "yourvolumegroup"

Add Anti Spam As Brightmail on your NAS Synology

As for some Mid and small company, Synology that integrate DSM allows to install/implement a mail server and others… 🙂

The Mail server is based on Postfix, one of the most common Mail server as an alternative to sendmail.(http://www.postfix.org/).

As spam is everywhere, you might consider to implement some solution as Brightmail instead of the spam assassin which is indeed also part of the available package from DSM.

To do so, add these lines to your main.cf from Postfix:

smtpd_milters = inet:IP:41001
milter_protocol = 2
milter_default_action = accept

IP: is the IP of the machine that have Brightmail software.

On Synology, the file is located to:

/var/packages/MailServer/target/etc/

You might also wish to implement the change into the template file, as if some postfix update are applied this settings might be overwritten.

/var/packages/MailServer/target/etc/template.main

OR

/var/packages/MailServer/target/etc/template/main.template

 

Have fun.

 

 

Squirrelmail – Download message as eml

I am currently using squirrelmail as webmail interface; What I like in it is that most of the settings are straight forward;

I have indeed recently noticed that the download link for email attachement would always download file in msg.

If you need to change it, edit the file download.php

/squirrelmail/src# vi download.php

then look for msg (for me this was line )

123     else if ($type1 == 'rfc822' && $type0 == 'message')
124         $suffix = 'eml';
125     else