Tuesday, November 22, 2011

Citrix Receiver on 64-bit Arch Linux

I recently made the switch from Ubuntu to Arch Linux (with E17) on my workstation at work, and I am now in the process of getting all my apps setup and working again. Pretty high up on that list was the Citrix receiver. Work is a largely Windows based setup, with Exchange for e-mail. I actually prefer a few things about the newer versions of Outlook, when compared with most of the Linux clients I have tried in the past.
This means my choices boil down to:
  1. Get Outlook running under Wine (yeah, that'll work out real well) 
  2. Run Outlook in a Windows VM (I have this setup, but prefer not to run the VM at all times, it is a real memory hog)
  3. Run a separate computer with Windows on it, just for Outlook (not going to happen)
  4. Get the Citrix receiver working, and use the Citrix version of Outlook that we make available
I chose #4. The problem here is not the linux part, install packages exist for the receiver on linux. The problem is the 64-bit part. Out Citrix server only hands out a 32-bit installer. I went looking, and while Citrix has started offering 64-bit installers now, they only come in .deb or .rpm. There isn't a .tar.gz package like there is for 32-bit. Arch linux, of course, does not use .deb or .rpm packages.

I had the receiver installed on Ubuntu, and it worked mostly. It worked fine, but I could not run the manager app to change the settings, which meant that I could never map my local hard drive to show up as a drive in the software run on Citrix. For e-mail, this meant I could not save or send attachments, unless I used a USB stick for them, because the default settings would auto-mount USB devices.

I found these instructions on the Arch wiki, and followed the manual install instructions. Probably because I had already downloaded the package from Citrix, and sunk some time into getting the installer to run, so I didn't want to take the easy route out and use a pre-built package now.

Just to get the installer to run, I had to do some research, and finally figure out that the "no such file or directory" errors being thrown by echo_cmd were because I only had the 64-bit glibc libraries, and I needed to install the lib32-glibc from the multilib repo as well.

I followed the instructions on the wiki, making modifications as I went because my install of the receiver was in a different directory, and got a working install, except that I had problems getting firefox to see the Citrix plugin for some reason. I also was not able to get the manager app (wfcmgr) to run, despite the wiki article explicitly saying it should. I was getting this error:

/opt/Citrix/ICAClient/wfcmgr: error while loading shared libraries: libXm.so.4: cannot open shared object file: No such file or directory

I did some more digging, and found the 32-bit library package from the AUR containing libXm.so.4, aur-lib32-openmotif, installed into /opt/lib32/usr/lib directory, instead of into the /usr/lib32 directory where the wfcmgr program was trying to find it.

One way to fix this is with a simple

sudo ln -s /opt/lib32/usr/lib/libXm.so.4 /usr/lib32/libXm.so.4

however, I chose to modify the PKGBUILD to put the libraries in /usr/lib32 with all the others, in case a program went looking for one of the other openmotif libraries in the future.

I also figured out that my problem getting firefox to see the plugin was that I checked whether the plugin was setup with

sudo nspluginwrapper -l

using sudo here, because the wiki article showed the install command, nspluginwrapper -i, being run as root. This showed the plugin to be in place already:


/root/.mozilla/plugins/npwrapper.npica.so
  Original plugin: /opt/Citrix/ICAClient/npica.so
  Plugin viewer: /usr/lib/nspluginwrapper/i386/linux/npviewer
  Wrapper version string: 1.4.4-1


It took me too long to realize that this plugin was not system-wide, but was root-specific, and that I needed to do this as my user instead. I checked and it was not setup for my user, so I used the -i command to install it, and restarted firefox. It is now detected, which means I don't have to skip past the install prompt from the server when the silent-detection routine fails to find the plugin on my system.

In the end, I have a newer version of Citrix Receiver installed and I was able to setup my home directory to be mapped as a drive to be seen inside the Citrixed apps. I do not have the USB device support, because the installer can't figure out Arch's system for managing services, but I don't think I'll miss that.

    Tuesday, August 16, 2011

    Sign Criticism

    Driving home after work today, I saw one of those little signs stuck in the ground at a corner that said "Get Customer Leads" and had a phone number. The two thoughts that went through my head were: 1)  If you are so great at generating customer leads, then why aren't you contacting me instead of expecting me to call you?  2) If I were to call you,  would I end up on your list of customer leads that you sell to others?

    Friday, October 09, 2009

    Proprietary Drivers Lead to Hardware Duplication

    I'm your typical geek, obsessed with gadgets and technology, so I could probably burn through almost any size budget, buying cool things to hack on and/or play with, without even blinking. Conversely, I'm young, and still working my way up the ladder, so my income is definitely limited. Finally, I'm married, and have two young children, so I have far better things to spend my money on than the new 8.02.11xn enabled light bulb. (Bonus points if it also speaks wireless DMX)

    So, the net effect of this, is that when I do get something new to play with, I have to choose carefully, and try to get the most tech bang for my dollar. Case in point, the first time I've gotten a GPS device to play with it is in my corporate supplied Blackjack 2 smartphone. Now, I've wanted a GPS for a while. Geocaching looks like a lot of fun, and is something I've wanted to try for a while. I'm also interested in wardriving as well as helping out OpenStreetMap.org

    However, a Windows mobile smartphone without wifi isn't really the best tool for any of these activities. However, it has GPS builtin, and it has bluetooth, just like a typical bluetooth GPS dongle. And, thanks to a hack I found online, the internal GPS can be accessed directly on a COM port, instead of only through the Windows Mobile APIs. In an ideal world, I could just read the GPS NMEA data over bluetooth from my laptop, and use it the same as any other GPS dongle. However, because of the proprietary nature of everything involved, this isn't an option, and I'm forced to buy a different GPS receiver if I want to use the GPS with my laptop.

    This is all a software issue though. The technical capability clearly exists in the devices. However, the drivers don't allow for it. Drivers, written by hardware companies, who don't want anyone else to know the intricacies of how to interface with their hardware, as that is "proprietary knowledge" and a "trade secret". Now, there is some legitimate concern here. If you know how to talk to a piece of hardware, and can map inputs to outputs, then reverse engineering, especially the two team, clean room style, becomes much easier. However, many hardware companies write really lousy drivers, full of bugs, and lacking many features.

    This is a fight faced by the Linux and BSD communities since the beginning. There isn't enough market share for most hardware manufacturers to create their own drivers for open source operating systems. However, despite offers from the community to do the development, the manufacturers are also unwilling or unable to release any sort of technical specifications, or provide any sort of support at all. Which really created the old school Linux mentality of finding something you wanted to have work, then hacking at it until you had created a working driver for it. The end result here is that the consumer loses, and the manufacturers don't see the problem, when I have to buy a separate GPS device because my laptop can't use the one built into my smartphone.

    Friday, January 30, 2009

    Metrics Can Lead to Poor Customer Service!

    We eat far too much fast food. Unfortunately, it is too attractive to us. It is quick, relatively cheap, and simple. Also, we can usually pick up something that the kiddos will eat, or at least not complain about. I think the real kicker often is the quick, and that it doesn't mean having to clean dishes around the house, which is all too big of a plus for us right now.

    I was realizing today just how low my expectations have become. No matter where I'm ordering, no matter how straight-forward the order, I expect that there will be at least one mess up. If it's just that they forgot to include straws for the drinks, I'm happy. If it is that the ignored a special order request, despite it having been heard, and ticketed properly, I'm unsurprised. And if it is the failure to include some add-on condiment (like sour cream at Jack in the Box) that I paid for, I'm only mildly annoyed. Which is really pathetic. I should expect to get my food the way I ordered it, all of it. If it doesn't get entered properly when I order it, I understand that, although I get annoyed if it happens after I've repeated myself and corrected the order 5 or 6 times. But, when the order gets taken and entered correctly, but made incorrectly, that is either laziness, carelessness, or sloppiness. And yet, I've come to accept and expect it.

    However, the point of this rant is about the other annoying practice most fast food restaurants have gotten into at the drive-through window, asking you to pull into a parking space and wait for your food. I find that this also rarely perturbs me, although it really gets under my wife's skin. When I've ordered something that I know takes a bit longer to cook, and there are several cars behind me, then I have no problem with pulling into a space to wait. My only annoyance at is is that I know I won't be asked about any condiments I would like, and I won't be able to point out any issues I find right away, like I could at the window. However, whenever I get asked to pull in when there are no cars behind me, then I blame metrics. Or, an even better variant that I experienced today: this was one of the places were you pay at the first window, and get your food at the second. There were about 3 cars behind me when I paid, and the car in front of me had already left the second window. I was asked to wait at the first window, and not pull up until I was told that my food was ready.

    Clearly, both of these requests are intended to minimize time spent at the delivery window. Having worked in a fast food restaurant in college, I know that things like wait time and time at window get tracked by management. Just like we were warned when the "secret shopper" would be stopping by, and everyone knew who he was, so his order always exceeded the minimum standards for amount of ingredients, the employees are going to do anything they can to boost these metrics if there is either reward or consequence attached to it. Whether it is average wait time, average time at window, or even max time at window, the drive is to improve the measured metric, even at the absolute expense of the customer experience. This isn't all that different from backfiring incentives. Of course, this doesn't apply only to the fast food industry, but is a danger with any metric in any industry. If the metric becomes the be-all end-all, then it's entire purpose has been defeated. This is on my mind right now, because I am now part of setting metrics both for myself, and for the department I'm currently responsible for training and overseeing.

    Thursday, January 08, 2009

    Space, the Forgotten Frontier

    I've always been a huge fan of the space program, so the existence thereof has never been something I thought needed justification. However, I find that in my daily life, many of the people I run into hold the opinion that the space program is a huge waste of money with absolutely no benefits whatsoever. I've mostly written this off as ignorance, but still been bothered by it. However, a recent trip to Florida made me consider how poor a job of marketing itself NASA has done.

    On this trip, we spent several days at Walt Disney World, then stopped by NASA's Kennedy Space Center, before visiting the Atlantic Ocean (as we had several people, our kids included, who had never seen it before) and then heading back home. The difference between Disney World and NASA was one of the most dramatic I have ever seen. Granted, I was giving Disney World pretty high marks. I had only been the once before, as a young child, so my only memories of it were faint, and glossy with childhood nostalgia. In addition to that, I had recently read Cory Doctorow's book "Down and Out in the Magic Kingdom", so I was reliving the book as I walked through the park. So, I spent the entire time at the park annoying my wife with comments about how efficient I found things, how well designed and themed areas were, how well things tied together, how this area was important in the book, etc.

    We then visited NASA, where it felt like we had found a run-down back-country tourist-trap/ghost-town. The place was almost deserted, and looked like it was running on a skeleton crew as well. There was one ticket lane open, but the way they were set up, you had to walk up to each one to see if it was open or not. You were largely left to yourself to explore the exhibits, and read the plaques, with little or no direction from the staff. It was overall a horrible experience, and one the kiddos did not enjoy at all. While I can't blame them for that, it did hurt me, their geek dad/space buff, that they weren't as fascinated by the shuttles and space hardware as they were by the princesses and talking animals a few days before.

    Even for me, the experience was rather disappointing. I wasn't engaged at all, I didn't learn anything I didn't already know. Yes, there was a shuttle on the launch pad, but you couldn't really see anything more than the top 6 inches of the External Tank from the observation tower. Granted, I had fussy kids to keep me busy, so I didn't get to see some of the exhibits I wanted to. Additionally, this visit was near the end of our trip, and everyone was gearing up for the couple days in the car it would take to get home. Still, it was the sheer underwhelmingness of the experience that impressed upon me the most.

    We are talking about the space program here. Space Shuttles with Solid Rocket Boosters and External Tanks, some of the most advanced technology in this country, in the world even. Yet, I couldn't really get into it. If only NASA had the Walt Disney Imagineering department working for them, how might the Space Center be different? How might the public's impression of the Space Program as a whole, be different? Space travel has become routine, so it only makes the news when something goes horribly wrong. At any given point in time, how many people around you could tell you how many people are currently in space?

    NASA has done very little that I have seen to work on its public image. So, consequently, very few people know what the agency's mission is, or what its goals are. Even fewer people seem to understand the impact NASA has on life here on earth. The common opinion is that money spent by NASA is either a) turned into smoke when a rocket launches or b) launched into space, and has no impact here on earth, that it is being completely wasted. So, let me throw some numbers your way, ok?

    NASA's requested budget for 2007 was $17 Billion. (source) In isolation, that is a large number. Certainly more than most of us will ever see in our lifetimes. However, when we start to add in some context, how does it look? The recent bailout package was approved for up to $700 Billion. The auto industry is asking for $25 Billion in bailout loans. The US national budget for 2007 was $2.784 Trillion, so NASA's slice of the pie was 0.58% of the national budget. Finally, social programs (the place most people say the money going to NASA should be spent instead, totaled $1.581 Trillion. So, for every $1 spent on NASA, we are already spending $98 on social programs. Finally, for every dollar spent by the government on R&D in NASA, it is estimated the government earns $7 in personal and corporate income taxes. (source) Let me repeat that, the government brings in $7 for every $1 it sends out to research projects inside of NASA.

    The last piece of the puzzle, is what we call spinoff technologies. Things that had their beginning in the space program, but ended up in the public, usually in very different forms. These are the things I think NASA could really do a better job of publicizing, although they have put together a very neat site to showcase some of them. Many of them are exotic sounding things you'll probably never encounter, such as advanced welding systems and magnetic liquids. However, there are a few that are very important to many people.

    • Infrared In-ear thermometers, a parent's best friend.
    • Cordless vacuums, like the DustBuster.
    • LED lights.

    Of course, there is also the obvious, telecommunication satellites. The things that make so many of your phone calls, internet usage, and tv watching possible. Not to mention the many advances in weather monitoring and forecasting, useful both to those in the path of a hurricane, and those with a farm in the midst of a drought. These are things that the space program brought to life, usually inadvertently. It can also be argued that the current age of advanced technology is largely thanks to the space race era, and the many engineers and scientist who worked on the projects, and many others who may never have been involved with the space program directly, but were inspired to go into science and technology because of it. Because ultimately, to me, that is what the space program is all about. It is about solving problems, about exploring, and about learning new things and adding to the sum total of human knowledge, and inspiring new generations to do the same things.

    I am a Christian, so I'm not one who believes our only hope for survival is in colonizing other planets, and eventually other solar systems. However, I do believe that the future of the US of A, as a country, relies on our being leaders in technology and science, areas we are quickly falling behind in. We once were the manufacturing powerhouse of the world, but now that is all being shipped abroad. We now import much of our food, more than we really have to. If we stop leading in innovation, what will we excel in, as a country?