Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Sunday, June 19, 2016

How to Install Zabbix Server 3.0 on linux environment

At first update all package on your system
[root@localhost ~]#yum -y update
[root@localhost ~]#rpm –import http://repo.zabbix.com/RPM-GPG-KEY-ZABBIX

Installing repository configuration package

Install the repository configuration package. This package contains yum configuration files.
[root@localhost ~]# rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm
Retrieving http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm
Preparing…                          ################################# [100%]
Updating / installing…
1:zabbix-release-3.0-1.el7         ################################# [100%]

Installing Zabbix packages

Now Install Zabbix packages. Example for Zabbix server and web frontend with mysql database.
[root@localhost ~]# yum -y install zabbix-server-mysql zabbix-web-mysql mysql mariadb-server httpd php
How to Install Zabbix Server 3.0 on linux environment

Creating initial database

Create zabbix database and user on MySQL. For instructions on doing that,
[root@localhost ~]# systemctl start mariadb
[root@localhost ~]# systemctl enable mariadb
[root@localhost ~]# mysql_secure_installation
In order to log into MariaDB to secure it, we’ll need the current
password for the root user.  If you’ve just installed MariaDB, and
you haven’t set the root password yet, the password will be blank,
so you should just press enter here.
Enter current password for root (enter for none):
OK, successfully used password, moving on…
Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.
Set root password? [Y/n] Y
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
… Success!
Remove anonymous users? [Y/n] Y
… Success!
Disallow root login remotely? [Y/n] Y
… Success!
Remove test database and access to it? [Y/n] Y
– Dropping test database…
… Success!
– Removing privileges on test database…
… Success!
Reload privilege tables now? [Y/n] Y
… Success!

Cleaning up…
How to Install Zabbix Server 3.0 on linux environment
All done!  If you’ve completed all of the above steps, your MariaDB
installation should now be secure.
[root@localhost ~]# mysql_secure_installation
MariaDB [(none)]>

MariaDB [(none)]> create database zabbix_db;
Query OK, 1 row affected (0.00 sec)
MariaDB [(none)]> grant all privileges on zabbix_db.* to zabbix@localhost identified by ‘redhat’;
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> exit
[root@localhost ~]# cd /usr/share/doc/zabbix-server-mysql-3.0.2/
[root@localhost zabbix-server-mysql-3.0.2]# gunzip create.sql.gz
[root@localhost zabbix-server-mysql-3.0.2]# mysql -u root -p zabbix_db < create.
sql

Starting Zabbix server process


Edit database configuration in zabbix_server.conf
[root@localhost ~]# vi /etc/zabbix/zabbix_server.conf
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix

Editing PHP configuration for Zabbix frontend

Apache configuration file for Zabbix frontend is located in /etc/httpd/conf.d/zabbix.conf. Some PHP settings are already configured.
php_value max_execution_time 300
php_value memory_limit 128M
php_value post_max_size 16M
php_value upload_max_filesize 2M
php_value max_input_time 300
php_value always_populate_raw_post_data -1
# php_value date.timezone Asia/Dhaka

After changing the configuration file restart the apache web server.
Install Zabbix Server 3.0 on linux
[root@localhost ~]# systemctl start httpd

Finally Start Zabbix server process by
[root@localhost ~]#service zabbix-server start


Now you login your zabbix and install web content with Database.

Tuesday, May 3, 2016

Linux Samba Configuration

Installing Samba

1.    Use yum to install the Samba package:
        yum -y install samba
Creating Samba Test Directory and Files
For this part of the procedure, you'll use the su - (switch user) command to work as root. Although it’s not best practice to do this regularly, there are times where it's much more practical to work directly as root instead of trying to use sudo to do everything. This is one of those times.
You're going to create a new directory containing three empty files which you'll share using Samba.
2.    While logged on as root, create the new directory /smbdemo with the following command:
       mkdir /smbdemo
3.    Change the permissions on the new directory to 770 with the following command:
       chmod 770 /smbdemo
4.    Navigate to the new directory with the following command:
       cd /smbdemo
5.    Add three empty files to the directory with the following command:
        touch file1 file2 file3
Figure 1: Using touch to create files for the Samba exercise.
Adding the Samba User
You must add users to the Samba database in order for them to have access to their home directory and other Samba shares.
6.    Use the following command to add a new Samba user (the new Samba user must be an existing Linux user or the command will fail):
       smbpasswd -a <username>
        For example, to add the user don, use the command smbpasswd -a don.
Creating the Samba Group
7.    Perform the following steps to create a smbusers group, change ownership of the /smbdemo directory, and add a user to the smbusers group:
        groupadd smbusers
        chown :smbusers /smbdemo
        usermod -G smbusers don
Figure 2: Adding the smbusers group, changing ownership on /smbdemo, and adding a user to the smbusers group.

Configuring Samba

Note: In several of the steps in this exercise, I mention specific line numbers. The line numbers I mention are based on CentOS version 6.5. If you’re running any other version, your line numbers may be different. In that case, just search for the relevant text string.
Samba configuration is done in the file /etc/samba/smb.conf. There are two parts to/etc/samba/smb.conf:
  • Global Settings: This is where you configure the server. You’ll find things like authentication method, listening ports, interfaces, workgroup names, server names, log file settings, and similar parameters.
  • Share Definitions: This is where you configure each of the shares for the users. By default, there’s a printer share already configured.
Configuring smb.conf
8.    In the Global Settings section, at line 74, change the workgroup name to your workgroup name. I’m going to use soundtraining as a means of shamelessly promoting my company during your quest for knowledge. I’m sure you understand.
soundthinking point: Enable Line Numbering in vimYou can enable line numbering in vim with the command :set nu. If you want to turn it off, use :set nu!.
Figure 3: Changing the workgroup in the Samba configuration file.
9.    Now, confirm that the authentication type is set to user by going to the authentication section, still in Global Settings, and line 101. Make sure there is no hash mark at the beginning of the line to enable user security.
Figure 4: Confirming user authentication in the Samba configuration file.
This change allows users on your Red Hat/CentOS server to log in to shares on the Samba server.
10.    Next, add a section for /smbdemo, which you created earlier. You can just add it to the very bottom of /etc/samba/smb.conf with the following lines:
Figure 5: Configuring Samba share definitions.
11.    Be sure to save your changes with a :wq. 
You can use the command testparm to test the configuration. In order for the server to re-read the configuration file and make the changes, you must restart the Samba service with the commands service smb restart and service nmb restart.
When properly configured, you should be able to connect from a computer running the Windows operating system and see both the general share and the user’s home directory:
Figure 6: Viewing Samba shares from a Windows computer.
You can test it by opening the user’s home directory in Windows, adding a file, and then viewing that file on the Linux server.

Troubleshooting Samba

In addition to checking for spelling and typographical errors, check to ensure the Linux firewall is permitting Samba traffic. Similarly, if you're using SELinux on your system, you must explicitly permit Samba traffic, and finally you must enable Network Discovery on the Windows client machine.

Monday, March 14, 2016

How to Install Zimbra 8.6 on Ubuntu 14.04 Server

The Zimbra Collaboration Server is a mail server, collaborative web application and a web based mail server admin console in a single application. It provides LDAP, antivirus, antispam, collaboration features and a ajax webmail client. Zimbra is easy to use for administrators as well as end users due to its fast Ajax based web interface.

Prerequisites

  • Ubuntu Server 14.04 - 64bit
  • root privileges
  • Free space 25 GB
  • RAM 4 GB
My zimbra Server profile used in this tutorial:

Domain : sendaljepit.local
IP     : 192.168.1.101
Mail   : mail.sendaljepit.local

What we will do in this tutorial:
  • Install the prerequisite packages
  • Configure hostname and DNS Server
  • Download and Install Zimbra
  • Test the installation

Installation of prerequisites

Step 1 - connect to your server, get root privileges and install this package.
apt-get install libgmp10 libperl5.18 unzip pax sysstat sqlite3 dnsmasq wget

Configure hostname and DNS Server

In this tutorial will use the 'dnsmasq' resolving nameserver to speedup DNS lookups in Zimbra. Dnsmask has been installed as prerequisite in the first chapter, so we just have to configure it now:
Step 1 - Edit hostname and hosts
vim /etc/hostname
change your hostname with this 'mail.sendaljepit.local'.
Setting hostname
vim /etc/hosts
add this line:
192.168.1.101   mail.sendaljepit.local  mail
Setting host
Step 2 - Edit dnsmasq configuration
vim /etc/dnsmasq.conf
server=192.168.1.101
domain=sendaljepit.local
mx-host=sendaljepit.local, mail.sendaljepit.local, 5
mx-host=mail.sendaljepit.local, mail.sendaljepit.local, 5
listen-address=127.0.0.1
Step 3 - Reboot
sudo reboot

Installing Zimbra

Step 1 - Download Zimbra and extract it
wget https://files.zimbra.com/downloads/8.6.0_GA/zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116.tgz
tar -xvf zcs-8.6.0_GA_1153.UBUNTU14_64.20141215151116.tgz
cd zcs*
Step 2 - Run the Installer

./install.sh
At this step, zimbra will check the required packages and will ask you to agree to their installation.
Agreement Zimbra
and then choose the zimbra package :
Choose Zimbra Installation
here doesn`t need zimbra-dnscache, because in this tutorial use dnsmasq.
You need to wait, because this installation takes some time.
next step is configure "zimbra-store" for getting admin password. See the picture:
Configure Admin Pasword
Choose number "4" and enter. and then type your password:
Changing Password
Apply all Configuration:
Apply all configuration

and wait for Zimbra configuration finished.

Testing Zimbra

to test your zimbra server is running, you can type a command :
su - zimbra
zmcontrol status
try to access zimbra from web browser.  https://192.168.1.101/

how to animate individual cells, rows, or columns in my table in powerpoint

Duplicate the slide that has the table you want to animate. Leave the first instance of the slide untouched. For now, it ...