View the contents of a SSL cert.

September 14, 2011 at 1:45 pm (Uncategorized) (, , )

Did you just find a thisserver.crt file on your machine and you want to check the details of what it’s for? In other words you have a SSL certificate that you want to decode.

You need to be on Linux and have OpenSSL installed. Then use the x509 module:

openssl x509 -text -in thisserver.crt



Permalink Leave a Comment

suid, sgid, sticky bit

December 15, 2010 at 12:38 pm (Uncategorized) (, , )

Great quick reference article on suid, sguid and sticky bit.

Permalink Leave a Comment

What do the ‘ls’ colors mean in BASH?

December 15, 2010 at 12:27 pm (Uncategorized) (, )

Ever wonder what all the default colors outputed by ls in BASH mean? These are some of the common default ones:

Executable files: Green
* Normal file : Normal
* Directory: Blue
* Symbolic link : Cyan
* Pipe: Yellow
* Socket: Magenta
* Block device driver: Bold yellow foreground, with black background
* Character device driver: Bold yellow foreground, with black background
* Orphaned syminks : Blinking Bold white with red background
* Missing links ( – and the files they point to) : Blinking Bold white with red background
* Archives or compressed : Red (.tar, .gz, .zip, .rpm)
* Image files : Magenta (.jpg, gif, bmp, png, tif)

Ganked from:

Permalink 1 Comment

Quickly turn a CD/DVD into a .iso

August 31, 2010 at 9:07 am (Uncategorized) ()

dd if=/dev/sr0 of=/tmp/your-iso.iso

For other great tips see:

Permalink Leave a Comment

Which Remote Access Cards are supported by RHEV.

May 27, 2010 at 1:59 pm (Uncategorized) (, , , )

Here is a handy matrix I found, that shows which Remote Access Card interfaces are supported by RHEL and RHEV

Permalink Leave a Comment

Squid + HAVP + HTML 5 Video tag

July 1, 2009 at 11:12 am (linux, Technology) (, , , )

Ok, so Fire Fox 3.5 came out yesterday and it now fully supports embedded video objects via the HTML 5 video tag.

Excitedly, I went to test the functionality of this new feature.  However, when testing again this URL: I found that the browser began to load the video but it appeared to just hang.   Now, I am using this browser on a network that sends all http traffic through a proxy server which runs Squid, HAVP and SquidGuard.

After further investigation I determined that there was a default setting in the HAVP configuration file (/usr/local/etc/havp/havp.config) that was causing this issue.

Look for this section in the config file:

# Allowing Range is a security risk, because partial
# HTTP requests may not be properly scanned.
# Whitelisted sites are allowed to use Range in any case.
# Default:
# RANGE false

Change RANGE to:

RANGE true

Remember to restart your HAVP processes.

Now, the browser will be able to play videos since it needs to request files via ranges.

Let me know if this helped you out.

Permalink 1 Comment

Fedora 10 Cheat Sheet

February 23, 2009 at 10:05 pm (linux) (, )

I wanted to just drop a quick link to a nifty Fedora 10 Cheat Sheet that I found.


Permalink 1 Comment

Received fax report for Hylafax using GAWK.

January 21, 2009 at 3:17 pm (coding, linux, TechTips) (, , , )

I like using the open source fax server software Hylafax for deploying fax services to a network.

One of the great things about using Hylafax for fax services, is the great flexibility you get.  Lately, one of my users requested that I create a report that could be automatically sent to her group daily.  This report was to show all faxes that were sent to their inbound fax number during the previous day.  In particular they wanted to be able to look for any faxes that someone had tried to send to them that failed for some reason.

I decied to use GAWK in order to parse the transfer log and create the resulting report.  Then, I wrapped this gawk script in a little bash script to add a little functionality.  Finally, this bash script was added to cron.daily, so as to produce the report and email it on a daily basis.

Simply change YOURFAXNUMBERHERE to be what receiving fax number you want to report on.  Finally you’ll want to pipe the output to mail if you want it to get emailed automatically.  I’m sure there are numerous better ways to make the format better, etc.  However, this is my quick script and it works perfectly for my needs.  Let me know if you find it useful.


# Written by: Jason Fenner
# V 1.0
# 01/21/2009
# This report will print out all
# recv’d faxes for a certain inbound
# fax number that was received
# in the last 24 hour period.

DATEPERIOD=`date –date=yesterday +%D`

echo “Fax Receive Report”
echo “——————”
echo “Fax Number: $FAXNUMBER”
echo “24 Hour Period for: $DATEPERIOD”
echo “——————”

awk -F’\t’ ‘BEGIN{ “date –date=yesterday +%D ” | \
getline dateVal; printf(“%15s%30s%15s%7s %8s%50s %12s\n”,”Date”,”Name”,”CallerID”,”Pages”,”Duration”,”Error”,”Ref”); \
for (x=1; x<=140; ++x) {printf( “%s” , “-” ) } \
print “” }
($2 ~ /RECV/ && $16 ~ /YOURFAXNUMBERHERE/ && $1 ~ dateVal) \
{gsub(/\”/,””); if ($14 == “”) $14 = “None”; \
if ($15 == “”) $15 = “Not Received”; \
printf(“%15s%30s%15s%7s %8s%50s %12s\n”, $1,$9,$15,$11,$13,$14,$3)

END{ for (x=1; x<=140; ++x) {printf( “%s” , “-” ) } \
print “” }’ /var/spool/hylafax/etc/xferfaxlog

Permalink 3 Comments

Help test recent xulrunner updates.

July 21, 2008 at 6:07 pm (linux, PlanetFedora) (, )

Recently there were problems with a new version of xulrunner being sent as an update to Fedora 9. Several packages that are built against xulrunner were not rebuilt to the new version and submitted to the repositories before xulrunner was. This issue would cause a dependency issue resolving error that might look like this:

Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
 * livna:
 * fedora:
 * updates:
Setting up Update Process
Resolving Dependencies
--> Running transaction check
--> Processing Dependency: gecko-libs = 1.9 for package: Miro
--> Processing Dependency: gecko-libs = 1.9 for package: gnome-python2-gtkmozembed
---> Package pilot-link.i386 2:0.12.3-14.fc9 set to be updated
---> Package rsync.i386 0:3.0.3-0.fc9 set to be updated
---> Package totem-mozplugin.i386 0:2.23.2-5.fc9 set to be updated
---> Package xulrunner.i386 0: set to be updated
---> Package system-config-language.noarch 0:1.3.1-2.fc9 set to be updated
---> Package selinux-policy.noarch 0:3.3.1-78.fc9 set to be updated
---> Package nfs-utils-lib.i386 0:1.1.1-5.fc9 set to be updated
---> Package xen-libs.i386 0:3.2.0-14.fc9 set to be updated
---> Package binutils.i386 0: set to be updated
---> Package totem-gstreamer.i386 0:2.23.2-5.fc9 set to be updated
---> Package qemu-img.i386 0:0.9.1-6.fc9 set to be updated
---> Package selinux-policy-targeted.noarch 0:3.3.1-78.fc9 set to be updated
---> Package libvirt.i386 0:0.4.4-2.fc9 set to be updated
---> Package qemu.i386 0:0.9.1-6.fc9 set to be updated
---> Package cpio.i386 0:2.9-8.fc9 set to be updated
---> Package yelp.i386 0:2.22.1-4.fc9 set to be updated
---> Package nspluginwrapper.i386 0:1.1.0-3.fc9 set to be updated
---> Package libvirt-python.i386 0:0.4.4-2.fc9 set to be updated
---> Package device-mapper-multipath.i386 0:0.4.7-16.fc9 set to be updated
---> Package firefox.i386 0:3.0.1-1.fc9 set to be updated
---> Package dmraid.i386 0:1.0.0.rc14-8.fc9 set to be updated
---> Package totem.i386 0:2.23.2-5.fc9 set to be updated
---> Package kpartx.i386 0:0.4.7-16.fc9 set to be updated
--> Finished Dependency Resolution
gnome-python2-gtkmozembed-2.19.1-16.fc9.i386 from installed has depsolving problems
  --> Missing Dependency: gecko-libs = 1.9 is needed by package gnome-python2-gtkmozembed-2.19.1-16.fc9.i386 (installed)
Miro-1.2.4-1.fc9.i386 from installed has depsolving problems
  --> Missing Dependency: gecko-libs = 1.9 is needed by package Miro-1.2.4-1.fc9.i386 (installed)
Error: Missing Dependency: gecko-libs = 1.9 is needed by package gnome-python2-gtkmozembed-2.19.1-16.fc9.i386 (installed)
Error: Missing Dependency: gecko-libs = 1.9 is needed by package Miro-1.2.4-1.fc9.i386 (installed)

There is an update in Bodhi to correct this dependency issue. However, this update needs people to download, install, and test it. Then report on Bodhi what the results were. Usually either that it worked great or that there was issues.

Here are the steps to do the test and report to Bodhi the results:

  1. Run
    yum update
  2. From the output determine what packages are missing for you, you are looking for dependencies that could not be resolved. For this issue they should all be related to Miro and gnome-python2
  3. In a web browser go to the Bodhi page for this update:,gnome-python2-extras-2.19.1-17.fc9
  4. Towards the top of the page you will see a section called Builds:. Open a new browser tab/window for each build listed. This will take you to the test build for each package in Koji.
  5. On the Koji page, look for the section called RPMs. Look for each package of the right architecture that you need.
  6. Create a temporary directory to download each of these files to. In my case I created a directory called testingUpdates:
    [jfenner@localhost Download]$ mkdir testingUpdates
    [jfenner@localhost Download]$ cd testingUpdates/
  7. Download all of the RPMs that you need from Koji into the temporary directory. I used wget to do this because I think it’s the easiest way. However, use whatever method works best for you.
  8. Once you’ve done that, then localinstall all of the packages in the temporary directory.
    [jfenner@localhost testingUpdates]$ sudo yum --nogpgcheck localinstall *
  9. Note: You have to turn off the gpg signing check above, because at this stage the packages have not been signed yet. This will happen once they’ve been pushed to stable.
  10. Assuming that you were able to install all packages with no errors, now run a normal yum update. This should also run with no more dependency errors.
    [jfenner@localhost testingUpdates]$ yum update
  11. Excellent! Now do a test run of Firefox and Miro, if you have them installed and make sure that they appear to be working right.
  12. Now you have concluded testing this pending update. The last step is to submit your findings to Bodhi to help get this update sent to the world. Go back to this update’s page on Bodhi. At the bottom of the page, enter your name and click on the appropriate radio button for your findings. If everything worked fine click on Works for Me. Enter a brief comment if you’d like. Fill out the captcha and click Add comment.

That’s all there is to it. You just helped improve QA for the Fedora community. The test you conducted and feedback you provided will help this update go out to all the Fedora repositories fast and of higher quality. I encourage you to check back often at Bodhi and test other packages that appy to your system and provide your feedback. The more of the community that does this, the higher the quality of the updates we receive will be.

Permalink 4 Comments

Go vote in the FESCo election!

July 15, 2008 at 3:50 pm (linux, PlanetFedora) (, )

I just went and voted in the Fedora Engineering Steering Committee election.  This is the first FESCo election where the number of seats have been changed from 13 to 9.  This decrease is meant to create greater competition for seats on this committee.

Numbers have been reported as being low in past Fedora elections.  That is why I encourage to take a few minutes out of your day and read over the nominations.  Jot down the names of people who interest you with a score next to each.  Remember, that Fedora uses range voting; this means that you will vote for each candidate using a numerical score.  In the end all scores are summed up and the candidates with the highest scores are the winners.  This is really cool, because it means that you can vote for all the candidates if you want to.

Once you have written down the names with the scores, simply head over to the voting booth and place your votes.  It’s both fun and educational to do.  Not to mention, voting on FESCo is a quick and simple way for you to get involved with the future of Fedora in a very real way.

So join me, and cast your vote today!

Permalink 2 Comments

Next page »