Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
Thread Tools Display Modes
Old May 11th, 2009   #1
TheShiv
First Cup of Ubuntu
 
Join Date: Oct 2008
Beans: 5
Ubuntu 9.04 Jaunty Jackalope
Send a message via AIM to TheShiv Send a message via MSN to TheShiv
Lightbulb HowTo Achieve "Ubuntu-Desktop-Minimal"

I've noticed on brainstorm.ubuntu.com that there are a few people who would like to have an ubuntu-desktop-minimal edition instead of the default ubuntu-desktop which bundles software that not all of us use.

I'm one of those users who likes to build his system from the ground up, so I wrote this simple post-install script which will give you a complete minimal desktop.

After running this script your system will look the same as a fresh install of ubuntu just without all the added software.

The first step to accomplish this is install a base system either using the Ubuntu Minimal CD (I use this along with my personal repository to create quick installs) or you can use the Ubuntu Server edition.

Once the base installation completes, login and run the following script, then reboot.

Note: This script is for users who use the gnome environment.

Code:
#!/bin/bash
#######################################################################
# Ubuntu-Desktop-Minimal: Post-install script to install only the bare
#			  essentials of an Ubuntu Desktop.
#######################################################################
echo "[*] Installing Gnome Essentials"
sudo apt-get -y install gnome-core gdm network-manager-gnome fast-user-switch-applet \
human-theme x11-xserver-utils tangerine-icon-theme gnome-themes-ubuntu ubuntu-artwork \
jockey-gtk gnome-screensaver gnome-utils
echo "[*] Installing Application Essentials"
sudo apt-get install -y gcalctool tsclient
The actual script I use also includes:
epiphany-browser : Lighter equivalent to firefox.
vlc;vlc-plugin-* : For media etc.
openoffice.org-writer : Office Writer
openoffice.org-calc : Office Spreadsheet
openoffice.org-impress : Office Presentation

After using this script I've lowered the memory usage from around 250-350mb to about 80-90mb. All of the themes are there, the network-manager, gedit, restricted hardware tool, etc.

I use this setup for Old & New Desktops/Laptops. I purchased a Netbook recently (ASUS eeePC 1000HD) and found this script makes it run very well.

Of course this is just a starting template, you will want to modify it to add the packages you use.

-TheShiv

Last edited by TheShiv; May 14th, 2009 at 07:25 AM..
TheShiv is offline   Reply With Quote
Old May 12th, 2009   #2
jpeddicord
Super Ubuntu World
 
jpeddicord's Avatar
 
Join Date: Apr 2006
Location: Ohio, USA
Beans: 2,255
Ubuntu Development Release
Re: HowTo Achieve "Ubuntu-Desktop-Minimal"

Approved and thank you for your tutorials & tips contribution!
__________________
Previously known as jacobmp92
Site ║ ⬢ Launchpadµ Identi.caµ Twitter
Help test Mound Data Manager
jpeddicord is offline   Reply With Quote
Old May 13th, 2009   #3
abhiroopb
Fresh Brewed Ubuntu
 
abhiroopb's Avatar
 
Join Date: Apr 2006
Location: Coventry
Beans: 1,361
Ubuntu 9.10 Karmic Koala
Re: HowTo Achieve "Ubuntu-Desktop-Minimal"

No offence, but how is this useful at all? I mean all you are providing is a list of apps to install. Its an interesting concept, but perhaps it may be useful to come up with a list of programs that can be removed, startup applications that can be stopped, applications that load during boot that you don't need (e.g. bluetooth).

Something simple like:

sudo apt-get remove ekiga etc etc. Might be useful.

Again just trying to understand how this could be effectively used.
__________________
Laptop: HP dv5242ea | Core Duo 1.60GHz | 2GB RAM | 320GB SATA | DVD-RAM Matshita UJ 840S | nVidia GeForce Go 7400 256mb | Intel PRO 3945ABG
Tech Blog: TechComet
Get Dropbox

Last edited by abhiroopb; May 13th, 2009 at 10:06 AM..
abhiroopb is online now   Reply With Quote
Old May 13th, 2009   #4
ericreboisson
First Cup of Ubuntu
 
Join Date: Dec 2008
Location: THIONVILLE (FRANCE)
Beans: 1
Ubuntu 8.10 Intrepid Ibex
Send a message via ICQ to ericreboisson Send a message via AIM to ericreboisson Send a message via MSN to ericreboisson Send a message via Yahoo to ericreboisson Send a message via Skype™ to ericreboisson
Re: HowTo Achieve "Ubuntu-Desktop-Minimal"

Quote:
Originally Posted by abhiroopb View Post
No offence, but how is this useful at all? I mean all you are providing is a list of apps to install. Its an interesting concept, but perhaps it may be useful to come up with a list of programs that can be removed, startup applications that can be stopped, applications that load during boot that you don't need (e.g. bluetooth).

Something simple like:

sudo apt-get remove ekiga etc etc. Might be useful.

Again just trying to understand how this could be effectively used.
I fully agree with abhiroopb
ericreboisson is offline   Reply With Quote
Old May 13th, 2009   #5
lepa71
First Cup of Ubuntu
 
Join Date: Feb 2007
Beans: 1
Re: HowTo Achieve "Ubuntu-Desktop-Minimal"

So I followed your guide, but I can't start X. It gives me black screen.

Any help
lepa71 is offline   Reply With Quote
Old May 13th, 2009   #6
upbeat.linux
A Carafe of Ubuntu
 
upbeat.linux's Avatar
 
Join Date: Mar 2007
Beans: 110
Ubuntu 9.04 Jaunty Jackalope
Re: HowTo Achieve "Ubuntu-Desktop-Minimal"

I've included the link to the Ubuntu minimal CD to help users out:

https://help.ubuntu.com/community/In...tion/MinimalCD

As a suggested improvement you could cut down on resources by installing fluxbox:

https://help.ubuntu.com/community/Fluxbox
upbeat.linux is offline   Reply With Quote
Old July 27th, 2009   #7
omichaels
First Cup of Ubuntu
 
Join Date: Jul 2009
Location: Australia
Beans: 7
Ubuntu 8.04 Hardy Heron
Re: HowTo Achieve "Ubuntu-Desktop-Minimal"

Quote:
Originally Posted by lepa71 View Post
So I followed your guide, but I can't start X. It gives me black screen.

Any help
Likewise, X won't start. I executed the following on a fresh 8.04 LTS Server build
Code:
sudo apt-get -y install gnome-core gdm network-manager-gnome fast-user-switch-applet human-theme x11-xserver-utils tangerine-icon-theme ubuntu-artwork jockey-gtk gnome-screensaver gnome-utils xinit
sudo apt-get install -y gcalctool tsclient
I had to replace "gnome-themes-ubuntu" with "gnome-themes" as the former was reported as not found in the archive.

Attempting to execute startx manually (from console) returns:
X: cannot stat /X11/X (No such file or directory), aborting. \ giving up
xinit: No such file or directory (errno 2): unable to connect to X server
xinit: No such process (errno 3): Server error.

I am very keen to get a minimal desktop up and running but am a total noob so would appreciate any suggestions.
omichaels is offline   Reply With Quote
Old July 28th, 2009   #8
omichaels
First Cup of Ubuntu
 
Join Date: Jul 2009
Location: Australia
Beans: 7
Ubuntu 8.04 Hardy Heron
Re: HowTo Achieve "Ubuntu-Desktop-Minimal"

Quote:
Originally Posted by lepa71 View Post
So I followed your guide, but I can't start X. It gives me black screen.

Any help
Seems that Xorg was not installed as a part of dependency resolution. The following command solved my problem:

Code:
sudo apt-get install xorg
Hope it works as well for others


Thanks, TheShiv, for contributing this - it is just what I was seeking
omichaels is offline   Reply With Quote
Old May 13th, 2009   #9
tomstrummer
First Cup of Ubuntu
 
Join Date: Dec 2007
Beans: 8
Re: HowTo Achieve "Ubuntu-Desktop-Minimal"

Quote:
Originally Posted by abhiroopb View Post
No offence, but how is this useful at all? I mean all you are providing is a list of apps to install. Its an interesting concept, but perhaps it may be useful to come up with a list of programs that can be removed, startup applications that can be stopped, applications that load during boot that you don't need (e.g. bluetooth).

Something simple like:

sudo apt-get remove ekiga etc etc. Might be useful.

Again just trying to understand how this could be effectively used.
Well, if you read his entire post, he said you should start with a "minimal" or "server" install, in which case there isn't anything to remove. This is a lot more efficient than doing the default install and then removing a bunch of stuff, not to mention there are usually user conig files and other cruft left behind after you remove everything.
tomstrummer is offline   Reply With Quote
Old May 13th, 2009   #10
abhiroopb
Fresh Brewed Ubuntu
 
abhiroopb's Avatar
 
Join Date: Apr 2006
Location: Coventry
Beans: 1,361
Ubuntu 9.10 Karmic Koala
Re: HowTo Achieve "Ubuntu-Desktop-Minimal"

Quote:
Originally Posted by tomstrummer View Post
Well, if you read his entire post, he said you should start with a "minimal" or "server" install, in which case there isn't anything to remove. This is a lot more efficient than doing the default install and then removing a bunch of stuff, not to mention there are usually user conig files and other cruft left behind after you remove everything.
That is true, but still this seems just like an install command that installs a few packages. Perhaps a more complete list with all possible packages which people can choose to install, etc.
__________________
Laptop: HP dv5242ea | Core Duo 1.60GHz | 2GB RAM | 320GB SATA | DVD-RAM Matshita UJ 840S | nVidia GeForce Go 7400 256mb | Intel PRO 3945ABG
Tech Blog: TechComet
Get Dropbox
abhiroopb is online now   Reply With Quote

Bookmarks

Tags
installation, minimal

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:21 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry