Differences between revisions 49 and 132 (spanning 83 versions)
Revision 49 as of 2007-11-10 16:22:13
Size: 6612
Comment:
Revision 132 as of 2021-08-28 01:59:33
Size: 10865
Editor: ?LouPoppler
Comment:
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
||||<tablestyle="width: 100%; border: 0px hidden">||
||<style="border: 0px hidden">["FrontPage"] > [:QuickInstall:Quick install] > Installation||<style="text-align: right; border: 0px hidden"> ||<style="text-align: right; border: 0px hidden"> (!) [:/Discussion:Discussion]||
||<style="border: 0px hidden">~-''Traduction(s): [:DebianInstallGerman:Deutsch] [:DebianInstallDutch:Dutch] [:DebianInstallFrench:Français] [:DebianInstallPolish:Polski] [:DebianRussian/DebianInstall:Russian] [:DebianInstallSpanish:Spanish, español]''-~||
~-[[DebianWiki/EditorGuide#translation|Translation(s)]]: [[de/DebianInstall|Deutsch]] - [[el/DebianInstall|Ελληνικά]] - English - [[es/DebianInstall|Español]] - [[fr/DebianInstall|Français]] - [[it/DebianInstall|Italiano]] - [[ko/DebianInstall|Korean]] - [[DebianInstallDutch|Nederlands]] - [[DebianInstallPolish|Polski]] - [[pt_BR/DebianInstall|Brasileiro]] - [[ru/DebianInstall|Русский]] - [[si/DebianInstall|සිංහල-(Sinhala)]] - [[zh_CN/DebianInstall|简体中文]]-~
Line 6: Line 4:
'''Debian GNU/Linux is distributed freely over the Internet. If you simply want to install Debian, these are your options:'''

Debian has a reputation for being harder to install than other Linux distributions. Some would say that the reputation is ill deserved. Others point out that installation is something that typically only happens once in the lifetime of a Debian GNU/Linux system. Once the initial install has been done, further upgrades and maintenance happen on the fly. It's possible to upgrade major software components, or even transition between releases of Debian without rebooting the system. Other than kernel or hardware upgrades (or to test that your boot process still works), there are few if any routine maintenance reasons to take down a Debian system.

The Debian install is also particularly versatile. It's possible to install from floppy, CDROM, over a network, bootstrapped from within another Linux distribution (see, they're good for something ;-), over a LapLink (aka NullModem) cable, or from within a DOS or legacy MS Windows system. Identifying your preferred method is one of the first problems to deal with.

[[TableOfContents]]

= Get Debian =
== Buy a set of CDs ==
The easiest way to install Debian is with a set of CDs bought from a vendor. There is a list of CD vendors at http://www.debian.org/CD/vendors/

== Download and burn full CD/DVD set ==
The biggest advantage of downloading the .iso files and burning them yourself is not having to wait for CDs to arrive. The full CD set can be downloaded in .iso format from [http://www.debian.org/CD/http-ftp/ one of the Debian mirrors], or better yet, using the [http://www.debian.org/CD/jigdo-cd/ jigdo] tool to do a distributed download of the images.

''Note, although there are over 20 CDs (or 3 DVDs) in a full set, only the first CD is required to install Debian. The additional CDs are optional and include extra packages. See also ["DebianCDContents"] to find out what is on each CD.''

If you do want to download one or more of the full 650 MB iso images, please use the ["jigdo"] tool which spreads out the load among various Debian servers, lightening their load as well as giving you a faster download.

For the easiest install, buy, beg, borrow or burn a set of installation ["CDROMs"]. (don't steal them)

 * stable: http://www.debian.org/distrib/
 * testing: http://www.debian.org/devel/debian-installer/

== Download and burn the Network Install CD ==
For folks with broadband internet access, it's quite rare to download a full set of 650 MB iso images to install Debian. Instead, it's most common to just use a minimal network install CD instead. This network install iso (called "netinst") contains just enough packages to install a very basic Debian system. During the install procedure, it downloads the rest from the Internet as needed. A netinst iso image is around 180 MB. Also available is the so-called "businesscard" image that is around 40 MB. [http:DebianNetworkInstall read more: ]

== Net Boot via another Debian system ==

There is also the possibility to boot from another computer without needing to use CD/floppy media at all. All you need is a TFTPD and a DHCPD running on the install-from computer. This is called installing via "netboot". See the installation manual for more info on netboot installation.

 * NetworkBooting

= Installation =
The most useful thing you can do is to [http://www.debian.org/releases/stable/installmanual read the installation instructions]. For most of you, that's the [http://www.debian.org/releases/stable/i386/install Installing Debian GNU/Linux 3.0 For Intel x86], particularly Section 5, [http://www.debian.org/releases/stable/i386/ch-install-methods.en.html Methods for Installing Debian], which both describes how to install Debian and points to downloadable resources. See also [http://www.osnews.com/story.php?news_id=2016 The Very Verbose Debian 3.0 Installation Walkthrough].
Line 43: Line 6:
= After you Finish Installing =
 * InstallResources
 * InstallPackageHelp
 * ["XFreeConfig"]
{{{#!wiki debian
https://www.debian.org/releases/stable/amd64/ - Debian GNU/Linux installation guide<<BR>>
https://debian-handbook.info/browse/stable/sect.installation-steps.html - Debian Administrator's Handbook - Installing Debian, Step by Step
}}}

<<TableOfContents>>

----

== Getting Familiar With Debian Releases ==

Refer to [[DebianReleases|Debian Releases]] for more information about the Debian versions, but the following ideas may guide your decision.

=== Stable ===

The whole point of Debian from day one was "Stable", in reaction to what else was extant at the time: !SoftLandingSystems "''SLS''" and ''Slackware''. Debian chose stability, as administrators needed for servers. Choose Debian "[[DebianStable|Stable]]" if you want the computer to just work for a prolonged period of time, without the risk of new packages breaking your habits or workflow. In most cases, when people talk about Debian, they are referring to Debian "Stable". The network install images for stable (<<DebianCodename(stable)>>) can be found at https://www.debian.org/CD/netinst/

=== Testing ===

If it is important to you
to have recent packages of ''all'' the installed software continuously rolling through Debian, and you are fine with constantly downloading and installing updates that will stir up a bug at times, and you want to help squash bugs threatening to get into ''Stable'', you may choose Debian "[[DebianTesting|Testing]]". The network install images for testing (<<DebianCodename(testing)>>) can be found at https://www.debian.org/devel/debian-installer/.

=== Unstable ===

If it is important to you to have the absolute latest packages available in Debian, you should learn about Debian "[[DebianUnstable|Unstable]]". There are currently no network install images for Unstable. If you want to install Unstable, download the image for Stable and upgrade through Testing to Unstable by editing /etc/apt/sources.list.
----

== Choosing The Appropriate Installation Media ==

Be sure you have downloaded the installer for your [[https://www.debian.org/ports/|hardware architecture]]. (The [[https://www.debian.org/ports/i386/|i386]] architecture is for both Intel and AMD 32 bit CPUs. The [[https://www.debian.org/ports/amd64/|amd64]] architecture is for both Intel and AMD 64 bit CPUs.) The [[https://www.debian.org/ports/amd64/|amd64]] architecture is appropriate for most common hardware.

There are two main choices of installation media to meet your needs:

=== The Network Install Image ===

For those with reliable Internet access using a network install image often saves time, compared with downloading some of the 650 MB ISO images. This network install ISO (called "netinst") contains only a near-minimal Debian system. During installation as many packages as you request are downloaded from the Internet. A netinst ISO image is several hundred MB but the CD or DVD images are much larger and will almost surely contain packages which are downloaded but not installed by default.

If your wireless network card is not recognized by the installer you might consider performing the installation using a wired (Ethernet cable) connection or installing using a different network card. In any case it may be preferable to install with a wired connection for bandwidth reasons or simply to defer wireless setup until after the initial installation.

If you have no way of establishing a network connection while installing then you will need to install using at least a partial set of the installation CDs or DVDs (at least Disc 1).

=== The Full "CD/DVD" Image ===

These images are for those who need all available packages that are in the current "[[DebianStable|stable]]" release of Debian.

Although there are over 30 CDs (or 5 DVDs) in a full set, only the first CD or DVD is required to install Debian. The additional images are optional and include extra packages, that can be downloaded individually during the installation, or later.

== Non-Free Firmware ==

Please refer to the [[Firmware]] Page to determine if and how you may need to download firmware for a successful installation.

You can use one of the parallel installer image builds that also include all the non-free firmware packages directly. We have "netinst" CD images and also DVD installer images - see https://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/

== Creating a Bootable Debian USB Flashdrive ==

After downloading the .iso file, the next step is to create some form of bootable media that you can use to install Debian. The most common form of installation is from a USB flash drive. If you wish to use a CD or DVD, you can use that method as well.

To create a bootable USB drive from Microsoft Windows or Mac OS a usable choice is [[https://rufus.ie/|Rufus]]. Warning: Rufus has 2 writing modes "ISO" and "DD" mode, which you can select just before writing begins. For Debian installer images or Debian live images, you MUST select the "DD" writing mode -- ISO mode will alter the copy of the image on the target media (confirmed August 27, 2021, using rufus version 3.15).
Line 49: Line 66:
To create a bootable USB drive on Linux follow the installation
[[https://www.debian.org/releases/stable/amd64/ch04s03.en.html|instructions]].
[TL;DR `cp debian.iso /dev/sdX` Be cautious!]
Line 50: Line 70:
== Additional Resources ==
 * UserTips
 * [:InstallFAQ: FAQ about installation]
 * [:FAQs:General FAQ]
 * Introduction to the DebianPackageManagement
 * ["IRC"] Useful Debian Irc Channels
 * DebianMailingLists
 * usenet (aka newsgroups)
 * Cooking your ["KernelALaDebian"]
To burn the .iso to a CD on Microsoft Windows use [[https://www.imgburn.com/|IMGBurn]] or, if using Windows 10, the builtin "Burn to disc" option when right clicking an ISO file.
Line 60: Line 72:
== Booting From a USB Flash Drive ==
Line 61: Line 74:
If you plan to dual-booting with another OS, both OSes' need to be installed with the same boot mode. Most computers built after 2012 boot in UEFI mode, so this configuration dictates use of UEFI mode when installing and booting Debian. If the other system of your computer are installed in BIOS(legacy) mode, then you must install Debian in BIOS mode as well.
Line 62: Line 76:
== See Also ==
 * FullyAutomaticInstallation
 * ProgenyGraphicalInstaller
 * DebianInstaller, a major rewrite underway.
You should be able to check the current boot mode in the first few seconds of your computer starting up. Some common options include the "F2", "F8", "F12", and "Del" keys.
Line 67: Line 78:
## Auto-converted by kwiki2moinmoin v2005-10-07
The DebianInstaller Installation HOWTO is appendix A of the Sarge Installation Manual: http://d-i.alioth.debian.org/manual/en.i386/apa.html
Debian supports Secure Boot since the Debian buster release. If problems arise during the Debian installation or the first boot process (such as failing to boot the Linux Kernel at all and/or refusing to start Debian) turn off Secure Boot before attempting anything else.
Moreover, a number of devices (commonly laptop computers) present subtle bugs/limitations when operating Linux under SecureBoot, which are not present otherwise. Make sure to check your device manufacturer's support pages. <<BR>>
Example: [[https://support.lenovo.com/us/en/solutions/ht103400-linux-operating-system-limitations-when-secure-boot-is-enabled|Lenovo Linux SecureBoot limitations]]
Line 70: Line 82:
Once the proper boot mode is set, you are ready to start your installation. If the Debian Installer does not load, you may have to change your boot options and specify booting from USB.
Line 71: Line 84:
 * DebianInstaller
 * ["iso image"]
 * DebianLive, a Live Debian that you can try in a CD-rom or install in your hard disk or usb stick.
DavidCary install diary
== Installation ==
Line 76: Line 86:
DebianInstaller '''Prior to making any major change to your computer you should ALWAYS backup all of your work. While the Debian Installer has been extensively tested, it cannot prevent you from making mistakes nor prevent a power failure while you are installing your new operating system.
<<BR>>
Also, ALWAYS double check the disk you are formatting to install Debian on. Formatting another disk/partition results in unrecoverable data loss on that disk/partition.'''
Line 78: Line 90:
DebianInstallerBuild ###To use sudo and your regular password for system administration, leave the root password empty during installation.
Line 80: Line 92:
MiscInstallTips == Installation FAQ ==
Line 82: Line 94:
Is NetBoot relevant '''''Q:''''' I am at the Software Selection screen in the Debian Installer, where I can choose a selection of desktop environments.
<<BR>>What is '''Debian desktop environment''' (the first choice)?
<<BR>>
'''''A:''''' If you do NOT select any desktop environment and leave the default Debian desktop environment checkbox ticked, <<BR>> you will install the '''GNOME''' desktop environment on your machine. <<BR>>
If you choose "Debian desktop environment" AND a specific desktop, the specific choice overrides the '''GNOME''' default.
<<BR>>
<<BR>>
'''''Q:''''' Why does my Wi-Fi not work during the installation process ?
<<BR>>
'''''A:''''' If you are using a laptop computer, you might need proprietary firmware for your wireless network card to function, which Debian does not include by default.
<<BR>> Please refer to the "Non-Free Firmware" section above OR install Debian using a wired connection, if possible, and setup wireless after installing.
Line 84: Line 106:
== External Links == == Post-Install Tips ==
Line 86: Line 108:
 * [http://www.debian.org/releases/stable/installmanual]]
 * [http://mirror.home-dn.net/d-i/ Backported Debian Installer Images Archive] This directory provides Debian GNU/Linux Stable installer ISO images with a modification by [http://kmuto.jp/ Kenshi Muto] to support newer hardware, mainly SATA and Ethernet devices.
 *Sudo behaviour <<BR>><<BR>>
Line 89: Line 110:
[http://www.projektfarm.com/en/support/debian_setup/index.html The Perfect Setup - Debian] - This is a detailed description about the steps to be taken to setup a Debian based server that offers all services needed by ["ISPs"] and hosters.  If you set up a root password during install, you will find your user without sudo privileges. This is intended behaviour.<<BR>>
 To enable sudo after a fresh install of Debian:
~-{{{#!plain
$ su -l
# adduser USERNAME sudo
# exit
}}}-~
 Then, log out of the desktop environment and log in again.
 You can check the success of the above by entering
~-{{{#!plain
$ groups
}}}-~
Line 91: Line 123:
[http://kitenet.net/%7Ejoey/blog/entry/tour_of_the_Debian_4.0_CDs/ Tour of the Debian 4.0 CDs] - Advice on deciding which CD/DVD to download for installing Debian  *SSD performance <<BR>><<BR>>

 The default scheduler/IO settings for Debian are optimised for maximum stability and good throughput.
 More SSD performance may be achieved, by performing some steps to [[SSDOptimization|optimise your system for SSDs]].

== See also ==

 * [[DebianDesktopHowTo]]
 * [[DebianSoftware#kmuto|An updated installer]] that supports the newest hardware
 * [[DebianLive]] - Debian Live CD / DVD / USB
 * [[InstallFAQ]] - Including how to install unstable (sid).
 * [[Installation+Archive+USBStick|A Portable Installer and Package Archive]]
 * [[FAI]], Fully Automatic Installation
 * [[DebianInstaller/Loader|Install From Windows]]
 * [[FromWindowsToDebian|Switching from Windows to Debian]]
 * [[Debootstrap|How to install from within an existing system]]
 * [[PackageManagement]] - Managing your system
 * [[ForcedethNetInstall|Netinst with nVidia nForce onboard Ethernet]] (old?)
 * [[https://www.debian.org/releases/stable/installmanual|Debian GNU/Linux Installation Guide]] (all architectures, stable branch)
 * [[PXEBootInstall]] - The manual for setting up a netboot server.
 * https://www.debian.org/CD/vendors
 * [[https://cdimage.debian.org/cdimage/|All Debian images]]
Line 93: Line 147:
See also: ''Before Installing Debian GNU/Linux'' of the ''Debian GNU/Linux Installation Guide'' ([http://www.debian.org/releases/etch/i386/ch03.html i386], [http://www.debian.org/releases/etch/amd64/ch03.html amd64]...)
<!> [:CategoryRedundant:Redundant pages]: ["InstallationHelp"], ["InstallDebian"] or ["InstallationPage"]
ToDo | CategoryObsolete - this page needs a thorough rewrite

Translation(s): Deutsch - Ελληνικά - English - Español - Français - Italiano - Korean - Nederlands - Polski - Brasileiro - Русский - සිංහල-(Sinhala) - 简体中文


https://www.debian.org/releases/stable/amd64/ - Debian GNU/Linux installation guide
https://debian-handbook.info/browse/stable/sect.installation-steps.html - Debian Administrator's Handbook - Installing Debian, Step by Step


Getting Familiar With Debian Releases

Refer to Debian Releases for more information about the Debian versions, but the following ideas may guide your decision.

Stable

The whole point of Debian from day one was "Stable", in reaction to what else was extant at the time: SoftLandingSystems "SLS" and Slackware. Debian chose stability, as administrators needed for servers. Choose Debian "Stable" if you want the computer to just work for a prolonged period of time, without the risk of new packages breaking your habits or workflow. In most cases, when people talk about Debian, they are referring to Debian "Stable". The network install images for stable (bookworm) can be found at https://www.debian.org/CD/netinst/

Testing

If it is important to you to have recent packages of all the installed software continuously rolling through Debian, and you are fine with constantly downloading and installing updates that will stir up a bug at times, and you want to help squash bugs threatening to get into Stable, you may choose Debian "Testing". The network install images for testing (trixie) can be found at https://www.debian.org/devel/debian-installer/.

Unstable

If it is important to you to have the absolute latest packages available in Debian, you should learn about Debian "Unstable". There are currently no network install images for Unstable. If you want to install Unstable, download the image for Stable and upgrade through Testing to Unstable by editing /etc/apt/sources.list.


Choosing The Appropriate Installation Media

Be sure you have downloaded the installer for your hardware architecture. (The i386 architecture is for both Intel and AMD 32 bit CPUs. The amd64 architecture is for both Intel and AMD 64 bit CPUs.) The amd64 architecture is appropriate for most common hardware.

There are two main choices of installation media to meet your needs:

The Network Install Image

For those with reliable Internet access using a network install image often saves time, compared with downloading some of the 650 MB ISO images. This network install ISO (called "netinst") contains only a near-minimal Debian system. During installation as many packages as you request are downloaded from the Internet. A netinst ISO image is several hundred MB but the CD or DVD images are much larger and will almost surely contain packages which are downloaded but not installed by default.

If your wireless network card is not recognized by the installer you might consider performing the installation using a wired (Ethernet cable) connection or installing using a different network card. In any case it may be preferable to install with a wired connection for bandwidth reasons or simply to defer wireless setup until after the initial installation.

If you have no way of establishing a network connection while installing then you will need to install using at least a partial set of the installation CDs or DVDs (at least Disc 1).

The Full "CD/DVD" Image

These images are for those who need all available packages that are in the current "stable" release of Debian.

Although there are over 30 CDs (or 5 DVDs) in a full set, only the first CD or DVD is required to install Debian. The additional images are optional and include extra packages, that can be downloaded individually during the installation, or later.

Non-Free Firmware

Please refer to the Firmware Page to determine if and how you may need to download firmware for a successful installation.

You can use one of the parallel installer image builds that also include all the non-free firmware packages directly. We have "netinst" CD images and also DVD installer images - see https://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/

Creating a Bootable Debian USB Flashdrive

After downloading the .iso file, the next step is to create some form of bootable media that you can use to install Debian. The most common form of installation is from a USB flash drive. If you wish to use a CD or DVD, you can use that method as well.

To create a bootable USB drive from Microsoft Windows or Mac OS a usable choice is Rufus. Warning: Rufus has 2 writing modes "ISO" and "DD" mode, which you can select just before writing begins. For Debian installer images or Debian live images, you MUST select the "DD" writing mode -- ISO mode will alter the copy of the image on the target media (confirmed August 27, 2021, using rufus version 3.15).

To create a bootable USB drive on Linux follow the installation instructions. [TL;DR cp debian.iso /dev/sdX Be cautious!]

To burn the .iso to a CD on Microsoft Windows use IMGBurn or, if using Windows 10, the builtin "Burn to disc" option when right clicking an ISO file.

Booting From a USB Flash Drive

If you plan to dual-booting with another OS, both OSes' need to be installed with the same boot mode. Most computers built after 2012 boot in UEFI mode, so this configuration dictates use of UEFI mode when installing and booting Debian. If the other system of your computer are installed in BIOS(legacy) mode, then you must install Debian in BIOS mode as well.

You should be able to check the current boot mode in the first few seconds of your computer starting up. Some common options include the "F2", "F8", "F12", and "Del" keys.

Debian supports Secure Boot since the Debian buster release. If problems arise during the Debian installation or the first boot process (such as failing to boot the Linux Kernel at all and/or refusing to start Debian) turn off Secure Boot before attempting anything else. Moreover, a number of devices (commonly laptop computers) present subtle bugs/limitations when operating Linux under SecureBoot, which are not present otherwise. Make sure to check your device manufacturer's support pages.
Example: Lenovo Linux SecureBoot limitations

Once the proper boot mode is set, you are ready to start your installation. If the Debian Installer does not load, you may have to change your boot options and specify booting from USB.

Installation

Prior to making any major change to your computer you should ALWAYS backup all of your work. While the Debian Installer has been extensively tested, it cannot prevent you from making mistakes nor prevent a power failure while you are installing your new operating system.
Also, ALWAYS double check the disk you are formatting to install Debian on. Formatting another disk/partition results in unrecoverable data loss on that disk/partition.

Installation FAQ

Q: I am at the Software Selection screen in the Debian Installer, where I can choose a selection of desktop environments.
What is Debian desktop environment (the first choice)?
A: If you do NOT select any desktop environment and leave the default Debian desktop environment checkbox ticked,
you will install the GNOME desktop environment on your machine.
If you choose "Debian desktop environment" AND a specific desktop, the specific choice overrides the GNOME default.

Q: Why does my Wi-Fi not work during the installation process ?
A: If you are using a laptop computer, you might need proprietary firmware for your wireless network card to function, which Debian does not include by default.
Please refer to the "Non-Free Firmware" section above OR install Debian using a wired connection, if possible, and setup wireless after installing.

Post-Install Tips

  • Sudo behaviour

    If you set up a root password during install, you will find your user without sudo privileges. This is intended behaviour.
    To enable sudo after a fresh install of Debian:

$ su -l
# adduser USERNAME sudo
# exit

  • Then, log out of the desktop environment and log in again. You can check the success of the above by entering

$ groups

  • SSD performance

    The default scheduler/IO settings for Debian are optimised for maximum stability and good throughput.

    More SSD performance may be achieved, by performing some steps to optimise your system for SSDs.

See also


ToDo | CategoryObsolete - this page needs a thorough rewrite