Day: January 19, 2010

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…