Posts

How to configure samba client in Linux Part2

Image
Samba Client Configuration Hello and welcome to part 2 of  configuring samba.In our previous tutorial we discussed how to configure samba server and then accessed linux samba share from windows.  In this second part we will learn how to configure samba client on linux and will demonstrate how to access linux samba server from linux with samba client configured on it. Assumption: We assume you have already configured samba server on linux as per instructions in our part 1 tutorial Client side Linux For using samba services  on Linux client machine you need to install it samba-client. [root@blogger Bhaskar]# yum install samba-client –y Here I am using CentOS 6.7 version of linux . So I need to start the service by using below command. [root@blogger Bhaskar]# service smb start To view/display the shared data use below command

How to configure samba server in Linux Part1

Image
Samba Server Configuration We welcome you to another exciting tutorial . We will learn how to make linux folder or directory shareable for linux and non linux servers. In this tutorial we will demonstrate sharing between linux and windows. . The functionality which provides this sharing between linux and windows  is samba tool.  This tool not only allows you to share file or directory but also you can share printers and configure it as domain controller.This will give you a start and later you can explore different possibilities/ ideas Introduction Samba is a package which run on *nix systems. It uses TCP/IP protocol to communicate when correctly configured and interact with windows file server as well. The daemon of samba is smb ( Server Message Block ) and it is also known as CIFS ( Common Internet File System ), this operates application layer network protocol. It listens on port number 137 , 138 and 139 .

How To Install and configure a FTP Server in Linux using vsftpd daemon

Introduction Hey guys welcome to redaix! what if you want to transfer data from client machine to linux server or download data from linux server to client machine or if you want data transfer between two servers. One of many other ways is using ftp connection. FTP (File Transfer Protocol) is most common way of transferring data between systems for decades probably over 4 decades. However it sends data unencrypted which means ftp is old fashioned. It uses port 20 and 21. Port 20 for commands and 21 for data transfer. So what’s secure way of transferring files. My friends secure FTP . Yes secure ftp (sftp) linux has daemon vsftpd (very secure ftp daemon).Please do not confuse this with FTPS. This is based on ssh (secure shell) which is known for providing good secure connections to shell to linux users.This tutorial will show how  to install and configure vsftpd. Ok kool let’s start Installation and configuration Step 1: Installation Firstly we have to check the pack

Linux: LVM-An Introduction

Image
Have you ever wondered while your linux installation that how much space should you reserve for the system and user files ?  That’s a question that troubles many of us “How should i partition my disk drive ? ” Although you would get many suggestions on that but why to think about it if you have a better alternative…..LVM According to Wikipedia , logical volume management or LVM provides a method of allocating space on mass-storage devices that is more flexible than conventional partitioning schemes. In particular, a volume manager can concatenate, stripe together or otherwise combine partitions into larger virtual ones that administrators can re-size or move, potentially without interrupting system use. Let’s understand it with an example Say Samuel has the following partitions on his disk 1 2 3 4 /boot    /dev/sda1     512 Megabytes swap     /dev/sda2    256 Megabytes /        /dev/sda3      10 Gigabytes /home    /dev/sda4      30 Gigabytes

Redhat Enterprise virtualization- Installing RHEV-H

Image
To install Redhat enterprise virtualization hypervisor(RHEV-H) , You need a hardware with “virtualization Technology”(VT-X) enabled processors.Once you have such a hardware ,then you can start installing RHEV-H on it. You need to download the bootable “Redhat enterprise virtualization hypervisor” ISO image from Redhat website  with valid subscription. If you do not have one , Redhat is providing 60 days trail for RHEV . Just sign up using corporate email address and download the ISO. This article is going to demonstrate the “ redhat enterprise virtualization hypervisor ” installation with step by step screenshots. At the end of this article, we will see how we can install this hypervisor on top of VMware workstation for learning purpose.

openLDAP server and Cient installation and configuration step by step – RHEL7

Image
openLDAP directory service is based on a client-server model. LDAP transferred “Lightweight directory access protocol”   is a directory service protocol that runs on a layer above the TCP/IP stack. It provides a mechanism used to connect to, search, and modify Internet directories. The LDAP directory service is based on a client-server model. openLDAP is used to facilitate centralized user management. It eliminates users creation on each and every server, instead of creating users and there profile in all the servers we can create them in LDAP server and access from all the LDAP client machines.

PXE Boot server configuration step by step Guide

Image
Preboot eXecution Environment (PXE Boot, sometimes pronounced as pixie) specification describes a standardized client-server environment that boots a software assembly, retrieved from a network, on PXE-enabled clients. On the client side it requires only a PXE-capable network interface controller (NIC), and uses a small set of industry-standard network protocols such as DHCP and TFTP. The concept behind the PXE originated in the early days of protocols like BOOTP/DHCP/TFTP, and as of 2015 it forms part of the Unified Extensible Firmware Interface (UEFI) standard. Given fast and reliable local area networks (LANs), PXE is the most frequent choice for operating system booting, installation and deployment. Assume if there is no PXE Boot server we have to have more OS CD/DVD’s to install multiple clients and require manual intervention to configure partitions, software packages users creation so an. PXE Boot is very useful when we looking to re-image / install more clients y

Nagios core 4.1.1 Installation in RHEL7 / Centos 7

Image
What is Nagios..?? Nagios is an most popular and enterprise open source monitoring tool. Using this monitoring tool you can monitor any device in this world even UPS / Battery status. This tool will support almost all the scripting languages. Prepare your Linux server to install Nagios monitoring tool Nagios Version:   4.1.1 Prerequisites: Nagios code is written in C language so you required an gcc++ compiler packages to compile and install Nagios. Required wget package to download the nagios tool directly from web to server To untar  the package required Rar / Zip RPM’s Web / Apache / Httpd service to host the Nagios Install php and perl packages to run Nagios plugins

DHCP server installation and configuration Linux

DHCP server : Dynamic host configuration protocol is a Client/Server protocol which will automatically provide IP address to the requested client. Not only IP address along with IP it will also provide subnet mask, default gateway and DNS IP address. Every device on a TCP/IP-based network must have a unique unicast IP address to access the network and its resources. Without DHCP, IP addresses for new computers or computers that are moved from one subnet to another must be configured manually; IP addresses for computers that are removed from the network must be manually reclaimed. With DHCP, this entire process is automated and managed centrally. The DHCP server maintains a pool of IP addresses and leases an address to any DHCP-enabled client when it starts up on the network. Because the IP addresses are dynamic (leased) rather than static (permanently assigned), addresses no longer in use are automatically returned to the pool for reallocation. DHCP server will provid

Configuring MAC binding in DHCP Server

Configuring MAC binding in DHCP server means permanently assigning static Internet protocol (IP) to the DHCP client using client MAC address. We don’t want to give automatic IP address to servers, which are service providers. As a example if a NFS or Samba Server IP got changed automatically after a reboot are Network restart then all client who are acessing NFS and Samba shares can’t be accessible using old IP address each and every time we have to intimate to the employees if server IP address changed.  Not only about accessing the NFS and Samba shares some of the shares maybe used for hosting of application. Hot coded links in HTML/PHP intranets all things get effected due an single IP address change. Our goal is to set static IP address to DHCP client (server) using DHCP server configuration, which is called as configuring MAC binding first step is to configure DHCP server.

Zimbra mail server installation and configuration RHEL7 / Centos 7

Image
Zimbra mail server is an free email server for open source users, which will provide calender and collaboration solution. Zimbra mail server has GUI interface to manage administrator console. The Zimbra Collaboration includes the Zimbra MTA, the Zimbra LDAP server, and the Zimbra mailbox server. In a single-server installation, all components are installed on one server and require no additional manual configuration. This installation guide is a quick start guide that describes the basic steps needed to install and configure Zimbra Collaboration in a direct network connect environment. In this environment, the Zimbra server is assigned a domain for which it receives mail, and a direct network connection to the Internet. When Zimbra Collaboration is installed, you will be able to log on to the Zimbra administration console to manage the domain and provision accounts. In this tutorial / article we will explain how to install and configure zimbra mail server in RHEL 7.x /

Linux and Solaris Routing Basics

Creating routes in Linux: Basic Linux routing Do you know that Linux OS can use as a router? We will see how to implement routing on Linux box here. When I am working for Cisco Systems they use Linux servers as routers in their test environments in order to communicate between routers in Lab environment. Even there is a project called Linux routing and a separate Linux flavor for routing purpose, that's the flexibility of Linux. Let us start some basic routing commands. In Linux/*nix every work can be done in two ways. 1) That is a temporary way (after reboots these changes will not be there) and 2) The other is permanent way (after reboots too, the changes will be there). We will see how to add routes temporary as well as permanent way today.

Mapping Virtual Fibre Channel Adapters on VIO Servers

A new LPAR was created and new virtual fibre channel adapters were presented to both VIO servers using DLPAR. Now, it’s time to map the newly created virtual fibre channel adapter to a physical fibre channel adapter. But which vfchost device to map? What are checks needed to be done? I’ll step you through the process of mapping NPIV virtual fibre channel adapter to a physical adapter on the VIO server. Check Your Virtual Adapter (vfchost) In this example, I have performed a DLPAR of virtual fibre channel adapter with the ID 38 on both the VIO servers. We now need to identify the vfchost device presented to the VIO server in order to be able to map them later. Use the lsdev command with the –slots flag in the VIO restricted shell. 

NPIV (Virtual Fibre Channel Adapter) Concept

Image
NPIV (Virtual Fibre Channel Adapter) With NPIV, you can configure the managed system so that multiple logical partitions can access independent physical storage through the same physical fibre channel adapter. (NPIV means N_Port ID Virtualization. N_Port ID is a storage term, for node port ID, to identify ports on the nod (FC Adpater) in the SAN area.) To access physical storage in a typical storage area network (SAN) that uses fibre channel, the physical storage is mapped to logical units (LUNs) and the LUNs are mapped to the ports of physical fibre channel adapters. Each physical port on each physical fibre channel adapter is identified using one worldwide port name (WWPN). NPIV is a standard technology for fibre channel networks that enables you to connect multiple logical partitions to one physical port of a physical fibre channel adapter. Each logical partition is identified by a unique WWPN, which means that you can connect each logical partition to independent

How to scan the new lun in AIX and RHEL?

How to scan the new LUN in AIX and RHEL? For AIX: Make sure you are taking the below output before scan for new lun/disk. #lspv #lspv|wc -l Now execute the below commands to scan the new lun/disk. #cfgmgr check the new lun/disk added to the box with the help of new outputs of the following compared with the old output. #lspv #lspv|wc -l For RHEL Linux: Make sure you are taking the following output before scan for new lun. (Knowing the newly added Lun size before we scan would be better) fdisk -l cat /proc/scsi/scsi cat /proc/scsi/scsi|grep -i host|wc -l multipath -l tail -50 /var/log/messages Now execute the below commands to scan the new lun. syntax:       echo "- - -" > /sys/class/scsi_host/host(n)/scan                     #echo "- - - " > /sys/class/scsi_host/host0/scan (Make sure the space is there between the hyphen in the echo command [ echo "- - -" ]  and  you should do this for all HBAs. check the new lu

Devices In AIX

Image
Devices In AIX  Objectives for the module Understand Pre-Defined and Customized Devices Databases Describe the states of a device Logical and physical devices Understand device location codes How to add/change/delete devices Understanding Devices

How to add IP alias in AIX?

Adding IP alias in AIX Using "smitty" we can configure the IP alias in AIX. It is better to use “smitty tcpip” to check and verify configuration and interfaces. Steps using SMITTY: smitty tcpip --> Further configuration -->Network interface -->Network interface selection -->Configure alias --> Add an IPV4 Network Alias (Here select the available interface  and press enter and the Next screen, we need to insert an IP address and the relative subnet mask and press enter.) At the end of configuration commands we get the status (“OK” if everything is ok) Validation:  Execute the  #ifconfig -a  command and confirm the newly added IP alias has been present. Steps using CLI: To temporarily add the IP alias by ifconfig: ( Syntax )         #ifconfig alias netmask up (For example) : #ifconfig en0 alias 192.168.4.75 netmask 255.255.255.0 up To remove the temporarily added IP alias by ifconfig: (Syntax)          #ifconfig delete  

Network

NETWORK CONFIGURATION AT BOOT TIME: 1. /etc/rc.net       Configures and starts TCP/IP interfaces. Sets hostname, default gateway and static routes.(it is called by cfgmgr) then during initialization, the file /etc/inittab is called. There are 2 entries:         ...         rctcpip:23456789:wait:/etc/rc.tcpip > /dev/console 2>&1 # Start TCP/IP daemons         rcnfs:23456789:wait:/etc/rc.nfs > /dev/console 2>&1 # Start NFS Daemons         ... 2. /etc/rc.tcpip       starts TCP/IP daemons (sendmail, portmap, inetd, etc., and other daemons: syslogd, lpd ...) 3. /etc/inetd.conf     when inetd started, it reads its configuration from this file  contains the name of the services that inetd listens for requests and starts as needed

QUICK SETUP GUIDE FOR HACMP/POWERHA

Use this procedure to quickly configure an HACMP cluster, consisting of 2 nodes and disk heart-beating. Prerequisites: Make sure you have the following in place: Have the IP addresses and host names of both nodes, and for a service IP label. Add these into the /etc/hosts files on both nodes of the new HACMP cluster. Make sure you have the HACMP software installed on both nodes. Just install all the filesets of the HACMP CD-ROM, and you should be good. Make sure you have this entry in /etc/inittab (as one of the last entries): clinit:a:wait:/bin/touch /usr/es/sbin/cluster/.telinit In case you're using EMC SAN storage, make sure you configure you're disks correctly as hdiskpower devices. Or, if you're using a mksysb image, you may want to follow this procedure EMC ODM cleanup.

CoD upgrade

Activating Capacity Upgrade on Demand When you purchase one or more activation features, you will receive corresponding activation codes to permanently activate your inactive processors or memory units. To permanently activate your inactive resources by retrieving and entering your activation code: 1. Retrieve the activation code by going to http://www-912.ibm.com/pod/pod 2. Enter the system type and serial number of your server. 3. Record the activation code that is displayed on the Web site. 4. Enter your activation code on your server using the HMC. To enter your code: a. In the navigation area of the HMC window, expand Systems Management. b. Select Servers. c. In the contents area, select the server on which you want enter your activation code. d. Select Tasks > Capacity on Demand (CoD) > Enter CoD Code. e. Type your activation code in the Code field. f. Click OK.