Network Printer Configuration on Linux via Command Line

CUPS (formerly Common Unix Printing System) provides print server capabilities to Unix like Operating Systems. There are basically two components of CPUS: print spooler (or simultaneous peripheral output on line) and scheduler. CUPS is based on standard network protocol Internet Printing Protocol (IPP) for managing print jobs and queues. Most of the Linux distributions use CUPS as their default printing system including Red Hat starting with Red Hat Linux 9. Today we will accomplish network printer configuration on Red Hat Enterprise Linux 5 via command line using CUPS.

read more

Inode Monitoring Shell Script on Solaris 10

A file is the smallest unit of storage in the Unix file system (UFS). In Unix and Unix-like operating systems, each file is associated with an inode (Index Node) that stores the attributes like permissions, owner, group, size, type, time stamp, and etc. of file system objects like regular file, directory, and etc. Note that an inode contains all the information about a file except its name, which is kept in a directory. The size of an inode is 128 bytes. The inode allocation in UFS is static unlike XFS or NTFS that can easily cause lack of inodes if you have lot of small files. This makes the situation critical to place inode monitoring in place and do some trend analysis to prevent downtime. So here is the inode monitoring script to watch the inode usage on Solaris 10. The inode monitoring script can send you the email alert if the inode usage goes over 90% and also logs the data in CSV format for tracking the growth. You need to put the inode monitoring script in the crontab so it can work even if you are not in front of your server.
read more

Crontab: User not allowed to access to (crontab) because of pam configuration

Cron is a daemon in Linux that executes scheduled commands. Cron looks for /var/spool/cron directory for crontab files which are named after user accounts in /etc/passwd file and then found crontabs are loaded into the memory. Cron also searches for /etc/crontab file and the files in the /etc/cron.d directory.

On Red Hat systems, crond supports access control with PAM (Pluggable Authentication Modules). A PAM configuration file for crond is installed in /etc/pam.d/crond. Crond loads the PAM environment from the pam_env module, but these can be overridden by settings in the crontab file.

read more

GoInstant, a New Addition in Salesforce family

“The GoInstant team has built incredibly sophisticated technology. We will help them scale and grow so that social enterprises everywhere can engage with and delight customers in totally new ways.” - Parker Harris, EVP, Technology (Salesforce.com)

GoInstant, Halifax, Nova Scotia based, possess the technological edge which complements the Salesforce.com. Hence, Salesforce has spent whopping 70 plus million dollars to fetch the deal so that they can amalgamate GoInstant to Salesforce. With the acquisition deal salesforce.com is looking forward to make the GoInstant team grow even better which is already known for incredibly sophisticated technology. There are more 1,00,000 subscribers which are supposed to be effective from this acquisition deal. This is going to be a delightful experience for the company to serve the customers in entirely new way. Though, GoInstant will remain continue delivering magnificent shared web experiences.

read more

Project Guidelines & Project Format for SMUDE IT Students

Are you looking for university project format and project guidelines? Are you participating in any of these programs - Bachelor of Science in Information Technology (B.Sc.I.T.), Master of Science in Information Technology (M.Sc.I.T.), Master of Science in Telecom Technology (M.Sc.T.T.), Bachelor in Computer Applications (B.C.A.) and Master in Computer Applications (M.C.A.) from Sikkim Manipal University Distance Education? If yes, then here is the list of material, project format and project guidelines that should be prepared by each IT student who has registered for the SMUDE project examination. The format and guidelines are published for Fall 2012 IT students.

read more

Ping: How to turn off ICMP ECHO Response on Linux Server

Kernel parameters provide a mechanism to adjust the functioning of the Linux kernel. The sysctl command can be used to view and set kernel parameters and ping response can also be denied by just changing the kernel parameter value. Let’s check the present value of kernel parameter: net.ipv4.icmp_echo_ignore_all

$ sysctl net.ipv4.icmp_echo_ignore_all

It should be currently set to zero which means your system will request and respond normally to pings. So now by changing the value of kernel parameter net.ipv4.icmp_echo_ignore_all to 1 from 0 will prevent other hosts from successfully pinging your server while not affecting your ability to ping other servers in the network.

read more

Character Encoding: Convert from UTF-8 to ISO-8859-1

The iconv program converts the encoding of characters in an input file from one coded character set to another. Please check the man page (man iconv) for complete list of switches that you can be supplied with iconv command. Below character encoding commands have been tested on RHEL 5 but I think they should work on other Linux distributions as well.

sh-3.2$ ls
TestspecialchrUTF.txt
sh-3.2$ file -bi TestspecialchrUTF.txt
text/plain; charset=utf-8

sh-3.2$ iconv --from-code=utf-8 --to-code=iso-8859-1//TRANSLIT TestspecialchrUTF.txt -o TestISO8859.txt

sh-3.2$ ls
TestISO8859.txt TestspecialchrUTF.txt

sh-3.2$ file -bi TestISO8859.txt
text/plain; charset=iso-8859-1

sh-3.2$

read more

Effective Project Management through ‘do.com’

These days, each and every task is performed in an organized manner in almost every industry, be it retailing, advertising or any other industry. Organized working and effective project management has increased the productivity. In the same league, website management is no exception. Better website management bestows effective website navigation which ultimately increases the site traffic.

Do.com is world’s most reliable source in bestowing project management solutions. Moreover, do.com is an acquisition of salesforce.com, which is one of the best companies in offering cloud computing services. ‘Do.com’ helps me in prioritizing the website tasks in timely manner so I can focus on creating the quality content for my valued readers. After all content is king! And, I’m committed to serve my readers with effective and genuine content.

Timely execution of the task is important for effective navigation, and I have relied on most trusted brand.

Still wondering how effective project management can be done using ‘do.com’ then check out this video:

vCenter Server 5: Important Tip while Installation

This is not a VMware certification exam question but it is good to know if you are working in production environment. I am assuming that you are already familiar with VMware vCenter Server but if not then you can always read the well prepared documentation by VMware.

When you run the VMware vCenter Installer you will see couple of pre-requisite for vCenter Server over right hand side, Microsoft .Net 3.5 SP1 and Windows Installer v4.5.

read more

List Last Modified Files on Linux Server

Today I want to share a simple bash shell script to list last modified files in a Linux directory. If I Google search this topic then I get several articles suggesting to install some tools and then use that tool to achieve my goal but I don’t want to install anything on my server so I just went ahead and created one bash shell script and placed it in my cronjob that notifies me via email if the content of my file is changed or new file is created in the directory.

You can enter the path as a command line argument or hard code the path in the script.

Script to list last modified files:

#!/bin/bash
#####################################################################################
# Script: email_modified_files.sh                                    
# Description: Send an email if any file is modified or created in last 10 minutes.
#
# Header: /opt/scripts/
# Date: 11/30/2012
# Author: Sumit Goel (hello@sumitgoel.me)
#####################################################################################
SHORT_HOSTNAME=`hostname -s`
LOCATION="/home"
#
DESTINATION="$1"
if [ -z "$1" ]
then
  DESTINATION="$LOCATION"
fi
#
EMAIL_TO="hello@sumitgoel.me"
EMAIL_SUBJECT="List Last Modified files from $SHORT_HOSTNAME"
EMAIL_BODY_Line1="Below is the list of last modified files:"
#
MOD_FILES=`find $DESTINATION -type f -mmin -10 -ls`
#
if [ -n "$MOD_FILES" ]
then
  printf "$EMAIL_BODY_Line1\n\n$MOD_FILES\n" | mail -s "$EMAIL_SUBJECT" $EMAIL_TO
fi
#
#EOF

Suggested Links: