个人工具

“UbuntuHelp:Installation/LowMemorySystems”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(New page: {{From|https://help.ubuntu.com/community/Installation/LowMemorySystems}} {{Languages|php5}} '''How to install Ubuntu on low memory systems (Pentium III and earlier machines, with 32-192 ...)
 
 
(未显示2个用户的14个中间版本)
第1行: 第1行:
 
{{From|https://help.ubuntu.com/community/Installation/LowMemorySystems}}
 
{{From|https://help.ubuntu.com/community/Installation/LowMemorySystems}}
{{Languages|php5}}
+
{{Languages|UbuntuHelp:Installation/LowMemorySystems}}
 
+
'''How to install Ubuntu on low memory systems  
 
+
(Pentium III and earlier machines, with 32-192 MB RAM).'''
'''How to install Ubuntu on low memory systems (Pentium III and earlier machines, with 32-192 MB RAM).'''
+
/!\ This documentation should be reviewed for Ubuntu 9.10 and 8.04.<<BR>>
 
+
/!\ See proposed blueprint: https://blueprints.launchpad.net/ubuntu/+spec/low-memory-install
Installing Ubuntu on any system requires at least 32Mb of memory: The text-based installer included with the alternate (install) CDs needs that much space to run reliably. Smaller memory configurations run into problems, and while not impossible, it can be very difficult to complete an installation with less than the minimum RAM requirement.
+
== Requirements ==
 
+
==== Memory Requirements ====
There is no practical speed requirement, although a slower processor will take more time to finish installing. Some Pentium machines will take hours to complete, simply because the CPU takes longer to finish. As a general benchmark, a 75Mhz machine finishes a command-line installation of Ubuntu 6.06.1 in about four hours, and a 120Mhz machine finishes in perhaps an hour less than that. 200Mhz and faster machines will see a still stronger improvement.
+
Installing Ubuntu on any system requires at least 32 MB of memory: The text-based installer included with the alternate (install) CDs needs that much space to run reliably. Smaller memory configurations run into problems, and while not impossible, it can be very difficult to complete an installation with less than the minimum RAM requirement.
 
+
Depending on the hardware requirements, you can expect a sparse Ubuntu system to boot to a graphical desktop on anywhere from 19 MB to 54 MB. That requirement will fluctuate with the system demands, and increase while the system is active. Swap space is crucial to low-memory machines, so don't be stingy when setting up your system.
 +
==== Processor Specifications ====
 +
There is no practical speed requirement, although a slower processor will take more time to finish installing. Some Pentium machines will take hours to complete, simply because the CPU takes longer to finish. As a general benchmark, a 75 MHz machine finishes a command-line installation of Ubuntu 7.04 in about four hours, and a 120 MHz machine finishes in perhaps three. 200 MHz and faster machines will see a further improvement.
 
If you do decide to install Ubuntu on a legacy machine, be patient. There will come times when you think the machine has stopped or is hung, when in fact it's still moving, albeit at a very slow rate.
 
If you do decide to install Ubuntu on a legacy machine, be patient. There will come times when you think the machine has stopped or is hung, when in fact it's still moving, albeit at a very slow rate.
 
+
==== Disk Space Requirements ====
Disk space on an absolutely minimal installation can be reduced to as little as 500Mb. A fresh and clean server installation of Ubuntu 6.10 generally takes only 300Mb, although there will be minor variations on account of hardware differences.
+
Disk space on an absolutely minimal installation can be reduced to as little as 600 MB. A fresh and clean command-line system of Ubuntu 8.04 generally takes only 450 MB, although there will be minor variations on account of hardware differences.
 
+
If you have only 64 MB of memory, you will need to reserve more disk space for swap.
Depending on the hardware requirements, you can expect a sparse Ubuntu system to boot to a graphical desktop on anywhere from 19Mb to 54Mb. That requirement will fluctuate with the system demands, and increase while the system is active. Swap space is crucial to low-memory machines, so don't be stingy when setting up your system.
+
==== Other Hardware Considerations ====
 
+
 
These instructions assume you will have a working Internet connection and access to the [[UbuntuHelp:Repositories| universe and multiverse repositories]]. Configuring your hardware is not included on this page.
 
These instructions assume you will have a working Internet connection and access to the [[UbuntuHelp:Repositories| universe and multiverse repositories]]. Configuring your hardware is not included on this page.
 
+
If you do not have an internet connection, have a look at the wonderful package [http://aptoncd.sourceforge.net/ APTonCD] to prepare your offline installation.
== Install an Ubuntu Server ==
+
== Install an Ubuntu command-line system ==
 
+
=== Prepare installation ===
The server version of Ubuntu is a sparse command-line system, without any graphical elements. It's a text-only version of what lies underneath all the pretty visual elements. It's also the starting point for a minimal installation.
+
If you have a fast computer available, you may want to test the install in a virtual machine before to run the real install.
 
+
It is the right thing to do in case the other computer does not have internet access.
==== Ubuntu 6.06 ====
+
Have a look at [[UbuntuHelp:VirtualBox|VirtualBox]] or [[UbuntuHelp:VMware|VMware]] for running a VM: configure the VM with same hardware as the target machine.
 
+
If the target PC has no internet access, you may want to prepare an AptOnCD iso before to continue.
To install a base system, boot from the alternate (install) CD and choose "Install a server."
+
=== Execute installation ===
 
+
The command-line version of Ubuntu is a sparse system, without any graphical elements. It's a text-only version of what lies underneath all the advanced graphical elements. It's also the starting point for a minimal installation.
==== Ubuntu 6.10 ====
+
To install a base system, boot from any '''Alternate CD''' and choose "Install a command-line system."
 
+
It is exactly the same command-line system on Kubuntu/Xubuntu/Ubuntu Alternate CDs.
To install a base system, boot from the alternate (install) CD and choose "Install a command-line system."
+
Follow the on-screen instructions to complete installation.
 
+
'''Note''': the Server Install CD provides a simple command line system, but it is not the same as "install a command-line system"
=== When it's done ===
+
* only on the "server install": <code><nowiki>linux-server</nowiki></code> kernel and modules
 
+
* only on the "command-line install": <code><nowiki>linux-generic</nowiki></code> kernel, modules and restricted modules + <code><nowiki>acpi</nowiki></code>, <code><nowiki>acpid</nowiki></code> and <code><nowiki>language-pack-en</nowiki></code>
Once the server install is complete, you will probably want to edit your [[UbuntuHelp:sources.list]] file.
+
The recommended install for low memory system is the command-line system.
 
+
'''Tips and tricks'''
 +
* see [https://bugs.launchpad.net/bugs/202959 bug #202959] for Ubuntu 8.04 LTS on systems with low memory (64 MB)
 +
* after installation you may want to blacklist some restricted modules: (if you want to save some memory)<<BR>>
 +
File <code><nowiki>/etc/default/linux-restricted-modules-common</nowiki></code><<BR>>
 +
<pre><nowiki>
 +
DISABLED_MODULES="ath_hal fc fglrx fwlanusb ltm nv"
 +
</nowiki></pre>
 +
* if you do not use hibernation, comment or delete <code><nowiki>/etc/initramfs-tools/conf.d/resume</nowiki></code> then execute <code><nowiki>sudo update-initramfs -u</nowiki></code>
 +
* if you do not have a laptop, you may consider removing <code><nowiki>acpi</nowiki></code> and <code><nowiki>acpid</nowiki></code> by executing <code><nowiki>sudo aptitude remove acpi acpid</nowiki></code>
 +
* if you do not need extra languages you may consider removing <code><nowiki>language-pack-en</nowiki></code> and <code><nowiki>language-pack-en-base</nowiki></code>
 +
=== Adding Repositories ===
 +
==== Edit Sources ====
 +
Once the server install is complete, you will probably want to edit your [[UbuntuHelp:sources.list|sources.list]] file.
 
<code><nowiki>sudo nano /etc/apt/sources.list</nowiki></code>
 
<code><nowiki>sudo nano /etc/apt/sources.list</nowiki></code>
 
+
Uncomment all official repositories by removing # at the beginning of the line. Do not uncomment the narrative portions of that file; in other words, where you see a double hash mark (##) leave those lines alone.
Uncomment all official repositories by removing # at the beginning of the line. Do not uncomment the narrative portions of that file; in other words, where you see a double hash mark (
+
If you prepared a CD-ROM with additional packages ([[UbuntuHelp:APTonCD|APTonCD]]):
Now return to the command line and type:
+
* execute <code><nowiki>sudo apt-cdrom</nowiki></code> in a console
 
+
* put the CD-ROM in the disc tray
 +
==== Update and Upgrade Your System ====
 +
Now you should update your system. Return to the command line and type:
 
<code><nowiki>sudo aptitude update</nowiki></code>
 
<code><nowiki>sudo aptitude update</nowiki></code>
 
+
It's probably also a good idea to upgrade your system at this point. Use this command to upgrade your system:
It's probably also a good idea to upgrade your system at this point.
+
<code><nowiki>sudo aptitude upgrade</nowiki></code> (or, for Gutsy: <code><nowiki>sudo aptitude safe-upgrade</nowiki></code>)
 
+
<code><nowiki>sudo aptitude upgrade</nowiki></code>
+
 
+
 
Now you should be ready to install a window manager and some programs.
 
Now you should be ready to install a window manager and some programs.
 
+
'''Ideas of packages'''
== Installing the bare minimum ==
+
* <code><nowiki>localepurge</nowiki></code>: to purge unneeded translations
 
+
* <code><nowiki>readahead</nowiki></code>: to accelerate boot sequence
 +
* some command line utilities: <code><nowiki>htop</nowiki></code>, <code><nowiki>hwinfo</nowiki></code>, <code><nowiki>lftp</nowiki></code>
 +
== Preparing for Graphical Environment ==
 
The absolute minimum for any graphical environment is X.org
 
The absolute minimum for any graphical environment is X.org
 
+
==== Installing X.org ====
Edgy and Feisty:
+
On Ubuntu Edgy (6.10), Feisty (7.04), and Gutsy (7.10), use the command:
 
+
 
<code><nowiki>sudo aptitude install xorg</nowiki></code>
 
<code><nowiki>sudo aptitude install xorg</nowiki></code>
 
+
On Ubuntu Dapper (6.06), use the command:
Dapper:
+
 
+
 
<code><nowiki>sudo aptitude install x-window-system-core</nowiki></code>
 
<code><nowiki>sudo aptitude install x-window-system-core</nowiki></code>
 
+
==== Starting X.org ====
 
This package gives you the framework for an X session, complete with a variety of drivers and configuration files. Installing ''xorg'' (or ''x-window-system-core'') also triggers the self-configuration sequence, so when it finishes, your hardware should be ready to use, barring any errors or incompatibilities.
 
This package gives you the framework for an X session, complete with a variety of drivers and configuration files. Installing ''xorg'' (or ''x-window-system-core'') also triggers the self-configuration sequence, so when it finishes, your hardware should be ready to use, barring any errors or incompatibilities.
 
+
It's important to note that installing ''xorg'' or ''x-window-system-core'' really doesn't leave you with much. You can start X at this point with this command:
It's important to note that installing ''xorg'' or ''x-window-system-core'' really doesn't leave you with much. You can start X at this point with this command
+
 
+
 
<code><nowiki>startx</nowiki></code>
 
<code><nowiki>startx</nowiki></code>
 
 
but without a window manager and some software, you probably won't get much done.
 
but without a window manager and some software, you probably won't get much done.
 
+
== Adding a Window Manager ==
== Adding a window manager ==
+
A window manager controls the placement and appearance of windows within a graphical user interface.
 
+
 
There are many lightweight window managers that will give you better access to your system through the X layer. Each one has its own way of managing the desktop, and its own way of configuring themes and menus.
 
There are many lightweight window managers that will give you better access to your system through the X layer. Each one has its own way of managing the desktop, and its own way of configuring themes and menus.
 
 
=== Openbox ===
 
=== Openbox ===
 
+
[[UbuntuHelp:Openbox|Openbox]] is one of the lightest, fastest window managers available, but can take some time to configure and set up. It has its origins in Blackbox, but newer versions are complete rewrites of the Blackbox code.
[[UbuntuHelp:Openbox]] is one of the lightest, fastest window managers available, but can take some time to configure and set up. It has its origins in Blackbox, but newer versions are complete rewrites of the Blackbox code.
+
Install Openbox with this command:
 
+
 
<code><nowiki>sudo aptitude install openbox obconf openbox-themes</nowiki></code>
 
<code><nowiki>sudo aptitude install openbox obconf openbox-themes</nowiki></code>
 
 
These packages and their dependencies will allow you to build and configure an Openbox system, along with a choice of themes and some configuration options.
 
These packages and their dependencies will allow you to build and configure an Openbox system, along with a choice of themes and some configuration options.
 
 
'''Note:''' Edgy (Ubuntu 6.10) users should note a small discrepancy in ''obconf'' that might prevent it from running. You can correct that with these commands ...
 
'''Note:''' Edgy (Ubuntu 6.10) users should note a small discrepancy in ''obconf'' that might prevent it from running. You can correct that with these commands ...
 
 
<pre><nowiki>
 
<pre><nowiki>
 
cd /usr/lib
 
cd /usr/lib
第85行: 第87行:
 
sudo ln libobrender.so.0.4.0 libobrender.so.1
 
sudo ln libobrender.so.0.4.0 libobrender.so.1
 
sudo ldconfig -X
 
sudo ldconfig -X
</nowiki></code>
+
</nowiki></pre>
 
+
 
Entering ''obconf'' in an X terminal window should now trigger the obconf dialogue.
 
Entering ''obconf'' in an X terminal window should now trigger the obconf dialogue.
 
 
=== IceWM ===
 
=== IceWM ===
 
+
[[UbuntuHelp:IceWM|IceWM]] has a very strong following as a good, clean, fast window manager that resembles a conventional "desktop" in many ways. Among many of its perks are themes that resemble the Windows XP desktop theme -- which may be appealing to you.
[[UbuntuHelp:IceWM]] has a very strong following as a good, clean, fast window manager that resembles a conventional "desktop" in many ways. Among many of its perks are themes that resemble the Windows XP desktop theme -- which may be appealing to you.
+
Install [[UbuntuHelp:IceWM|IceWM]] with this command:
 
+
 
<code><nowiki>sudo aptitude install icewm iceconf icepref iceme icewm-themes</nowiki></code>
 
<code><nowiki>sudo aptitude install icewm iceconf icepref iceme icewm-themes</nowiki></code>
 
+
When finished, you will have a number of configuration and menu options. You can start [[UbuntuHelp:IceWM|IceWM]] with the ''startx'' command.
When finished, you will have a number of configuration and menu options. You can start IceWM with the ''startx'' command.
+
 
+
 
=== Fluxbox ===
 
=== Fluxbox ===
 
+
[[UbuntuHelp:Fluxbox|Fluxbox]] is a beautiful, highly configurable desktop system that is easy on system resources without compromising on graphical appeal. Fluxbox is the default window manager for a number of Linux distributions, probably most notable among them being [http://www.damnsmalllinux.org/ Damn Small Linux].
[[UbuntuHelp:Fluxbox]] is a beautiful, highly configurable desktop system that is easy on system resources without compromising on graphical appeal. Fluxbox is the default window manager for a number of Linux distributions, probably most notable among them being [http://www.damnsmalllinux.org/ Damn Small Linux].
+
Install Fluxbox with this command:
 
+
 
<code><nowiki>sudo aptitude install fluxbox fluxconf</nowiki></code>
 
<code><nowiki>sudo aptitude install fluxbox fluxconf</nowiki></code>
 
+
Once installed, you can start Fluxbox with the ''startx'' command. Remember, if you enjoy working with Fluxbox, you should consider [http://www.fluxbuntu.org Fluxbuntu] as an option.
Once installed, you can start Fluxbox with the ''startfluxbox'' command. Remember, if you enjoy working with Fluxbox, you should consider [http://www.fluxbuntu.org Fluxbuntu] as an option.
+
 
+
 
=== FVWM-Crystal ===
 
=== FVWM-Crystal ===
 
+
[[UbuntuHelp:FVWM-Crystal|FVWM-Crystal]] is a complete set of configuration scripts which sit atop of FVWM.  [[UbuntuHelp:FVWM-Crystal|FVWM-Crystal]] has support for integrated access to music players, terminal emulators and system monitors. It boasts some of the finest eye candy available to low-end machines, and is a snap to install.
[[UbuntuHelp:FVWM-Crystal]] is a complete set of configuration scripts which sit atop of FVWM.  FVWM-Crystal has support for integrated access to music players, terminal emulators and system monitors. It boasts some of the finest eye candy available to low-end machines, and is a snap to install.
+
For more information about building an [[UbuntuHelp:FVWM-Crystal|FVWM-Crystal]] desktop, check out the [[UbuntuHelp:FVWM-Crystal|FVWM-Crystal]] page.
 
+
For more information about building an FVWM-Crystal desktop, check out the [[UbuntuHelp:FVWM-Crystal]] page.
+
 
+
 
=== XFCE ===
 
=== XFCE ===
 
 
XFCE is heavier than any of the systems mentioned so far, but has some added functions as a result. You can try XFCE alone if you like, but if you're keen on an XFCE installation, look into [http://www.xubuntu.org Xubuntu] as an option.
 
XFCE is heavier than any of the systems mentioned so far, but has some added functions as a result. You can try XFCE alone if you like, but if you're keen on an XFCE installation, look into [http://www.xubuntu.org Xubuntu] as an option.
 
 
Install XFCE alone, without Xubuntu, with this command:
 
Install XFCE alone, without Xubuntu, with this command:
 
 
<code><nowiki>sudo aptitude install xfce4</nowiki></code>
 
<code><nowiki>sudo aptitude install xfce4</nowiki></code>
 
 
It's worth noting that some Edgy users have difficulty starting XFCE from a minimal install. The normal start command for XFCE -- ''startxfce4'' -- doesn't seem to be properly configured in Edgy.
 
It's worth noting that some Edgy users have difficulty starting XFCE from a minimal install. The normal start command for XFCE -- ''startxfce4'' -- doesn't seem to be properly configured in Edgy.
 
 
If you want the entire Xubuntu package, which includes a full suite of software and a lot of improvements, try this command:
 
If you want the entire Xubuntu package, which includes a full suite of software and a lot of improvements, try this command:
 
 
<code><nowiki>sudo aptitude install xubuntu-desktop</nowiki></code>
 
<code><nowiki>sudo aptitude install xubuntu-desktop</nowiki></code>
 
+
That will download quite a large amount of packages; you may want to consider installing Xubuntu fresh, from the [http://www.xubuntu.org/get installation ISO].  
That will download quite a large amount of packages; you may want to consider installing Xubuntu fresh, from the [http://www.xubuntu.org/get installation ISO].
+
Note: Xubuntu will use more system resources and may not be optimal for a low memory system with limited disk space, but it is lighter than a standard Ubuntu system.
 
+
== Adding Functionality ==
== Login managers ==
+
Now that the graphical window manager is set up, it's time to add some necessary and recommended packages. These will add additional functionality and make using the system easier. Additionally, adding a graphical package manager will provide an easy method to manage installed applications and packages.
 
+
=== Login managers ===
GDM is the Ubuntu default for a login manager. You can add it to your system with
+
Login managers will assist in choosing a graphical environment and will not require the user to start x.org to get into the window manager.
 
+
It's important to note that it's not necessary to use a login manager. If you're willing to log in at the command line and start X manually, you can save yourself a lot of system resources -- and the time it takes to load them. That can be a more appealing option on older machines.
 +
==== GDM ====
 +
GDM is the Ubuntu default for a login manager. However, GDM has a reputation of being a heavyweight, and on a system that needs as little bulk as possible, you might find it to be a burden. If you've got a decent system, install it using:
 
<code><nowiki>sudo aptitude install gdm</nowiki></code>
 
<code><nowiki>sudo aptitude install gdm</nowiki></code>
 
+
==== KDM ====
It has a reputation of being a heavyweight, and on a system that needs as little bulk as possible, you might find GDM to be a burden. KDM is another manager, but has the same heavy reputation as GDM.
+
KDM is another manager, but has the same heavy reputation as GDM.
 
+
 
<code><nowiki>sudo aptitude install kdm</nowiki></code>
 
<code><nowiki>sudo aptitude install kdm</nowiki></code>
 
+
==== XDM ====
 
XDM is the login manager for straight X, and while less beautiful than GDM or KDM, it can perform in the same role without fuss.
 
XDM is the login manager for straight X, and while less beautiful than GDM or KDM, it can perform in the same role without fuss.
 
 
<code><nowiki>sudo aptitude install xdm</nowiki></code>
 
<code><nowiki>sudo aptitude install xdm</nowiki></code>
 
+
==== SLiM ====
It's important to note that it's not necessary to use a login manager. If you're willing to log in at the command line and start X manually, you can save yourself a lot of system resources -- and the time it takes to load them. That can be a more appealing option on older machines.
+
SLiM is a simple login manager. It just works as expected.
 
+
<code><nowiki>sudo aptitude install slim</nowiki></code>
== Browsers ==
+
If the LANG environment variable is not correctly set, see [https://bugs.launchpad.net/bugs/234474 bug #234474].
 
+
=== Browsers ===
Web browsers come in many flavors, and the most prevalent -- Firefox -- can be laggy on low-memory or slow systems. Even the GNU version of Firefox, [https://wiki.ubuntu.com/IceWeasel Iceweasel] can be a bit heavy on older machines. In that case, consider Dillo as an alternative.
+
Now that your system is up and running, it would be a good idea to add an internet browser to surf the web and get some use out of the machine!
 
+
==== Firefox ====
 +
Web browsers come in many flavors, and the most prevalent -- Firefox -- can be laggy on low-memory or slow systems. Even the GNU version of Firefox, [[UbuntuWiki:IceWeasel|Iceweasel]] can be a bit heavy on older machines. If you've got at least 128 MB of memory, Firefox should work just fine.
 +
<code><nowiki>sudo aptitude install firefox</nowiki></code>
 +
==== Dillo ====
 +
While not nearly as full-featured as Firefox, Dillo has the advantages of a very small footprint and few resource requirements.
 
<code><nowiki>sudo aptitude install dillo</nowiki></code>
 
<code><nowiki>sudo aptitude install dillo</nowiki></code>
 
+
==== Epiphany Webkit ====
While not nearly as full-featured as Firefox, Dillo has the advantages of a very small footprint and few resource requirements.
+
Little bit of a middle ground. Webkit is very fast and highly supported as it is center to Safari and Chromium. Javascript is quick and Flash and other plugins are supported. (although Flash is probably way too much for a low-performance system)
 
+
<code><nowiki>sudo aptitude install epiphany-webkit</nowiki></code>
== iDesk ==
+
=== iDesk ===
 
+
Many lightweight desktop systems use [http://idesk.sourceforge.net/ iDesk] as a way of including customized, clickable icons directly on the desktop. iDesk is maintained in the Ubuntu repositories, and is installable from the command line with:
Many lightweight desktop systems use [http://idesk.sourceforge.net/ iDesk] as a way of including customized, clickable icons directly on the desktop. iDesk is maintained in the Ubuntu repositories, and is installable from the command line with
+
 
+
 
<code><nowiki>sudo aptitude install idesk</nowiki></code>
 
<code><nowiki>sudo aptitude install idesk</nowiki></code>
 
 
Consult the [http://idesk.sourceforge.net/ iDesk wiki] for instructions on how to configure and use iDesk. For icon sets, you may wish to search the repositories, or download them from third-party customization sites, such as [http://www.gnome-look.org Gnome-Look.org] and similar locations.
 
Consult the [http://idesk.sourceforge.net/ iDesk wiki] for instructions on how to configure and use iDesk. For icon sets, you may wish to search the repositories, or download them from third-party customization sites, such as [http://www.gnome-look.org Gnome-Look.org] and similar locations.
 
+
=== File managers ===
== File managers ==
+
 
+
 
Lightweight systems have a number of options available for graphical file management. Thunar is the default file manager in Xubuntu and many XFCE-based systems; it is installable alone with this command:
 
Lightweight systems have a number of options available for graphical file management. Thunar is the default file manager in Xubuntu and many XFCE-based systems; it is installable alone with this command:
 
 
<code><nowiki>sudo aptitude install thunar</nowiki></code>
 
<code><nowiki>sudo aptitude install thunar</nowiki></code>
 
 
XFE is an even lighter file manager, intended to mimic the Windows Explorer interface. It has very few dependencies and is very fast.
 
XFE is an even lighter file manager, intended to mimic the Windows Explorer interface. It has very few dependencies and is very fast.
 
 
<code><nowiki>sudo aptitude install xfe</nowiki></code>
 
<code><nowiki>sudo aptitude install xfe</nowiki></code>
 
+
ROX-Filer is another file management program, which makes extensive use of drag-and-drop principles. It does appear to have a large number of dependencies however, which means installing it may entail more external packages than you wish. Install ROX-Filer with this command:
ROX-Filer is another file management program, which makes extensive use of drag-and-drop principles. It does appear to have a large number of dependencies however, which means installing it may entail more external packages than you wish.
+
 
+
 
<code><nowiki>sudo aptitude install rox-filer</nowiki></code>
 
<code><nowiki>sudo aptitude install rox-filer</nowiki></code>
 
+
Nautilus is the default file manager for Ubuntu. It requires some more resources, but it has a lot of useful features. It can manage your desktop, show a wallpaper and desktop icons, which are automatically created for new devices (e.g. USB flash drives). Install Nautilus using this command:
Nautilus is the default file manager for Ubuntu. It requires some more resources, but it has a lot of useful features. It can manage your desktop, show a wallpaper and desktop icons, which are automatically created for new devices (e.g. USB flash drives).
+
 
+
 
<code><nowiki>sudo apt-get install nautilus</nowiki></code>
 
<code><nowiki>sudo apt-get install nautilus</nowiki></code>
 
+
To use it together with a window manager, execute the following command or add it to your autostart script. For example, use $HOME/.icewm/startup for [[UbuntuHelp:IceWM|IceWM]].
To use it together with a window manager, execute the following command or add it to your autostart script. For example, use $HOME/.icewm/startup for IceWM.
+
 
+
 
<code><nowiki>nautilus --no-default-window &</nowiki></code>
 
<code><nowiki>nautilus --no-default-window &</nowiki></code>
 
 
Some other popular file managers include
 
Some other popular file managers include
 
* [http://pcmanfm.sourceforge.net/ PCManFM];
 
* [http://pcmanfm.sourceforge.net/ PCManFM];
第187行: 第161行:
 
* [http://step.polymtl.ca/~coyote/xvfilemgr_main.html XVFilemgr];
 
* [http://step.polymtl.ca/~coyote/xvfilemgr_main.html XVFilemgr];
 
* and [http://packages.ubuntu.com/edgy/kde/dolphin Dolphin], which is a file manager aimed at KDE and Kubuntu.
 
* and [http://packages.ubuntu.com/edgy/kde/dolphin Dolphin], which is a file manager aimed at KDE and Kubuntu.
 
 
There are many others. Some are available through the repositories; others will require you to download and install them through another source. Experiment with different file managers to see which ones appeal to you.
 
There are many others. Some are available through the repositories; others will require you to download and install them through another source. Experiment with different file managers to see which ones appeal to you.
 
+
=== Package manager ===
 +
Add a graphical package manager to install, remove and upgrade software packages and to add repositories without using the command line. Synaptic package manager is the standard and can be installed with this command:
 +
<code><nowiki>sudo aptitude install synaptic</nowiki></code>
 +
Another good package manager, which uses ncurses, is Aptitude. It is light and fast, with lots of features:
 +
<code><nowiki>sudo aptitude</nowiki></code>
 +
You can use the package manager to add a word processor, such as Abiword, and other productivity software.
 
== Install an entire lightweight system ==
 
== Install an entire lightweight system ==
 
 
Building on the ideas above, here are some complete graphical systems, installable through a single command line. Feel free to mix and match between these options.
 
Building on the ideas above, here are some complete graphical systems, installable through a single command line. Feel free to mix and match between these options.
 
 
'''Remember: If you are using Dapper or earlier, replace "xorg" with "x-window-system-core"'''
 
'''Remember: If you are using Dapper or earlier, replace "xorg" with "x-window-system-core"'''
 
+
* [[UbuntuHelp:IceWM|IceWM]] as a window manager, plus GDM, Firefox, Abiword and the Synaptic package manager:
* IceWM as a window manager, plus GDM, Firefox, Abiword and the Synaptic package manager:
+
 
+
 
<code><nowiki>sudo aptitude install gdm xorg xterm icewm menu mozilla-firefox abiword synaptic</nowiki></code>
 
<code><nowiki>sudo aptitude install gdm xorg xterm icewm menu mozilla-firefox abiword synaptic</nowiki></code>
 
 
* XFCE and Firefox, with Synaptic package manager and KDM as the login manager:
 
* XFCE and Firefox, with Synaptic package manager and KDM as the login manager:
 
 
<code><nowiki>sudo aptitude install kdm xorg xfce4 firefox synaptic</nowiki></code>
 
<code><nowiki>sudo aptitude install kdm xorg xfce4 firefox synaptic</nowiki></code>
 
 
* Fluxbox with Dillo, and XDM as a login manager:
 
* Fluxbox with Dillo, and XDM as a login manager:
 
 
<code><nowiki>sudo aptitude install fluxbox xorg xdm dillo</nowiki></code>
 
<code><nowiki>sudo aptitude install fluxbox xorg xdm dillo</nowiki></code>
 
 
* Openbox with no login manager, XFE as the file manager and xfce4-terminal as an X terminal, as well as Openbox themes and the Tango icon set:
 
* Openbox with no login manager, XFE as the file manager and xfce4-terminal as an X terminal, as well as Openbox themes and the Tango icon set:
 
 
<code><nowiki>sudo aptitude install openbox obconf openbox-themes xfe xfce4-terminal tango-icon-theme-extras xorg</nowiki></code>
 
<code><nowiki>sudo aptitude install openbox obconf openbox-themes xfe xfce4-terminal tango-icon-theme-extras xorg</nowiki></code>
 
+
Remember to check the repositories for more ideas on software and applications!
Remember to check the repositories for more ideas on software and applications.
+
 
+
 
== Low Configuration Option ==
 
== Low Configuration Option ==
For a minimalistic system that does not require as much configuration, you can install the alternate window managers after installing a full K/X/Ubuntu system, thus preinstalling much of the required software but keeping the speed.
+
For a minimalistic system that does not require as much configuration, you can install the alternate window managers after installing a full K/X/Ubuntu system, thus preinstalling much of the required software but keeping the speed. However, installing a full system does require more system resources.
 
+
 
== External Links ==
 
== External Links ==
* [http://www.fluxbuntu.org FluxBuntu]: An Ubuntu variant with Fluxbox as the default window manager. An excellent place to start for a Fluxbox-based system.
+
* [http://www.cs.uml.edu/~aveilleu/projects/ubuntu-minimal/ Ubuntu-Desktop-Minimal], a project to create a slim install based on GNOME/GDM. Not necessarily the lightest install, but probably the most user-friendly. Also automatically installs the user's choice of browser, IM client, media player, e-mail client, and office suite.
* [http://www.ubuntulite.org UbuntuLite]: An early project to build a stripped-down version of Ubuntu aimed at low-end machines. The project seems to have stalled.
+
* [http://wiki.dennyhalim.com/ubuntu-minimal-desktop ubuntu minimal desktop installation]
* [http://alecjw.googlepages.com/cubuntu-commandlineubuntu Cubuntu] is not a graphical system; Cubuntu is a full-featured ''command line'' system, suitable for computers that can't handle any of the above options -- such as early Pentium or perhaps even 486-grade machines with as little as 16Mb RAM. And don't be skeptical: Even without a graphic environment, a computer can perform a lot more tasks than you would expect. B)
+
* [http://www.fluxbuntu.org FluxBuntu]: An Ubuntu variant with Fluxbox as the default window manager. An excellent place to start for a Fluxbox-based system.  
 
+
* [http://u-lite.org/ U-Lite]: A project to build a stripped-down version of Ubuntu aimed at low-end machines.  
CategoryDocumentation CategoryCleanup
+
* [http://alecjw.googlepages.com/cubuntu-commandlineubuntu Cubuntu] is not a graphical system; Cubuntu is a full-featured ''command line'' system, suitable for computers that can't handle any of the above options -- such as early Pentium or perhaps even 486-grade machines with as little as 16 MB RAM. And don't be skeptical: Even without a graphic environment, a computer can perform a lot more tasks than you would expect. B)
 +
* [http://www.enlightenment.org/ Enlightenment] is another window manager, but it is still in development and requires additional steps to install. However, it is very lightweight and functional.
 +
* [http://www.thinkgos.com/ gOS] is an operating system based on Ubuntu, uses a customized version of Enlightenment as its window manager, and is able to run on some older systems.
 +
----
 +
[[category:CategoryInstallation]]
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2010年5月19日 (三) 22:50的最新版本


How to install Ubuntu on low memory systems (Pentium III and earlier machines, with 32-192 MB RAM). /!\ This documentation should be reviewed for Ubuntu 9.10 and 8.04.<
> /!\ See proposed blueprint: https://blueprints.launchpad.net/ubuntu/+spec/low-memory-install

Requirements

Memory Requirements

Installing Ubuntu on any system requires at least 32 MB of memory: The text-based installer included with the alternate (install) CDs needs that much space to run reliably. Smaller memory configurations run into problems, and while not impossible, it can be very difficult to complete an installation with less than the minimum RAM requirement. Depending on the hardware requirements, you can expect a sparse Ubuntu system to boot to a graphical desktop on anywhere from 19 MB to 54 MB. That requirement will fluctuate with the system demands, and increase while the system is active. Swap space is crucial to low-memory machines, so don't be stingy when setting up your system.

Processor Specifications

There is no practical speed requirement, although a slower processor will take more time to finish installing. Some Pentium machines will take hours to complete, simply because the CPU takes longer to finish. As a general benchmark, a 75 MHz machine finishes a command-line installation of Ubuntu 7.04 in about four hours, and a 120 MHz machine finishes in perhaps three. 200 MHz and faster machines will see a further improvement. If you do decide to install Ubuntu on a legacy machine, be patient. There will come times when you think the machine has stopped or is hung, when in fact it's still moving, albeit at a very slow rate.

Disk Space Requirements

Disk space on an absolutely minimal installation can be reduced to as little as 600 MB. A fresh and clean command-line system of Ubuntu 8.04 generally takes only 450 MB, although there will be minor variations on account of hardware differences. If you have only 64 MB of memory, you will need to reserve more disk space for swap.

Other Hardware Considerations

These instructions assume you will have a working Internet connection and access to the universe and multiverse repositories. Configuring your hardware is not included on this page. If you do not have an internet connection, have a look at the wonderful package APTonCD to prepare your offline installation.

Install an Ubuntu command-line system

Prepare installation

If you have a fast computer available, you may want to test the install in a virtual machine before to run the real install. It is the right thing to do in case the other computer does not have internet access. Have a look at VirtualBox or VMware for running a VM: configure the VM with same hardware as the target machine. If the target PC has no internet access, you may want to prepare an AptOnCD iso before to continue.

Execute installation

The command-line version of Ubuntu is a sparse system, without any graphical elements. It's a text-only version of what lies underneath all the advanced graphical elements. It's also the starting point for a minimal installation. To install a base system, boot from any Alternate CD and choose "Install a command-line system." It is exactly the same command-line system on Kubuntu/Xubuntu/Ubuntu Alternate CDs. Follow the on-screen instructions to complete installation. Note: the Server Install CD provides a simple command line system, but it is not the same as "install a command-line system"

  • only on the "server install": linux-server kernel and modules
  • only on the "command-line install": linux-generic kernel, modules and restricted modules + acpi, acpid and language-pack-en

The recommended install for low memory system is the command-line system. Tips and tricks

  • see bug #202959 for Ubuntu 8.04 LTS on systems with low memory (64 MB)
  • after installation you may want to blacklist some restricted modules: (if you want to save some memory)<
    >

File /etc/default/linux-restricted-modules-common<
>

DISABLED_MODULES="ath_hal fc fglrx fwlanusb ltm nv"
  • if you do not use hibernation, comment or delete /etc/initramfs-tools/conf.d/resume then execute sudo update-initramfs -u
  • if you do not have a laptop, you may consider removing acpi and acpid by executing sudo aptitude remove acpi acpid
  • if you do not need extra languages you may consider removing language-pack-en and language-pack-en-base

Adding Repositories

Edit Sources

Once the server install is complete, you will probably want to edit your sources.list file. sudo nano /etc/apt/sources.list Uncomment all official repositories by removing # at the beginning of the line. Do not uncomment the narrative portions of that file; in other words, where you see a double hash mark (##) leave those lines alone. If you prepared a CD-ROM with additional packages (APTonCD):

  • execute sudo apt-cdrom in a console
  • put the CD-ROM in the disc tray

Update and Upgrade Your System

Now you should update your system. Return to the command line and type: sudo aptitude update It's probably also a good idea to upgrade your system at this point. Use this command to upgrade your system: sudo aptitude upgrade (or, for Gutsy: sudo aptitude safe-upgrade) Now you should be ready to install a window manager and some programs. Ideas of packages

  • localepurge: to purge unneeded translations
  • readahead: to accelerate boot sequence
  • some command line utilities: htop, hwinfo, lftp

Preparing for Graphical Environment

The absolute minimum for any graphical environment is X.org

Installing X.org

On Ubuntu Edgy (6.10), Feisty (7.04), and Gutsy (7.10), use the command: sudo aptitude install xorg On Ubuntu Dapper (6.06), use the command: sudo aptitude install x-window-system-core

Starting X.org

This package gives you the framework for an X session, complete with a variety of drivers and configuration files. Installing xorg (or x-window-system-core) also triggers the self-configuration sequence, so when it finishes, your hardware should be ready to use, barring any errors or incompatibilities. It's important to note that installing xorg or x-window-system-core really doesn't leave you with much. You can start X at this point with this command: startx but without a window manager and some software, you probably won't get much done.

Adding a Window Manager

A window manager controls the placement and appearance of windows within a graphical user interface. There are many lightweight window managers that will give you better access to your system through the X layer. Each one has its own way of managing the desktop, and its own way of configuring themes and menus.

Openbox

Openbox is one of the lightest, fastest window managers available, but can take some time to configure and set up. It has its origins in Blackbox, but newer versions are complete rewrites of the Blackbox code. Install Openbox with this command: sudo aptitude install openbox obconf openbox-themes These packages and their dependencies will allow you to build and configure an Openbox system, along with a choice of themes and some configuration options. Note: Edgy (Ubuntu 6.10) users should note a small discrepancy in obconf that might prevent it from running. You can correct that with these commands ...

cd /usr/lib
sudo ln libobparser.so.0.4.0 libobparser.so.1
sudo ln libobrender.so.0.4.0 libobrender.so.1
sudo ldconfig -X

Entering obconf in an X terminal window should now trigger the obconf dialogue.

IceWM

IceWM has a very strong following as a good, clean, fast window manager that resembles a conventional "desktop" in many ways. Among many of its perks are themes that resemble the Windows XP desktop theme -- which may be appealing to you. Install IceWM with this command: sudo aptitude install icewm iceconf icepref iceme icewm-themes When finished, you will have a number of configuration and menu options. You can start IceWM with the startx command.

Fluxbox

Fluxbox is a beautiful, highly configurable desktop system that is easy on system resources without compromising on graphical appeal. Fluxbox is the default window manager for a number of Linux distributions, probably most notable among them being Damn Small Linux. Install Fluxbox with this command: sudo aptitude install fluxbox fluxconf Once installed, you can start Fluxbox with the startx command. Remember, if you enjoy working with Fluxbox, you should consider Fluxbuntu as an option.

FVWM-Crystal

FVWM-Crystal is a complete set of configuration scripts which sit atop of FVWM. FVWM-Crystal has support for integrated access to music players, terminal emulators and system monitors. It boasts some of the finest eye candy available to low-end machines, and is a snap to install. For more information about building an FVWM-Crystal desktop, check out the FVWM-Crystal page.

XFCE

XFCE is heavier than any of the systems mentioned so far, but has some added functions as a result. You can try XFCE alone if you like, but if you're keen on an XFCE installation, look into Xubuntu as an option. Install XFCE alone, without Xubuntu, with this command: sudo aptitude install xfce4 It's worth noting that some Edgy users have difficulty starting XFCE from a minimal install. The normal start command for XFCE -- startxfce4 -- doesn't seem to be properly configured in Edgy. If you want the entire Xubuntu package, which includes a full suite of software and a lot of improvements, try this command: sudo aptitude install xubuntu-desktop That will download quite a large amount of packages; you may want to consider installing Xubuntu fresh, from the installation ISO. Note: Xubuntu will use more system resources and may not be optimal for a low memory system with limited disk space, but it is lighter than a standard Ubuntu system.

Adding Functionality

Now that the graphical window manager is set up, it's time to add some necessary and recommended packages. These will add additional functionality and make using the system easier. Additionally, adding a graphical package manager will provide an easy method to manage installed applications and packages.

Login managers

Login managers will assist in choosing a graphical environment and will not require the user to start x.org to get into the window manager. It's important to note that it's not necessary to use a login manager. If you're willing to log in at the command line and start X manually, you can save yourself a lot of system resources -- and the time it takes to load them. That can be a more appealing option on older machines.

GDM

GDM is the Ubuntu default for a login manager. However, GDM has a reputation of being a heavyweight, and on a system that needs as little bulk as possible, you might find it to be a burden. If you've got a decent system, install it using: sudo aptitude install gdm

KDM

KDM is another manager, but has the same heavy reputation as GDM. sudo aptitude install kdm

XDM

XDM is the login manager for straight X, and while less beautiful than GDM or KDM, it can perform in the same role without fuss. sudo aptitude install xdm

SLiM

SLiM is a simple login manager. It just works as expected. sudo aptitude install slim If the LANG environment variable is not correctly set, see bug #234474.

Browsers

Now that your system is up and running, it would be a good idea to add an internet browser to surf the web and get some use out of the machine!

Firefox

Web browsers come in many flavors, and the most prevalent -- Firefox -- can be laggy on low-memory or slow systems. Even the GNU version of Firefox, Iceweasel can be a bit heavy on older machines. If you've got at least 128 MB of memory, Firefox should work just fine. sudo aptitude install firefox

Dillo

While not nearly as full-featured as Firefox, Dillo has the advantages of a very small footprint and few resource requirements. sudo aptitude install dillo

Epiphany Webkit

Little bit of a middle ground. Webkit is very fast and highly supported as it is center to Safari and Chromium. Javascript is quick and Flash and other plugins are supported. (although Flash is probably way too much for a low-performance system) sudo aptitude install epiphany-webkit

iDesk

Many lightweight desktop systems use iDesk as a way of including customized, clickable icons directly on the desktop. iDesk is maintained in the Ubuntu repositories, and is installable from the command line with: sudo aptitude install idesk Consult the iDesk wiki for instructions on how to configure and use iDesk. For icon sets, you may wish to search the repositories, or download them from third-party customization sites, such as Gnome-Look.org and similar locations.

File managers

Lightweight systems have a number of options available for graphical file management. Thunar is the default file manager in Xubuntu and many XFCE-based systems; it is installable alone with this command: sudo aptitude install thunar XFE is an even lighter file manager, intended to mimic the Windows Explorer interface. It has very few dependencies and is very fast. sudo aptitude install xfe ROX-Filer is another file management program, which makes extensive use of drag-and-drop principles. It does appear to have a large number of dependencies however, which means installing it may entail more external packages than you wish. Install ROX-Filer with this command: sudo aptitude install rox-filer Nautilus is the default file manager for Ubuntu. It requires some more resources, but it has a lot of useful features. It can manage your desktop, show a wallpaper and desktop icons, which are automatically created for new devices (e.g. USB flash drives). Install Nautilus using this command: sudo apt-get install nautilus To use it together with a window manager, execute the following command or add it to your autostart script. For example, use $HOME/.icewm/startup for IceWM. nautilus --no-default-window & Some other popular file managers include

There are many others. Some are available through the repositories; others will require you to download and install them through another source. Experiment with different file managers to see which ones appeal to you.

Package manager

Add a graphical package manager to install, remove and upgrade software packages and to add repositories without using the command line. Synaptic package manager is the standard and can be installed with this command: sudo aptitude install synaptic Another good package manager, which uses ncurses, is Aptitude. It is light and fast, with lots of features: sudo aptitude You can use the package manager to add a word processor, such as Abiword, and other productivity software.

Install an entire lightweight system

Building on the ideas above, here are some complete graphical systems, installable through a single command line. Feel free to mix and match between these options. Remember: If you are using Dapper or earlier, replace "xorg" with "x-window-system-core"

  • IceWM as a window manager, plus GDM, Firefox, Abiword and the Synaptic package manager:

sudo aptitude install gdm xorg xterm icewm menu mozilla-firefox abiword synaptic

  • XFCE and Firefox, with Synaptic package manager and KDM as the login manager:

sudo aptitude install kdm xorg xfce4 firefox synaptic

  • Fluxbox with Dillo, and XDM as a login manager:

sudo aptitude install fluxbox xorg xdm dillo

  • Openbox with no login manager, XFE as the file manager and xfce4-terminal as an X terminal, as well as Openbox themes and the Tango icon set:

sudo aptitude install openbox obconf openbox-themes xfe xfce4-terminal tango-icon-theme-extras xorg Remember to check the repositories for more ideas on software and applications!

Low Configuration Option

For a minimalistic system that does not require as much configuration, you can install the alternate window managers after installing a full K/X/Ubuntu system, thus preinstalling much of the required software but keeping the speed. However, installing a full system does require more system resources.

External Links

  • Ubuntu-Desktop-Minimal, a project to create a slim install based on GNOME/GDM. Not necessarily the lightest install, but probably the most user-friendly. Also automatically installs the user's choice of browser, IM client, media player, e-mail client, and office suite.
  • ubuntu minimal desktop installation
  • FluxBuntu: An Ubuntu variant with Fluxbox as the default window manager. An excellent place to start for a Fluxbox-based system.
  • U-Lite: A project to build a stripped-down version of Ubuntu aimed at low-end machines.
  • Cubuntu is not a graphical system; Cubuntu is a full-featured command line system, suitable for computers that can't handle any of the above options -- such as early Pentium or perhaps even 486-grade machines with as little as 16 MB RAM. And don't be skeptical: Even without a graphic environment, a computer can perform a lot more tasks than you would expect. B)
  • Enlightenment is another window manager, but it is still in development and requires additional steps to install. However, it is very lightweight and functional.
  • gOS is an operating system based on Ubuntu, uses a customized version of Enlightenment as its window manager, and is able to run on some older systems.