Synology restart Mail Server

I am including the command line that would allow to stop the Mail station (Roundcube) component and Mail Server (Postfix)

  • /usr/syno/bin/synopkg stop \M\a\i\l\S\t\a\t\i\o\n;
  • /usr/syno/bin/synopkg stop \M\a\i\l\S\e\r\v\e\r;

For starting, replace stop with start.

ounCloud refresh file system with DB once files restored

I have been restoring several files under specific user into ownCloud solution; I have found in some forum that we could refresh the files records upon the filesystem.

 

The table name is : oc_filecache

If you delete manually all the content of this table (something like : Delete * from oc_filecache); Logout and login back; All the content would be refreshed.

Continue reading “ounCloud refresh file system with DB once files restored”

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"