Friday, October 14, 2011

Remote OS X Canon PS Driver lookup



We use Canon Copiers @ work for our high-quality print jobs. Recently I wanted to lookup what driver version an OS X machine was using. Here's what I did to look up the driver version (only tested for PS/PostScript drivers):


  1. Open up terminal
  2. SSH into the remote machine
    ssh user@machine-name
  3. Authenticate (password etc)
  4. type:
    cat /Library/Printers/Canon/CUPSPS2/Utilities/Canon\ CUPS\ PS2\ Printmonitor.app/Contents/Info.plist|more
  5. Look for the section titled
  6. Look for the line that says:
    CFBundleShortVersionString
  7. Look at the next line:
    In my case it reads: 3.31
  8. This means that the PS driver version is 3.31
Tip: The reason I looked in /Library/Printers/Canon/CUPSPS2/Utilities/Canon CUPS PS2/ is that there is an App there for Copier monitoring (and Apps on OS X are bundles that typically include plist's and binaries)
  1. Navigate to the Canon directory under Printers
  2. /Library/Printers/Canon
  3. Navigate to the /CUPSPS2/Utilities directory
  4. Navigate inside of 'Canon CUPS PS2 Printmonitor.app'
    cd Canon\ CUPS\ PS2\ Printmonitor.app/
  5. Navigate to the 'Contents' folder
  6. Type 'cat Info.plist'

Thursday, July 28, 2011

Workout Plan

Recently I've been doing P90x for a workout plan. Like many IT professionals, I need to lose a few pounds. The hardest part so far has been the food. I need to keep a better log of what I eat, so here it goes.

What I did & ate today (7/28/11):

  1. Water, Water, Water. I find myself needing to drink a lot of water
  2. Workout: Yoga X (I only made it 1/2 of the way through, as I overdid my workouts earlier this week, didn't eat properly, and am now horribly sore)
  3. Breakfast (after workout):
    3 egg whites, 2 whole eggs, mixed together with 3 oz. of Chicken breast from last night and 3oz. of grated Parmesan Cheese
    3 slices of low-sodium bacon (I splurged and went for real bacon)
    An 8oz cup of coffee w/ 1oz 2% milk and 3/4 teaspoon sugar
    10oz glass of OJ
  4. Snack:
    15 almonds (unsalted)
    4oz coffee w/ 1/4 teaspoon sugar
  5. Lunch:
    Aldi's Fit & Active Chocolate Peanut Butter Protein Bar
    2 Turkey Franks
    4 slices of Oven Roasted Turkey
    A mini-whole wheat pita
    6 oz. of Lite cottage cheese
  6. Snack:
    15 almonds (unsalted)
  7. Dinner:
    8 oz of Chicken (w/ a touch of Garlic Salt, Olive Oil, and Lemon Pepper)
    1/3 cup of couscous
    4oz green beans
    10oz of 2% milk
  8. Before bed 'edge-off' snack:
    Almonds (salted!)
Maybe I'll get better about this and get the exact caloric #'s put in tomorrow.

Tuesday, July 19, 2011

Microsoft Office 365 for Non-profits: Real Info!

Recently Microsoft launched their Office 365 product. As a 'cloud' product providing many of the same features of their 'hosted on your hardware' products (Exchange, SharePoint), it's definitely generating buzz.

Many of my fellow CITRT colleagues have become very interested in finding out more, including pricing. Recently I received some follow-up info from Brittany Fugate at Cenetric, a Microsoft Cloud Champions Partner for my region. The following were the highlights for me (these are my descriptions/summaries):

These prices are only available through 'Cloud Champions Partners' as Microsoft has chosen to not publish the pricing directly.
The 'additions' that were obvious to me between E levels are denoted with a +

  • Professional (P1): $4.25/user/month
    Exchange Online w/ 25GB mailbox & 25MB attachments
    Office Web Apps, including View & Edit
    SharePoint Online, including Sharing & 'public website'
    Lync Online w/ IM & Screen-sharing
    Microsoft Forefront Online Protection for Exchange w/ Antivirus & Anti-spam
  • Enterprise (E1): $4/user/month
    Exchange Online w/ 25GB mailbox
    Sharepoint Online, including Sharing
    Antivirus and anti-spam filtering with Microsoft Forefront Online Protection for Exchange
    License rights to access on-premises deployment of Exchange, SharePoint, & Lync Server
  • Enterprise (E2): $6/user/month
    Exchange Online w/ 25GB mailbox
    Sharepoint Online, including Sharing
    Antivirus and anti-spam filtering with Microsoft Forefront Online Protection for Exchange
    License rights to access on-premises deployment of Exchange, SharePoint, & Lync Server
    +View, edit, share with Office Web Apps
  • Enterprise (E3): $9/user/month
    Exchange Online w/ 25GB mailbox
    Sharepoint Online, including Sharing
    Antivirus and anti-spam filtering with Microsoft Forefront Online Protection for Exchange
    License rights to access on-premises deployment of Exchange, SharePoint, & Lync Server
    View, edit, share with Office Web Apps
    +Office Professional Plus
    +Advanced SharePoint Online capabilities
    +Advanced archive, unlimited email storage, & hosted voicemail w/ Exchange Online
  • Enterprise (E4): $10/user/month
    Exchange Online w/ 25GB mailbox
    Sharepoint Online, including Sharing
    Antivirus and anti-spam filtering with Microsoft Forefront Online Protection for Exchange
    License rights to access on-premises deployment of Exchange, SharePoint, & Lync Server
    View, edit, share with Office Web Apps
    Office Professional Plus
    Advanced SharePoint Online capabilities
    Advanced archive, unlimited email storage, & hosted voicemail w/ Exchange Online
    +Enterprise voice to replace or enhance a PBX w/ Lync Server on-premises
  • Kiosk Worker (K1): $3/user/month
    Exchange Online w/ 500MB mailbox
    Web-based email, calendar, contacts via Outlook Web App, & POP email w/ Exchange Online
    Access to SharePoint Online sites
    View documents on the web w/ Office Web Apps
  • Kiosk Worker (K2): $4/user/month
    Exchange Online w/ 500MB mailbox
    Web-based email, calendar, contacts via Outlook Web App, & POP email w/ Exchange Online
    Access to SharePoint Online sites
    View & basic editing of documents on the web w/ Office Web Apps

The full set of info that I have is contained in this PDF

You also should know that this pricing is supposedly only available through the 'Cloud Champions Partner' program (and there's an approval process). I'm not really sure what that is yet, but Cenetric has been very helpful so far.

Thursday, February 10, 2011

How I found a stellar deal on a great MacBook Pro

Last week I received a new MacBook Pro. For about 1 year at work we've been saying "we need to figure out how to support Mac's". Well, that time has come, and a couple weeks ago I used the following method to get a great deal at Calvary. I thought it would be worth putting down in written form:
  1. Make sure your church is part of the Willow Creek Association.
  2. Use the WCA Apple Store to get discounted pricing.
  3. Buy a refurbished Mac (after using the WCA link, it's on the lower left)







Resources and tips to use in making your decision:
  • Prayer!
  • www.macperformanceguide.com (great insight into what works, and how to buy wisely)
  • Don't buy any of the Hard Drive or Memory upgrades from Apple. Get them from OWC instead!
  • Buy AppleCare from B&H, not Apple (B&H is cheaper).
  • Common sense (think it through and get a second opinion; ignore the Apple ads)
In all, I was able to save ~15% on the price of a MacBook Pro, which is a stellar deal on an Apple product.

Enjoy!

Sunday, February 6, 2011

IT Usage and Mac

So I just received a Macbook Pro. It's exciting that I'll now be able to run all 3 major OS flavors in one place! We are using Mac's at work in some creative departments, and I wanted to give them good support, so it's time to learn how.

It has been a really long time since I used a Mac as a 'daily driver'. Anyone have a list of the things they use as an IT person to be productive on a Mac? So far, some of the things I'm looking at and working on getting setup:

  • Lastpass App or Chrome-style Application Shortcut
  • Evernote
  • Office
  • Chrome
  • Firefox
  • Virtualization (Parallels & VMware)
  • Remote Access (Dameware-like?, VNC?, RDP?)
  • IRC Client (X-Chat Aqua, Colloquy?)
  • Google Talk
  • Putty/SSH Client (DarwinPorts, iTerm, JellyfiSSH, Fugu, )
  • vSphere Client (on Mac, or by Windows VM)
  • Cyberduck (seems to do a lot of different, flexible things)
  • Vipre Enterprise Console (through VM only it seems)
  • Toodledo
  • Nook
  • Dropbox
  • Twitter & Social Networking Client (Hootsuite, Tweetdeck)
  • SafariBooksOnline shortcut
  • Quiksilver?
  • DarWINE?
  • Visor (Terminal shade/layer)
  • Veeam FastSCP
  • WinSCP (Transmit?
  • CoSign
  • Blogging tool

Wednesday, January 26, 2011

Creating a Windows Server 2008 R2 (x64) vSphere 4.1 VM Template (Part 1)

This post is dedicated to my brain. This should help you understand the adventure you recently went on!

I have this in 2 parts, because Part 1 addresses the ‘standardization’ of our image, and Part 2 addresses the ‘templating’ of our image

There are a few places that I’ve found info about creating a Windows Server 2008 R2 VM Template (on VMware). I’m detailing here what I did to create our template at Calvary. I started learning from Jeremy Waldrop first and then used quite a bit of material from Jason Samuel and his instructions here. I did make some changes to this process based on my experience, Calvary’s needs, and the good thread of comments on the Jason Samuel 2008 R2 post. Hence the documentation here of my process.

Interesting tidbits:

  • Windows Server 2008 R2 needs more resources than 2003. Count on at least 1.5GB of RAM and 30GB of disk. I prefer to start w/ 2GB RAM and 30GB of disk. Many recommend (and VMware’s default) 4GB RAM and 40GB disk. I guess I’m just stingy Winking smile
  • DO NOT use the vSphere sysprep tools if you want to maintain the user profile customization that you perform. If you use the directions below and then tell vSphere to sysprep, you’ll end up ‘double-sysprepping’ and you’ll end up with a headache.
  • If you are using ESXi 4.0 (pre Update 1) the vmware tools install won’t install the graphics drivers properly. You’re stuck w/ the SVGA driver until you get the host updated (See this KB: 1011709). I unfortunately struggled with this issue for a couple hours one day when my host was 4.0.0 b261974.

Basic Outline:

  1. Create your VM

  2. Customize your VM

  3. Install the OS

  4. Customize the OS

Now, let’s get on to the interesting part (the details)!

Creating your VM in vSphere 4.0 Update 1 or better

I’m running vSphere 4.1.0, 258902, and we’ll be using Windows Server 2008 R2; from what I understand this process is different if you’re using vSphere 3.5, and/or Windows 2008 (non-R2) or Windows 2003.

  • Create a new VM

  • Make sure to choose the following ‘non-standard’ settings:
      • Specify a ‘Custom’ configuration

      • VM Version 7

      • Server 2008 R2 (64-bit)

      • 1 vCPU

      • 2GB RAM

      • VMXNET3 NIC (qty. 1)

      • 40GB (thin-provisioned) LSI Logic SAS SCSI Controller (I have DAS, not a SAN. If you have a different storage subsystem, plan appropriately)

    • Make sure to check-mark the ‘Edit the virtual machine settings before completion’ box and then change the following:
        • Under the ‘Options’ tab, under ‘Advanced –> General’ make sure that ‘enable logging’ is unchecked

        • Under ‘Advanced –> Boot Options’ check-mark the ‘Force BIOS Setup’ box

      • Click ‘Finish’

      Further customization of the VM after first boot

      When I created the VM, I forced the system into the BIOS. Make the following changes

      • Disable Serial ports A & B
      • Disable the Parallel Port

      Exit the BIOS, and connect the virtual CD/DVD drive to the Guest OS installer (an ISO in my case)

      Installing the Guest OS (Server 2008 R2)

      Use the typical click, next, etc. making sure to input the following settings (read through them before starting):

      • Windows Server 2008 R2 Datacenter (Full Installation)
        We use Datacenter Edition because of a previous bug where Enterprise Edition license keys were not available to us in VLSC
      • Choose a ‘Custom’ install
      • Wait for the base install to finish

      Customizing the Guest OS

      • Change the administrator password (you’re forced to do this at first startup)

      • Create any other local user’s that are needed

      • Set the Time Zone

      • Install VMware Tools

          • DO NOT choose the automatic install, choose ‘Custom’

          • Disable the ‘Shared Folders’ feature under ‘VMware Device Drivers’ (it won’t be used, and has had issues in the past)

          • Set time synching in VMware Tools: It’s on the ‘Options’ tab for VMware Tools properties

          • Reboot the server when prompted

        • Set your network configuration, removing unnecessary pieces

          • Under Local Area connection:
              • Uninstall QoS Packet Scheduler (we don’t use it @ the server)

              • Uncheck IPv6 (because we don’t use it, and uninstalling it is a pain)

          • Set the server name

            note: Keep in mind that this is our base template

            • System Properties

            • Change Computer Name

            • Set the proper name, and then restart when prompted (I did join the server to the domain)
              note: to reiterate, we will be logging in with a local administrator account, not the domain admin
          • Configure Windows Update
              • Open the Windows Update config screen

              • Select ‘Download updates but let me choose whether to install them’

              • Make sure that ‘Recommended updates’ is not checked

              • Click OK

            • Run Windows Update, restarting as appropriate

            • Enable Remote Desktop
                • Open the Computer Properties (or use the initial configuration tasks shortcut)

                • Choose ‘Allow connections from computers running any version of Remote Desktop (less secure)’

                • Add the proper accounts to the allowed users list (local admins in my case)

              • Disable Windows Firewall (we enable the firewall at the GPO level)

              • Disable the automatic launching of Server Manager, by choosing ‘Do not show me this console at logon’, and then close Server Manager

              • Make the following taskbar changes:
                  • ‘Unpin’ the Windows Explorer icon on the taskbar by right-clicking on it and then choosing ‘unpin this program from taskbar’

                  • If you want, remove the PowerShell and/or Server Manager icons from the taskbar (I prefer to leave both)

                  • Right-click the Taskbar, and then choose Properties. Choose the ‘Customize’ button under the Notification area. Select ‘Turn system icons on or off’. I prefer to turn off the ‘Volume’ icon (unless I’m working on a Terminal Server/Remote Desktop template).

                • System Performance changes:
                    • Open Server Manager and select ‘Change System Properties’

                    • Select the ‘Advanced’ tab, and then under Performance click the ‘Settings’ button and choose ‘Adjust for best performance’.

                  • Folder and Search Options changes:

                      • Open ‘Computer’, then select ‘Organize’, then choose ‘Folder and Search options’

                      • On the ‘View’ tab:
                          • Select the ‘Show hidden files, folders, and drives’ option (we want to see these on the server)

                          • Un-check the ‘Hide extensions for known file types’ check-box. (we also want to see the file extensions)

                      • Change the IE ESC config:
                          • In ‘Server Manager’, in the ‘Security Information’ section choose ‘Configure IE ESC’

                          • Under the ‘Administrators’ section choose ‘Off’

                            This may be controversial, but a large portion of the tools we use have web control panels, config screens, etc. An Administrator should already be trained to not install the typical issue-creating software on servers (Flash, Adobe Reader, Java, etc.), and should not be going to any typical website (if any external sites at all!)

                        • Set the Power Options
                            • Open Control Panel, and then change the ‘Power Plan’ to ‘High Performance’

                          • Disable Hibernation
                              • At a command prompt (or powershell), with admin privileges, enter powercfg.exe –h off

                                Can anyone tell me why hibernate options are not available in Control Panel easily? I’m not sure

                            • Defrag the system
                                • First, turn off the ‘Automatic’ Virtual Memory allocation:
                                    • System Properties > Advanced Tab > Performance Options > Advanced Tab > Virtual Memory ‘Change’ button, then deselect the ‘Automatic…’ box

                                  • Choose the ‘No paging file’ option, and then click the ‘Set’ button.

                                  • Open a ‘Computer’ window, then choose ‘Organize’, then ‘Folder and Search Options’, then the ‘View’ tab, then un-check ‘Hide protected operating system files’

                                    note: we will be turning this back on later

                                  • Reboot

                                  • Verify that there is no pagefile.sys on the C: drive

                                  • Defrag the C: drive

                                • Shutdown the VM and snapshot before editing the VM hardware

                                  At one point I ran into issues with the way that the templating process handled the addition of a 2nd virtual disk for the pagefile, so I always snapshot the VM before adding the 2nd disk (who wants to redo all of the previous work)

                                • Add the 2nd Hard disk to the VM
                                    • Edit the VM properties in vSphere

                                    • Make the 2nd disk 10GB

                                      This disk does not need to be thin provisioned (I chose not to make it think provisioned, so there would be no argument re: performance)

                                    • Set the ‘Virtual Device Node’ to SCSI (1:0)

                                      note: this will create a 2nd SCSI Controller (LSI Logic SAS in my case)

                                  • Boot up the VM

                                  • Set the Page File to the 2nd disk

                                      • Format the drive

                                        I choose to use drive letter Z:

                                      • Set the Page File to 6144MB:
                                          • System Properties > Advanced Tab > Performance Options > Advanced Tab > Choose Z: then type 6144 for both boxes under ‘Custom’ and hit the ‘Set’ button

                                          • NOTE: Choose wisely the amount that you set the page file to. If my VM (after I clone it, etc.) is hosting an application, I often use this article to determine where my page file should be set. (thanks to Carlo Costanzo for the heads up)

                                      • Restart the VM

                                      In Part 2 I’ll outline the process that I used to ‘template’ this standardized config