Product SiteDocumentation Site

فصل 4. نصب

4.1. روش‌های نصب
4.1.1. نصب با استفاده از CD-ROM/DVD-ROM
4.1.2. راه‌اندازی از USB
4.1.3. نصب با راه‌اندازی شبکه
4.1.4. سایر شیوه‌های نصب
4.2. نصب قدم به قدم
4.2.1. شروع و راه‌اندازی برنامه نصب
4.2.2. انتخاب زبان
4.2.3. انتخاب کشور
4.2.4. انتخاب ساختار صفحه‌کلید
4.2.5. شناسایی سخت‌افزار
4.2.6. بارگیری کامپوننت‌ها
4.2.7. شناسایی سخت‌افزار شبکه
4.2.8. پیکربندی شبکه
4.2.9. گذرواژه مدیر
4.2.10. ایجاد اولین کاربر
4.2.11. پیکربندی ساعت
4.2.12. شناسایی دیسک‌ها و سایر دستگاه‌ها
4.2.13. ابزار پارتیشن‌بندی
4.2.14. نصب سیستم پایه
4.2.15. پیکربندی مدیر بسته (apt)
4.2.16. مسابقه محبوبیت بسته‌های دبیان
4.2.17. انتخاب بسته‌ها برای نصب
4.2.18. نصب راه‌انداز GRUB
4.2.19. پایان فرآیند نصب و راه‌اندازی مجدد
4.3. پس از اولین راه‌اندازی سیستم
4.3.1. نصب سایر نرم‌افزارها
4.3.2. بروزرسانی سیستم
برای استفاده از دبیان،‌باید آن را روی یک رایانه نصب کنید؛ این وظیفه توسط برنامه debian-installer بر عهده گرفته می‌شود. یک نصب صحیح شامل عملیات مختلفی است. این فصل به مرور هر کدام از آن‌‌ها به ترتبیب زمانی می‌پردازد.
The installer for Bullseye is based on debian-installer. Its modular design enables it to work in various scenarios and allows it to evolve and adapt to changes. Despite the limitations implied by the need to support a large number of architectures, this installer is very accessible to beginners, since it assists users at each stage of the process. Automatic hardware detection, guided partitioning, and graphical user interfaces have solved most of the problems that novices used to face in the early years of Debian.
Installation requires 256 MB of RAM (Random Access Memory) and at least 2 GB of hard drive space. All Falcot computers meet these criteria. Note, however, that these figures apply to the installation of a very limited system without a graphical desktop. A minimum of 2 GB of RAM and 10 GB of hard drive space are really recommended for a basic office desktop workstation.

4.1. روش‌های نصب

A Debian system can be installed from several types of media, as long as the BIOS/UEFI (see یادداشت UEFI, جایگزینی پیشرفته برای BIOS) of the machine allows it. You can for instance boot with a CD-ROM, a USB key, or even through a network.

4.1.1. نصب با استفاده از CD-ROM/DVD-ROM

پرکاربردترین حالت نصب استفاده از CD-ROM است (یا DVD-ROM که به همان شکل عمل می‌کند): رایانه از طریق این رسانه راه‌اندازی می‌گردد و برنامه نصب‌کننده کنترل را به دست می‌گیرد.
Various CD-ROM families have different purposes: netinst (network installation) contains the installer and the base Debian system; all other programs are then downloaded. Its “image”, that is the ISO-9660 filesystem that contains the exact contents of the disk, only takes up about 150 to 280 MB (depending on the architecture). On the other hand, the complete set offers all packages and allows for installation on a computer that has no Internet access; it requires around 19 DVD-ROMs (or 4 Blu-ray disks). There is no more official CD-ROMs set as they were really huge, rarely used and now most of the computers use DVD-ROMs as well as CD-ROMs. But the programs are divided among the disks according to their popularity and importance; the first disk will be sufficient for most installations, since it contains the most used software.
یک نوع دیگر از image نیز وجود دارد که با نام mini.iso شناخته می‌شود که محصولی جانبی از برنامه نصب‌کننده به حساب می‌آید. این فایل تنها شامل حداقل تنظیمات مورد نیاز جهت پیکربندی شبکه است تا تمام فرآیند نصب از طریق آن صورت گیرد (که شامل دانلود بخشی از خود نصب‌کننده نیز می‌شود، به همین دلیل است که این فایل‌ها با انتشار نسخه جدیدی از نصب‌کننده‌ها خراب می‌شوند). این فایل‌ها می‌توانند در دایرکتوری dists/release/main/installer-arch/current/images/netboot/ از سرورهای اصلی دبیان پیدا شوند.
To acquire Debian CD-ROM images, you may, of course, download them and burn them to disk. You may also purchase them, and, thus, provide the project with a little financial support. Check the website to see the list of DVD-ROM image vendors and download sites.

4.1.2. راه‌اندازی از USB

از آنجایی که اغلب رایانه‌ها امکان راه‌اندازی از طریق USB را دارند، شما نیز می‌توانید برای نصب دبیان از آن استفاده کنید (که چیزی بیشتر از یک دیسک با حافظه فلش نیست).
راهنمای نصب توضیح می‌دهد که چطور برنامه debian-installer را روی یک حافظه USB نصب کنید. فرآیند بسیار ساده‌ای است چراکه Imageهای موجود برای معماری‌های i386 و amd64 می‌توانند از طریق CD-ROM یا USB راه‌اندازی گردند.
You must first identify the device name of the USB key (ex: /dev/sdb); the simplest means to do this is to check the messages issued by the kernel using the dmesg command. Then you must copy the previously downloaded ISO image (for example, debian-11.0.0-amd64-netinst.iso) with the command cat debian-11.0.0-amd64-netinst.iso >/dev/sdb; sync. This command requires administrator rights, since it accesses the USB key directly and blindly erases its content.
A more detailed explanation is available in the installation manual. Among other things, it describes an alternative method of preparing a USB key that is more complex, but that allows you to customize the installer's default options (those set in the kernel command line).

4.1.3. نصب با راه‌اندازی شبکه

بسیاری از بایوس‌ها امکان راه‌اندازی از طریق شبکه با دانلود کرنل و فایل‌سیستم مورد نیاز را فراهم می‌سازند. این روش (که با نام‌های گوناگونی مانند PXE یا TFTP شناخته می‌شود) برای رایانه‌ای که CD-ROM ندارد بسیاری کاربردی است یا اگر بایوس نتواند از چنین رسانه‌ای استفاده کند.
این شیوه نصب در دو مرحله کار می‌کند. اول، هنگام راه‌اندازی رایانه، بایوس (یا کارت شبکه) یک درخواست BOOTP/DHCP برای دریافت IP صادر می‌کند. زمانی که سرور DHCP یا BOOTP پاسخی ارسال کند، شامل فایلی است که تنظیمات شبکه را در خود دارد. پس از پیکربندی شبکه، رایانه یک درخواست TFTP (که مخفف Trivial File Transfer Protocol است) صادر می‌کند برای فایلی که نامش از قبل مشخص شده است. هنگامی که این فایل دریافت شود، به مانند یک راه‌انداز عمل می‌کند. در این مرحله است که برنامه نصب دبیان اجرا می‌شود، درست مانند اینکه از هارددیسک، سی‌دی-رام یا حافظه فلش اجرا شده باشد.
تمام جزئیات این روش در راهنمای نصب موجود می‌باشد.

4.1.4. سایر شیوه‌های نصب

When we have to deploy customized installations for a large number of computers, we generally choose an automated rather than a manual installation method. Depending on the situation and the complexity of the installations to be made, we can use FAI (Fully Automatic Installer, described in قسمت 12.3.1, “نصب‌کننده تمام خودکار (FAI)” ), or even a customized installation DVD with preseeding (see قسمت 12.3.2, “گردآوری debian-installer” ).
It should also be noted that the installer can load and run an SSH server and thus provides the ability to install Debian remotely via an SSH session. The release notes also describe how to run the installer from an existing system using grub to replace it completely.