Geeks In Action

Life, the Universe and Everything

Browsing Posts in Linux

New Work Machine

1 comment

My new Acer Aspire came in to work. It’s a compact machine that has what I consider to be very good specs for its size and price. Most importantly it’s pretty Linux friendly. The first thing I did was blow out Windows 7 with a Fedora 12 install. Here are a couple pics of it on my desk.



This system replaces a rather old and rather large HP machine that sat below my desk. My feet are happy with the new room that they get. I picked this machine up via Tiger Direct. Their customer service was solid in helping me get the order done and it arrived very quickly.

This was my first 64 bit Fedora install. Everything was pretty normal. The only issue I’ve run into is Adobe does not have a version of Air available for 64 bit Linux. They have instructions to install the 32 bit version but they are very out of date and I’m not comfortable with what they want done anyway. So I will be foregoing Air for the time being. Maybe this will motivate to get back to work on the twitter client I was trying to get done. I think we all agree the world needs more Twitter clients.

Fedora and UnixODBC

No comments

January of last year UnixODBC spun off non-core code to separate projects of their own. The reasoning they give on their site makes sense. I’m just not sure I follow all the ramifications when it comes to how this works out on the user level with different distros. What I do know is that with Fedora if one wants to use the gui ODBC manager, ODBCConfig, then that does not come in the unixODBC package – it comes in unixODBC-kde. What’s interesting is that over at their sourceforge file list it shows a GTK version but that doesn’t show up in my KPackageKit list. I’m not sure how that came to be and I’m not sure if I have time or the inclination to figure it out.

The thing that drives me to mention it at all is that if one is googling around looking for info. on how to use UnixODBC, they are going to come under the impression that ODBCConfig is part of that package. The reason I figured out to look for something else was I happened to google Fedora and UnixODBC and ran across a forum posting that put me on track.

Looking at the ODBCConfig page itself, with a last update over 10 years ago, I wonder if those goes back further than last year. I don’t know. I haven’t messed with UnixODBC in quite a while and last time I did it was on AIX and I was just concerned with MS SQL Server drivers. Now I’m trying to get my little Python program I wrote to read an MS Access database running on my Fedora machine. This is stupid in a sense as I’d never willingly use MS Access on a linux box but I just want to see if I can do it. It would make more sense to switch to SQLite.

So just to sum up – if you want to use UnixODBC on Fedora, with the gui admin tool, you need to install 2 packages rather than just one. Getting the drivers themselves is also another matter. My next task is to see if I can MDBTools and UnixODBC to play nice together. I’ve found examples from folks who say they’ve done it so I’m going to give it a whirl.

Adobe Air on Fedora 12

No comments

I’ve been getting my Fedora 12 machine set the way I want it. I had done the upgrade from 11, ran into problems with my video card and ended up doing a full install. Now I’m putting it all back together.

My favorite Twitter client is Tweetdeck – which is an Adobe Air app. Installing Air went without a hitch but getting Tweetdeck, or anything else for that matter, was not working. The error message the installer gave me was, “Application crashed with an unhandled SIGSEGV” and then it would point me to a log file that was full of information. Unfortunately none of that information helped me to understand what the problem was. So I turned to trusty google and found my answers at this Technology and Investment Blog.

The answer to my issue was about half way down under the heading “Problems Running AIR Application”. It says there is an issue with SELinux – which I don’t totally get because I thought I turned SELinux off – but either way, I ran the command there and it fixed my issue. (I think it is probably an Adobe Air certificate issue – not SELinux) The blog links back to this Fedora Forum thread about Air – which also has some good information.

Fedora Upgrade

No comments

I’ve been running Fedora 11 for a while but the upgrade to 12 was highly recommended here, so I kicked off the upgrade per these instructions. To put it simply, the instructions require typing a single word in at the command line. Even I could get my head around that.

First I backed everything up. I’ve got an external drive that’s large enough to hold everything that matters. If something were to go wrong with this I wouldn’t be rolling back to the previous state. I’ll just wipe the machine and do a fresh install. But I’d like to see how this process goes.

I am a bit bummed that it’s not done this morning. I kicked it off last night and went home. Shortly after I left it stopped, to prompt me about something and so it really didn’t make any progress last night. That’s a bit disappointing and there is probably a way to do a silent install – but it’s not the end of the world. It’s not like the whole thing blew up on me – it just waited for me to come back. I’m in HR type meetings all day, so I’m hoping things are done by the end of that.

I wanted to create a keyboard shortcut for locking the screen on my Fedora machine. I wasn’t sure what to do and my Google searches on what seemed the right terms weren’t too helpful either. It took some poking around but I finally put it together. If you are in the same boat, I’m hoping this will help you out and save you some leg work. (And by the time I need to do it again I’ll have probably forgotten some of it and need this too. :) Everything here was done on KDE 4.3.4, Fedora 11. Click on the little pictures for bigger pictures.

The place to start is System Settings. I have System Settings as one of my favorites in my application launcher, but thankfully it doesn’t matter where you have it. Just search for “System Settings” in your launcher and there it will be.

system_settings

There are two items in the Systems Settings that we’ll look at. They are “Input Actions” and “Keyboard & Mouse”. Which hopefully makes sense. Keyboard & Mouse is where we will go to see what keyboard shortcuts are in place. Input Actions is where we will go to create a new shortcut.

sysset_inputact sysset_keymouse

Opening Keyboard & Mouse, we can see a few items on the left side such as Keyboard, Mouse, Joystick, Standard Keyboard Shortcuts and Global Keyboard Shortcuts. We are of course interested in the keyboard shortcuts. It is worth taking the time to click on both and see what is already defined. Many in the Standard Keyboard Shortcuts should look familiar. There may be some you don’t know. They can be changed right here. Would you like copy to be ctrl+v and paste to be ctrl+c? Go ahead and switch them around. Some are not defined, you could do so if you like.

sysset_standard

Global Keyboard Shortcuts is set up a bit differently. The shortcuts are grouped by KDE Component. I am currently unaware of any way to view them (or search them) all at once. This is unfortunate, hopefully it will be corrected in the future, and may already be fixed. One of the reasons I love Fedora is the frequent updates. But back to global shortcuts, here are a couple assigned to the KDE Daemon for changing monitor brightness, not something I use with my desktop machine but a real must for laptops.

sysset_global

I have to confess, my expectation was that I would add what I wanted here, much like how I would change standard shortcuts here. That is not the case. To add global shortcuts we need to move back to System Settings and choose Input Actions. Then in the left panel, we need to right click to get a drop down menu. The options I used are New -> Global Shortcut -> D-Bus Command. This will immediately create a space to type in a name for the new shortcut. Oddly enough, I called mine “Lock Screen”. Here are both steps.

new_global_dbus Typing a new name for the global shortcut.

What remains is to fill in the three tabs on the right, “Comment”, “Trigger” and “Action”. The first two are drop dead easy. For the comment type in whatever comment you want to have. For the trigger, I just clicked on the little button with a wrench, and then pressed the keys I wanted to use. In this case it was Ctrl+Alt+Del, so that this matches what I do to lock a Windows machine.

new_global_comment new_global_trigger

The last part took just a touch longer to crack. As you may remember I’d chosen to make this shortcut a D-Bus Command. Well, here is where I tell it just which D-Bus command I want kicked off by this key combination. It took a bit of digging, but if you look to the bottom of the “Action” tab you’ll see two buttons. One says “Call” and the other “Launch D-Bus Browser”. Browser sounded good so I clicked on it and started browsing. There’s a ton of stuff in there and it was a bit overwhelming. Google helped sort things out. Here I will insert a word of caution. I learned that double clicking on an entry in “Methods” would fire it off. This could potentially be an issue, tread lightly. Why did I double click something? I was sort of hoping I could pick what I wanted, double click it and have the Action tab automagically populated. No such luck. Another great potential feature for this software. So once I found what I wanted, the method to lock the screen, I needed to figure out how to fill in the tabs. Fortunately the Call button let me test my attempts to get it right. Again, I’d be a bit careful here depending on what kind of stuff you are calling, but for locking the screen, I was good. I’ve got shots below of the blank form, the browser showing what method I wanted and then the action tab properly filled in for that method. After that it was just a matter of hitting “Apply” to make it stick. The last screen shot is back at Global Shortcuts under Keyboard & Mouse – showing that my Lock Screen shortcut has been added to the KDE Component khotkeys.

new_global_action_blank new_global_viewer new_global_viewer_filled done

It is possible to do this other ways. This is the one that I am most comfortable using, but if you are aware of an issue with how I’ve gone about this, please let me know. There’s a ton more available in Input Actions, like gestures and the ability to run a command or load a url. This is where one could connect special keys on a keyboard to their desired actions. Just click the wrench button on the trigger tab and hit the key you want. If your choice is already bound to some action, you should get a message box that pops up and lets you know. Maybe I’ll follow this up with some more ways to set up Input Actions. It’s a great utility that can really increase productivity.

Screencasts on Fedora

No comments

I was trying to use recordMyDesktopqt today. The video piece works just fine, but audio wasn’t as easy. I plugged in a usb mic. In the recordMyDesktop setting there is just a text box where one must type in the device name. I didn’t know what to put there. I tried a few things that failed, and then I had an idea. I opened up Audacity and went into the settings. It gave me a dropdown list and I found “ALSA: USB Device 0×46d:0×809: USB Audio (hw:1,0). Now, I’d already tried ‘0×46d:0×809′ and that didn’t work. I’d also tried it with USB on the front. Then I tried ‘hw:1,0′ and that did the trick. Looking at the recordMyDesktop documentation would have gotten me there sooner, or maybe not as they imply kmix could fix it, but I don’t think so.

I don’t know what I’m doing or this probably wouldn’t have taken as long as it did — but the one place I’d love to see a concerted effort to make things easier with Linux is sound. A lot of times things just work – but when they don’t it can be really tough to figure out where to go and what to do.

Fedora 11 Upgrade Done

2 comments

My Fedora machine has finished upgrading to 11. I didn’t time it exactly but it looks like it took roughly 4 hours. That’s primarily due to the fact that it’s an older and slower machine. No errors or issues at this point – the login page doesn’t have the blue sun with solar flares any more. The new one looks cool but I really liked that sun. Have to see if there is a way to get it back.

First thing I did was start up my synergy server – because using a full size keyboard is where it is at.

I’m pleased that things looked to have gone well. For a bleeding edge distro Fedora is pretty smooth. There are bumps of course, that’s part of being out front – finding and marking them but all in all I’m impressed with just how usable it is as a desktop OS.