|
Friday, 24 July 2009 14:12 |
|
I posted this tutorial into the ubuntu forums as well: http://ubuntuforums.org/showthread.php?t=1221961 I was able to get my government email working from the Air Force portal today running Ubuntu Jaunty and Firefox 3.
The first step was to purchase an SCR331 CAC Card Reader from Amazon, it cost about $30.
The I mostly followed allong this tutorial with a few modifications.
The first step was to install the necessary packages, some of which had been update since the tutorial was written.
This ended up being my final aptitude command:
sudo apt-get install libpcsclite-dev pcscd pcsc-tools build-essential autoconf libccid coolkey
In case youre wondering what all of those programs do, heres a quick breakdown: libpcsclite-dev: Middleware to access a smart card using PC/SC (development files) pcscd: Middleware to access a smart card using PC/SC (daemon side) pcsc-tools: Some tools to use with smart cards and PC/SC libccid: PC/SC driver for USB CCID smart card readers coolkey: Smart Card PKCS #11 cryptographic module build-essential: Informational list of build-essential packages autoconf: automatic configure script builder
Next I plugged in my CAC card reader and ran pcsc-scan from the terminal
It said my CAC Card was not recognized so I ran the update as instructed from pcsc-scan (in the output) for me it was
wget http://ludovic.rousseau.free.fr/softwares/pcsc-tools/smartcard_list.txt --output-document=/home/livingroom/.smartcard_list.txt
This command downloads an updated lists of CAC card signatures for pcsc-scan to use. After I ran this I ran pcsc-scan again and it seemed to work better.
Continuing on with making the CAC available to firefox. Open Firefox and browse to:
1) Edit-> Preferences -> Advanced -> Encryption 2) Click on the Security Devices button 3) Click the Load button to load a new module. Name it CAC Module and either type in or browse to /usr/lib/pkcs11/libcoolkeypk11.so 4) Install all three DOD certificates and put a checkmark on all of them. Just click on each one and firefox will ask you if it's ok http://dodpki.c3pki.chamb.disa.mil/rootca.html
Viola the CAC should now available to sites and should show up in Firefox. |
|
Last Updated on Friday, 24 July 2009 15:42 |
|
Wednesday, 24 December 2008 20:13 |
|
I was having trouble getting the time offset from the global joomla configuration. Heres the solution, hope it helps someone $offset = JFactory::getConfig()->getValue('offset'); then use this to create a JDate object the you can use to return the correct time $time = new JDate(); $time->setOffset($offset); echo $time->toFormat("%H%M); |
|
Find Replace Files, Folders, Text |
|
|
|
|
Wednesday, 24 December 2008 04:15 |
|
This is a useful script to find and replace on a whole folder to include the file names, folder names, and text within the files.
for f in `find . -name '*'` do mv $f ${f/holiday/point} sed -f 's/holiday/point/g' $f done
for i in `find . -name '*.*'` do sed -i 's/holiday/point/g' $i sed -i 's/Holiday/Point/g' $i done
just put that code into a new text file and run it from terminal on the folder, it helps to reference it via ../find.sh or else it will find and replace the text in the script! |
|
Sunday, 30 November 2008 22:29 |
|
Welcome to the home page of Evan Fillman |
|
Last Updated on Sunday, 30 November 2008 22:31 |
|
|
Create your own site icon |
|
|
|
|
Monday, 01 December 2008 02:07 |
|
Many people may be interested in creating their own website icons, these icons appear in many popular browsers next to the location bar (http://en.wikipedia.org/wiki/Favicon). However doing this does pose a small amount of difficulty because the favicon.ico must be in the special ico format, a magical format that browsers understand. The eaisest way I have found to accomplish this task quickly is to use a program called icotool from the package icoutils (http://www.nongnu.org/icoutils/) just "apt-get install icoutils" and you should now have a program available called icotool from the terminal.Then prepare two copies of the image you would like to use for the icon using a tool like GIMP. Prepare one 32x32px image and save it in the PNG format and then prepare (of the same image) a 64x64px image and save it in the PNG format. Now you have all you need to create the favicon.ico. Use icotool and run the following command "icotool -c -o favicon.ico filename_32x32.png filename_64x64.png" from the the folder where the images are saved and viola! you now have your favicon.ico to upload to your webserver. Usually the favicon.ico is placed in the root directory of the sites folders. |
|
Last Updated on Monday, 01 December 2008 02:19 |
|
|