RPM info

Here is a command that can help you figure out what rpms are installed and what they are for. To view the installed rpm information run from the command line; rpm -qa –info |less or output the rpm information to a file for review; rpm -qa –info > rpminfo.txt


Remove Invalid characters from a filename

To remove invalid characters like ? & etc. in a file name, use this simple script; touch reminvchar.sh vim reminvchar.sh insert the following lines of code for i in `find . -type f` do echo $i mv $i `echo $i |tr ? _|tr = _ |tr ‘&’ ‘_’` done save the file using ‘:wq’ and…


Simple html script

Here is a little script I came across to create a simple html document on the fly; touch http.sh vim http.sh Insert this code into the new script and modify as needed (it can be as simple of as complex as you would like!) #!/bin/bash # make_page – A script to produce a basic HTML…


Convert CHM to PDF

How to convert CHM to PDF in Linux 1. Install dependencies by running the following command in the terminal: sudo apt-get install htmldoc libchm-bin python-chm 2. Next, download chm2pdf by clicking here or using wget wget http://chm2pdf.googlecode.com/files/chm2pdf-0.9.1.tar.gz 3. Now extract the downloaded file. tar -xzvf chm2pdf-0.9.1.tar.gz 4. Browse to the folder you extracted and run:…


upgrade perl to v5.8.8

How to upgrade perl to v5.8.8 Running cPanel 11 requires you to have perl v5.8.8. If you run an older version some things will not work properly (like spamassassin for example). Do you need to upgrade? If you running an older version, then Yes. How to check what version are you using? Run: perl -v…


Reset Users

Hi, I have reset all of the current users in order to implement a simple capcha scheme to cut down on the number of comment spam hitting the server. If you have a valid account, please forgive the intrusion and please feel free to recreate your account. Thanks again for your patience.


Gnome Blog Poster

I have just installed a gnome based blog client and am trying it out. I installed the Gnome Blog Poster from the Ubuntu Software Center: with more information listed here: http://www.gnome.org/~seth/gnome-blog/ works ok I guess, no editing options… but good for a quick and dirty post.


chattr / lsattr

How do you make a file or folder undeletable or unchangeable even to the root user? Use the chattr command. This would be useful if you have a that you don’t want to delete by accident or if you are investigating a user’s file and you do not want someone deleting the “evidence” while you…


Movie typing

This is a fun little thing I came across the other day. If you want text to type out something on screen like you see in the movies, simply run this command echo “You can simulate on-screen typing just like in the movies” | pv -qL 10 You can also read from a file and…


Customize default Apache Success page

In order to change the default Apache success page (the page that you see when you just type in the hostname for example) you will need to modify the /usr/local/apache/htdocs/index.html file. This is not documented anywhere on cpanel docs or forums (not that I could find). To affect this change, you will need to login…