Linux

evvsubst – substitute variables in text in shell

2015/07/09

First you need to install gettext, which by the way might be already installed, however you can install with dnf install gettext Details of the package: […] Usage examples:

Easily monitor and archive your system log reports.

2015/06/29

If you want to monitor your server logs and also like them to be emailed then just Logwatch may not be sufficient. It sends you a mail but does not archive them, so head over to epylog […] To …

ssh authorized keys – limit ssh session to custom command

2015/03/04

If you want a ssh key to be able to run a custom command only and nothing beyond that, then you can use the “command” option in the authorized_keys file of ssh. For example, to limit user to run only …

script to get hard disk health in fedora/ubuntu

2014/12/01

First, put this in a script. #!/bin/bash #Change as appropriate HDD=sda export sub="SmartCtl data for HDD" echo 'To: <Your Email> Sub: [Cron] $sub MIME-Version: 1.0 Content-Type: text/html …

Apache server-status – better looking

2014/08/18

Apache provides a module to see the server-status. However the page is not too good looking. So, if you want to see a better looking information page, then you can download : …

rfc2html – php script to view rfc with index and links.

2014/07/21

If you have to keep viewing RFC’s and you miss index and links in RFC while viewing rfc, then you should check-out rfc2html. It is scrtip that takes plain text rfc and converts it to html. You can get …

inotify -watch for file to change

2014/01/28

Here is a simple command for you. It uses inotify tools. So first you need to install : sudo yum install inotify-tools and then you can try something like this: while true; do inotifywait -r -e modify …

more clients for mpd.

2013/12/26

Here are some more clients that you can use with mpd. sudo yum install mpd mpc qmpdclient.x86_64 gmpc.x86_64 sonata.x86_64 mpd is :: […] Music Player Daemon (MPD) is a flexible, powerful, …

Fix typescript files generated with script command

2013/12/18

Generally quite a lot of us would have used the script command. This generates the logs for the session. But the problem with the logs is that it contains a lot of un-readable characters. These …

Apache server stats with small and useful bash script.

2013/11/29

Just copy this script to your web-server cgi-bin directory and enjoy. The script with show the common errors like 404 Error, Internal Server Error and others. It will show the User agent distribution …

zswap – compcache, compressed swap for better performance

2013/11/17

First, here is a link to article on compcache. http://code.google.com/p/compcache/wiki/CompilingAndUsingNew zswap is already in the kernel and you can see the documentation in the kernel …

cvs add files recursively – not already in repository

2013/11/12

When you have a lot of files in some repository and you have added a couple of new, in CVS there is no command to add just the new ones to the repository, so here is a workaround for that. cvs status …


This website uses cookies to ensure you get the best experience on our website. Learn more Got it