For personal reference as much as anything else, this seems to be quite a good way to get rid of a lot of GUI baggage when you've installed Ubuntu from the Desktop CD and have now decided to use it as a server:
$ sudo apt-get remove gdm gnome-*
...
...
The following packages will be REMOVED
alacarte apturl bluez-gnome compiz compiz-gnome contact-lookup-applet
deskbar-applet ekiga eog evince evolution evolution-data-server
evolution-exchange evolution-plugins evolution-webcal f-spot
fast-user-switch-applet file-roller firefox-3.0-gnome-support
firefox-gnome-support gconf-editor gdebi gdm gdm-guest-session gksu
gnome-about gnome-accessibility-themes gnome-app-install gnome-applets
gnome-applets-data gnome-cards-data gnome-control-center gnome-desktop-data
gnome-doc-utils gnome-games gnome-games-data gnome-icon-theme gnome-keyring
gnome-mag gnome-media gnome-media-common gnome-menus gnome-mime-data
gnome-mount gnome-netstatus-applet gnome-nettool gnome-orca gnome-panel
gnome-panel-data gnome-pilot gnome-pilot-conduits gnome-power-manager
gnome-screensaver gnome-session gnome-settings-daemon gnome-spell
gnome-system-monitor gnome-system-tools gnome-terminal gnome-terminal-data
gnome-themes gnome-user-guide gnome-utils gstreamer0.10-gnomevfs gvfs
gvfs-backends hwtest-gtk jockey-gtk language-pack-gnome-en
language-pack-gnome-en-base libbonoboui2-0 libcanberra-gnome
libdeskbar-tracker libebook1.2-9 libecal1.2-7 libedata-book1.2-2
libedata-cal1.2-6 libedataserverui1.2-8 libeel2-2 libexchange-storage1.2-3
libgail-gnome-module libgksu2-0 libgnome-desktop-2-7 libgnome-keyring0
libgnome-keyring1.0-cil libgnome-mag2 libgnome-media0 libgnome-menu2
libgnome-pilot2 libgnome-speech7 libgnome-vfs2.0-cil
libgnome-window-settings1 libgnome2-0 libgnome2-canvas-perl libgnome2-common
libgnome2-perl libgnome2-vfs-perl libgnome2.0-cil libgnomecanvas2-0
libgnomecanvas2-common libgnomecups1.0-1 libgnomekbd-common libgnomekbd3
libgnomekbdui3 libgnomeprint2.2-0 libgnomeprint2.2-data libgnomeprintui2.2-0
libgnomeprintui2.2-common libgnomeui-0 libgnomeui-common libgnomevfs2-0
libgnomevfs2-bin libgnomevfs2-common libgnomevfs2-extra libgtkhtml-editor0
libgtkhtml3.14-19 libgtksourceview1.0-0 liblpint-bonobo0 libmbca0
libpam-gnome-keyring libpanel-applet2-0 libpolkit-gnome0 mousetweaks
nautilus nautilus-cd-burner nautilus-share network-manager-gnome
openoffice.org-gnome policykit-gnome python-gmenu python-gnome2
python-gnome2-desktop python-gnomecanvas python-pyatspi rhythmbox seahorse
seahorse-plugins software-properties-gtk ssh-askpass-gnome
system-config-printer-gnome tangerine-icon-theme tomboy totem
totem-gstreamer totem-mozilla totem-plugins tracker-search-tool tsclient
ubufox ubuntu-desktop ubuntu-docs update-manager update-notifier usb-creator
vim-gnome vinagre vino xulrunner-1.9-gnome-support yelp zenity
0 upgraded, 0 newly installed, 160 to remove and 4 not upgraded.
After this operation, 541MB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 125118 files and directories currently installed.)
That seems to save a good chunk of disk space.
Of course, if you're happy to carry the gnome baggage just in case, you can always type "telinit 3" at a prompt (once SSH is up, of course) and you'll be dropped into the non-graphical, multiuser runlevel.
Tuesday, March 31. 2009 at 23:14 (Link) (Reply)
It has occurred to me that this probably leaves lot of stuff behind, but that won't actually do any harm to your system.