Install Openmediavault on Debian Wheezy/7

First Install Debian minimal

Configure your Debian repositories

Update the repository sources and add the contrib and non-free repositories.

nano /etc/apt/sources.list

It should look something like this:

deb http://ftp.us.debian.org/debian/ wheezy main contrib non-free
deb-src http://ftp.us.debian.org/debian/ wheezy main contrib non-free
deb http://security.debian.org/ wheezy/updates main contrib non-free
deb-src http://security.debian.org/ wheezy/updates main contrib non-free
# wheezy-updates, previously known as 'volatile'
deb http://ftp.us.debian.org/debian/ wheezy-updates main contrib non-free
deb-src http://ftp.us.debian.org/debian/ wheezy-updates main contrib non-free

Read more

Share

Install Zenoss on CentOS 6 64bit

zenoss-3Minimal Hardware Requirements:

Small Deployments (1 to 250 Monitored Devices)

  • 4GB RAM
  • 2 CPU Cores
  • 1x 300GB, 10K RPM Drive

Medium Deployments (250 to 500 Monitored Devices)

  • 8GB RAM
  • 4 CPU Cores
  • 1x 300GB, 10K RPM Drive

Large Deployments (500 to 1000 Monitored Devices)

  • 16GB – 32GB RAM
  • 8 CPU Cores
  • 1x 300GB, 15K RPM Drive

Disable SELinux and IPtables

For this guide SELinux and IPtables were completely disabled and CentOS 6 was up-to-date!

Add DNS FQDN Entry and NTP Sync

To ensure proper resolving FQDN entries in DNS or /etc/hosts must exist and please configure NTP time synchronization for services to run properly.

Read more

Share

NFS Firewall

Dynamic ports cannot be protected by port filtering firewalls such as iptables. First, you need to configure NFS services to use fixed ports. Open /etc/sysconfig/nfs, enter:

# vi /etc/sysconfig/nfs

Modify config directive as follows to set TCP/UDP unused ports:

# TCP port rpc.lockd should listen on.
LOCKD_TCPPORT=lockd-port-number
# UDP port rpc.lockd should listen on.
LOCKD_UDPPORT=lockd-port-number 
# Port rpc.mountd should listen on.
MOUNTD_PORT=mountd-port-number
# Port rquotad should listen on.
RQUOTAD_PORT=rquotad-port-number
# Port rpc.statd should listen on.
STATD_PORT=statd-port-number
# Outgoing port statd should used. The default is port is random
STATD_OUTGOING_PORT=statd-outgoing-port-number

Read more

Share

Enable mod_rewrite on Apache for Debian

To enable and load mod_rewrite, do the following.

$ sudo a2enmod rewrite

Then open up the following file, and replace every occurrence of “AllowOverride None” with “AllowOverride all”.

$ sudo vi /etc/apache2/sites-available/default

or

$ sudo vi /etc/apache2/sites-available/000-default

Finally, restart Apache2.

$ sudo service apache2 restart
Share

PEN: HTTP Load Balancer

This is performed on a CentOS 6.x 64 bit machine

Install pen which is lightweight simple Load Balancing software.

It is TCP protocol based, so it’s possible to balance not only HTTP but SMTP, FTP, LDAP and so on. This example is based on the environment like follows.

Pen-LB-Capture

Configure Pen to load balance to Backend#1, Backend#2, Backend#3 web servers.

Read more

Share

Zimbra Increasing Attachment Size works for 8.5

Through zimbraGUI didn’t find it how to do it, but through console it appeared to be working with the following set of commands to modify postfix actually-

su zimbra 
zmprov mcf zimbraMtaMaxMessageSize 20971520 
zmprov mcf zimbraFileUploadMaxSize 20971520 
zmprov mcf zimbraMailContentMaxSize 52428800 
zmprov modifyConfig zimbraMtaMaxMessageSize 52428800 
postfix reload

Once theyre executed, restart the server (restarting zimbra won’t reflect the changes made, so need a fresh reboot of OS)

Share

Two Default Gateways on One System

Problem Description

You have built two or more network cards into one Linux system and each of these cards has its own default gateway. By default, you can only have one default gateway on a system. The case described would lead to asynchronous routing, whereby the router would reject the packets as appropriate.

Solution

The iproute2 program, which is included in all current Linux distributions and already installed even, as a rule, can be used for the solution of this problem. Normally, a Linux system only has one routing table, in which only one default gateway can make entries. With iproute2, you have the ability to setup an additional routing table, for one thing, and allow this table to be used by the system based on rules, for another.

Read more

Share