Hate UML?

Draw sequence diagrams in seconds.
http://www.websequencediagrams.com

Minimal usable Ubuntu with one command
Posted on: 2010-09-21 18:00:00

If you install the default "ubuntu-desktop" you also get with it a gigabyte of crap that you will never use. But if you don't install the ubuntu desktop, you get a system with a text-only login: prompt, and it's not clear what to install to get it to a usable state.

I have an irrational need to optimize my Ubuntu installation. I did some investigating and came up with this method, which gives a minimal graphical 1.2 GB install, with gnome, networking, and no applications.

Install the base system

Use UNetBootin and create a usb key with the network install. (If you are still burning non-archival data-DVD's in the year 2010, you must also live in a cave.). Plug the computer directly into the network using an ethernet cable. Boot from the USB key and install ubuntu as usual, over the network. Using the network-install means you aren't even downloading the packages you aren't going to use. It also means you don't have to immediately update your system and re-download everything, because the network packages are already up to date.

When you get to the "task selection" screen with the option to install ubuntu base server, kubuntu, etc, do not change anything at all.

Install the minmal gnome

When installation completes and it boots up, you get a text-only system. Login and type the following command:
sudo apt-get install gnome-panel gdm gnome-terminal

This will install a graphical environment and the login screen, so it will let you login by clicking on your username.

When it completes, reboot using "sudo reboot", or if you are super-geeky, type in the secret command to avoid rebooting.

Wireless Networking for laptops

If you have a laptop, you will probably want:
sudo apt-get install network-manager network-manager-gnome gnome-power-manager hibernate
That will give you a battery monitor and the icon that lets you configure wireless networking. It also gives you the hibernate button when you shut down.

Where's my browser?

sudo apt-get install chromium-browser flashplugin-installer

Make it look good

Gnome's default theme looks like something from the year 2000. Get some of the Ubuntu 10 goodness by doing this:
sudo apt-get install ubuntu-artwork

All together now

As promised, here is the one command that combines all of the above.
sudo apt-get install gnome-panel gdm gnome-terminal network-manager-gnome network-manager gnome-power-manager hibernate chromium-browser ubuntu-artwork flashplugin-installer

Want more programming tech talk?
Add to Circles on Google Plus
Subscribe to posts

Post comment

Real Name:
Your Email (Not displayed):

Text only. No HTML. If you write "http:" your message will be ignored.
Choose an edit password if you want to be able to edit or delete your comment later.
Editing Password (Optional):

__B__

2010-09-22 22:58:35
Why don't just install a Debian base install? I use Ubuntu in some machines where I don't want to configure applications and such, just an out-of-the-box solution, and where I want customization I just use Debian...

Ivan Suftin

2010-09-23 10:56:24
Tried something like this last night. The Ubuntu network install installs grub but does not give you the option of where to install it. It therefore installs it back to the USB key itself. Debian Network install has the same issue,.

Steve Hanov

2010-09-24 09:24:34
Ivan: I was using an EEE Pc 1000H and it worked for me. Maybe it depends on how your USB controllers structured, and which one is "/dev/sda"

Fredrik

2010-09-26 13:09:22
Excellent post! :)

william malo

2011-01-12 18:05:13
just do this:

sudo apt-get --no-install-recommends -y -m install ubuntu-desktop

Email
steve.hanov@gmail.com

Other posts by Steve

Yes, You Absolutely Might Possibly Need an EIN to Sell Software to the US How Asana Breaks the Rules About Per-Seat Pricing 5 Ways PowToon Made Me Want to Buy Their Software How I run my business selling software to Americans 0, 1, Many, a Zillion Give your Commodore 64 new life with an SD card reader 20 lines of code that will beat A/B testing every time [comic] Appreciation of xkcd comics vs. technical ability VP trees: A data structure for finding stuff fast Why you should go to the Business of Software Conference Next Year Four ways of handling asynchronous operations in node.js Type-checked CoffeeScript with jzbuild Zero load time file formats Finding the top K items in a list efficiently An instant rhyming dictionary for any web site Succinct Data Structures: Cramming 80,000 words into a Javascript file. Throw away the keys: Easy, Minimal Perfect Hashing Why don't web browsers do this? Fun with Colour Difference Compressing dictionaries with a DAWG Fast and Easy Levenshtein distance using a Trie The Curious Complexity of Being Turned On Cross-domain communication the HTML5 way Five essential steps to prepare for your next programming interview Minimal usable Ubuntu with one command Finding awesome developers in programming interviews Compress your JSON with automatic type extraction JZBUILD - An Easy Javascript Build System Pssst! Want to stream your videos to your iPod? "This is stupid. Your program doesn't work," my wife told me The simple and obvious way to walk through a graph Asking users for steps to reproduce bugs, and other dumb ideas Creating portable binaries on Linux Bending over: How to sell your software to large companies Regular Expression Matching can be Ugly and Slow C++: A language for next generation web apps qb.js: An implementation of QBASIC in Javascript Zwibbler: A simple drawing program using Javascript and Canvas You don't need a project/solution to use the VC++ debugger Boring Date (comic) barcamp (comic) How IE <canvas> tag emulation works I didn't know you could mix and match (comic) Sign here (comic) It's a dirty job... (comic) The PenIsland Problem: Text-to-speech for domain names Pitching to VCs #2 (comic) Building a better rhyming dictionary Does Android team with eccentric geeks? (comic) Comment spam defeated at last Pitching to VCs (comic) How QBASIC almost got me killed Blame the extensions (comic) How to run a linux based home web server Microsoft's generosity knows no end for a year (comic) Using the Acer Aspire One as a web server When programmers design web sites (comic) Finding great ideas for your startup Game Theory, Salary Negotiation, and Programmers Coding tips they don't teach you in school When a reporter mangles your elevator pitch Test Driven Development without Tears Drawing Graphs with Physics Free up disk space in Ubuntu Keeping Abreast of Pornographic Research in Computer Science Exploiting perceptual colour difference for edge detection Experiment: Deleting a post from the Internet Is 2009 the year of Linux malware? Email Etiquette How a programmer reads your resume (comic) How wide should you make your web page? Usability Nightmare: Xfce Settings Manager cairo blur image surface Automatically remove wordiness from your writing Why Perforce is more scalable than Git Optimizing Ubuntu to run from a USB key or SD card UMA Questions Answered Make Windows XP look like Ubuntu, with Spinning Cube Effect See sound without drugs Standby Preventer Stock Picking using Python Spoke.com scam Stackoverflow.com Copy a cairo surface to the windows clipboard Simulating freehand drawing with Cairo Free, Raw Stock Data Installing Ubuntu on the Via Artigo Why are all my lines fuzzy in cairo? A simple command line calculator Tool for Creating UML Sequence Diagrams Exploring sound with Wavelets UMA and free long distance UMA's dirty secrets Installing the Latest Debian on an Ancient Laptop Dissecting Adsense HTML/ Javascript/ CSS Pretty Printer Web Comic Aggregator Experiments in making money online How much cash do celebrities make? Draw waveforms and hear them Cell Phones on Airplanes Detecting C++ memory leaks What does your phone number spell? A Rhyming Engine Rules for Effective C++ Cell Phone Secrets