Syslog Error: imjournal: fscanf on state file `/var/lib/rsyslog/imjournal.state' failed

Syslog Error: imjournal: fscanf on state file imjournal.state

Syslog Stopped working and not printing the message logs.


#systemctl status rsyslog.service shows the following error

 imjournal: fscanf on state file `/var/lib/rsyslog/imjournal.state' failed  [v8.23.0 try ]


File /var/lib/rsyslog/imjournal.state got corrupted due to bad I/O.


Remove /var/lib/rsyslog/imjournal.state file and restart the rsyslog service

#rm /var/lib/rsyslog/imjournal.state
#systemctl restart  rsyslog.service

mailmanctl(7175): Site list is missing: Mailman Error

Mailman Error : mailmanctl(7175): Site list is missing : Mailman 


At first you have to add a dummy mailing list called mailman, before starting the mailman service.

Find the
# locate newlist | grep -v template

# cd /usr/lib/mailman/bin/
# ./newlist mailman
Enter the email of the person running the list:
Initial mailman password:
To finish creating your mailing list, you must edit your /etc/aliases (or
equivalent) file by adding the following lines, and possibly running the
`newaliases' program:

## mailman mailing list
mailman: "|/usr/lib/mailman/mail/mailman post mailman"
mailman-admin: "|/usr/lib/mailman/mail/mailman admin mailman"
mailman-bounces: "|/usr/lib/mailman/mail/mailman bounces mailman"
mailman-confirm: "|/usr/lib/mailman/mail/mailman confirm mailman"
mailman-join: "|/usr/lib/mailman/mail/mailman join mailman"
mailman-leave: "|/usr/lib/mailman/mail/mailman leave mailman"
mailman-owner: "|/usr/lib/mailman/mail/mailman owner mailman"
mailman-request: "|/usr/lib/mailman/mail/mailman request mailman"
mailman-subscribe: "|/usr/lib/mailman/mail/mailman subscribe mailman"
mailman-unsubscribe: "|/usr/lib/mailman/mail/mailman unsubscribe mailman"

Hit enter to notify mailman owner...

Past the above in aliases file
#vim /etc/aliases
Now restart the mailman.

#service mailman restart

Linux Terminal Server Config (LTSP)

Linux Terminal Server Config (LTSP)

Below you can find the sample lts.conf file for USB keyboard and USB mouse


#LOCAL_APPS_WHITELIST="/usr/bin/foo /usr/bin/bar"

# LDM_DIRECTX=yes is very insecure, but it is faster and more scalable
# LDM_DEBUG=yes writes to /var/log/ldm.log during client runtime

#XSERVER = auto
SCREEN_03=rdesktop -f -a 24 -g 1024x768 -N
SCREEN_05=ltsp-localapps /usr/bin/kdm

#for USB mouse and keyboard

SCREEN_02=rdesktop -f -a 24 -g 1680x1050 -N
# X_MODE_0=1280x1024
# X_MODE_0=1024x768
MODULE_01 = usb-uhci
MODULE_02 = usbmouse
MODULE_03 = mousedev
MODULE_04 = usbkbd
MODULE_05 = keybdev
MODULE_06 = usbcore
X_MOUSE_DEVICE = "/dev/input/mice"


MODULE_01 = usb-uhci
MODULE_02 = usbmouse
MODULE_03 = mousedev
MODULE_04 = usbkbd
MODULE_05 = keybdev
MODULE_06 = usbcore
X_MOUSE_DEVICE = "/dev/input/mice"
SCREEN_02=rdesktop -f -a 24 -g 1024x768 -N

How To reset Fedora Linux 24 root Password

How To reset Redhat / Fedora Linux root Password


By following the below simple steps you can reset the Linux root password.
1)While booting, on the boot menu screen press 'e' 
2)This will enable edit option in the grub menu . In the line which contains the word 'kernel' press 'e' 
3)go to end of that line and enter 'linux single' 
4)the press 'esc' twice and press 'b' to boot the system 
5) now the system will boot in the single user mode. On the console type: passwd root


Please try out the following steps to change the root password: 

1. Boot the computer with linux Installation CD. 
2. Enter into linux Rescue mode by entering the following command in boot screen. boot: Linux rescue 
3. When the sh prompt is reached, enter the following commands to change root password.

#chroot /mnt/sysimage

This will prompt you to enter your new password.

PXE-E53 "No boot filename received"

PXE-E53 "No boot filename received" 

The first thing I'd probably check is your BIOS setup. It may be trying to look for a network drive before starting from your local devices

Either the CMOS battery is bad & the boot order settings have changed in the BIOS, or the hard drive is bad & the computer is bypassing it & progressing thru the boot order. Network Boot usually comes after the HDD.

Error: Couldn't install: rjsmin 1.0.12

Error: Couldn't install: rjsmin 1.0.12

While installing Mailman, following error occurred.

#pip install zc.buildout
# buildout

Develop: '/opt/mailman/mailman-bundler/.'
warning: no files found matching '*.in' under directory 'mailman_bundler'
warning: no files found matching '*.in' under directory 'deployment'
warning: no files found matching 'deployment/mailman-web.logrotate.conf'
Installing mailman-web.
Getting distribution for 'rjsmin>=1.0.6'.
gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
error: Setup script exited with error: command 'gcc' failed with exit status 1
An error occurred when trying to install rjsmin 1.0.12. Look above this message for any errors that were output by easy_install.
  Installing mailman-web.
  Getting distribution for 'rjsmin>=1.0.6'.


How to set ACL in linux | Redhat Fedora Linux File | Partition Access control configuration

How to set ACL Permission in Redhat Linux

Step 1

Enable ACL support on the partition.
Edit /etc/fstab file and change the default parameter to rw,acl
If we want to enable acl for /home

LABEL=/                 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2 
LABEL=/home             /home                   ext3    rw,acl          1 2
LABEL=/tmp              /tmp                    ext3    defaults        1 2
LABEL=/usr              /usr                    ext3    defaults        1 2
LABEL=/var              /var                    ext3    defaults        1 2
/dev/hda8               swap                    swap    defaults        0 0
/dev/hdd1               /Data                   ext3    ro,noatime      1 2
LABEL=/XFS              /XFS                    xfs     rw,noatime      0 2

Reboot the system. If the partition is not in use, you can unmount and remount the partition

#sudo umount /home
#sudo mount /home

Step 2

Create user and group

#useradd user1
#groupadd group1
#usermod -a -G group1 user1

Step 3

Default ACL

Now you can enable ACL by using setfacl command

#mkdir /home/folder1
#chgrp group1 /home/folder1
#chmod g+w /home/folder1
#setfacl --set u::rwx,g::r-x,o::- /home/folder1

To set ACL 
#setfacl -d --set u::rwx,u:user1:rwx,g::rx,g:group1:rx,o::- /home/folder1

To view the acl
# getfacl /home/folder1/

# file: home/folder1/
# owner: root
# group: group1


MySql Installation Procedure On Linux Command Line Yum Step By Step

How To Install Mysql On Linux through Command Line

There are multiple ways to install mysql on Linux machine

Installing through Yum:

If your server is on internet and yum repository is enabled, then you can install directly by runing the below command on linux console.

#yum install -y mysql-server

mysql-server x86_64 5.1.47-2.fc12
Installing for dependencies:
perl-DBD-MySQL x86_64 4.016-1.fc12
perl-DBI x86_64 1.609-3.fc12
Updating for dependencies
mysql x86_64 5.1.47-2.fc12
mysql-libs x86_64 5.1.47-2.fc12

Installing from RPM:

Download the latest mysql-server rpm from
You may need to download and install the dependency packages (mysql-libs, mysql, perl-DBD-MySQL, perl-DBD )before installing mysql-server
Transfer the downloaded file to the server using winscp or some other file transfer method

#rpm -ivh mysql-libs* mysql* perl-DBD-MySQL* perl-DBD*
#rpm -ivh mysql-server*

Initial Configurations:

After installing the mysql using one of the above method, you can start mysql with the default my.cnf settings

#service mysqld start
To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system
/usr/bin/mysqladmin -u root password 'new-password'
Alternatively you can run:

Default my.cnf file

# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).

# Disabling symbolic-links is recommended to prevent assorted security risks;
# to do so, uncomment this line:
# symbolic-links=0

# To allow mysqld to connect to a MySQL Cluster management daemon, uncomment
# these lines and adjust the connectstring as needed.


# If you are running a MySQL Cluster storage daemon (ndbd) on this machine,
# adjust its connection to the management daemon here.
# Note: ndbd init script requires this to include nodeid!

# connection string for MySQL Cluster management tool

How to reSet mysql root password:

By default there will be no password set for mysql admin (root). Now you can set root password using the below command 
#/usr/bin/mysqladmin -u root password 'new-password'
#mysqladmin -u root password mysqlpasswd
Now you can login to mysql server using the below commands
#mysql -u root -p
Related Articles:
How to create database
How to reset root password

Free it help desk inventory software | inventory management | help desk

Best free IT Helpdesk and Inventory Management software

I was searching for a free IT helpdesk and Inventory Management software for more than few years. I have tried IRM, exoPhpdesk, spiceworks and free demo helpdesk software's.  But I was not happy with the features. Then I found GLPI from I was quiet impressed by the futures available in this software. It got almost all the functionalists offered by the commercial help-desk software's. I have been using GLPI successfully for more that four years. I can say  this is the best open-source IT helpdesk and Inventory Management software in the industry
You can download the software form official GLPI webiste
Installation Procedure

License -  GPL licence
Features list of GLPI


  • Multi-entities management (multi-park, multi-structure)
  • Multi-users management
  • Multiple Authentication System (local, LDAP, AD, Pop/Imap, CAS, x509...) and multiple servers
  • Multilingual management (22 languages available )
  • Permissions and profiles system
  • Cache and Pagination system
  • Complex search module
  • Bookmark search system
  • Configurability of display fields in lists
  • Export System in PDF, CSV and SLK (spreadsheet)
  • Saving/restoration module of the database to the SQL format
  • Exportation of the database to the XML format
  • Configurable dropdowns
  • Dictionary
  • System of notifications on events (consumable stock, expiry of contracts and licenses)
  • Updates check system
  • UTF8 interface
  • HTML 4.01 compatibility
  • Import data of the inventory from one or several OCS Inventory NG servers
  • Inventory of the computers fleet with management of its components, disk space and TCO management
  • Inventory of the monitors with management of the connections to the computers
  • Inventory of the network hardware fleet with management of the connections to the devices (IP, Mac addresses, VLANs...).
  • Inventory of printers fleet with management of connections to the computers and management of consumable associated and consumption and the thresholds of alarm.
  • Inventory of the external devices (scanners, graphical tables...) with management of the connections to the computers Inventory of the telephones fleet with management of connections to the computers
  • Inventory if the software fleet with license and expiration dates management
  • Assignment of the hardware by geographic area (room, floor...)
  • Typing models management to make the insertion of equal configurations easier
  • Commercial and financial Information management (purchase, guarantee and extension, damping)
  • Filing of the materials left the inventory
  • Management of the status of the hardwares
  • Management of the various states for the materials (in repair...) Management of generic peripherals and monitors being able to be associated several computers
  • Management of external bonds towards other applications
  • History of the modifications on the elements of the inventory
  • Management of the tracking requests for all the types of material of the inventory
  • Tracking requests opened using web interface or email
Final user
  • Final user frontend for intervention demand
  • Mail tracking of the intervention demand feature
  • Interventions history consultation
  • Possibility of adding comments at the request of intervention using web interface or email
  • Interventions demands priority management
  • Tracking of interventions demands
  • Mail tracking of interventions
  • Assignment of interventions demands
  • Opening/Closing/Re-opening of interventions
  • Assignment of a real time of interventions
  • History of done interventions
  • Displaying of the interventions to do by a technician
  • Displaying of the history of the interventions for a given hardware
  • Posting of the interventions to be realized by technician
  • Posting of the history of the interventions for a given material
  • Management of planning of intervention
  • Statistics reports by month, year, total.
  • Global
  • By technician or enterprise
  • By hardware, location or type
  • By user
  • By category
  • By priority
  • Management of enterprises (manufacturers, suppliers, conveyors, people receiving benefits...) and associated contacts
  • Management of the contracts (loan, hiring, leasing, insurance, maintenance and service)
  • Management of the documents related to the elements of inventories, contracts...
  • Management of the types of authorized documents
  • Management of the reservations for the material in affected inventory with the park of loan
  • User interface (calendar) for reservation
Knowledge Database
  • Management of a basic system of knowledge hierarchical
  • Management of a public FAQ
  • Reports generation about the devices
  • By device-type
  • By associated contract
  • By commercial informations
  • Network Reports

Squid IP based access control How to Configure

How to configure squid IP based access control

To configure Squid ip based access confrol
Define the ACL allowedip and allow them in the http_access

acl allowedip src
acl deniedip src
http_access deny deniedip
http_access allow allowedip