Entries tagged as software
Tuesday, October 20. 2009
I think we can all attest to the phenomenon known as the Teddy Bear troubleshooting.
I think we all probably need our own Teddy Bears in each of our human office box cubicles or work desks.
So next time you need to do some serious troubleshooting or some heavy lifting when debugging - try pulling out the Teddy Bear.
Even better, you can hug something after it's solved!
Tuesday, June 2. 2009
Even as a Linux desktop user, I still have a need to run various pieces of legacy software under Windows. 
Ideally, I would love to find a Linux alternative, but whilst the itch remains, I still need to scratch it.
As such, I run various Virtualbox Virtual Machines running Windows XP.
This gives me the added benefit of still being able to run my preferred operating system as my main desktop (Linux), whilst still using some legacy applications under Windows.
This is nothing new, and most people do this all the time. With most modern CPU chipsets from both AMD ( AMD-V) and Intel ( VT-x) providing hardware assisted virtualization solutions - it has become a simple task for many people.
One thing that has annoyed me, and any user that has ever had to reinstall a Windows machine (it happens to the best of us -- Windows often decides to eat it's own registry), is that whilst you might install straight from CD, it also means you have to then spend a good few hours applying all the service packs and then all the updates from the Microsoft website (and sit back and watch a dozen or so reboots between multiple updates). It's enough to send any sane person around the bend.
Once you've done it - you vow never to do it again, yet as Murphy would have it... it's bound to happen again.  This is partly due to the fact that Windows Deteriorates over time, until one day the performance is so shoddy you can swear you saw a snail push the cursor on your screen. Once it comes to that, it's time to reinstall again.
Microsoft also recognised it's a problem, particularly in corporate environments that run many desktop PCs. As such they released WSUS. That's fine and well -- if you run a Microsoft Windows 2003/2008 Server.  Unfortunately most home users don't.
Don't dispair! Some geeky German's have released a GPLv3 licensed utility that will pretty much undertake the task for you without the need for an expensive Microsoft Windows Server anywhere in sight. c't Offline Update, allows you to use either Linux or Windows to download all the updates for both Microsoft Office and Microsoft Windows platforms. In addition it can handle different language versions, and even build a nice ISO off all the updates so you can take it on the road, hand it to friends, etc.
Why on earth would they code it to download the Windows Updates on Linux? Well, it makes it easier to install in a central location -- say on a Samba server so that all your desktop machines can then install the updates from a central location over your LAN. (Call it a poor man's WSUS!)
To run under Linux it couldn't be easier. Once you have downloaded c't Offline Update and extracted it... change into the sh subdirectory. It's then just a matter of running the DownloadUpdates.sh shell script with the right arguments: $ ./DownloadUpdates.sh -help
**********************************************************
*** c't Offline Update Downloader ***
*** for Linux Systems ***
*** ***
*** http://www.heise.de/ct/projekte/offlineupdate/ ***
*** Authors: Tobias Breitling, Stefan Joehnke ***
**********************************************************
Usage: ./DownloadUpdates.sh [system] [language] [parameter]
Supported systems:
w2k, wxp, wxp-x64, w2k3, w2k3-x64, w60, w60-x64, oxp, o2k, o2k3, o2k7, all-x64, all-x86
Supported languages:
enu, deu, nld, esn, fra, ptg, ptb, ita, rus, plk, ell, csy
dan, nor, sve, fin, jpn, kor, chs, cht, hun, trk, ara, heb
Parameter:
/excludesp - do not download servicepacks
/makeiso - create ISO-Image
/dotnet - download .NET-Framework
/nocleanup - do not cleanup client directory
/proxy - define proxyserver( /proxy http://[username:password@]:)
Example: ./DownloadUpdates.sh wxp deu /dotnet /makeiso
$ c't Update also provides a simple Windows GUI to automate the task:  Tab 1: Download Windows Updates |  Tab 2: Download Office Updates |
Installing the updates on the client.
Once you've downloaded the updates and either burnt them to a CD/DVD (for easy portability) or made them available on a network share ( Tip: share the sub-directory called client) Windows users can then easily apply the updates.
A user can run UpdateInstaller.exe (in the root directory of the CD or the share). The UpdateInstaller will determine what you have installed already (and grey these options out). It's then just a case of selecting the options you want.  Client Installation of the various updates. |
Now for those family members who are in dire need of a 'computer fix' and need me to reinstall Windows for them, they'll be given burnt copies of the latest ISOs, so they can in future undertake the task themselves. I would rather educate someone how to undertake the rebuild themselves for future use. (That, and I really don't have the spare time/desire to rebuild dozens of Windows machines a year!  )
Finally it's also worthwhile downloading and running the free Microsoft Baseline Security Analyzer which will ensure you have all the updates applied (and inform you if you are missing any). It's also a good idea to disable any non-essential services the tool recommends.
Hopefully this tip will speed up the time it takes to fully patch a Windows desktop after a reinstall.
Saturday, May 9. 2009
FlashROM 0.90 has been released as part of the CoreBoot project.
That means you can read, write and verify almost all common BIOS chips now under Linux!
Gone of the days of needing to boot into DOS to Flash your BIOS.
So what does this mean?
- Flash a running system, without needing to reboot. The new BIOS comes effective after a reboot (you can verify it prior to bouncing it).
- Flash a remote system over SSH. No physical access required.
- No need for a boot floopy or bootable CD to flash a system.
- More than Linux is available. It is also available under FreeBSD, DragonFly BSD, Solaris, Mac OS X, and other Unix-like OSes.
Awesome work by the CoreBoot developers, and it means we're one step closer to removing any dependency on that other OS.
Friday, May 8. 2009
OpenOffice 3.1 was recently released. It brings a range of new features and bugfixes.
Those of you on Ubuntu desktops who wish to upgrade can do so quite easily. It's been built for Jaunty, Intrepid and Hardy.
You can use the following apt repos to pick it up:
Jaunty:
deb http://ppa.launchpad.net/openoffice-pkgs/ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/openoffice-pkgs/ppa/ubuntu jaunty main
Intrepid:
deb http://ppa.launchpad.net/openoffice-pkgs/ppa/ubuntu intrepid main
deb-src http://ppa.launchpad.net/openoffice-pkgs/ppa/ubuntu intrepid main
Hardy:
deb http://ppa.launchpad.net/openoffice-pkgs/ppa/ubuntu hardy main
deb-src http://ppa.launchpad.net/openoffice-pkgs/ppa/ubuntu hardy main
Once that's done, just add the signing key:
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com D2BB86E0EBD0F0A43D4DB3A760D11217247D1CFF
Now it's a case of just running an update and you'll automatically be upgraded from OO.org 3.0 to OO.org 3.1.
sudo apt-get update && sudo apt-get upgrade
Happy Open-Officing!
Saturday, April 18. 2009
Ever wondered why PulseAudio sucks so bad?
Sick of the multiple Audio stacks in Linux? (OSS/ALSA/PulseAudio).
Ever wanted to make sense of items like JACK,ESD,aRts and NAS or just confused with either GStreamer or xine?
Here is a clever overview of the sound systems that is Linux. ( click the image for a larger view)/
Linux audio like it or not is a mess. Multiple layers providing the same functionality. It's a house of cards that often falls down.
Things have been hidden well in OSS/ALSA and it's not until demanding audio like HD codecs have started to make their way across that some of these issues are starting to be uncovered (the infamous 'popping' sounds).
PulseAudio has been poking and pushing ALSA in recent times, and as a result unearthed a number of issues.
I'm hopefully eventually we'll get to a single, simple but powerful audio stack. I'm not holding my breath though.
Thursday, January 22. 2009
Ahh the good ol' days.
I distinctly remember the days when you would stick a printer on the network and then wrestle with the sucker getting the right settings so your printouts didn't look like Egyptian hieroglyphics.
Installing custom filters and weird control files were all the norm. Not so much now.
Thanks to Michael Fox advice, I purchased a Brother Mono Laser printer this week (that handles Duplex/Networking as well). The Brother HL-5250DN works 100% under Linux and just required installing the PPDs off LinuxPrinting.org (though it was working fine prior to that just via CUPS and the included driver). What's even more surprising is that they have a Linux section on the Brother website.
I had the printer uninstalled from the box, read the 'setup instructions' included (plug this, remove that, etc), and had it printing duplex in < 10 minutes!
Before Michael's advice -- I had avoided Brother printers -- mainly due to having a PoS Brother plain-paper Fax machine. It seems their printers are much better than their Faxes.
So a big thanks to Michael.
So I ask Linux developers... stop making it so easy to install hardware. Otherwise everyone will be running Linux before too long!
Now -- I only need a bookcase in my office, and I've completed my new office setup!
Monday, January 19. 2009
 | In Australia Internet users are limited to the amount they may download. Each Internet Service plan normally involves a speed and download limit. Failing to keep an eye on this and exceed your limit normally effects the user in question either by:- Paying exorbitant excess fees that can be as much as $150/GB!
- Being 'throttled' by your ISP, in effect turning your lovely xDSL/Cable connection into something slower than dial-up.
As you can image, most people wish to avoid these. As a result ISPs provide a usage meter normally on their site, however you have to remember to view it, which unless you're diligent in doing so, you can still run over your quota.
Previously I've relied on the fabulous Firefox extension NetUsage, however this meant you had to have a browser open. This isn't always the case, and I found it frustrating to have to load a browser just to check my usage. (I could just login to the ISP's usage meter if I had a browser open).
I've seen others produce mrtg graphs and even Cacti graphs to display their usage; however they too also rely on having a browser open.
Ideally, I want to have my usage available, when I wanted, and without loading a browser.
I use conky on my desktop to display a range of information. It seemed a logical step would be to integrate a meter into my conky setup.
As you can see from the graph in the picture to the left, it displays a raw percentage of what has been used, as well as a visual bar graph. Below that is the raw data, showing exactly how much I've downloaded (~11.5GB), what my ISP believes my quota to be (55GB in this case), and when this billing period ends (the 13th of every month).
I can now view my current Internet usage at a glance, without the need to load any additional program. 
So how did I achieve it? Like many ISPs, my ISP provides an interface to the raw data. This is used by 3rd party utilities like NetUsage and others to parse and generate the information. Internode (my ISP) has such an interface.
A quick and dirty script and I was able to spit out the graph in a format conky liked. Whilst this works directly with Internode, similiar ISPs have such interfaces and you will be able to hack the script to suit your own environment. |
Below is the simple bash shell script used to generate the data:
#!/bin/bash
# Get usage information from Internode's web page.
# Setup to run once every half hour.
#
# Set the username and password
Username=INTERNODE_USERNAME
Password=INTERNODE_PASSWORD
# Grab the details
Temp=`wget -q -O - --post-data "username=${Username}&password=${Password}" --user-agent="Conky ISP Quota Grabber 0.1" https://customer-webtools-api.internode.on.net/cgi-bin/padsl-usage`
# Generate the percent used.
echo $Temp|gawk '{print $1/$2*100}'> /tmp/node-graph.txt
Percent=`cat /tmp/node-graph.txt`
echo $(printf %.0f $Percent) > /tmp/node-percent.txt
# Break up the values into their respective parts
Values=($Temp)
echo "Used: $(printf %.0f ${Values[0]})MB Quota: ${Values[1]}MB Period Ends: ${Values[2]}" > /tmp/node-text.txt
# Time to leave.
exit
Sure it's not the most secure script (It stores your username/password in plain text). For me, the script sits on my desktop machine... and is protected by file permissions. The password I use for my ISP I also don't consider highly sensative. (It's important to note that most people throw around their password in clear-text across the Internet when picking up their mail with POP3!  ). It does however do the job.
The above shell script I run every 30 minutes from cron.
It is then up to your ~/.conkyrc file to display the results. Here is the snippet of the appropriate code for the ~/.conkyrc file that will do that for you:
${color orange}INTERNET USAGE ${hr 2}$color
${execi 900 cat /tmp/node-percent.txt}% ${execibar 900 cat /tmp/node-graph.txt}
${execi 900 cat /tmp/node-text.txt}
There you have it, a simple ISP usage meter sitting right on your desktop. 
It's not the most elegant or complicated program, however it serves it's purpose extremely well. YMMV.
Tuesday, November 4. 2008
Leave your IRC client set to away for a day, and then check your private chats later that night.
It's amazing some of the strange banter you get:
[someuser] hi..
[someuser] yesterday we completed the network config change in all servers, and now network part is clear
[someuser] ;P
[someuser] ;P
[someuser] :p
[someuser] please ignore above 3 lines
For the record, I was helping a fellow admin out with configuring a series of bonded interfaces for a server (7 connections - 3 bonded, one not).
I take it the first two lines of the message tells me it's been completed. 
The next 3 lines were meant for someone else, whilst the last the user recognised what they had done.
The lesson for today: Check which window you're in before typing.
Saturday, September 27. 2008
I was appalled after reading the rather rash statements made by Jim Zemlin the Executive director of the Linux Foundation.
His rather bizarre statements against Sun (who is also a silver member of the Foundation) must have left many execs in Santa Clara scratching their heads and wanting some answers.
What's worse is the story originally ran in InfoWorld, then was picked up by the New York Times. Other notable online sites also ran with it, including Slashdot and LWN to mention just two.
Lets look at some of the statements the Exec Director of the Foundation made:
- "The future is Linux and Microsoft Windows, it is not Unix or Solaris."
- Solaris has almost no new deployments and is a legacy operating environment offered by a company with financial difficulties. Original equipment manufacturers also do not see a bright future for Solaris. This was paraphrased and not a direct quote.
- Sun, he declared, should just move over to Linux.
- "It's certainly true that Unix is on the decline." - Discussing IBM AIX and HP-UX
- "The only people I hear talk about DTrace [Solaris's technology for assessing program and OS behaviours] and ZFS [the Zettabyte File System] as competitive features [are] Sun Microsystems sales representatives. It's not something I believe is impacting the market in any way."
- "...With capabilities such as ZFS and DTrace, Sun is trying to compete based on minor features", Zemlin says. "That's literally like noticing the view from a third-story building as it burns to the ground."
- Zemlin, on Sun's open-source Solaris as "too little, too late." He also goes on to claim that there is no real open source community around OpenSolaris, arguing that Sun still controls development
- Open Solaris is no more than an attempt to expand the Solaris user base to drive customers to commercial Sun technology.
Seriously where does the guy get off?
Looking at his profile on the Linux Foundation it doesn't instil a level of confidence.
A former Exec at Free Standards Group (who with the OSDL merged to become the Linux Foundation). He was also VP of Marketing of Colavent Technologies (basically a crowd that sold commercial Apache support amongst other things). In 2000 he was a board member of Corio an ASP, that had an IPO then was sold off in chunks. IBM retains the http://www.corio.com/ URL.
So, from my reading he's got quite a bit of marketing/exec background for web-based application servers.... beyond that, I don't see any real technical prowless. He's a marketing suit that appears to shoot from the hip.
Let's review some of his "quick-draws":
- The future is Linux and Windows?
WTF?! Did you take crack before taking the interview?
Sure as the exec. director of The Linux Foundation we expect you to come out and say "Linux is the future" - but to throw Microsoft in the mix -- you have to be kidding me.
Look at general stall that Microsoft has had with Vista. They have forced OEMs to install it, and even some of the larger ones now have kicked back and offer corporations and high-end consumer devices the option of Windows XP instead.
- No major deployments of Solaris... and disliked by the OEMS.
That must be news to both IBM and Dell, who offer OpenSolaris on their x86 series servers.
As for a company in 'financial trouble' this is an extract of the letter to shareholders attached to their latest Annual Report /10-K filing to the SEC (Read it online here).
I've included a screenshot the opening paragraph of the letter:

That doesn't sound like a company in 'financial trouble' to me. 
You can see this on their Consolidated Statements Of Operations
- The decline of Unix (Solaris, HP-UX, AIX).
It's interesting to note that all of these make hardware as well as an operating system. These systems normally scale much larger than that of a traditional Linux server (excluding clusters). Take a look at Sun's M9000, IBM's p5 595 and HP's HP-9000 Superdome Server. These computers can replace dozens of Intel based servers and thus are not something companies run out and buy dozens of. (well normally!) Interestingly... both HP and IBM are also Platinum Members of the Linux Foundation. With a Platinum membership of $500,000USD each. How's that for biting the hand that feeds you (literally in Zemlin's case).
The I/O throughput and disk-subsystems available for these machines normally far outstrip that of anything under Intel/Linux range.
- ZFS, Sun Zones/Containers and DTrace.
Seriously you jest Mr Zemlin?
Linux virtualization is still a mish-mash under heavy development. (take Xen, KVM, LVS and even Sun's VirtualBox)... I wouldn't class as enterprise ready. Hell, even VMWare that started in Linux roots, has moved over onto their own kernel. Zones and Containers under Solaris are much neater and better suited to an enterprise environment.
As for ZFS -- Linux has no mainstream file-system that competes. The size of volumes and the ease of use leaves ext3 behind. Even the upcoming ext4 has no real claims over ZFS. For large scale filesystems, ZFS has it over native Linux filesystems.
DTrace - ask any administrator of 100's of Linux servers if they think DTrace is a minor thing? Sure Systemtap is nice, but the comparison of Systemtap to DTrace still shows some deficiencies. Being able to trace safely on production systems is a requirement for something that can be used in the real world. Add to it the ability to trace user-space programs and DTrace does indeed have some features many SysAdmins discuss and would love to see under Linux.
- Sun's open source Solaris 'too little-too late'. No community, still controlled by Sun.
Wow... I wonder if he would make the same statement if Microsoft released their OS as open-source? Open-Solaris is a community site, though Sun still controls it. There is nothing wrong with that. It's their baby, and they can do with it what they like.
Sun is still a large OSS backer.... remember products like MySQL, Innotek/VirtualBox, and hey, they even OpenSourced Java.
Sun have shareholders to consider, and they need to make a return on their investments / R&D. I don't really have anything bad to say about the CDDL. It makes sense for them... and hey something is better than nothing. What I find hilarious is that many Linux advocates will bag the CDDL, but love Mozilla. Wake up people... the CDDL is based on the MPL! The CDDL is also recognised as a license under the OSI.
- Open Solaris attempts to drive customers to commercial Sun technology
Actually most of the people I've come across it are already using the commercial Solaris or wish to learn Solaris. OpenSolaris is a nice way they can install it at home and come familiar with the environment outside of work at their own pace. It makes sense that they can utilise the same operating system in their work-place and in the comforts of their own home.
For me, I'm a fan of Linux. I love the breadth of software available to me, the rich and colourful community around it. I have grown up watching Linux (I first compiled up an 0.54 kernel on a lowly 286). My servers and desktops/laptops all run Linux.
Having said that, I learnt *NIX on SunOS and later Solaris. It has it's place, even in today's world.
I agree, the low-end UNIX servers are often replaced by Linux servers, yet there is nothing really in the Linux space that competes with the high-end UNIX environments.
A lot of what we see in Linux has it's roots in commercial UNIX. (Hell, who has networked file systems in their environment that doesn't use Sun's NFS?)
So take some advice from a Linux admin at the coal face. Linux co-exists well in a heterogeneous environment, sharing the space with commercial UNIXes and even those annoying Windows servers.
If you need to beat up a 'Server OS' next time Zemlin, try attacking Microsoft (Hint: they are not a member of the Linux Foundation).
Linux servers have probably dented more Windows server sales then that of commercial UNIX. Samba has played a large role in that.
Exchange is probably the last bastion of Microsoft dominance. With the amount of Exchange 'replacements' now on the go that run under Linux (ie: PostPath, Zafara, OpenGroupWare, Scalix and Open-Xchange to name just a small fraction of those available. ) It's likely more inroads into the proprietary walls of Microsoft are now showing cracks in many corporations. Many IT managers are struggling to justify the outrageous price they get slugged for Microsoft Exchange, and these cheaper and feature-rich alternatives are often fractions of the cost if not free.
So next time you attempt to speak for the 'Linux Community' Jim Zemlin, try actually speaking to some Linux administrators that live in the Fortune 500 world. We aren't all hippies yelling 'free OS love'.  In fact we happily co-exist with commercial *NIX and sometimes even Windows servers (much to our disgust).
Leave your "Us vs Them" mentality at your door, it's not a view held by a large proportion of the Linux community. Indeed many Linux administrators actually also administer other commercial *NIX machines in their day-to-day jobs. There are more similarities between the commercial *NIX flavours and Linux than not.
We do realise it's part of the Foundation's role to 'promote Linux', but keep the mud-slinging and crap out of it. Let Linux stand on it's own technical merits and not at the detriment of dragging another 'cousin' down in the process. We see enough of this style of 'marketing' from Microsoft that we don't need to stoop to the same levels.
Disclaimer:
• I work commercially as a Linux System Administrator at a Fortune-500 company.
• I have however administered a large range of *NIX based operating systems over the years... including Solaris, HP-UX, AIX, Tru64, and IRIX just to mention a few of the more 'known' variants.
• My home desktop and all my servers run Linux. Many that know me think I'm a one-eyed Linux zealot!
• I have no affiliations with Sun Microsystems at all.
• The views and opinions expressed by some members of The Linux Foundation are not mine.
Thursday, September 25. 2008
Most people don't read User Manuals. It's a shame as they miss out on lots of great tid-bits.
One such nugget can be found on Page 66 of the VirtualBox User Manual:
Like a real SATA controller, VirtualBox’s virtual SATA controller operates faster and also consumes less CPU resources than the virtual IDE controller. Interesting...
I thought I would give this a go.
I had an existing 32-bit Windows XP installation that used the traditional IDE interface, and found it used about 25% of my CPU when running (using an Intel Core 2 Duo E6600) when running under a 64-bit Linux installation.
Whilst it ran fine, dropping the CPU utilisation and speeding it up sounded like a great idea.
Once done, I compared the results... it was indeed 'zippier', and low and behold, the CPU utilization had dropped to around 5%! Now that's a big improvement!
 | So how did I go about it?
- Start the Virtual Machine as per usual.
- Download and install the Intel Matrix Storage Manager (used to see the SATA interface).
- Install the software.
- Shutdown the Virtual Machine
- Now create a temp virtual disk, and install this on SATA-1 on the virtual machine.
- Boot back up and ensure you can see the disk (it won't be formatted, so you will probably need to look in the Disk Management utility found in the Administration Tools -> Computer Management -> Disk Management)
- Hopefully you can see the newly added disk.
- Shutdown the virtual machine.
- Change your IDE disk to now be on SATA Port 0
- Remove the temp disk you previously added.
- Boot back up and you should now be on a SATA HDD, that now is more snappier and uses a lot less CPU.
You can also use the floppy disk drivers to install it directly using the 'F6' key during installation. |
NB: For those using Vista - you'll find it supports SATA out of the box. (No need to install an additional driver)
So enjoy faster and less resource hungry virtual machines.
NB: Whilst this covers SATA under Windows based Virtual machines, it also applies to running Linux based Virtual Machines.
|