Showing posts with label Xubuntu. Show all posts
Showing posts with label Xubuntu. Show all posts

Thursday, May 07, 2009

LTSP Local Apps Progress (Or Lack Thereof)

I've been working hard this afternoon to try and get Local Apps up and running as mentioned in the Edubuntu Jaunty Release Notes. Alas, I've experienced little more than the all-too-familiar Linux fatigue trying to navigate my way through a relatively complex set of instructions with little to no (or in the worst cases, inaccurate) documentation. My (least) favorite part is the little blurb in the release notes that makes everything seem so simple:

Installing Firefox inside the LTSP chroot and setting LOCAL_APPS_MENU=True in lts.conf will make Firefox to run locally on the thin client. The XDG integration takes care of adding the application in the menu or replacing it by the local application if it's already present.

Ahhh, the art of deception. I have, in fact been able to install Firefox in the LTSP chroot, and have also created and modified the lts.conf file appropriately. I have not found it true that the the application is replaced by the local application however. Nor have I been able to actually get Internet on Firefox when it is running as a local application. This is important because, as much as I enjoy seeing that familiar Firefox screen indicating that I am NOT, in fact, connected to the Internet, I think I speak for most users when I say that the value of Firefox is vastly diminished without Internet connectivity. Before I write more about that, however, let me give a little background to those who are about to walk in my footsteps.

I really don't understand why there is an opt/ltsp folder on the server or why it seems to have the exact same files that are on the Server file system already. I used to think that the server was operating in its own environment and the Clients were all in another environment under opt/ltsp and that to update the server was one thing, but to update the clients you had to use the command line and change root to opt/ltsp and then run updates from there. And while I still think this is sort of true, it doesn't explain why I can just install an application on the Server and that application will then become available on the Thin Clints. Shouldn't I have to install the application within opt/ltsp as well?

Anyhow, I followed this post and was able to install Firefox in the LTSP chroot, which I guess lets it run on the Thin Clients instead of the Server, and everything seemed to be fine. I can follow his command "ltsp-localapps firefox" on the Thin Clients and Firefox indeed pops up, although with no Internet. According to the post, I have to set up the Server as a NAT/Gateway or whatever. No problem, I get that: normally the Thin Clients look no further than the Server for their network information, but now we need them to be able to look beyond the Server to the actual Internet. Fine.

I followed as best as I could all the instructions on the How to NAT wiki page, and I thought I did everything right, even performing the checks (accurately I thought). At the end of the day, however, I could still not get Internet on Firefox as a local app. I even used my work Windows XP laptop to run ipconfig while on the LTSP network and couldn't get it to see past the Server. I'm not sure what I did wrong, but if I ever find out I'll be sure to post it here with the quickness.

What I really want to whine about, though, is the lack of accurate documentation available for things like this. I feel like the devs all complain about a lack of testers and inaccurate bug filing and maybe they are right about that last one (I wouldn't know, the process is so complex I just avoid it altogether because I'm afraid of doing something wrong). The former issue, though, could be helped with a little better documentation on things. Two examples:

Example 1:
I tried to set up my Server as a Gateway/NAT as described above, but here is the first check I am supposed to perform:

Test
: Reboot the PC, to ensure it sees this and examine the default route (on linux type route -n).

Okay, I can reboot the PC (although the first time I followed this tutorial I thought I was supposed to reboot the Thin Client) but then what? I am supposed to ensure that it sees WHAT? How do I ensure that it sees this? What do I specifically do to ensure it sees whatever it is supposed to be seeing? Then I am supposed to examine the default route? Examine it for what? What am I examining and how will I know if something is wrong?

I guessed that I was supposed to ensure that the PC saw the change in the option routers. But there was no change to make for me. The "change" was to "change" a network address to what was set up by the LTSP install by default. If this is correct, shouldn't there be a note that this might be the case? As far as "examining" the default route, I guessed that this meant typing "ipconfig" in the command line on my Windows XP laptop while it was connected to the LTSP network. When I did this it seemed to show that it was seeing the "new" network address, but I didn't really know if what I was looking at was correct and I could proceed or not.

Example #2:
A while back I posted about kiosk mode in XFCE 4 and even posted the contents of my kioskrc file that locks down the Thin Clients. This was a huge breakthough because it allowed me to configure all the clients quickly with just one small file and I could be confident that they wouldn't be tinkered with my malevolent students. Well, Xubuntu Jaunty uses the latest version of XFCE, version 4.6. Overall the changes seem positive (I LOVE being able to click and drag to select multiple files on the desktop) but my old kioskrc trick doesn't work anymore, and there is NO documentation for XFCE 4.6. I don't mean that there is little documentation, or that the documentation is inadequate or hard to find. I mean that on the XFCE.org website under "documentation" it says:

We're sorry, but there is no documentation for 4.6 (yet).

So, I play the waiting game (again) and they don't get their user testing.

Today I switched to GNOME , deciding to give it another try after bailing on it over a year ago. Unfortunately GNOME remains slower on Thin Clients than XFCE, gconf still sucks to use (I set a "disable switching users" key to "mandatory" and it entirely removed from the panel the button to log out AND refused to let me change the key back!), Pessulus is still lacking all the options I need (and thinks people are using Epiphany instead of Firefox for some inane reason) and Sabayon still crashes when I try to run it. It's like May 2008 all over again!

I'll be sure to post again when I have some good news. For now, I'm going to litter the intertubes with requests for information about XFCE kiosk details and clarification on the How to NAT. Cheers! -joe

Tuesday, April 28, 2009

Back (again), Jaunty Jackalope, LTSP local apps, and a new way to set firefox preferences

Well it has been way too long since I posted an actual post here. Last year I had a lot to say as the Technology Teacher and School Techguy. Unfortunately the budget cuts to California's school system led to the outright elimination of my position at the school. Fortunately my administrator saw fit to offer me a position teaching 5th grade and even offered me a stipend to continue working a few hours each week solving various technology issues. Although I really miss participating in the overall edtec community as much as I was able to do last year, I have a lot to be thankful for with this new position and it has been a great experience. That being said, I still have some thoughts to share regarding the current state of technology in education and I thought I'd take some time to convey them (especially since I have little else to do while Xubuntu 9.04 loads on my student server).

Speaking of Xubuntu 9.04, if you haven't had time to read up on all the changes in Jaunty I suggest you do so. I think I agree with the consensus, which is basically that everything just works a little bit better. I'm glad to see they didn't adding any major changes like pulseaudio or compiz and instead seemed to focus more on making everything more reliable and faster.

9.04 has seen some significant improvements in LTSP as well, including something that has the potential to revolutionize (at least for me) how LTSP deployments are configured and used. That thing is support for local apps. You can read more about it in the release notes. If and when I get this feature working I'll be sure to post back about it.

Finally, I wanted to share something I discovered recently that relates to a popular former post of mine about setting firefox preferences. I've since found a better way to set these preferences. Instead of creating and editing a user.js file I now just edit the firefox.js file in etc/firefox/pref/

Things aside from the typical preferences that are included in Xubuntu by default that I decided to tic are:
setting the homepage
automatically clearing cookies and passwords after each session
not asking the user if they want to clear the cookies and passwords
not remembering any passwords by default

Here is my entire firefox.js file that I use at school:


// This is the Debian specific preferences file for Mozilla Firefox

// You can make any change in here, it is the purpose of this file.

// You can, with this file and all files present in the

// /etc/firefox/pref directory, override any preference that is

// present in /usr/lib/firefox/defaults/pref directory.

// While your changes will be kept on upgrade if you modify files in

// /etc/firefox/pref, please note that they won't be kept if you

// do them in /usr/lib/firefox/defaults/pref.

pref("extensions.update.enabled", true);

// Use LANG environment variable to choose locale

pref("intl.locale.matchOS", true);

// Disable default browser checking.

pref("browser.shell.checkDefaultBrowser", false);

// Prevent EULA dialog to popup on first run

pref("browser.EULA.override", true);

// Disable "safe browsing" feature that hogs CPU, HDD, etc. etc. in LTSP

pref("browser.safebrowsing.enabled", false);

pref("browser.safebrowsing.malware.enabled", false);

// Disable annoying location-bar suggestion "feature" that is sludgy with thin-clients

pref("browser.urlbar.maxRichResults", 0);

// Disable offline/disk caching of web pages

pref("browser.cache.offline.enable", false);

pref("browser.cache.disk.enable", false);

// Other preferences

pref("browser.startup.homepage", "http://www.aeacs.org");

pref("browser.startup.homepage_reset", "http://www.aeacs.org");

pref("privacy.item.passwords", true);

pref("privacy.item.offlineApps", true);

pref("privacy.item.cookies", true);

pref("privacy.sanitize.promptOnSanitize", false);

pref("privacy.sanitize.sanitizeOnShutdown", true);

pref("signon.rememberSignons", false);


Hope that helps some of you out. Good luck! -joe

Friday, May 16, 2008

A Better Update on Quad Core Xubuntu Performance

Looking over my recent posts I realized that I never really followed up that well with a report on Xubuntu on the Quad Core Dell. In short, it's working great! The thin clients load faster than ever and flash is responsive enough that kids are able to play their games after school, even if they still complain about the performance. Watching the system monitor for a while revealed what I judged to be adequate load balancing between the cores. All four of them were doing something all the time, and while one or another would max out occasionally, they seemed to trade off the job at pretty regular intervals. From everything I know, that was the expected results so I was happy.

Like I mentioned before, XFCE gives a little more control over the desktop and by logging on as each user I was able to unclick the "enable XFCE to manage the desktop" option which got rid of students' ability to change the desktop to some scantily clad Brittany Spears picture or something. Of course many of the students are smart enough to figure out how to undo this which is why I also installed Sabayon from the repositories and hid the "settings" option from the menu. This is a sophisticated enough solution that I think most students won't figure out how to undo it, but even if they did I could always use Sabayon to completely delete the taskbars and just have firefox start up when the user logs on.

All in all I'm very happy with Xubuntu. It does sacrifice a bit in usability when compared to GNOME. Some annoyances include some sacrifices in Firefox integration (pdf's don't open as smoothly when downloaded), and the mouse can't be clicked and dragged on the desktop to select multiple icons at one time. For the most part though, the experience is very similar to what I had with GNOME and regular Ubuntu. Now I just have to wait to get my Eee 900 (shipped today!) and experiment with eeeXubuntu a bit and see what I think. Cheers! -joe

Wednesday, May 14, 2008

Comment Responses and The Many Differences Between Private Sector and Public Sector Employment

Earlier today I got an email from the Middle School Spanish Teacher explaining that her student computers (Edubuntu Feisty LTSP setup) weren't working and wondering if I could take a look at the problem. The first thing I noticed in turning on the server was the fact a horrible rattling noise assuredly coming from a fan or some other spinning device. Opening the box up I noticed a couple of wires had fallen beneath the fan shield and were the cause of the noise. A couple of seconds later the box was up and running perfect....except that there was no picture on the monitor.

I pulled the VGA cord out of the server, plugged in a different monitor and it lit right up. What could be the problem? I restarted the computer, verified that it was fine and switched back to the original monitor. No luck. I power cycled the monitor to no avail before the solution hit me.

Can you think of what it could be? The monitor is not broken btw. Pretty puzzling right?

Apparently some kid had flipped open the front flap on the monitor and changed the "contrast" and "brightness" settings so that the screen was completely black. I tried resetting the monitor but for some reason that didn't work and it was only after I manually upped both the contrast and brightness that the screen came back to life.

Just one little story illustrating the many little differences between tech support in a public school and tech support in the private sector (I'm assuming most adults don't intentionally screw with the brightness and contrast levels of their monitors until no picture at all is showing). Good Times.

So I also thought I'd take the time to post a little response I wrote up to some of the comments on last week's post about Xubuntu (still loving it btw, just got Win2k running on Virtualbox on a P4 2GHz test machine).

Apparently someone linked to the post because the 7 comments I got exceeded my previous comment total by about.....6. Here's my response to the various things people had to say:

"Thanks for all the replies fellas. I've got a quick couple of minutes before my 7th graders show up to learn Google Sites (super sweet new addition to Apps BTW) but so far Xubuntu is doing great on the quad core Dell. (Now we'll see how it does with 8 cores!)

Flash is very reliable BTW, not a problem so far except that it's slow on the clients which I've posted about. This does get a little better if "hardware acceleration" is turned off in the settings though.

I like Ubuntu for lots of reasons, but most of them are described in slide 7 of my presentation on hartmanbot.com.

I haven't tried PCLinuxOS, but from everything I've read Ubuntu, Fedora, and OpenSUSE are the big three in terms of hardware compatibility and ease of use. I owe it to myself to try it out in any case.

I did try puppy and deli and a couple of others while I was debating the merits of Ubuntu and actually wrote about it in the previous post here:
http://hartmansblog.blogspot.com/2008/05/hardy-hardy-hardy-happy-return-to.html

I guess I should elaborate a bit on what I did and didn't like about each of the other distributions. Better yet, I'll post on EXACTLY what I need out of a distro and maybe someone can prescribe me the perfect one.

Fluxbuntu sounds good BTW. I'm definitely going to check that out for my stand alone machines. News coming soon...

Cheers! -joe"

Cheers! -joe

Wednesday, May 07, 2008

Xubuntu: Better than Ubuntu (at least for me)

So my situation here at AEA has been pretty well stated in this blog, but to briefly reiterate where we are:

There are approximately 200 workstations around campus for student use of which approximately 35 are Pentium 4 powered. The rest are either P3 or P2 machines with around 256MB RAM.

The simple fact of the matter is that with machines like these there are few options when it comes to Operating Systems. I'm sad to say that the best option as far as performance is Windows 2000 (as long as I don't install any updates on it ever and just run Firefox).

Of course Win2k is the worst option as far as stability, viruses, and ease of upkeep, especially when compared to a Linux LTSP setup. Ubuntu doesn't run that smoothly on these machines though, I've heard that 512MB is the minimum realistic requirement as far as RAM and that's just more than we have available for these workstations.


Xubuntu though seems to work pretty well, and even better, it comes with an LTSP option right out of the box (something that is not offered with Kubuntu Hardy Beta, although that may have changed with the official release).


Even better, XFCE allows the user to disable control of the desktop which GNOME stupidly does not (at least without manually editing some ridiculous .conf file by hand) which means that I don't have to worry about students putting inappropriate or obsene images as their desktop backgrounds anymore! Xubuntu also works with Sabayon (it's in the repositories although it's a little buggy still) so I can pretty much control every aspect of each users desktop.

Best of all I did a little accidental user testing with some 6th graders today and the results were great! Basically I had 3 classes today and in each one a kid jumped on the Xubuntu machine I set up yesterday. None of the three kids even mentioned the fact that their machine looked different from everyone elses, they all just hopped on firefox and got to work!

Now all I'm hoping for is a little performance boost across the LTSP network since XFCE is supposedly less resource intensive than GNOME or KDE. I'm installing Xubunutu on our new Quad Core Dell box right now so I'll post any interesting results soon. Cheers! -joe

Tuesday, May 06, 2008

Hardy Hardy Hardy: A Happy Return to Blogging, My Thoughts on Hardy, and What I've Been Up To Since We Last Spoke

Well faithful (and unfaithful) readers, it's been far too long since I last posted, and though my goal in doing so has for years to minimize the long posts and maximize the short ones, thus far I've proven singularly ineffective at heeding that advice. Nevertheless I will attempt once again to do so.

When we last spoke I was in a state of dismay over the atrocious performance of Adobe Flash on an LTSP Thin Client running off of a P4 3.0 GHz server even with a new gigabit switch and Hardy (if you understood that, god bless you).

Since that time I've made some great strides towards figuring out exactly what I need to do in order to have a functioning computer setup at this school that serves both the purposes of the users (the students) and the administrator (me). These strides have not all been in the same direction unfortunately, which was one of the main reasons for my prolonged absence in posting (that and my trip up to the Bay Area over Spring Break when I kind of lost some momentum).

So that losing of momentum was probably more drastic than even I initially realized as I really found myself disbelieving in the whole LTSP idea and even Ubuntu in general. I did get to see Shuttleworth speak in SF over Spring Break but was generally underwhelmed by what he had to say. This had little to do with what he actually said and far more to do with the fact that I had pretty much already read what he was speaking on (at least in terms of Ubuntu and its future) so the whole experience was a bit like watching a very predictable movie. And of course I wussed out when the question and answer portion came along.

So after that whole affair I started seriously looking at other Linux options. I checked out Deli Linux, DSL Linux, Puppy Linux, and of course Fedora and OpenSUSE. With all of these options I looked at the possibility of installing stand alone machines versus pushing forward with LTSP as well as the supposed strengths and weaknesses of each distrobution relative to what I knew about Ubuntu.

In the end I decided that Ubuntu had the same weaknesses as the rest, but more strengths (not the least of which were my own familiarity and experience with it and the community support of course). So now you probably understand why I failed to write for a while: I couldn't bear to write that I had given up on Ubuntu without actually being sure that I was going to do so.

I'll wrap up this post by saying I'm not giving up on Ubuntu, although as of today I think I'm moving over to Xubuntu. There's a few reasons for this which I'll discuss in my next post, to be followed shortly by posts about:

1. My job and recent developments related to the now notorious 2008 California State Budget Cuts
2. Next year's plan for the school (including potentially extremely controversial proposed changes in the technology layout courtesy of yours truly)
3. How things are going with my current setup in the labs and the library.

Glad to be back and sharing again, (as down on Ubuntu as I was last time, I'm up on Xubuntu this time!) -joe