tag:blogger.com,1999:blog-8303154469689484392014-10-06T18:12:58.518-06:00Brian's lovable online gazettebgmerrellhttps://www.blogger.com/profile/10800377722480915387noreply@blogger.comBlogger24125tag:blogger.com,1999:blog-830315446968948439.post-29757911436016684882009-12-15T11:07:00.022-07:002009-12-15T17:15:44.346-07:00GNOME with FluxboxI've mentioned before that I'm a big fan of <a href="http://www.fluxbox.org/">Fluxbox</a>. Nevertheless, I'm also a big fan of the GNOME project and Gtk. I like gnome-panel, gnome-keyring, gnome-power-manager, and a whole host of programs that run as part of a GNOME session. I just happen to not like Metacity and Nautilus--or maybe it's just that I like Fluxbox <span style="font-style: italic;">a lot. </span> I also love gnome-settings-daemon and having a nice way to set backgrounds and nice looking themes (something that Fluxbox is missing).<br /><br /><span style="font-weight: bold;">Here's some boring history... Feel free to skip it.</span><br /><br />I've always had trouble getting GNOME and Fluxbox to play nicely. I could just be dumb, but GNOME doesn't make it very easy on me either. For a while I used the 'gnome-session-remove' tool to remove metacity and nautilus and then I would start Fluxbox. This worked well, but <a href="https://bugzilla.gnome.org/show_bug.cgi?id=548488">gnome-session-remove was removed</a> from GNOME, apparently without a replacement. Then I started digging around in the gconf-editor. When I found the /desktop/gnome/applications/window_manager directory, I thought I had found what I needed. Alas, every single key in that directory has been depcrecated since GNOME 2.12, and they don't appear to do anything anymore. For a while I got by just hacking together an .xinitrc to load everything I wanted, but, for me it was a pain to even get all the correct GNOME pieces--especially when working on my laptop--so that everything worked as expected (my main issues were with gnome-keyring, and the gnome power daemons). Additionally, <a href="https://bugzilla.novell.com/show_bug.cgi?id=546315">audio no longer works in openSUSE in runlevel 3</a>, so the .xinitrc solution was out the door. (I probably could have hacked together something in .xsession or some other level 5 voodoo, but I doubt this would have resolved the other issues.)<br /><br />Fluxbox didn't make it very easy on my either. I finally just started loading a standard GNOME session and then killing Nautilus and Metacity and then starting Fluxbox. This worked quite well, but the Fluxbox toolbar would always steal the "system tray" (I don't know what we really call it) icons from the gnome-panel, and I like my little applet icons. I supposed I could have just made both panels visible, but that would just be redundant and silly. This, however, caused me to stumble onto an actual solution, which was to compile Fluxbox without its toolbar. After that, I just need to find a decent way to tell GNOME to load Fluxbox instead of Metacity.<br /><br /><span style="font-weight: bold;">The exciting part...</span><br /><br />Here's how you can get Fluxbox and GNOME to play nicely (with only a minor hack):<br /><br /><ol><li><a href="http://fluxbox-wiki.org/index.php?title=Build_fluxbox_from_source">Get the Fluxbox source</a>. I used the current Git code.</li><li>Configure Fluxbox with --enable-toolbar=no during the configuration step.<br /></li><li>Run gconf-editor and replace the value of the /desktop/gnome/session/required_components/filemanager key with an empty string (the default is "nautilus").</li><li>And here is the minor hack: Run (as root) 'echo "exec startfluxbox" > /usr/bin/gnome-wm' (after backing up the gnome-wm file, of course). I label this a hack, because the file says not to edit it.<br /></li></ol>I suggest everyone try this; it's quite nice ;) I have all the GNOME nicities, with all of the Fluxbox simplicity, power, and productivity enablement. Here are some things that I consider nice about Fluxbox:<br /><br /><ul><li>Instead of having a "Start" menu, right clicking anywhere on the desktop produces the (highly configurable) menu.</li><li>Alt+LeftClick moves a window (same as Metacity), and Alt+RightClick resizes a window. Metacity has the resize feature as an option in gconf, but Fluxbox is much more configurable because of its <a href="http://fluxbox.sourceforge.net/docbook/en/html/fluxbox-man.html#lbAU">keys file</a>. For example, I prefer to resize the window in the same way, regardless of where my mouse is positioned on the window.<br /></li><li>Scrolling with the mouse anywhere on the desktop swaps workspaces</li><li>Very customizable <a href="http://fluxbox.sourceforge.net/docbook/en/html/fluxbox-man.html#lbAR">menu</a></li><li>Double clicking on menu bar "collapses" the window like a window shade, only leaving the title bar. Clicking on the title bar a second time expands the window. This is also an option in GNOME from the gnome-control-center.<br /></li><li>A window can be dragged between workspaces (a feature in Compiz, and maybe somewhere in GNOME).</li><li>Window title bars take up much less space and can be configured to be even smaller (or configured in a number of different ways).</li><li>Some people like the Fluxbox <a href="http://fluxbox.sourceforge.net/docbook/en/html/chap-slit.html">slit</a>, but I don't use it.</li><li>Window tabbing, which allows multiple windows to share the same window and tabbing to occur at the title bar (so that a tabbed window doesn't take up any more space than an non-tabbed window). Behold:<br /></li></ul><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_FhQPZa4-fIA/SyflQdDtozI/AAAAAAAAA4c/-TKa2ZJInJ0/s1600-h/gnome-tabbed.png"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 101px;" src="http://4.bp.blogspot.com/_FhQPZa4-fIA/SyflQdDtozI/AAAAAAAAA4c/-TKa2ZJInJ0/s400/gnome-tabbed.png" alt="" id="BLOGGER_PHOTO_ID_5415549147777180466" border="0" /></a><br /><div style="text-align: center;">vs.<br /><br /><br /></div><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_FhQPZa4-fIA/SyflbMKcIHI/AAAAAAAAA4k/mOoSNOjQWlw/s1600-h/fluxbox-tabbed.png"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 51px;" src="http://2.bp.blogspot.com/_FhQPZa4-fIA/SyflbMKcIHI/AAAAAAAAA4k/mOoSNOjQWlw/s400/fluxbox-tabbed.png" alt="" id="BLOGGER_PHOTO_ID_5415549332220551282" border="0" /></a><br />And here is a screenshot of the entire desktop:<br /><br /><table style="width: auto;"><tbody><tr><td><a href="http://picasaweb.google.com/lh/photo/A842B5wMLzeUim6boRUy_Q?feat=embedwebsite"><img src="http://lh3.ggpht.com/_FhQPZa4-fIA/SyfpWLRrQHI/AAAAAAAAA4s/qJg2wPXUIm4/s144/fluxbox-gnome.png" /></a></td></tr><tr><td style="font-family: arial,sans-serif; font-size: 11px; text-align: right;">From <a href="http://picasaweb.google.com/bgmerrell/Linux?feat=embedwebsite">Linux</a></td></tr></tbody></table><br /><br />Hopefully there is an even better solution and someone can enlighten me.bgmerrellhttps://www.blogger.com/profile/10800377722480915387noreply@blogger.com7tag:blogger.com,1999:blog-830315446968948439.post-49580820875672436502008-12-12T12:04:00.008-07:002009-12-19T00:45:34.621-07:00Database Design Final ProjectYesterday, I took my last final exam for my Bachelor's of Science in Computer Science from <a href="http://www.usu.edu/">Utah State University</a>. I have been working at <a href="http://www.novell.com/">Novell</a> for the last 2 years (that went quickly) and I'm glad they were willing to hire the unlearned me and reimburse my tuition and text book costs for the last bit of my degree. Anyway, that's not what this blog is about...<br /><br />I finished my "Database Design" final project this Monday. Normally I don't blog about things like this, but I thought this particular case was kind of neat. The project requirements were to provide an application and database that allows the following use case using some provided USGS text-file data (and some other data):<br /><blockquote>The user searches the database by college/university name or zip code. Then, the database returns the information on the nearest �five nearest features for each feature type (e.g., colleges/universities, towns, airports, hospitals, streams, etc.) selected by the user with each feature's name, rank, city, state, zip code, and distance.</blockquote>I liked the open-endedness of the problem; the only restriction I can think of was that we were restricted to (PostgreSQL, MySQL, or SQL Server).<br /><br />My idea was to first create a Python command-line interface that prints output to a terminal and optionally writes output in XML, and then create a front-end GUI using PyGTK that executes the CLI program, parses its XML, and displays it in a nice GUI environment.<br /><br />The point is that I was able to do a major final project for a major university using 100% free open source software. Here is a list of the software that I used and what it was used for. Thanks to everyone who made it possible! Behold the power of open source!<br /><ul><li><a href="http://sourceforge.net/projects/mdbtools">mdbtools</a> - to extract some needed data from a Microsoft Access database file<br /></li><li><a href="http://www.postgresql.org/">PostgreSQL</a> (including psql and pgadmin3) - to store and manage the data</li><li><a href="http://postgis.refractions.net/">PostGIS</a> - support for geographic objects to PostgreSQL<span style="text-decoration: underline;"></span><a href="http://www.postgresql.com/"></a></li><li><a href="http://www.opensuse.org/">openSUSE 11.0</a> - to operate my system</li><li><a href="http://http//www.rbt.ca/autodoc/">PostgreSQL Autodoc</a> - to generate documentation and diagrams for my database</li><li><a href="http://www.openoffice.org/">OpenOffice</a> - to write my final report and summary.</li><li><a href="http://www.python.org/">Python</a> - to code</li><li><a href="http://www.gtk.org/">Gtk+</a> and <a href="http://www.pygtk.org/">PyGTK</a> - to code the GUI</li><li><a href="http://www.gimp.org/">The Gimp</a> - to create a GUI model and take screenshots for my write-up<br /></li><li><a href="http://www.fluxbox.org/">Fluxbox</a> - to manage my windows</li><li><a href="http://www.gnome.org/">GNOME</a> - duh!</li><li><a href="http://glade.gnome.org/">Glade</a> - to design my GUI<br /></li><li><a href="http://www.mozilla.com/en-US/firefox/">Firefox</a> - to display my XML using XSLT and CSS</li><li><a href="http://www.pygresql.org/">PyGreSQL</a> - to interface with Postgres</li><li><a href="http://www.vim.org/">vim</a> - to write the code</li><li><a href="http://projects.gnome.org/evince/">Evince</a> - to read the assignment<br /></li><li>Others I'm sure, including all of the GNU core utils we always take for granted ;)<br /></li></ul>I <span style="font-weight: bold; font-style: italic;">never</span> had to turn on a Windows machine. I didn't have to port it to Windows or even test it on Windows like I have had to do several times in the past. We were even asked to submit the write-up in OpenOffice format. I'm sure many of you have done this before and I'm happy for you, but having been a Linux user for 11 years now, I am very pleased to see its evolution (in most respects) and its acceptance. The future is definitely open.<br /><br />Being a Database Design class, the bulk of the work involved getting the appropriate data into the database (I used PostgreSQL), getting the database normalized, adding constraints, etc. This left me with basically two days to hack together the application. With the limited time I had, I didn't quite get the CLI and the GUI as integrated as I would have liked, and there is some weirdness in the GUI code, but that's okay; I was pretty happy with the results:<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://lh6.ggpht.com/_FhQPZa4-fIA/SUKppZKWV8I/AAAAAAAAAi0/O4rcYpQ-o6Y/s640/GUI_screen0.png"><img style="cursor: pointer; width: 640px; height: 480px;" src="http://lh6.ggpht.com/_FhQPZa4-fIA/SUKppZKWV8I/AAAAAAAAAi0/O4rcYpQ-o6Y/s640/GUI_screen0.png" alt="" border="0" /></a><br /><br />Here are a couple of other screenshots:<br /><ul><li><a href="http://picasaweb.google.com/bgmerrell/Linux#5278968232405204098">CLI</a></li><li><a href="http://picasaweb.google.com/lh/photo/csamqjTGkIu387CPeqUHYA?feat=directlink">Stylized XML output</a></li></ul>And here's the code and database diagram if anyone cares. It's only useful for educational purposes, because we weren't required to determine which zip code the features are actually *in*, we only had to determined the nearest zipcode centroid to the latitude/longitude point of a feature. This means zip codes, cities, and possibly states can be wrong. The didn't get the GUI as complete as I had hoped, the idea was to parse the XML results and display the actual results in the right pane of the GUI; however, I ran out of time so I simply dumped the path to the XML output file to the GUI instead. I'm sure there are lots of other bugs and hacks, etc. etc. I don't think I normalized the entire database either.<br /><ul><li><pre><a href="http://bean.freeshell.org/files/db_final_proj/directory.css">directory.css</a> - style for the XML output<span style="font-family:Georgia,serif;"></span></pre></li><li><pre><a href="http://bean.freeshell.org/files/db_final_proj/directory.glade">directory.glade</a> - glade file for the GUI</pre></li><li><pre><a href="http://bean.freeshell.org/files/db_final_proj/directory.png">directory.png</a> - database diagram</pre></li><li><pre><a href="http://bean.freeshell.org/files/db_final_proj/directory.py">directory.py</a> - the CLI program<br /></pre></li><li><pre><a href="http://bean.freeshell.org/files/db_final_proj/directory.xml">directory.xml</a> - the glade file converted with gtk-builder-convert (is this still the way to go?)</pre></li><li><pre><a href="http://bean.freeshell.org/files/db_final_proj/directory.xsl">directory.xsl</a> - style for the XML output<br /></pre></li><li><pre><a href="http://bean.freeshell.org/files/db_final_proj/directory_gui.py">directory_gui.py</a> - the GUI program</pre></li><li><pre><a href="http://bean.freeshell.org/files/db_final_proj/features_list.xml">features_list.xml</a> - default features_list which the GUI reads to populate the filters list.<br /></pre></li><li><pre><a href="http://bean.freeshell.org/files/db_final_proj/xml_logger.py">xml_logger.py</a> - handle the XML parsing and printing</pre></li></ul>bgmerrellhttps://www.blogger.com/profile/10800377722480915387noreply@blogger.com5tag:blogger.com,1999:blog-830315446968948439.post-6909444154753884792008-08-21T23:52:00.000-06:002008-08-22T00:17:01.872-06:00Nethack on the iPhoneWithin the last few weeks several SSH clients have popped up on the <a href="http://en.wikipedia.org/wiki/App_Store">App Store</a>. From the looks of things, none of them are really great yet and none of them are free. Regardless, yesterday I finally broke down and purchased one: <a href="http://www.jbrink.net/touchterm/">TouchTerm</a> for $2.99. Anyway, here is a screenshot of me SSHed into my laptop (from an unjailbroken iphone), playing nethack inside of a screen session. Not perfect, but not too bad:<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_FhQPZa4-fIA/SK5WoSfTtuI/AAAAAAAAAWI/UF3rKvVuHmQ/s1600-h/photo.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_FhQPZa4-fIA/SK5WoSfTtuI/AAAAAAAAAWI/UF3rKvVuHmQ/s400/photo.jpg" alt="" id="BLOGGER_PHOTO_ID_5237218666836375266" border="0" /></a><br />One thing you will want to do is remove the <span style="font-style: italic;">number_pad</span> option from /etc/nethack/nethackrc.tty or ~/.nethackrc (if it's there). This let's you move around in Nethack when your keyboard doesn't have a number pad.<br /><br />Also, <a href="http://comments.deasil.com/2008/08/18/iphone-ssh-review-issh-v-pterm-v-touchterm/">here's a review</a> of the four SSH clients currently (08/22/2008) available at the app store. While the author recommends TouchTerm, I have only skimmed through it; I chose TouchTerm based on the reviews in the app store.bgmerrellhttps://www.blogger.com/profile/10800377722480915387noreply@blogger.com4tag:blogger.com,1999:blog-830315446968948439.post-24821909525681296582008-08-13T16:21:00.000-06:002008-08-14T01:21:01.922-06:00Strongwind Basics<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.medsphere.org/projects/strongwind/"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://1.bp.blogspot.com/_FhQPZa4-fIA/SKNgm6O8DUI/AAAAAAAAASM/Bn3UrHsmMow/s400/strongwind_logo.png" alt="" id="BLOGGER_PHOTO_ID_5234133413517856066" border="0" /></a><br />ABSTRACT: New introductory Strongwind tutorial called <a href="http://www.mono-project.com/Accessibility:_Test_Strongwind_Basics">Strongwind Basics</a>.<br /><br /><br />A big portion of our work on the <a href="http://www.mono-project.com/Accessibility">Mono UI Automation</a> team involves making Mono WinForms applications accessible through <a href="http://en.wikipedia.org/wiki/AT-SPI">AT-SPI</a>. Gtk+ applications are already accessible through AT-SPI, thanks to a bridge that connects AT-SPI and Atk. Screen readers like Orca, and other accessibility tools can then use AT-SPI to access GUI controls (widgets). This allows the accessibility tool to get information from a widget and even perform actions--like clicking a button. Because widgets are made available this way, working with accessibility lends itself extremely well to automated testing.<br /><br />Several GUI application automation frameworks use AT-SPI to access widgets. For example, <a href="http://ldtp.freedesktop.org/wiki/">LDTP</a>, <a href="http://people.redhat.com/zcerza/dogtail/">Dogtail</a>, and <a href="http://www.medsphere.org/projects/strongwind/">Strongwind</a> all access widgets through AT-SPI. On our team, we're using Strongwind to ensure that we're doing a good job of making MonoWinforms applications accessible.<br /><br />Strongwind is pretty small, simple, and it has some <a href="http://www.medsphere.org/projects/strongwind/sample_output/gcalctool-basic-ops/procedures.xml">neat logging features</a>. The Strongwind code is located on the GNOME SVN servers and they are the "strongwind" product on GNOME's Bugzilla. The IRC channel is #strongwind on irc.gimp.org.<br /><br />One small downside is that Strongwind is relatively new; there aren't many users and not much documentation or tutorials. I decided that writing an introductory tutorial would (hopefully) be a good reference for current and future teammates. Hopefully it will be useful to others, too! It's called <a href="http://www.mono-project.com/Accessibility:_Strongwind_Basics">Strongwind Basics</a>, and I've been writing way too many wikis lately.<br /><br />On a related note, I made a couple of diagrams for the wikis and for the <a href="http://2008.utosc.com/pages/home/">UTOSC</a> coming up later this month. <a href="http://www.mono-project.com/files/5/5a/Strongwind_arch.png">One diagram</a> is specifically for Strongwind and <a href="http://www.mono-project.com/files/7/75/Qa_arch.png">the other</a> shows how we implemented a harness to run several Strongwind tests on several machines and log the results. Feedback is appreciated, but this is my first real attempt with Inkscape, so don't bust my chops too much :)<br /><br /><span style="font-size:78%;">pssst, we still have job openings</span>bgmerrellhttps://www.blogger.com/profile/10800377722480915387noreply@blogger.com2tag:blogger.com,1999:blog-830315446968948439.post-34863066287276304542008-07-11T14:22:00.002-06:002009-08-25T14:08:52.766-06:00Building Accerciser from Source (on openSUSE)<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_FhQPZa4-fIA/SHfDHjkNC8I/AAAAAAAAAQg/VoW1KdNiBTY/s1600-h/accerciser.png"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://bp0.blogger.com/_FhQPZa4-fIA/SHfDHjkNC8I/AAAAAAAAAQg/VoW1KdNiBTY/s400/accerciser.png" alt="" id="BLOGGER_PHOTO_ID_5221856827532970946" border="0" /></a> I have been using Accerciser for a few months now to aid in my <a href="http://www.mono-project.com/Accessibility">Mono accessibility work</a>, but until now I had been using it in openSUSE 10.3. With the release of openSUSE 11, I had to rebuild it from source. Of course, that meant figuring out all the dependencies again. Since this will happen every time we get a new openSUSE release to test on, I decided to make of note of things this time to reference in the future.<br /><br />All I did was created a tiny shell script that uses zypper to install the packages that I needed to have in order for Accerciser to configure and compile correctly. Of course, this is openSUSE specific, but it probably useful for other distros (in that you might be able to determine which packages you possibly need):<br /><blockquote>#!/bin/sh<br /><br /># accerciser_prep.sh<br /><br />zypper in gconf2-devel orbit2-devel indent libidl-devel popt-devel glib2-devel pcre-devel libstdc++-devel glib-devel libstdc++43 glibc-devel glib linux-kernel-headers automake autoconf m4 intltool gettext-tools cvs libgomp43 gnome-common gnome-doc-utils-devel libxml-devel ncurses-devel readline-devel tack gcc gcc43 libmudflap43 make zlib-devel IPython<br /></blockquote>Then just grab Accerciser ( svn co svn+ssh://[login@]svn.gnome.org/svn/accerciser/trunk accerciser ) and run configure, make, and make install! Note that these are the packages that are needed after a default install of openSUSE 11 on my test machines; Accerciser has <a href="http://live.gnome.org/Accerciser#head-79a431f68b55c5b359b9133d99ba500f742600ec">other requirements</a>, many of which were installed on the OS by default.<br /><br />By the way, Accerciser 1.34 was released semi-recently (June 16). Accerciser is an interactive Python accessibility explorer for the GNOME desktop. It uses AT-SPI to inspect and control widgets, allowing you to check if an application is providing correct information to assistive technologies and automated test frameworks. I recommend it for anyone involved with accessibility, but also anyone who develops or tests applications! For a good introduction on accessibility and to see how Accerciser can be used, check out <a href="http://eduspaces.net/stevelee/weblog">Steven Lee</a>'s article entitled "<a href="http://live.gnome.org/Accessibility/PythonPoweredAccessibility">Python Powered Accessibility</a>." The article was published recently in <a href="http://pymag.phparch.com/">Python Magazine</a>;bgmerrellhttps://www.blogger.com/profile/10800377722480915387noreply@blogger.com1tag:blogger.com,1999:blog-830315446968948439.post-68299111409767303122008-06-27T15:30:00.000-06:002008-07-13T22:06:29.856-06:00VMWare (Workstation 6) on openSUSE 11EDIT July 13th 2008: Thanks to Tony Barnard who pointed me to <a href="http://cameronseader.blogspot.com/2008/06/vmware-workstation-604-running-on.html">Cameron Seader's blog entry</a> that has <a href="ftp://seader.homeip.net/Outgoing/vmware-vmblock-patch.tgz">a fix</a> for the vmware-vmblock module problem described in this blog entry.<br /><br />---<br /><br />ABSTRACT: ignore the inaccurate gcc version warning and run 'runme.pl' in the <a href="http://www.mediafire.com/?nmmqytet2gn">vmware-any-any-update117.tar.gz</a><br /><br />I ran into a few kinks while installing VMWare on my new openSUSE 11 install. They are fairly minor, but here's some info that should get you up and running.<br /><br />First of all, the vmware-config.pl script told me that it couldn't find a suitable vmmon module for my kernel. No problem, that's normal, the script will just compile one for me like always correct? Well, correct for the most part; after affirming that I wanted the script to try and build the vmmodule, I got the following message:<br /><br /><blockquote>Your kernel was built with "gcc" version "4.3.1", while you are trying to use<br />"/usr/bin/gcc" version "4.3". This configuration is not recommended and VMware<br />Workstation may crash if you'll continue. Please try to use exactly same<br />compiler as one used for building your kernel. Do you want to go with compiler<br />"/usr/bin/gcc" version "4.3" anyway? [no]</blockquote>I found this message a little odd and unsettling since I had just installed the system and hadn't messed with updates yet. I decided to investigate whether the script was even telling me the truth or not.<br /><blockquote></blockquote><blockquote>bean@cobweb:~> gcc --version<br />gcc (SUSE Linux) 4.3.1 20080507 (prerelease) [gcc-4_3-branch revision 135036]</blockquote>The version looked right to me and I wondered where vmware-config.pl was getting its information. After browsing the gcc manual, I found the -dumpversion option and tried it out...<br /><br /><blockquote>bean@cobweb:~> gcc -dumpversion<br />4.3</blockquote>This appeared to be the problem. Sure enough, line 3266 of vmware-config.pl runs gcc with the -dumpversion option. So this really wasn't anything to be worried about, while it is apparently a gcc bug, it's safe to just respond "yes" to the prompt.<br /><br />I didn't get very far after that, however. The vmmon module fails to build almost immediately. Coincidentally, a weak or so earlier I had been installing VMware on a Slackware machine and had learned about the vmware-any-any-update patches. These are unsupported and apparently third-party updates for vmware. The newest update I found was <a href="http://www.mediafire.com/?nmmqytet2gn">vmware-any-any-update117.tar.gz</a>. I download it and ran the 'runme.pl' script, which updates the source of the modules.<br /><br />So after ignoring the inaccurate gcc version warning and running the <a href="http://www.mediafire.com/?nmmqytet2gn">vmware-any-any-update117.tar.gz</a>, I now have a running (and unsupported :)) VMware setup.<br /><br />As a side note I didn't find that some of the vmware-any-any-update files claimed to be 117, but were really no different than the 115 versions. I'm not sure what's up with that, but it threw me off for a while. I uploaded the <a href="http://www.mediafire.com/?nmmqytet2gn">good one</a> I found. Also, the vmblock module still fails to build, it would be nice to find a fix for this.<br /><br /><br /><br /><br /><blockquote></blockquote>bgmerrellhttps://www.blogger.com/profile/10800377722480915387noreply@blogger.com6tag:blogger.com,1999:blog-830315446968948439.post-84267384428377274052008-04-10T11:25:00.000-06:002008-04-23T11:36:29.950-06:00Cute 'lil laptopI just noticed the new HP 2133 Mini-Note PC is <a href="http://h71016.www7.hp.com/dstore/ctoBases.asp?BEID=19701&amp;ProductLineId=539&amp;oi=E9CED&amp;FamilyId=2769&amp;LowPrice=%24729.00&amp;LowBaseId=23430&amp;jumpid=reg_R1002_USEN#">available</a> on on HP's site. It looks pretty neat. Basically it's a mini-laptop with a 8.9-inch diagonal WXGA (1280 x 800 resolution) screen and a "92% full-size" keyboard. Additionally, it has an external VGA port that supports resolutions up to 2048 x 1536 at 75 Hz. The thing weighs 2.8 lbs. It has a <a href="http://www.via.com.tw/en/products/processors/c7-m_ulv/">VIA C7-M processor</a> (1.0, 1.2, or 1.6 Ghz <a href="http://h71016.www7.hp.com/dstore/ctoBases.asp?BEID=19701&amp;ProductLineId=539&amp;oi=E9CED&amp;FamilyId=2769&amp;LowPrice=%24729.00&amp;LowBaseId=23430&amp;jumpid=reg_R1002_USEN#">options</a>). The coolest part is that is ships with Windows Vista (boo!) or SUSE Linux Enterprise Desktop (SLED) 10 installed (yay!). Ordering it with SLED10 will save you $50. Here's a picture:<br /><br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_FhQPZa4-fIA/R_5RqpSChUI/AAAAAAAAALg/-fa3r5gNBHg/s1600-h/2133andPencil.jpg"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp0.blogger.com/_FhQPZa4-fIA/R_5RqpSChUI/AAAAAAAAALg/-fa3r5gNBHg/s400/2133andPencil.jpg" alt="" id="BLOGGER_PHOTO_ID_5187673613855262018" border="0" /></a><br />Oh, and they won't ship the 1.0 Ghz version with Vista.<span style="font-style: italic;"> I wonder why? </span><span>[ <a href="http://www.novell.com/products/desktop/techspecs.html">1</a> | <a href="http://www.microsoft.com/windows/products/windowsvista/editions/systemrequirements.mspx">2</a> ]</span><span style="font-style: italic;"><span style="font-style: italic;"><br /></span></span><br />Pretty cool device at a reasonable price; just for fun, I configured a 1.2 Ghz model with SLED10 and 2GB of RAM for $618. Pricing starts at $499. Here are the <a href="http://h18000.www1.hp.com/products/quickspecs/13009_na/13009_na.html">detailed specs</a>.<br /><br />I don't know if it's as cool as Sony's <a href="http://www.sonystyle.com/webapp/wcs/stores/servlet/CategoryDisplay?catalogId=10551&amp;storeId=10151&amp;langId=-1&amp;categoryId=577">VAIO UX</a>, but it sure is a lot cheaper and probably quite a bit more practical for most people.<br /><span style="font-style: italic;"><span style="font-style: italic;"></span></span>bgmerrellhttps://www.blogger.com/profile/10800377722480915387noreply@blogger.com4tag:blogger.com,1999:blog-830315446968948439.post-80541108026842485052008-04-09T16:18:00.000-06:002008-07-22T10:34:12.485-06:00Building accerciser from sourceEDIT July 22nd 2008: This post is outdated. See <a href="http://bgmerrell.blogspot.com/2008/07/buildling-accerciser-from-source-on.html">http://bgmerrell.blogspot.com/2008/07/buildling-accerciser-from-source-on.html</a>.<br /><br />---<br /><br />To get Accerciser working with all default plugins, do the following:<br /><br />Manually download pygtksourceview src from sourceforge and build it.<br /><br />Install <a href="http://live.gnome.org/Accerciser#head-79a431f68b55c5b359b9133d99ba500f742600ec">all requirements</a> from Accerciser page plus:<br /><br />Additionally, make sure the following are installed:<br /><ul><li>autoconf</li><li>intltool</li><li>automake</li><li>gtksourceview185 (version 2 won't work here)</li><li>gnome-doc</li><li>gnome-common</li><li>get all the associated devel packages just to be sure<br /></li><li>and maybe some others...</li></ul>bgmerrellhttps://www.blogger.com/profile/10800377722480915387noreply@blogger.com0tag:blogger.com,1999:blog-830315446968948439.post-28445749120648389102008-04-07T12:01:00.000-06:002008-04-09T08:50:41.008-06:00Mono UIAutomation Team: Getting Specific<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://lh6.google.com/bgmerrell/R_pWmUUauuI/AAAAAAAAALQ/7dQ6UQBFvnU/lightbulb.png"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://lh6.google.com/bgmerrell/R_pWmUUauuI/AAAAAAAAALQ/7dQ6UQBFvnU/lightbulb.png" alt="" id="BLOGGER_PHOTO_ID_5185440014780775074" border="0" /></a>I have been spending most of my time until now getting to know more about Accerciser and AT-SPI (see <a href="http://bgmerrell.blogspot.com/2008/02/great-introduction-to-accessibility.html">this previous post</a> for more information on those). As a byproduct of studying and working with the Accerciser code, I have also been able to work quite a bit more familiar with GTK+, which has been nice.<br /><br /><a href="http://automorphic.blogspot.com/">Sandy</a>, <a href="http://knocte.blogspot.com/">Knocte</a>, and <a href="http://mgorse.freeshell.org/">Mike Gorse</a> have all been pumping out some code for the project the last few weeks. We also interviewed a candidate for the team last week. At the end of the week, I recognized that I better get a clear vision of our project and goals so I could assess the work that would need to be done from a QA perspective and perhaps start working on some relevant tools, patches, or scripts.<br /><br />In addition to what I had learned from the <a href="http://live.gnome.org/Accessibility/PythonPoweredAccessibility">Python Powered Accessibility</a> article (I recommend reading it before you go on if you haven't already done so), this is what I knew about the project:<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://lh5.google.com/bgmerrell/R_pCnEUautI/AAAAAAAAALI/KXnyUIRlhAk/Architecture.png"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 580px; height: 214px;" src="http://lh5.google.com/bgmerrell/R_pCnEUautI/AAAAAAAAALI/KXnyUIRlhAk/Architecture.png" alt="" id="BLOGGER_PHOTO_ID_5186530640121215682" border="0" /></a><br />Granted, this might mean a lot for someone who had worked with accessibility in Linux before, but it didn't mean a whole lot to me. Not enough to have a clear vision, anyway. I wanted to get a really clear picture, so first I turned to Wikipedia and the MSDN documentation to get some fundamental knowledge and came up with the following definitions:<br /><br /><span style="font-weight: bold;"><u>Managed Code</u></span> - executes under the management of Microsoft's CLR virtual machine in the .NET framework, or another similar virtual machine.<br /><br /><span style="font-weight: bold;"><u>CLR</u></span> - common language runtime, virtual machine component of Microsoft's .NET initiative. The CLR runs a form of bytecode called CIL (common intermediate language).<br /><br /><span style="font-weight: bold;"><u>CIL</u></span> - previously known as MSIL. Stack-based object-oriented assembly language executed by a virtual machine (e.g., CLR)<br /><br /><span style="font-weight: bold;"><u>Unmanaged Code</u></span> - executed directly by the computer's CPU. The programming language used to create the program determines whether it will run as managed code or not. C and C++ are examples of unmanaged code.<br /><br /><span style="font-weight: bold;"><u>CLI</u></span> - Microsoft's open <span style="font-style: italic;">specification</span> describes the executable code and runtime environment that form <span style="font-style: italic;">the core</span> of a number of runtimes including the Microsoft's .NET framework, Mono, and Portable.NET<br /><br /><span style="font-weight: bold;"><u>Microsoft UI Automation</u></span> - a managed code application programming interface (API), exposing user interface controls for test automation and assistive technology. Part of the .NET framework starting at 3.0. Successor of MSAA (Microsoft Active Accessibility)<br /><br /><span style="font-weight: bold;"><u>UIA Clients</u></span> - applications such as screen readers and testing frameworks written in managed code (e.g., C#/VB).<br /><br /><span style="font-weight: bold;"><u>UIA Providers</u></span> - UI implementations or application controls such as checkboxes. Written in managed code or C/C++ (unmanaged code).<br /><br /><span style="font-weight: bold;"><u>Olive</u></span> - set of add-on libraries for the Mono core that bring some new .NET APIs to Mono.<br /><br /><span style="font-weight: bold;"><u>UIA Core</u></span> - the UIA core masks any differences in the frameworks that underlie various pieces of the UI. For example, the content property of a WPF button, the caption property of a Win32 button, and ALT property of an HTML image are mapped to a single property.<br /><br /><span style="font-weight: bold;"><u>AT</u></span> - assistive technology. A generic term that includes assistive, adaptive, and rehabilitative devices and the process used in selecting, locating, and using them.<br /><br /><span style="font-weight: bold;"><u>AT-SPI</u></span> - a toolkit neutral way of providing accessibility facilities in applications. AT-SPI can also be used toa tuomated testing of user interfaces. AT-SPI is currently supported by GTK+2, JAVA/Swing, Mozilla, and StarOffice/OpenOffice. AT-SPI will act as the equivalent of the UIA core.<br /><br /><span style="font-weight: bold;"><u>ATK</u></span> - accessibility tookit. Developer toolkit that allows programmers to use common GNOME accessibility features in their applications.<br /><br /><span style="font-weight: bold;"><u>ATK<->UIA Bridge</u></span> - mapping of ATK to the UIA provider APIs.<br /><br />A lot of these definitions weren't new to me, but it's nice having them all in one place. They didn't exactly answer my questions, but they provided me with enough background to ask some (at least somewhat) intelligent questions, so I took my inquisition to Sandy on IRC:<br /><br /><span style="color: rgb(255, 0, 0);">bgmerrell:</span> from msdn "The UI Automation core masks any differences in the frameworks that underlie various pieces of UI. For example, the Content property of a WPF button, the Caption property of a Win32 button, and the ALT property of an HTML image are all mapped to a single property"<br /><span style="color: rgb(255, 0, 0);">bgmerrell:</span> so i assume we're going to have to do this masking for gtk widgets too, right?<br /><span style="color: rgb(0, 0, 255);">sandy:</span> basically, that's the idea with us implementing providers<br /><span style="color: rgb(0, 0, 255);">sandy:</span> has Calvin shown you his drawing of the client and provider sides?<br /><span style="color: rgb(255, 0, 0);">bgmerrell:</span> this thing? http://www.mono-project.com/files/3/37/Architecture.png<br /><span style="color: rgb(0, 0, 255);">sandy:</span> yeah!<br /><span style="color: rgb(0, 0, 255);">sandy:</span> so here's the deal<br /><span style="color: rgb(0, 0, 255);">sandy:</span> on the provider side, we are using the interfaces defined in UIA to map Winforms and Moonlight to UIA, and then we're mapping UIA to ATK<br /><span style="color: rgb(0, 0, 255);">sandy:</span> then on the client side, we're going to map the UIA client interfaces directly to at-spi<br /><span style="color: rgb(0, 0, 255);">sandy:</span> so we don't do anything with gtk<br /><span style="color: rgb(0, 0, 255);">sandy:</span> because the stack is already implemented there<br /><span style="color: rgb(0, 0, 255);">sandy:</span> gtk apps will show up over at-spi<br /><span style="color: rgb(0, 0, 255);">sandy:</span> and our client-side bridge will let us see them via the UIA client interfaces<br /><span style="color: rgb(0, 0, 255);">sandy:</span> UIA has their "core"<br /><span style="color: rgb(0, 0, 255);">sandy:</span> but we already have the equivalent of that<br /><span style="color: rgb(0, 0, 255);">sandy:</span> it's at-spi<br /><span style="color: rgb(255, 0, 0);">bgmerrell:</span> okay that makes sense. so, at-spi is currently supported by "GTK+ 2, Java/Swing, the Mozilla suite, and StarOffice/OpenOffice.org, and some QT support"<br /><span style="color: rgb(255, 0, 0);">bgmerrell:</span> so theoretically we will be able to control/access any of those to some degree?<br /><span style="color: rgb(0, 0, 255);">sandy:</span> that's right<br /><span style="color: rgb(255, 0, 0);">bgmerrell:</span> sandy: do you have any ideas on what we should do from a QA perspective to test the provider piece? Or do you think we're mostly going to be testing the provider via the client?<br /><span style="color: rgb(0, 0, 255);">sandy:</span> I think testing via accerciser and orca makes the most sense<br /><span style="color: rgb(0, 0, 255);">sandy:</span> for QA purposes<br /><span style="color: rgb(255, 0, 0);">bgmerrell:</span> okay, maybe i'm confused. on the provider side you don't really have an accessible UI because that's implemented on the client side isn't it?<br /><span style="color: rgb(255, 0, 0);">bgmerrell:</span> but you guys are talking about working with Accerciser, so accerciser must see something that's accessible<br /><span style="color: rgb(0, 0, 255);">sandy:</span> yes<br /><span style="color: rgb(0, 0, 255);">sandy:</span> so on the provider side<br /><span style="color: rgb(0, 0, 255);">sandy:</span> we are making winforms apps visible over at-spi<br /><span style="color: rgb(0, 0, 255);">sandy:</span> so existing ATs like Accerciser will be able to see our apps and interact with them<br /><span style="color: rgb(0, 0, 255);">sandy:</span> so I think the end-goal of this year is to make is so you can use existing Linux ATs to access winforms apps<br /><span style="color: rgb(0, 0, 255);">sandy:</span> if I understand correctly<br /><span style="color: rgb(0, 0, 255);">sandy:</span> so then I guess the best QA approach would be to test how well we achieve that goal<br /><span style="color: rgb(0, 0, 255);">sandy:</span> perhaps by writing accerciser or dogtail or whatever scripts that test interaction with winforms apps?<br /><span style="color: rgb(255, 0, 0);">bgmerrell:</span> "so existing ATs like Accerciser will be able to see our apps"<br /><span style="color: rgb(255, 0, 0);">bgmerrell:</span> how does that contrast to what we'll be doing on the client side?<br /><span style="color: rgb(0, 0, 255);">sandy:</span> so once we start working on the client side...<br /><span style="color: rgb(0, 0, 255);">sandy:</span> the goal is that we can write new ATs<br /><span style="color: rgb(0, 0, 255);">sandy:</span> or port new ATs from Windows<br /><span style="color: rgb(0, 0, 255);">sandy:</span> written using the UIA client interfaces<br /><span style="color: rgb(255, 0, 0);">bgmerrell:</span> instead of directly using at-spi?<br /><span style="color: rgb(0, 0, 255);">sandy:</span> then those ATs will be able to see all of the Linux apps that are exposed over at-spi, including gtk, winforms, qt, oo.o, mozilla, etc<br /><span style="color: rgb(0, 0, 255);">sandy:</span> bgmerrell: exactly<br /><br />So now when I looked at the architecture image, things made a lot more sense.<br /><br /><div style="text-align: center;"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://lh5.google.com/bgmerrell/R_pCnEUautI/AAAAAAAAALI/KXnyUIRlhAk/Architecture.png"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 580px; height: 214px;" src="http://lh5.google.com/bgmerrell/R_pCnEUautI/AAAAAAAAALI/KXnyUIRlhAk/Architecture.png" alt="" id="BLOGGER_PHOTO_ID_5186530640121215682" border="0" /></a><span style="font-size:78%;">Blue and green items are existing implementations, beige shows items that our team will implement, and I hope to work on a managed AT next year.</span><br /><br /><div style="text-align: left;">This information made things more things a lot more clear for me, and hopefully will help others that are new to the project and/or accessibility. If there is something that is unclear, please let me know; I would like this to be clear enough that anyone interested in working on the project can have a good fundamental understanding of what we're doing.<br /><br /><br /></div></div>bgmerrellhttps://www.blogger.com/profile/10800377722480915387noreply@blogger.com2tag:blogger.com,1999:blog-830315446968948439.post-52333667980611903292008-04-05T19:44:00.000-06:002008-04-10T11:56:14.545-06:00Broadband in the U.S.A.Below is a video clip of <a href="http://en.wikipedia.org/wiki/Walt_Mossberg">Walter Mossberg</a>, the principal technology columnist for the <i><a href="http://en.wikipedia.org/wiki/Wall_Street_Journal" class="mw-redirect" title="Wall Street Journal">Wall Street Journal</a></i>. He talks about the present state (i.e., crappy state) of broadband in the U.S. I think he make some really good points.<br /><br /><object type="application/x-shockwave-flash" data="http://blip.tv/scripts/flash/showplayer.swf?tabType3=none&amp;tabUrl3=undefined&amp;tabTitle3=undefined&amp;tabType2=none&amp;tabUrl2=undefined&amp;tabTitle2=undefined&amp;tabType1=none&amp;tabUrl1=undefined&amp;tabTitle1=undefined&amp;enablejs=true&amp;feedurl=http%3A%2F%2Fbeettv%2Eblip%2Etv%2Frss%2Fflash&amp;file=http%3A%2F%2Fblip%2Etv%2Frss%2Fflash%2F801182&amp;thumb=http%3A%2F%2Fpanther2%2Evideo%2Eblip%2Etv%2FPlesstv%2DFTCShouldStopVerizonFromCallingDSLBroadbandWaltMossberg532%2Epng&amp;brandlink=http%3A%2F%2Fwww%2Ebeet%2Etv%2F&amp;brandname=Beet%2ETV&amp;showguidebutton=false&amp;showplayerpath=http%3A%2F%2Fblip%2Etv%2Fscripts%2Fflash%2Fshowplayer%2Eswf" allowfullscreen="true" id="showplayer" height="255" width="400"><param name="movie" value="http://blip.tv/scripts/flash/showplayer.swf?tabType3=none&amp;tabUrl3=undefined&amp;tabTitle3=undefined&amp;tabType2=none&amp;tabUrl2=undefined&amp;tabTitle2=undefined&amp;tabType1=none&amp;tabUrl1=undefined&amp;tabTitle1=undefined&amp;enablejs=true&amp;feedurl=http%3A%2F%2Fbeettv%2Eblip%2Etv%2Frss%2Fflash&amp;file=http%3A%2F%2Fblip%2Etv%2Frss%2Fflash%2F801182&amp;thumb=http%3A%2F%2Fpanther2%2Evideo%2Eblip%2Etv%2FPlesstv%2DFTCShouldStopVerizonFromCallingDSLBroadbandWaltMossberg532%2Epng&amp;brandlink=http%3A%2F%2Fwww%2Ebeet%2Etv%2F&amp;brandname=Beet%2ETV&amp;showguidebutton=false&amp;showplayerpath=http%3A%2F%2Fblip%2Etv%2Fscripts%2Fflash%2Fshowplayer%2Eswf"><param name="quality" value="best"><embed src="http://blip.tv/scripts/flash/showplayer.swf?tabType3=none&amp;tabUrl3=undefined&amp;tabTitle3=undefined&amp;tabType2=none&amp;tabUrl2=undefined&amp;tabTitle2=undefined&amp;tabType1=none&amp;tabUrl1=undefined&amp;tabTitle1=undefined&amp;enablejs=true&amp;feedurl=http%3A%2F%2Fbeettv%2Eblip%2Etv%2Frss%2Fflash&amp;file=http%3A%2F%2Fblip%2Etv%2Frss%2Fflash%2F801182&amp;thumb=http%3A%2F%2Fpanther2%2Evideo%2Eblip%2Etv%2FPlesstv%2DFTCShouldStopVerizonFromCallingDSLBroadbandWaltMossberg532%2Epng&amp;brandlink=http%3A%2F%2Fwww%2Ebeet%2Etv%2F&amp;brandname=Beet%2ETV&amp;showguidebutton=false&amp;showplayerpath=http%3A%2F%2Fblip%2Etv%2Fscripts%2Fflash%2Fshowplayer%2Eswf" quality="best" name="showplayer" type="application/x-shockwave-flash" height="255" width="400"></embed></object><br /><br />One example of overpriced DSL with ridiculous service (and security) is from the rural Utah city from which I moved in 2006, behold:<br /><a style="color: rgb(51, 51, 255);" href="https://www.ubta-ubet.com/index.php?option=com_content&amp;task=view&amp;id=26&amp;Itemid=51"><br />DSL Pricing</a><br />$39/month: up 1.5 M<br />$49/month: up to 3 M<br />$59/month: up to 6 M<br /><br />It surprised me to see that their lowest DSL plan wasn't 256k anymore! I'm sure there are some even better examples out there, I just have dealt with this one personally.<br /><br />My current situation isn't really any better, the ISP is the city in which I live. I pay $28 ($35 if I didn't get cable TV from them) and I get about 1mbps-3mbps. They don't even advertise their bandwidth. This is frustrating because 15 miles north of here and 10 miles south of here, both cities have <a href="http://www.utopianet.org/">Utopia</a>, which offers 100 mbps upload and download for a reasonable price (someone remind me how it costs).<br /><br />Mossberg makes a good point. We need to be putting as much emphasis on our broadband infrastructure as we are on our roads and freeways. If the U.S. is to keep up technologically with other high-tech countries (think economic repercussions if we don't), we need to be investing in broadband that helps us stay competitive in the global economy.<br /><br />For all of the iPhone fans out there, toward the end of the video Mossberg also foretells the availability of the 3g iPhone in 60 days.bgmerrellhttps://www.blogger.com/profile/10800377722480915387noreply@blogger.com1tag:blogger.com,1999:blog-830315446968948439.post-46751176448471941582008-03-28T15:32:00.001-06:002008-04-10T11:56:52.111-06:00Ubuntu's GDM resolution way too high!Another little quirk I ran into while installing my VMs (mentioned below)... When setting up VMs for people to share, I like to use an 800x600 resolution. That way, no matter who fires up the vm, they can usually see the entire screen of the VM and configure the resolution (and anything else) however they want.<br /><br />So, I'm installing Ubuntu 7.10 (whatever wacky name they have for it), and during the installation I set the resolution to 800x600. However, when the install finishes and I reboot the machine, GDM loads in some resolution way too big for my 1400x900 laptop. To fix the problem I just removed the 'Virtual 1400 1050' line in /etc/X11/xorg.conf. It was the only Virtual subsection in xorg.conf.<br /><br />Seems like Virtual is doing something it's not supposed to here...bgmerrellhttps://www.blogger.com/profile/10800377722480915387noreply@blogger.com1tag:blogger.com,1999:blog-830315446968948439.post-16133191272908467752008-03-28T12:26:00.000-06:002008-03-28T13:24:29.884-06:00Virtual Machines: 64-bit guest on 32-bit hostI have been installing some Ubuntu, Fedora, and openSUSE vms in preparation for testing the accessibility/UIAutomation stuff. I wanted to prepare some 64-bit VMs on my ThinkPad T61 Centrino Duo laptop (64-bit hardware) with 32-bit openSUSE installed.<br /><br />I figured it would be a problem since I had 64-bit hardware. It was once I figured out that the Intel(R) Virtualization Technology--that is needed to do it--is disabled in the BIOS by default. I enabled the setting under Config -> CPU, and voilà!bgmerrellhttps://www.blogger.com/profile/10800377722480915387noreply@blogger.com0tag:blogger.com,1999:blog-830315446968948439.post-50199861445953431852008-03-13T12:29:00.000-06:002008-03-13T13:12:47.548-06:00Comparison: C#, IronPython, and Boo<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_FhQPZa4-fIA/R9l5RfPaJYI/AAAAAAAAAJw/ocuhQzcP4YA/s1600-h/mono-logo.png"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://bp2.blogger.com/_FhQPZa4-fIA/R9l5RfPaJYI/AAAAAAAAAJw/ocuhQzcP4YA/s200/mono-logo.png" alt="" id="BLOGGER_PHOTO_ID_5177302587989960066" border="0" /></a>Over the last few days I have been using and comparing a few of the different <a href="http://en.wikipedia.org/wiki/Mono_%28software%29">Mono</a> related languages that are out there, namely <a href="http://en.wikipedia.org/wiki/C_Sharp_%28programming_language%29">C#</a>, <a href="http://www.codeplex.com/IronPython">IronPython</a>, and <a href="http://boo.codehaus.org/">Boo</a>. After working in each one, I thought it might be helpful to have some sort of reference for people who want to quickly learn more about using .NET on Linux, people who want to quickly compare some of the basic differences in the languages, or for people who are just learning to program. With that in mind, I put together a little crash course on some of the basics of each language, enjoy: <a href="http://bean.wikidot.com/comparecsharpironpythonboo">http://bean.wikidot.com/comparecsharpironpythonboo</a>.<br /><br />As a side note, I thought wikidot was a pretty neat service.bgmerrellhttps://www.blogger.com/profile/10800377722480915387noreply@blogger.com0tag:blogger.com,1999:blog-830315446968948439.post-77261261567199528472008-02-20T15:50:00.000-07:002008-03-05T11:16:55.038-07:00Great Introduction to AccessibilityHaving recently joined an accessibility team (focusing on Mono the Linux desktop), I have been scouring the internets learning more about accessibility in general. My main focus has been: 1) what accessibility resources are currently available for developers 2) what are the accessibility needs of persons who are disabled and what resources are currently available to them.<br /><br />I just finished reading a very enlightening <a href="http://live.gnome.org/Accessibility/PythonPoweredAccessibility">article</a> written by <a href="http://eduspaces.net/stevelee/weblog">Steven Lee</a> entitled "<a href="http://live.gnome.org/Accessibility/PythonPoweredAccessibility">Python Powered Accessibility</a>." The article was published recently in <a href="http://pymag.phparch.com/">Python Magazine</a>; however, the article isn't really about Python at all (although it does contain a brief tutorial on the python application <a href="http://live.gnome.org/Accerciser">Accerciser</a>). Steve does a great job explaining, at a high level, what resources are available to developers. He also explains different types of disabilities, and what individuals with those disabilities might need from their accessibility applications. Additionally, he provides several examples of accessibility tools for the Linux desktop. He also talks about how to get involved in accessibility, and suggests that it is a good introduction to contributing to Open Source projects.<br /><br />Apropos, I will make <a href="http://www.mono-project.com/Accessibility">a shameless plug for the accessibility team I am a part of</a>, and encourage people to get involved.<br /><br />One of the neatest applications (in my opinion) mentioned in the article is Dasher. There's a neat Google Tech Talk on Dasher that can be found on YouTube (<a href="http://youtube.com/watch?v=wpOxbesRNBc">http://youtube.com/watch?v=wpOxbesRNBc</a>). It's long, but worth the time.bgmerrellhttps://www.blogger.com/profile/10800377722480915387noreply@blogger.com0tag:blogger.com,1999:blog-830315446968948439.post-19290283341936976242008-02-16T00:28:00.000-07:002008-02-18T19:15:44.555-07:00Hackergotchi<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://lh5.google.com/bgmerrell/R7Yny3KL-bI/AAAAAAAAAE4/vJhPDM1Rnk8/bgmerrell0.png"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://lh5.google.com/bgmerrell/R7Yny3KL-bI/AAAAAAAAAE4/vJhPDM1Rnk8/bgmerrell0.png" alt="" border="0" /></a><br />I spent the a couple of minutes on the last day hack week creating a <a href="http://en.wikipedia.org/wiki/Hackergotchi">hackergotchi</a>. Now I can replace my <a href="http://picasaweb.google.com/bgmerrell/BloggerPictures/photo?authkey=UkBCl88UGfw#5163920109649710754">Novell mugshot</a>. No, I don't usually have such a glorious chin beard (or one at all), I just thought it might spice up my floating head a little bit. In fact, the beard was kind of an experiment over the holiday season to see how long my wife would live with it. I made it to January 15th.bgmerrellhttps://www.blogger.com/profile/10800377722480915387noreply@blogger.com1tag:blogger.com,1999:blog-830315446968948439.post-14538071399009934592008-02-15T23:50:00.000-07:002008-02-27T10:20:06.285-07:00Tasky! (Hack Week 2 Project)<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://code.google.com/p/tasky"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 140px; height: 140px;" src="http://farm3.static.flickr.com/2409/2263749905_bf0480204f_o.png" alt="" border="0" /></a>This week, <a href="http://calvinrg.blogspot.com/">Calvin</a>, <a href="http://boyd.musipal.com/">Boyd</a>, Sandy, Myself and some others have been working on a new project called <a href="http://code.google.com/p/tasky">Tasky</a>. Tasky is a task management system, written in Mono, for the Gnome desktop. Tasky is a small and easy-to-use application that docks in your taskbar (much like Tomboy notes) and synchronizes with <a href="http://www.rememberthemilk.com/">Remember the Milk</a> (an online task management page). It has been a ton of fun to work on, and it was amazing to see the results of a week of nonstop hacking of just a few guys. Everyone on the team has been great to work with, and it was a great opportunity to get to know the guys on the Linux Desktop team. Boyd rolled a release last night and it's in the <a href="http://download.opensuse.org/repositories/GNOME:/Community/openSUSE_10.3/">GNOME:Community BuildService</a> (found under "Community Repositories in YaST), so you should be able to grab it and take it for a spin! Also, check out the <a href="http://code.google.com/p/tasky/wiki/ScreenShots">screenshots</a>.bgmerrellhttps://www.blogger.com/profile/10800377722480915387noreply@blogger.com0tag:blogger.com,1999:blog-830315446968948439.post-38879672014955137552008-02-06T15:29:00.000-07:002008-02-06T15:30:05.249-07:00SLES10-sp1 hangs during installation in VMware?<div class="storycontent"> <p>I recently installed three SLES10-sp1 64-bit virtual machines in VMware. The install went just fine until the very last step (the configuring devices screen I think it's called). Upon reaching this screen my screen would go completely black and stay that way--I even left it black for an entire weekend.<br /></p> <p>The solution is to simple go through the entire install as you normally would. When the screen goes black, swith to an alternate console (press CTRL+ALT+F2 for example). If this doesn't switch consoles, reboot the machine, wait for the install wizard to come back up and then switch to a different console.</p> <p>Once you have a new console just remove the /var/lib/YaST2/runme_at_boot file, which is the file that loads the installation wizard when you reboot, then reboot again.</p> <p>The installation step you miss is where you would set your monitor, 3D acceleration, and screen resolution. So, once you have rebooted simply run 'sax2' as root to configure the stuff you missed. </p> </div>bgmerrellhttps://www.blogger.com/profile/10800377722480915387noreply@blogger.com0tag:blogger.com,1999:blog-830315446968948439.post-8394577841835787632008-02-06T15:28:00.001-07:002008-02-06T15:30:35.217-07:00Fixing the root user's ls command to not show hidden files<div class="storycontent"> <p>Hidden files in Linux are preceded by a dot. For example, a user's home directory is usually full of hidden directories like <code>.ssh</code>, <code>.mozilla</code>, <code>.gnome</code>, and many more. </p> <p>One really annoying thing that is unique to SUSE (as far as I know), is the fact that the ls command, when run as root, shows hidden files by default. This "feature," exists because of the alias <code>ls='ls $LS_OPTIONS'</code>. In <code>/etc/bash.bashrc</code> you will see the following snippet of code:</p> <p><code><br />if test "$UID" = 0 ; then<br /> LS_OPTIONS="-A -N $LS_OPTIONS -T 0"<br />else<br /> LS_OPTIONS="-N $LS_OPTIONS -T 0"<br />fi<br /></code></p> <p>The $UID variable has been set to equal the user ID (UID). For root the UID is 0. According to the above code, if "ls" is typed as root, the command that actually gets executed is "ls -A -N $LS_OPTIONS -T 0." </p> <p>Simply removing the "-A" from the code snippet above (found in <code>/etc/bash.bashrc</code>) will make it so hidden files are not displayed when the root user runs the ls command. </p> </div>bgmerrellhttps://www.blogger.com/profile/10800377722480915387noreply@blogger.com1tag:blogger.com,1999:blog-830315446968948439.post-84909654198784569682008-02-06T15:24:00.000-07:002008-02-08T12:26:09.367-07:00NetBeans IDE with jVi plugin<p>My last post dealt with using the vim taglist plugin. This plugin provides an overview of the structure of source code files and allows you to efficiently browse through source code files in different programming languages. One could say that the taglist plugin makes vim "feel more like an ide."</p> <p>Today, I would like to discuss a method to use a vim-like editor inside of an IDE--that is, to make an IDE feel more like vim. There are several IDEs available. When I began searching for an acceptable IDE I had two criteria. First, the IDE must be free. Second, the IDE must have vim emulation.<br /></p> <p>The <a href="http://www.netbeans.org/">NetBeans IDE</a> was the only IDE that I found that met my criteria. I thought it was pretty smooth for the most part. I have not tested it much, but the vim emulation was good. I did run into some issues when working with a maven2 project.<br /></p> <p>NetBeans can be downloaded from <a href="http://www.netbeans.org/">http://www.netbeans.org</a>. The jVi plugin can be downloaded from<br /><a href="http://jvi.sourceforge.net/">http://jvi.sourceforge.net</a> and consists of a zip file that contains two .nbm (<strong>N</strong>et<strong>B</strong>eans <strong>M</strong>odule) files. The jVi plugin is a port of a large portion vim, not just a set of keybindings. If the plugin doesn't work like vim then it's a bug. After downloading and installing the NetBeans IDE and downloading and unzipping the jVi plugin, the plugin can be installed in the following manner:</p> <ol><li>Open NetBeans and browse to Tools -> Plugins</li><li>Click the "Downloaded" tab</li><li>Click the "Add Plugins..." button</li><li>Browse to jVi directory that contains the .nbm files</li><li>Select <strong>both</strong> .nbm files and click "Open"</li><li>Make sure "jVi KeyBindings" and "jVi Core" are both selected for installation and click "Install"</li><li>Proceed through the plugin installation wizard." <p>The jVi plugin will be activated automatically. You can disable it by un-checking jVi in the "Tools" menu. Here is a screenshot of NetBeans with the jVi plugin installed:</p> <p><img src="http://lh3.google.com/bgmerrell/R6ysiOgqzxI/AAAAAAAAADg/cyaRFS9zyfs/jvi_netbeans.jpg" alt="NetBeans IDE with JvI plugin" border="0" /></p> <p>P.S.</p> <p>I ran into a problem trying to run NetBeans on openSUSE 10.3:</p> <p><a href="mailto:bean@cobweb:%7E/netbeans-6.0beta1/bin%3E">bean@cobweb:~/netbeans-6.0beta1/bin></a> ./netbeans<br />java: xcb_xlib.c:52: xcb_xlib_unlock: Assertion `c->xlib.lock' failed.<br />(truncated)</p> <p>To fix this problem, I had to set the following environment variable:</p> <p>export LIBXCB_ALLOW_SLOPPY_LOCK=1</p> <p>This is due to <a href="https://bugzilla.novell.com/show_bug.cgi?id=252510">bug 252510</a></p></li></ol>bgmerrellhttps://www.blogger.com/profile/10800377722480915387noreply@blogger.com1tag:blogger.com,1999:blog-830315446968948439.post-90075404984813737182008-02-06T15:23:00.001-07:002008-02-08T12:27:18.352-07:00vim with the taglist plugin and exuberant ctags<div class="storycontent"> <p>First of all, let me introduce Ctags and the Taglist plugin:</p> <p>Ctags generates an index (or tag) file of language objects found in source files that allows these items to be quickly and easily located by a text editor or other utility. A tag signifies a language object for which an index entry is available (or, alternatively, the index entry created for that object).</p> <p>The "Tag List" plugin is a source code browser plugin for Vim. This plugin<br />allows you to efficiently browse through source code files for different<br />programming languages</p> <p>Ctags must be installed in order for you to use the taglist plugin. Once you have installed ctags and the taglist plugin, some fantastic features in vim are<br />available to you. In short, the taglist plugin allows you to open a "side bar" inside of vim; this side bar is similar to the side bar in popular IDEs (e.g., eclipse, MS visual studio) and enables you to browse files and source code. For example, when a file is selected in the side bar, that file will be opened in the main window. Similarly, when a function or method is selected in the side bar, the main window will jump to that function or method. Ctags also enables you to jump from a symbol/function call/variable to its definition.</p> <p>Here are the steps to get started :</p> <p>1. Install vim and/or gvim if you don't have them installed already.</p> <p>2. Install exuberant ctags, I was unable to install ctags version 5.7 on openSUSE 10.2, but ctags-5.6 installed fine. Exuberant ctags can be found at <a href="http://ctags.sourceforge.net/"> </a><a href="http://ctags.sourceforge.net/">http://ctags.sourceforge.net</a>.</p> <p>3. <a href="http://sourceforge.net/project/showfiles.php?group_id=181103">Download the taglist plugin zip file</a> for vim. Unzip the file and move the plugin/taglist.vim file to the vim plugin directory (e.g., /usr/share/vim/vim70/plugin). Move the doc/taglist.txt to the vim doc directory (e.g., /usr/share/vim/vim70/plugin).</p> <p>4. Change to the vim doc directory directory, start Vim and run the ":helptags ." command to process the taglist help file. Without this step, you cannot jump to the taglist help topics.</p> <p>5. Go to a directory in which you have code stored and create a tag file. This is accomplished by runnings 'ctags [-R] <files> (the -R is an option to recurse into subdirectories). For example, assume I have a collection of python files in some directory and some subdirectories that make up a single project. I would use the following command to create my tag file: ctags -R *.py. If you're using a programming language like C/C++ that uses mutliple file extensions, read about the -h option in the ctags manual.</files></p> <p>6. Open vim and type :TlistToggle to open the taglist window. A great shortcut for this is to map a funciton key adding 'nnoremap <silent> <f8> :TlistToggle<cr> to your .vimrc file. This would allow you to simply press F8 in vim to toggle the taglist window opened and closed.</cr></f8></silent></p> <p>7. Add files to the taglist window. This is done using the :TlistAddFiles or :TlistAddFilesRecursive commands in vim. In my example pyhon project, I would type ':TlistAddFilesRecursive ~/programs/myproject *.py' to populate my taglist window with all of the python files in my project. After your taglist window is populated it should look something like this:</p> <p><img src="http://lh4.google.com/bgmerrell/R6ysiegqzyI/AAAAAAAAADo/ES3cGAHk0KQ/vim_taglist.jpg" alt="vim taglist screenshot" border="0" /></p> <p>By default the taglist window opens on the left side. In vim, the taglist window is just a vertical split. You can read more about managing split windows in the vim documentation, but one basic command is to use ctrl+ww to switch between splits. In the taglist window you can then use the enter key to open files in the main window; if you press the enter key while the cursor is on any definition (variable, function etc.) in the taglist window, the appropriate file will be opened in the main window and the cursor will jump to the definition in the file. The + and - keys expand and contract items in the taglist window respectively. For example, in the screenshot above the "function" items are all expanded. However, the "class" and "members" items directly below "image_this.py" are contracted. Other neat features include using the = key to expand all items and the * key to contract all items. In fact, "expanding" and "contracting" text is a standard vim feature known as folding, you can learn more about it in the vim documentation.</p> <p>8. Obviously, configuring your taglist window every time you open vim would be quite painful. Once you have your taglist window configured for your project, use the ':TlistSessionSave <filename> command to save a session, and use the ':TlistSessionLoad <filename> command to load a session. Session files are saved in the current working directory.</filename></filename></p> <p>9. If you haven't done it already, try some of the following tasks in gvim (graphical vim): </p> <p>- use your mouse to expand the taglist window by clicking and dragging the vertical split line</p> <p>- switch to the taglist window with a simple left click in the taglist window.</p> <p>- try double clicking files, functions, classes, etc. in the taglist window to open them in the main window.</p> <p>- try expanding and contracting items (folds) with left clicks</p> <p>10. As a bonus, notice a nice little feature that ctags gives us. You can now use ctrl-] or g] when your cursor is on any symbol (variable, function call, etc.) to go to its definition. ctrl-] will do its best to take you where it thinks the definition is, while g] will give you a list of possible declarations. After having used ctrl+] or g] a few times in succession, use ctrl-t to start going back up the tag stack.</p> <p>11. Use vim or gvim for your next coding project.</p> <p>Personally, I also added 'let Tlist_Exit_OnlyWindow = 1' to my .vimrc file. This is useful because (as stated above) the taglist window is opened as a vertical split. This means when you close the main window the taglist window will stay open unless you add this option to your .vimrc file. In short, this option closes vim when the taglist window is the only window open.</p> <p>Please add comments if you have any advice associated with ctags and/or the taglist plugin! </p> </div>bgmerrellhttps://www.blogger.com/profile/10800377722480915387noreply@blogger.com9tag:blogger.com,1999:blog-830315446968948439.post-68021548801217225892008-02-06T15:21:00.000-07:002008-02-06T15:22:18.247-07:00Convert Manual Page to PDF<div class="storycontent">Interested in converting a man page to a PDF? You can do the following: <p>$ man -t /complete/path/to/foo_manpage | ps2pdf14 - foo_manpage.pdf</p> <p>If you want a copy optimized for web viewing:</p> <p>$ pdfopt foo_manpage.pdf foo_manpage_optimized.pdf </p> </div>bgmerrellhttps://www.blogger.com/profile/10800377722480915387noreply@blogger.com0tag:blogger.com,1999:blog-830315446968948439.post-10966646308933065852008-02-06T15:15:00.000-07:002008-02-07T10:28:12.425-07:00Choosing and Customizing a Window Manager<div class="storycontent"> <p>One of the fantastic things about the X Window System is the empowerment of its users. As users, we are able to choose from <a href="http://en.wikipedia.org/wiki/X_window_manager#Popular_X_window_managers">a slew of window managers</a>. Gnome and KDE have percolated to the top as the most popular window managers. Personally, I believe that this is likely due to the fact that they are very similar to Microsoft Windows (95 through Vista) and therefore resemble what most people are used to. If you prefer Gnome or KDE that is more than fine with me, but there are alternatives! The most important thing is that your window manager increases your productivity and/or enjoyment. Gnome and KDE are quite similar, however there are some great window managers that often get overlooked, I suggest you try several and decide which one(s) you like!</p> <p>Here are some window managers to try:</p> <ul><li>Window Maker [<a href="http://www.windowmaker.info/">link</a>|<a href="http://download.freshmeat.net/screenshots/29832.jpg">screenshot</a>]</li><li>Fluxbox [<a href="http://fluxbox.sourceforge.net/">link</a>|<a href="http://download.freshmeat.net/screenshots/29063.png">screenshot</a>]</li><li>Enlightenment [<a href="http://www.enlightenment.org/">link</a>|<a href="http://media.arstechnica.com/articles/columns/linux/linux-20061018.media/evol.jpg">screenshot</a>]</li><li>Xfce* [<a href="http://www.xfce.org/">link</a>|<a href="http://www.xfce.org/images/about/screenshots/4.4-4.png">screenshot</a>]</li></ul> <p>* Xfce is actually a desktop environment that uses Xfvm as a window manager</p> <p>After installing one of these window managers simply add its executable to a file named .xinitrc in your home directory. If it does not exist, simply create it. For example if I downloaded and installed fluxbox and I wanted it to run instead of Gnome or KDE I would create an .xinitrc file with a single line that read "fluxbox".</p> <p>With the new trend toward 3d desktops, more and more window managers are supporting 3d operations. If you have a good video card and system resources to spare (waste? <img src="https://blogs.innerweb.novell.com/employees/img/smilies/icon_wink.gif" alt=";)" class="middle" />), you might want to look into Xgl, Beryl, Compiz, and others.</p> <p>Personally, my favorite window manager is Fluxbox. It is extremely fast, small, and minimalistic in nature, but it has some wonderful features. Some example features I really love are:</p> <ul><li>Instead of having a "Start" menu, right clicking anywhere on the desktop produces the menu.</li><li>Alt+LeftClick moves a window, Alt+RightClick resizes a window</li><li>Scroll mouse anywhere on the desktop swaps workspaces</li><li>100% customizable menu</li><li>Double clicking on menu bar "collapses" the window like a window shade, only leaving the title bar. Clicking on the title bar a second time expands the window.</li><li>Tabbing, which allows multiple windows to share the same window (hard to explain in one line, but it's really neat!)</li></ul> <p>----- END OF REQUIRED READING <img src="https://blogs.innerweb.novell.com/employees/img/smilies/icon_wink.gif" alt=";)" class="middle" /> -----</p> <p>Remember how I was talking about empowerment? Here is one example. Fluxbox is my favorite window manager, yes, but X allows me to spice things up a bit. Before explaining this further, let's review some X concepts (information taken from the Fluxbox FAQ):</p> <blockquote><p>You have to understand that a windowmanager is just one more application for X, like netscape or gimp or xterm. Many people new to X come to believe that X runs the window manager and the window manager runs programs. But thats not true. If configured right, you can run all your applications under X, kill the window manager, and start another window manager up. The *real* program that X runs, that runs other programs, is your .xinitrc or .xsession script. When X is started, your .xinitrc or .xsession script is run, and when the script is done, X comes down. Let me repeat that, its important: WHEN .xinitrc IS FINISHED, *THAT* IS WHEN X ENDS. It isn't when your windowmanager exits.</p></blockquote> <p>In the age of "Gnome or KDE?" the .xinitrc file has been somewhat forgotten. Here is another pearl of knowledge from the Slackware documentation:</p> <blockquote><p>xinit(1) is the program that actually starts X; it is called by startx(1), so you may not have noticed it (and probably don't really need to). Its configuration file, however, determines which programs (including and especially the window manager) are run when X starts up. xinit first checks your home directory for a .xinitrc file. If the file is found, it gets run; otherwise, /var/X11R6/lib/xinit/xinitrc (the systemwide default) is used</p></blockquote> <p>With this information we can do some truly wonderful things. For example, I use Fluxbox, but I like having the Gnome "<a href="http://en.wikipedia.org/wiki/Windows_Taskbar">taskbar</a>" (Gnome calls it a panel) so I can use the nifty applets like weather reports, tomboy notes, battery power, volume control, online updates, time and date, and a nice calendar. These Gnome features are simply X applications and X allows me to run these "pieces" of Gnome while using Fluxbox as my window manager. All I had to do was run locate the programs running with Gnome that I wanted to run in Fluxbox. This was accomplished easily by running 'ps ax' while in Gnome. When I had the program names I wanted to run, I simply added them to my ~/.xinitrc file like so:</p> <p><a href="mailto:bean@cobweb:%7E%3E">bean@cobweb:~></a> cat .xinitrc<br />fluxbox &amp; wmpid=$! # start fluxbox and store the process id in a variable wmpid<br />gnome-panel &amp; # run the gnome panel<br />sleep 10 # give the gnome panel some time to load completely, so applets will dock properly<br />gnome-power-manager &amp; # run the gnome power manager (great for laptops)<br />#nm-applet &amp; # run the Network Manager applet (if you're using Network Manager)<br />opensuse-updater-gnome-applet &amp; # run the online update applet<br />gnome-volume-manager --sm-disable &amp; # run the volume manager<br />xset b off # turn off that vile beep<br />wait $wmpid # wait for fluxbox to return</p> <p>Notice that I am backgrounding these processes (i.e., I am appending '&amp;'). If this is not done, the .xinitrc script will not continue until the process ends.</p> <p><a href="http://picasaweb.google.com/bgmerrell/Linux/photo#5163994902210203330">Here is a screenshot</a> of my Fluxbox wm with a Gnome panel.</p> </div>bgmerrellhttps://www.blogger.com/profile/10800377722480915387noreply@blogger.com0tag:blogger.com,1999:blog-830315446968948439.post-87243306821621291662008-02-06T15:13:00.000-07:002008-02-06T15:21:37.370-07:00Linux + Wireless<div class="storycontent"> <p>I just installed the newly released openSUSE 10.3 on a Dell Latitude D800 laptop. One of the major complaints about Linux is lack of support for wireless networking. openSUSE does a pretty good job of making things relatively painless, but your wireless card may not work out of the box. From my experience the Intel PRO/Wireless cards work really well.</p> <p>When I checked my hardware information in SUSE and saw 'Dell Truemobile 1450 MiniPCI' as my wireless card I wasn't excited. YaST did list my wireless card under Network Devices -> Network Card and this gave me a ray of hope. However, running 'ifconfig' only showed my eth0 wired network card. 'iwconfig' did show my wireless card as eth1, however 'iwlist eth1 scan' reported that the device did not exist.</p> <p>The Dell Truemobile 1450 MiniPCI uses the Broadcom bcm43xx chipset . This information can be found by running 'hwinfo --wlan'. </p> <p>cobweb:/home/bean # hwinfo --wlan<br />18: PCI 203.0: 0282 WLAN controller<br /> Model: "Dell Truemobile 1450 MiniPCI"<br /> Vendor: pci 0x14e4 "Broadcom"<br /> Device: pci 0x4324 "BCM4309 802.11a/b/g"<br /> SubVendor: pci 0x1028 "Dell"<br /> SubDevice: pci 0x0003 "Truemobile 1450 MiniPCI"</p> <p>There is a 'bcm43xx' kernel model, which was loaded (you can check loaded kernel modules using the 'lsmod' command), but it apparently wasn't working correctly.</p> <p>Apparently Broadcom never released details about these chips. So the driver included in the Linux kernel is based upon reverse engineered specifications. This might explain why it wasn't working for me.</p> <p>I did find a couple of possible solutions in the NDISwrapper and bcm43xx-fwcutter. ndiswrapper is the solution that I used; it was only slightly painful and seems to be working great now. Madwifi is a solution for wireless cards with Atheros (not Broadcom) chipsets.</p> <p><strong><u>NDISwrapper</u></strong></p> <p>ndiswrapper implements Windows kernel API and NDIS (Network Driver Interface Specification) API within Linux kernel. A Windows driver for wireless network card is then linked to this implementation so that the driver runs natively, as though it is in Windows, without binary emulation. In short, <strong>ndiswrapper allows you to use Windows drivers for WLAN cards in Linux</strong>.</p> <p>With ndiswrapper, most miniPCI (builtin), PCI, PCMCIA (Cardbus only) or USB wireless network cards work in Linux with x86 or x86-64. Although ndiswrapper is intended for wireless network cards, other devices are known to work: e.g., ethernet cards, USB to serial port device, home phone network device etc.</p> <p>ndiswrapper packages come with openSUSE, but they are not installed. Simply install the ndiswrapper package and the ndiswrapper-kmd-<kernel> package (you can get your kernel flavor by running 'uname -r' as root).</kernel></p> <p>Once I had the ndiswrapper installed I followed these steps</p> <ol><li>Grab <a href="http://support.dell.com/support/downloads/download.aspx?c=us&amp;cs=19&amp;l=en&amp;s=dhs&amp;releaseid=R90501&amp;formatcnt=1&amp;libid=0&amp;fileid=117983"> the windows drivers</a> for the Dell TrueMobile 1450 miniPCI card from <a href="http://support.dell.com/">Dell's support page.</a></li><li>new directory, move the downloaded .exe inside, and unzip the .exe: mkdir ~/tmp; mv R90501.EXE ~/tmp; cd ~/tmp; unzip R90501.EXE</li><li>Tell ndiswrapper where the inf is: 'ndiswrapper -i ~/tmp/bcmwl5a.inf'. This will create a directory in /etc/ndiswrapper named bcmw15a. ndiswrapper will automatically try to load all drivers in this directory when the ndiswrapper kernel module is started. Also note that ndiswrapper looks for other files (such as .sys files) in addition to the .inf files, so it's a good idea to just put all the windows drivers files in the same directory.</li><li>Disable the bcm43xx kernel module and related kernel modules. First, see what's loaded: 'lsmod | grep bcm'. Then, disable what's loaded: 'rmmod >module name>'. The modules to unload will probably be bcm43xx, ieee80211softmac, ieee80211, and firmware_class. </li><li>Load the ndiswrapper kernel module: 'modprobe ndiswrapper'</li></ol> <p>If you have installed the correct driver you should see something like this:</p> <p>bcmwl5: driver installed<br />device (14E4:4320) present</p> <p>and you should now be able to use your wireless card.</p> <p>‘present’ means that you have a card that can be used with the driver installed. In this case, broadcom driver bcmwl5 is used. If you see ‘cannot locate lspci. Unable to see if hardware is present’, you need to install the pciutils package.</p> <p>If you get something like</p> <p>bcmwl5: driver installed<br />device (14E4:4320) present (alternate driver: bcm43xx)</p> <p>then you / kernel may use bcm43xx module for that device. If that module is loaded, then ndiswrapper wouldn’t be able to use that device; see <a href="http://ndiswrapper.sourceforge.net/joomla/index.php?/component/option,com_openwiki/Itemid,33/id,troubleshooting/">Troubleshooting. </a>. This usually occurs if the kernel is trying to use an alternative driver (this is why we rmmod the other kernel modules).</p> <p>You should now be able to use your wireless lan card normally.</p> <p>To make this change permanent you will want to do a couple of other things:</p> <p>First, you will want to blacklist the kernel modules you don't want to load anymore. This can be done by adding lines similar to those below to your /etc/modules.d/blacklist file:</p> <p># wireless card<br />blacklist bcm43xx<br />blacklist ieee80211softmac<br />blacklist ieee80211<br />blacklist firmware_class</p> <p>You might not want to copy and paste this verbatim. The blacklisted modules should be the modules you unload in the steps above (using rmmod).</p> <p>Second, you will want to make sure the ndiswrapper module is loaded when you boot. To do this, add "ndiswrapper" to the MODULES_LOADED_ON_BOOT variable in /etc/sysconfig/kernel or add "modprobe ndiswrapper" to to /etc/init.d/boot.local or a script that runs at boot time.</p> <p>Here is a <a href="http://ndiswrapper.sourceforge.net/joomla/index.php?/component/option,com_openwiki/Itemid,33/id,list/">list of cards</a> known to work with ndiswrapper.</p> <p><strong><u>bcm43xx-fwcutter</u></strong></p> <p>As the name suggests this solution is only for Broadcom 43xx chips.</p> <p><a href="http://forums.gentoo.org/viewtopic-t-409194-postdays-0-postorder-asc-start-0.html">http://forums.gentoo.org/viewtopic-t-409194-postdays-0-postorder-asc-start-0.html</a></p> <p>These are Gentoo specific instructions, but they should be easy to translate to SUSE. You won't need to work about the kernel compilation as the BCM43XX support is enabled by default in openSUSE, and Instead of emerging bcm43xx-fwcutter you can get it at <a href="http://developer.berlios.de/project/showfiles.php?group_id=4547.">http://developer.berlios.de/project/showfiles.php?group_id=4547.</a> </p> <p><strong><u>Madwifi</u></strong></p> <p>The Madwifi team develops Linux kernel drivers for Wireless LAN devices with Atheros chipsets. </p> <p>Here is a <a href="http://madwifi.org/wiki/Compatibility">list of cards</a> known to work with ndiswrapper.</p> <p>Madwifi has good doucumentation that can be found here <a href="http://madwifi.org/wiki/UserDocs/FirstTimeHowTo">http://madwifi.org/wiki/UserDocs/FirstTimeHowTo</a>. openSUSE comes with the Madwifi package available, so you don't need to compile it; just install the rpm. </p> </div>bgmerrellhttps://www.blogger.com/profile/10800377722480915387noreply@blogger.com1tag:blogger.com,1999:blog-830315446968948439.post-56669175471911301912008-02-06T10:13:00.001-07:002008-02-06T15:30:52.410-07:00New Team at NovellYesterday was my last day on the ZENworks team at Novell. I moved down a couple of floors to the Linux Desktop team. I will be working on building and testing better accessibility support for the Linux Desktop. I'm excited about getting more involved with the Linux community and learning more about accessibility issues.<br /><br />I do have a private company blog with some (interesting?) information, I plan to bring over some posts to give this page a running start.bgmerrellhttps://www.blogger.com/profile/10800377722480915387noreply@blogger.com0