Amazon Web Services




Ubuntu 8.04 LTS Hardy Desktop with NX Server Free Edition

Click for a printer friendly version of this document Printer Friendly Save to del.icio.us
Average Review:

A clean, base install of Ubuntu 8.04 Hardy Desktop with NX Server Free Edition, built by Eric Hammond as part of the Alestic.com series [update 2008-11-30]

Submitted By: Eric Hammond  
AMI ID: ami-5e709437
AMI Manifest: alestic/ubuntu-8.04-hardy-desktop-20081130.manifest.xml
License: Public
Operating System: Linux/Unix

Pick the Right Release

For a complete list of the Ubuntu AMIs available in this series, please see the following web page:

Selecting the correct Ubuntu AMI image for your needs will improve your EC2 experience.

Description

This AMI is an install of Ubuntu 8.04 Hardy desktop with NX Server Free Edition, built by Eric Hammond. This 32-bit AMI is for running on the 32-bit instance sizes including: m1.small, c1.medium

NOTICE! If you do not need the Ubuntu desktop, this AMI is not recommended. Instead, use the Ubuntu 8.04 Hardy base install AMI which is much smaller and loads and boots in a fraction of the time.

Steps to try out the Ubuntu desktop using NX on this AMI:

  • On the instance, create a system user (remember your new password):
  •   user-setup
    

  • On your local computer, install and run an NX Client from NoMachine.com:
    http://www.nomachine.com/download.php
    Clients available for Windows, Linux, Mac OSX, Solaris. For example, on my local Ubuntu system, I use:
  •   curl -O http://64.34.161.181/download/3.2.0/Linux/nxclient_3.2.0-9_i386.deb
      sudo dpkg -i nxclient_3.2.0-9_i386.deb 
      /usr/NX/bin/nxclient --wizard
    

  • Point the NX Client to the external hostname of your Ubuntu desktop EC2 instance and enter the username/password from above. Choose the "Gnome" desktop.

Features

Features include:

  • Ubuntu 8.04 Hardy with upgraded packages (as of 2008-11-30)
  • Amazon EC2 AMI tools (1.3-26357 20071010) installed and patched for Ubuntu
  • Uses Amazon's newer 2.6.21 kernel (2.6.21.7-2.fc8xen)

  • Includes 2.6.21 kernel modules

  • openssh-server installed
  • On first boot, runs instance user-data script if it starts with #!
  • Generate new ssh host keys on first boot and output fingerprints
  • ca-certificates installed to support SSL in ec2-bundle-upload
  • libc6-xen installed for performance
  • /etc/apt/sources.list for hardy main restricted universe multiverse
  • /etc/event.d/tty[2-6] removed to avoid error messages in logs
  • Shadow passwords enabled
  • root password locked
  • 10GB root (/) partition
  • Network: DHCP on eth0, loopback on lo, simple /etc/hosts with localhost
  • root ssh public key creditials retrieved from instance parameters or ephemeral store on startup (standard Amazon EC2 ssh access for public AMIs)
  • Added "UseDNS no" to /etc/ssh/sshd_config as recommended by http://docs.amazonwebservices.com/AWSEC2/2007-03-01/DeveloperGuide/public-ami-guidelines.html
  • Comment appended to /etc/motd using /etc/rc.local
  • Locale en_US, Timezone UTC

Support

If you use or are thinking of using this AMI, please subscribe to the ec2ubuntu Google Group where you will find out about updates to the Ubuntu AMIs and tips for running Ubuntu on Amazon EC2.

To subscribe, send an email mesage to ec2ubuntu-subscribe@googlegroups.com

Support is also available through the above forum with a growing number of folks in the community using Ubuntu on EC2 (and a good core of folks willing to answer questions).

Build Process

Advanced users may consult the following page for information on how this AMI was built and to get instructions for building their own.

History

ami-5e709437 - alestic/ubuntu-8.04-hardy-desktop-20081130.manifest.xml

  • New --arch option from patch by Don Spaulding II
  • Upgrade EC2 AMI tools to 1.3-26357 20071010
  • The old 2.6.16 kernel modules are no longer bundled with the image.
  • All packages upgraded to latest versions

ami-88d733e1 - alestic/ubuntu-8.04-hardy-desktop-20080924.manifest.xml

  • bugfix: Mounts /mnt as ephemeral storage with /etc/fstab
  • All packages upgraded to latest versions

ami-f7d4309e - alestic/ubuntu-8.04-hardy-desktop-20080922.manifest.xml

  • DEFECT: This AMI is missing /etc/fstab and does not mount /mnt as ephemeral storage!
  • bugfix: Only generate ssh host keys on first boot, not on every reboot.
  • Enable TLS, install libc6-xen and remove libc6-i686
  • All Ubuntu packages upgraded to latest versions

ami-44c4202d - alestic/ubuntu-8.04-hardy-desktop-20080905.manifest.xml

  • All Ubuntu packages upgraded to latest versions

ami-f39e7a9a - alestic/ubuntu-8.04-hardy-desktop-20080803.manifest.xml

  • Build using latest debootstrap v1.0.10
  • Output new ssh host key fingerprints to console log for security.
  • Use newly built kernel modules where fuse supports NFS export.
  • All Ubuntu packages upgraded to latest versions

ami-b5bc58dc - alestic/ubuntu-8.04-hardy-desktop-20080628.manifest.xml

  • Change default timezone to UTC
  • Increase default root partition size to 10GB
  • Upgrade NX server to latest 3.2.0 version
  • Add "kubuntu-desktop" so AMI includes both Gnome and KDE
  • All Ubuntu packages upgraded to latest versions

ami-0e57b267 - alestic/ubuntu-8.04-hardy-desktop-20080517.manifest.xml

  • Support instance user-data boot hook scripts.
  • All Ubuntu packages upgraded to latest versions (release candidate)

ami-1f4bae76 - alestic/ubuntu-8.04-hardy-desktop-20080514.manifest.xml

  • Upgrade to NX Server 3.2.0.
  • Create new ssh host keys on first boot.
  • Don't try to set the CMOS hwclock under Xen and save 4 seconds on boot.
  • Don't try to run apparmor as we don't have the kernel module installed yet.
  • Silence grep warnings about missing authorized_keys.
  • All Ubuntu packages upgraded to latest versions (release candidate)

ami-f744a19e - alestic/ubuntu-8.04-hardy-desktop-20080430.manifest.xml

  • First build direct from ec2ubuntu-build-ami script

ami-4f789d26 - alestic/ubuntu-8.04-hardy-desktop-20080424.manifest.xml

  • Fresh upgrade with Ubuntu 8.04 Hardy release

ami-337c995a - alestic/ubuntu-8.04-hardy-desktop-20080419.manifest.xml

  • Original (release candidate) release on Amazon FC8 2.6.21 kernel

Discussion

The 5 most recent discussion messages. View full discussion.

edwardjjj
Posts: 4
Registered: 7/17/08
Ubuntu 8.04 LTS Hardy Desktop with NX Server Free Edition
Posted: Jul 17, 2008 10:52 PM PDT
 
  Click to reply to this thread Reply

I am unclear about the hard drive size within the image.   On a virgin image I get:
:~# df
Filesystem           1K-blocks      Used        Available     Use% Mounted on
/dev/sda1              4161216       3775340    176164       96% /
varrun                  873880       112    873768   1% /var/run
varlock                 873880         0    873880   0% /var/lock
udev                    873880        20    873860   1% /dev
devshm                  873880        12    873868   1% /dev/shm
/dev/sda2            153899044    192076 145889344   1% /mnt
fuse                   4161216   3775340    176164  96% /home/edward/.gvfs
#

So are only 176Mb available?  I need about 10 times this amount.  How can I upgrade this to get the extra space available?

Thanks.



edwardjjj
Posts: 4
Registered: 7/17/08
Re: Ubuntu 8.04 LTS Hardy Desktop with NX Server Free Edition
Posted: Jul 17, 2008 11:17 PM PDT   in response to: edwardjjj
 
  Click to reply to this thread Reply


Oops ... I just figured out that I could just use /mnt as another place to put files .... duh....


Reviews
Create Review Write a Review

Great article, Aug 27, 2008 5:17 AM
Reviewer: simonebrunozzi
I liked this article, it is very useful because sometimes you need an Ubuntu Desktop and you don't have one at hand. This way, with a simple Remote Desktop connection, you can have it and do whatever you want. Thanks!
Welcome, Guest Help
Login Login