Yuav Ua Li Cas Txhim Kho Arch Linux (nrog Duab)

Cov txheej txheem:

Yuav Ua Li Cas Txhim Kho Arch Linux (nrog Duab)
Yuav Ua Li Cas Txhim Kho Arch Linux (nrog Duab)

Video: Yuav Ua Li Cas Txhim Kho Arch Linux (nrog Duab)

Video: Yuav Ua Li Cas Txhim Kho Arch Linux (nrog Duab)
Video: yuav coj li cas kom luag nyiam 2024, Kaum ib hlis
Anonim

Qhov wikiHow qhia koj yuav ua li cas rau nruab Arch Linux (qib siab ntawm Linux) los hloov koj li kev ua haujlwm uas twb muaj lawm. Koj tuaj yeem nruab nws ntawm lub khoos phis tawj Windows lossis Mac.

Kauj ruam

Ntu 1 ntawm 3: Khiav lub Installer

Nruab Arch Linux Kauj Ruam 1
Nruab Arch Linux Kauj Ruam 1

Kauj Ruam 1. Rov qab kho lub computer mus rau lwm lub hard drive

Cov txheej txheem ua haujlwm tam sim no ntawm koj lub khoos phis tawj yuav raug tshem tawm yog li koj yuav xav rov qab cov ntaub ntawv uas koj xav khaws tseg ua ntej txuas ntxiv.

Nruab Arch Linux Kauj Ruam 2
Nruab Arch Linux Kauj Ruam 2

Kauj Ruam 2. Rub daim duab teeb tsa Arch

Koj tuaj yeem rub tau Arch Linux hauv ISO hom, uas tuaj yeem raug hlawv mus rau ib daim DVD disc dawb kom khiav ntawm koj lub computer. Yuav ua li cas rub daim duab no:

  • Nco ntsoov tias koj tau teeb tsa uTorrent lossis BitTorrent.
  • Mus ntsib https://www.archlinux.org/download/ hauv lub vev xaib.
  • Nyem qhov txuas Torrent nyob hauv qab "BitTorrent" nqe lus.
  • Qhib cov ntaub ntawv torrent koj nyuam qhuav rub tawm siv uTorrent lossis BitTorrent.
  • Tos rau Arch Linux torrent cov ntaub ntawv kom tiav rub tawm.
Nruab Arch Linux Kauj Ruam 3
Nruab Arch Linux Kauj Ruam 3

Kauj Ruam 3. Hlawv cov duab uas koj rub tawm rau daim DVD DVD dawb paug

Thaum Arch Linux ISO cov ntaub ntawv tau ua tiav rub tawm siv torrent tus thov kev pab, hlawv cov ntawv rau hauv daim DVD dawb ntawm DVD tsav ntawm koj lub computer. Thaum ua tiav qhov hlawv, tawm DVD disc hauv lub computer.

Yog tias lub khoos phis tawj tsis muaj DVD tsav, yuav ib lub DVD tsav sab nraud thiab txuas nws mus rau lub khoos phis tawj ntawm USB cable

Nruab Arch Linux Kauj Ruam 4
Nruab Arch Linux Kauj Ruam 4

Kauj Ruam 4. Rov pib kho lub computer

Nyem Pib

Windowsstart
Windowsstart

nyem Fais fab

Windowspower
Windowspower

ces nyem Rov pib dua hauv cov ntawv qhia zaub mov.

  • Ntawm lub computer Mac, nyem cov ntawv qhia zaub mov Kua

    MacApp1
    MacApp1

    xaiv Qhov System nyiam…, nyem Pib, xaiv Tsav Sab Nraud, tom qab ntawd rov pib kho lub computer los ntawm txhaj Pib dua … hauv Apple menu, thiab nyem rau Rov pib dua thaum thov.

Nruab Arch Linux Kauj Ruam 5
Nruab Arch Linux Kauj Ruam 5

Kauj Ruam 5. Nias lub pob ua haujlwm kom txav lub khau raj txiav txim

Feem ntau ntawm cov khoos phis tawj tshiab, tus yuam sij siv yog F12, txawm hais tias tus yuam sij sib xws yuav tshwm ntawm qhov screen thaum lub computer khau raj. Yog tias tsis muaj tus yuam sij los hloov qhov kev txiav txim khau raj, nyem lub pob kom nkag mus rau BIOS (feem ntau yog Del, F1, F2, lossis F10 tus yuam sij).

Hla qhov kauj ruam no ntawm Mac

Nruab Arch Linux Kauj Ruam 6
Nruab Arch Linux Kauj Ruam 6

Kauj Ruam 6. Xaiv lub installation tsav ua lub khau raj thawj

Teeb tus tsav (piv txwv li "DVD Drive" lossis "Disk Drive") uas muaj Arch Linux DVD ua thawj tsav. Ua qhov no los ntawm kev xaiv tsav thiab nias lub + khawm kom txog thaum nws nyob rau sab saum toj ntawm cov ntawv qhia zaub mov.

  • Hla qhov kauj ruam no ntawm Mac.
  • Ntawm qee lub PCs, koj yuav tsum tau mus rau "Advanced" tab lossis xaiv ntu "Boot Options".
Nruab Arch Linux Kauj Ruam 7
Nruab Arch Linux Kauj Ruam 7

Kauj Ruam 7. Txuag thiab tawm ntawm qhov "Boot Options" screen

Nws nyob hauv qab lossis hauv kaum sab xis-sab xis ntawm qhov screen. Nias lub pob no kom txuag kev hloov pauv thiab tawm ntawm qhov screen. Tom qab ntawd, lub computer yuav rov pib dua.

Hla qhov kauj ruam no ntawm Mac

Nruab Arch Linux Kauj Ruam 8
Nruab Arch Linux Kauj Ruam 8

Kauj Ruam 8. Xaiv Arch Linux Boot, ces nias Nkag mus.

Arch Linux installer yuav khiav, thiab koj tuaj yeem txuas ntxiv cov txheej txheem los ntawm kev faib koj lub hard drive.

Ntu 2 ntawm 3: Tsim Kev faib tawm

Nruab Arch Linux Kauj Ruam 9
Nruab Arch Linux Kauj Ruam 9

Kauj Ruam 1. Txheeb xyuas cov tsav uas twb muaj lawm hauv computer

Koj yuav muaj tsawg kawg yog ob lub khoos phis tawj: lub khoos phis tawj hard disk thiab Arch Linux installation disc. Yuav tshuaj xyuas cov tsav li cas:

  • Ntaus fdisk -l, ces nias Enter.
  • Nrhiav lub npe ntawm hard disk nrog lub peev xwm loj tshaj plaws hauv cov txiaj ntsig tshuaj ntsuam. Lub npe tuaj yeem yog " /dev /sda" uas yog rau sab xis ntawm "Disk" nqe lus.
Nruab Arch Linux Kauj Ruam 10
Nruab Arch Linux Kauj Ruam 10

Kauj ruam 2. Mus rau nplooj ntawv muab faib

Ntaus cfdisk [tsav lub npe], thiab hloov nws [lub npe tsav] nrog lub npe ntawm lub khoos phis tawj hard disk. Tom ntej no, nyem Enter, xaiv DOS, tom qab ntawv nyem Enter dua.

Piv txwv li: yog tias lub npe hu ua " /dev /sda", ntaus cfdisk /dev /sda hauv lub davhlau ya nyob twg

Nruab Arch Linux Kauj Ruam 11
Nruab Arch Linux Kauj Ruam 11

Kauj Ruam 3. Luag cov ntsiab lus ntawm lub hard disk

Xaiv qhov muab faib nyob nruab nrab ntawm qhov screen, xaiv Rho tawm hauv qab ntawm lub vijtsam, nyem Enter, thiab rov ua cov txheej txheem no rau lwm qhov kev faib tawm hauv nruab nrab ntawm lub vijtsam. Thaum kawg yuav muaj kab hu ua Pri/Log Free Space.

Nruab Arch Linux Kauj Ruam 12
Nruab Arch Linux Kauj Ruam 12

Kauj Ruam 4. Tsim kom muaj "sib pauv" muab faib

Qhov muab faib no yog siv los ua lub cim xeeb thaub qab ntawm lub system thaum lub khoos phis tawj siv RAM tag nrho. Yuav ua li cas nws:

  • xaiv Tshiab thiab nias Enter qhov tseem ceeb.
  • xaiv Thawj thiab nias Enter qhov tseem ceeb.
  • Ntaus tus lej megabytes (piv txwv li 1024 rau 1 gigabyte), tom qab ntawv nyem Enter. Raws li txoj cai dav dav, tsim kev sib pauv uas yog 2 lossis 3 zaug ntau npaum li cas ntawm lub computer RAM. Piv txwv, yog tias koj lub khoos phis tawj RAM yog 4GB, tsim qhov sib pauv ntawm 8,192 lossis 12,288 megabytes).
  • xaiv Xaus, tom qab ntawv nyem Enter.
Nruab Arch Linux Kauj Ruam 13
Nruab Arch Linux Kauj Ruam 13

Kauj Ruam 5. Tsim kom muaj lub hard disk muab faib

Qhov muab faib no tau siv los ua qhov chaw khaws cia Arch Linux operating system, cov ntaub ntawv, thiab lwm yam ntaub ntawv. Yuav tsim qhov muab faib li cas:

  • Nco ntsoov tias koj tau xaiv qhov muab faib Pri/Log Free Space.
  • xaiv Tshiab thiab nias Enter qhov tseem ceeb.
  • xaiv Thawj thiab nias Enter qhov tseem ceeb.
  • Nco ntsoov tus lej nyob ib sab ntawm "Qhov Loj (hauv MB)" nqe lus tau sau kom raug.
  • Nias qhov Enter.
  • Xaiv thawj qhov muab faib dua.
  • xaiv Bootable, ces nias Enter.
Nruab Arch Linux Kauj Ruam 14
Nruab Arch Linux Kauj Ruam 14

Kauj Ruam 6. Sau daim ntawv muab faib "sib pauv"

Qhov no yog txhawm rau muab faib ua qhov system RAM:

  • Xaiv qhov "sib pauv" muab faib.
  • xaiv Hom thiab nias Enter qhov tseem ceeb.
  • Ntaus 82, tom qab ntawv nyem Enter.
  • Nrog rau "sib pauv" muab faib tseem xaiv, xaiv Sau thiab nias Enter qhov tseem ceeb.
  • Ntaus yog thiab nyem Enter.
Nruab Arch Linux Kauj Ruam 15
Nruab Arch Linux Kauj Ruam 15

Kauj Ruam 7. Sau lub npe muab faib

Hauv kab ntawv "Npe" nyob rau sab laug ntawm lub vijtsam, muaj lub npe (piv txwv li "sda1") nyob ib sab ntawm "sib pauv" muab faib, thiab lwm lub npe zoo sib xws (piv txwv li "sda2") ib sab ntawm thawj qhov muab faib. Ob lub npe no xav tau los teeb tsa qhov muab faib.

Nruab Arch Linux Kauj Ruam 16
Nruab Arch Linux Kauj Ruam 16

Kauj Ruam 8. Tawm "cfdisk" utility

Ua qhov no los ntawm kev xaiv Tawm thiab nias Enter.

Nruab Arch Linux Kauj Ruam 17
Nruab Arch Linux Kauj Ruam 17

Kauj Ruam 9. Format lub ntsiab muab faib

Qhov no yog qhov tsim nyog kom cov muab faib tuaj yeem siv tau los ntawm kev ua haujlwm. Txhawm rau ua qhov no, ntaus mkfs.ext4 /dev /[lub npe thawj qhov muab faib] thiab nias Enter.

Yog tias lub npe muab faib yog "sda2", tom qab ntawd koj yuav tsum ntaus mkfs.ext4 /dev /sda2 ntawm no

Nruab Arch Linux Kauj Ruam 18
Nruab Arch Linux Kauj Ruam 18

Kauj ruam 10. Thauj khoom (nce) cov ntawv faib ua pawg

Ntaus mount /dev /[muab faib lub npe] /mnt thiab nias Enter. Ua li ntawd yuav ua rau muab faib ua qhov siv tau.

Nruab Arch Linux Kauj Ruam 19
Nruab Arch Linux Kauj Ruam 19

Kauj Ruam 11. Ntxiv cov ntaub ntawv sib pauv mus rau ntu "sib pauv"

Ntaus mkswap /dev /[faib lub npe] thiab nias Enter, tom qab ntawd ntaus swapon /dev /sda1 thiab nias Enter dua. Thaum koj tau ua tiav cov theem no, txuas ntxiv nrog cov txheej txheem rau nruab Arch Linux.

Piv txwv li, yog tias "sib pauv" muab faib lub npe "sda1", koj yuav ntaus mkswap /dev /sda1, ces swapon /dev /sda1 ntawm no

Ntu 3 ntawm 3: Txhim Kho Linux

Nruab Arch Linux Kauj Ruam 20
Nruab Arch Linux Kauj Ruam 20

Kauj Ruam 1. Teeb Wi-Fi txuas

Hla cov kauj ruam no yog tias koj siv Ethernet txuas koj lub khoos phis tawj rau koj lub router. Siv Ethernet zoo dua li Wi-nkaus.

  • Ntaus tus ip txuas, tom qab ntawd nyem Enter qhov tseem ceeb los qhia lub network adapter interface lub npe.
  • Ntaus pacman -S iw wpa_supplicant, tom qab ntawd nias Enter qhov tseem ceeb txhawm rau nruab qhov program xav tau.
  • Ntaus pacman -S hauv kev sib tham, tom qab ntawd nyem Enter kom nkag mus rau Wi -nkaus cov ntawv qhia zaub mov.
  • Ntaus pacman -S wpa_actiond, tom qab ntawv nyem Enter txhawm rau nruab ib qhov program uas yuav tso cai rau koj lub khoos phis tawj kom txuas tau rau lub network paub.
  • Hom systemctl pab kom [email protected] kom pab tau qhov kev pabcuam sib txuas tsis siv neeg ntawm lub wireless adapter.
  • Tom qab qhov no, txhua zaus lub khoos phis tawj rov pib dua, ntaus wifi-menuinterfacename kom nkag tau cov ntawv qhia zaub mov wireless rau lub adapter. Tom qab lub khoos phis tawj txuas nrog lub network thawj zaug, nws yuav txuas koj rau lub khau raj tom ntej. Tsis txhob nkag mus tam sim no vim tias koj yuav tsis tuaj yeem nkag mus rau lub network.
Nruab Arch Linux Kauj Ruam 21
Nruab Arch Linux Kauj Ruam 21

Kauj Ruam 2. Nruab lub hauv paus txheej txheem

Ntaus pacstrap /mnt base base-devel, tom qab ntawd nias Enter. Lub kaw lus yuav pib nruab rau hauv lub khoos phis tawj.

Cov txheej txheem no feem ntau siv sijhawm 15 txog 30 feeb nyob ntawm kev siv internet nrawm

Nruab Arch Linux Kauj Ruam 22
Nruab Arch Linux Kauj Ruam 22

Kauj Ruam 3. Qhib "chroot" nkag

Ntaus arch-chroot /mnt thiab nias Enter. Qhov no cia koj hloov pauv ntawm cov hauv paus npe, suav nrog tus password.

Nruab Arch Linux Kauj Ruam 23
Nruab Arch Linux Kauj Ruam 23

Kauj Ruam 4. Teeb tus password

Tus password no yog siv los nkag rau hauv tus lej hauv paus. Yuav ua li cas nws:

  • Ntaus passwd, ces nias Enter.
  • Ntaus tus password, tom qab ntawv nyem Enter.
  • Rov nkag tus password, tom qab ntawv nyem Enter.
Nruab Arch Linux Kauj Ruam 24
Nruab Arch Linux Kauj Ruam 24

Kauj Ruam 5. Teem cov lus

Yuav ua li cas nws:

  • Ntaus nano /etc/locale.gen thiab nias Enter.
  • Qhib qhov screen thiab xaiv cov lus uas xav tau.
  • Xaiv tsab ntawv ncaj qha ua ntej ntawm lub cim "#" tom qab hom lus xaiv, tom qab ntawd nias lub pob Del.
  • Tshem lub cim "#" rau lwm qhov kev hloov pauv ntawm koj cov lus xaiv (piv txwv li txhua lub khoos phis tawj uas tsis yog "en_US").
  • Nias Ctrl+O (lossis Command+O rau Mac), tom qab ntawv nyem Enter.
  • Tawm los ntawm nias Ctrl+X (Windows) lossis Command+X (Mac).
  • Ntaus hom-gen thiab nias Enter qhov tseem ceeb kom ua tiav cov lus.
Nruab Arch Linux Kauj Ruam 25
Nruab Arch Linux Kauj Ruam 25

Kauj Ruam 6. Txheeb xyuas thaj tsam sijhawm

Yuav ua li cas nws:

  • Ntaus cd usr/share/zoneinfo, tom qab ntawv nyem Enter.
  • Ntaus ls, ces nias Enter.
  • Nrhiav koj lub tebchaws lossis cheeb tsam, tom qab ntawd ntaus cd usr/share/zoneinfo/country (piv txwv li Indonesia) thiab nias Enter.
  • Ntaus ls dua thiab nias Enter.
  • Nrhiav lub sijhawm sijhawm uas koj xav xaiv, tom qab ntawv ln -s/usr/share/zoneinfo/country/timezone/etc/localtime thiab nias Enter.
Nruab Arch Linux Kauj Ruam 26
Nruab Arch Linux Kauj Ruam 26

Kauj Ruam 7. Teem lub npe hostname rau koj lub computer

Ua qhov no los ntawm kev ntaus lub npe echo> /etc /hostname, tom qab ntawd nyem Enter.

Piv txwv, txhawm rau sau koj lub khoos phis tawj "Tsev", koj yuav ntaus echo Home> /etc /hostname ntawm no

Nruab Arch Linux Kauj Ruam 27
Nruab Arch Linux Kauj Ruam 27

Kauj Ruam 8. Rub GRUB bootloader

Nov yog qhov haujlwm siv rau nruab Arch Linux. Yuav ua li cas nws:

  • Ntaus pacman -S grub -bios, tom qab ntawv nyem Enter.
  • Ntaus y thiab nias Enter.
  • Tos GRUB kom tiav rub tawm.
Nruab Arch Linux Kauj Ruam 28
Nruab Arch Linux Kauj Ruam 28

Kauj Ruam 9. Nruab GRUB

Thaum ua qhov no, xyuas kom tseeb tias koj muab nws tso rau ntawm lub hard drive tiag tiag (piv txwv li "sda"), tsis nyob hauv qhov muab faib (piv txwv li "sda1"). Yuav ua li cas rau nruab GRUB:

Ntaus grub-install /dev /drive lub npe (piv txwv li grub-install /dev /sda thiab nias Enter

Nruab Arch Linux Kauj Ruam 29
Nruab Arch Linux Kauj Ruam 29

Kauj Ruam 10. Tsim cov ntawv "init"

Cov ntaub ntawv no yog siv los khaws cov ntaub ntawv hais txog khoos phis tawj khoos phis tawj, uas ua rau Linux siv tau. Txhawm rau ua qhov no, ntaus mkinitcpio -p linux thiab nias Enter.

Nruab Arch Linux Kauj Ruam 30
Nruab Arch Linux Kauj Ruam 30

Kauj Ruam 11. Tsim cov ntaub ntawv teeb tsa rau GRUB

Ua qhov no los ntawm kev ntaus grub -mkconfig -o /boot/grub/grub.cfg thiab nias Enter.

Nruab Arch Linux Kauj Ruam 31
Nruab Arch Linux Kauj Ruam 31

Kauj Ruam 12. Tsim cov ntawv "fstab"

Ntaus genfstab /mnt >> /mnt /etc /fstab, tom qab ntawv nyem Enter. Los ntawm kev ua li ntawd, Arch Linux tuaj yeem lees paub cov ntaub ntawv faib tawm system.

Nruab Arch Linux Kauj Ruam 32
Nruab Arch Linux Kauj Ruam 32

Kauj Ruam 13. Rov pib kho lub computer

Txhawm rau ua qhov no, ntaus umount /mnt thiab nias Enter, tom qab ntawv reboot thiab nias Enter dua. Tshem lub installation disc los ntawm lub khoos phis tawj thiab tos kom lub kaw lus ua tiav rov pib dua.

Nruab Arch Linux Kauj Ruam 33
Nruab Arch Linux Kauj Ruam 33

Kauj Ruam 14. Nkag mus rau hauv koj tus as khauj

Ntaus lub hauv paus rau hauv "nkag mus" teb, tom qab ntawd nyem Enter. Nkag mus rau tus password thiab nyem Enter. Tam sim no koj tau ua tiav teeb tsa thiab khiav Arch Linux ntawm koj lub computer.

Yog tias koj xav teeb tsa tus neeg siv duab nraaj lossis GUI (cov duab siv sib tham) kom koj tuaj yeem siv nas, sim teeb tsa GNOME ntawm koj lub computer

Lub tswv yim

Thaum kev teeb tsa tiav, koj yuav muaj qhov system tsawg kawg nkaus uas tsuas tuaj yeem siv kab hais kom ua. Koj tuaj yeem teeb tsa lub khoos phis tawj tswj hwm lub program lossis lwm daim ntawv thov tswj lub qhov rais ntawm cov kab ke no

Pom zoo: