This is somewhat off topic to the OP, but since the question has been asked...
To recap: Danny Hamilton is concerned about "unoffical" privatekey/address generators and prefers bitcoin-qt installed on the hard disk of an offline PC. I suggested that a livecd would do the job perfectly well without the need for a hard disk install, but my suggested method requires an internet connection to install. So I took a further look.
I concluded that this is unavoidable for the casual user. The ubuntu installation needs an internet connection to install the official sources of bitcoin-qt plus their dependencies (whether installing to a livecd or a hard disk).
While an expert user may be able to download the various packages online via a separate computer, then copy them onto the offline PC for installation via sneakernet, its not a simple procedure (and I'm not even going to try as I'm not that expert).
Interestingly a windows installation to hard disk may be possible completely offline, but then you have the issue of activating the license without an internet connection (plus the cost of said license).
So I went with the official bitcoin-qt from
http://bitcoin.org/en/downloadSelecting Ubuntu PPA goes to
https://launchpad.net/~bitcoin/+archive/bitcoinAnd technical details about this PPA ...
Choose your Ubuntu version offers ...
Raring(13.04), Quantal(12.10), Precise(12.04), Lucid 10.04
Looking at the ubuntu
http://www.ubuntu.com/download/desktop ...
this offers 12.04 LTS and 13.10 (others are available via previous version link)
So lets go with 12.04 LTS (32 bit) a 707MB download
For testing I installed it onto a VirtualBox VM with 2048GB Ram (no hard disk)
Since we'll need it for the installation I left the network option enabled.
Once it boots select "Try Ubuntu"
We're going to need a terminal shell, which Ubuntu unhelpfully hides, so click on the top left icon "dash home" and type terminal" in the search box, select the first option, which opens a terminal and adds an icon for it. Its useful to have more than one, so right click on the icon and open a few more.
Now type:
sudo apt-get-repository ppa:bitcoin/bitcoin
Press enter to accept, and note that the key 8842CE5E has been imported.
Type (perhaps in the other terminal so we don't lose the previous message):
sudo apt-get update
Its not at all obvious what to do next, so lets try:
sudo apt-get install bitcoin-qt
And we get a bunch of errors about dependencies. This is fixed as follows...
We want "software sources" which used to be in "system settings", but its missing in this version of ubuntu, so go to "dash home" and search for "update manager" and start it. Click on settings, uncheck the updates (unless you really want them), then on the Ubuntu Software tab select all of the checkbox options. Now we can do:
sudo apt-get update
sudo apt-get install bitcoin-qt
Right click on the network icon (next to the clock on top right) and disable otherwise it will download the blockchain and fill up the ramdisk (this is a livecd).
Go to "dash home" and search for "bitcoin", and run it.
Press ALT, help then debug window, console tab
getaccountaddress ""
dumpprivkey ADDRESS
Now I prefer to use bitcoind, so exit bitcoin-qt, reenable the network and...
sudo apt-get install bitcoind
Disconnect from the network again.
cd .bitcoin (it already exists since we ran bitcoin-qt, note the "dot" prefix before bitcoin)
nano bitcoin.conf (I prefer vi myself, but that's definitely not for novices)
server=1
daemon=1
listen=1
rpcuser=username
rpcpassword=password
CTRL-O (enter)
CTRL-X
bitcoind (starts the server)
bitcoind getinfo (check its working)
bitcoind getnewaddress
dumpprivkey ADDRESS
This can easily be automated via a simple shell script, eg
for i in $(seq 1 100);
do
ADDR=$(bitcoind getnewaddress)
KEY=$(bitcoind dumpprivkey $ADDR)
echo $ADDR $KEY >> keyfile.txt
done
Enjoy (and if I've made any mistakes here, just let me know)