\u5728\u4e0b\u4e00\u4e2a\u63d0\u793a\u4e2d\u9009\u62e9 label type = dos\u3002<\/p>\n
\u9009\u62e9\u81ea\u7531\u7a7a\u95f4\uff0c\u5e76\u4ece\u5e95\u90e8\u9009\u62e9 \u201c\u65b0\u5efaNew\u201d \u9009\u9879\u3002\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u5c06\u521b\u5efa\u4e09\u4e2a\u5206\u533a\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n
\/dev\/sda1 - 1G - for \/boot\r\n\/dev\/sda2 - 5G - for root\r\n\/dev\/sda3 - 1G - for swap<\/pre>\n
\ncfdisk<\/p>\n
\u5728\u4e0b\u4e00\u4e2a\u5c4f\u5e55\u4e2d\uff0c\u63d0\u4f9b\u5f15\u5bfc\u5206\u533a\u7684\u5206\u533a\u5927\u5c0f\uff08\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u7ed9\u51fa\u4e86 1GB\uff09\u3002\u9009\u62e9\u5b83\u4f5c\u4e3a\u4e3b\u5206\u533a\u3002<\/p>\n
\u5bf9\u5927\u5c0f\u4e3a 5GB \u7684\u4e3b\u6839\u5206\u533a\u91cd\u590d\u540c\u6837\u7684\u6b65\u9aa4\u3002
\n
\n\u6539\u53d8\u4e3a\u4ea4\u6362\u5206\u533a\u7c7b\u578b<\/p>\n
\u7528\u540c\u6837\u7684\u6b65\u9aa4\u521b\u5efa\u4e00\u4e2a\u5927\u5c0f\u4e3a 1G \u7684\u4ea4\u6362\u5206\u533a\uff08\u4f60\u53ef\u4ee5\u6839\u636e\u4f60\u7684\u9700\u8981\u6539\u53d8\u5b83\uff09\u3002\u521b\u5efa\u4ea4\u6362\u5206\u533a\u540e\uff0c\u786e\u4fdd\u5728\u5e95\u90e8\u9009\u62e9 \u201c\u7c7b\u578bType\u201d\uff0c\u5e76\u7528 \u201cLinux Swap\/Solaris\u201d \u9009\u9879\u5c06\u5176\u6807\u8bb0\u4e3a\u4ea4\u6362\u5206\u533a\u3002<\/p>\n
\ncfdisk \u4e2d\u7684\u6700\u7ec8\u5206\u533a\u5217\u8868<\/p>\n
\u4e00\u65e6\u5b8c\u6210\uff0c\u4f7f\u7528\u5e95\u90e8\u7684 \u201c\u5199\u5165Write\u201d \u9009\u9879\u5c06\u53d8\u5316\u5199\u5165\u78c1\u76d8\u3002\u786e\u4fdd\u4f60\u5728\u5199\u5165\u524d\u505a\u4e86\u5907\u4efd\uff0c\u56e0\u4e3a\u8fd9\u662f\u4f60\u7cfb\u7edf\u4e2d\u7684\u4e00\u4e2a\u6c38\u4e45\u6027\u53d8\u5316\u3002<\/p>\n
\u5728\u4f60\u7ee7\u7eed\u4e4b\u524d\uff0c\u8fd0\u884c\u4e0b\u9762\u7684\u547d\u4ee4\u6765\u68c0\u67e5\u3002\u4f60\u53ef\u4ee5\u770b\u5230\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6709\u4e09\u4e2a\u5206\u533a\u88ab\u5217\u51fa\u3002<\/p>\n
fdisk -l<\/pre>\n<\/p>\n
fdisk \u4e2d\u7684\u6700\u7ec8\u5206\u533a\u5217\u8868<\/p>\n
\u4f9d\u6b21\u8fd0\u884c\u4e0b\u9762\u7684\u547d\u4ee4\uff0c\u5728\u4e0a\u9762\u65b0\u521b\u5efa\u7684\u5206\u533a\u4e2d\u683c\u5f0f\u5316\u5e76\u521b\u5efa\u4e00\u4e2a ext4 \u6587\u4ef6\u7cfb\u7edf\u3002\u8bf7\u786e\u4fdd\u4f60\u6839\u636e\u4f60\u7684\u9700\u8981\u6539\u53d8 \/dev\/sda1 \u548c \/dev\/sda2\uff1a<\/p>\n
mkfs.ext4 \/dev\/sda1\r\nmkfs.ext4 \/dev\/sda2\r\nmkswap \/dev\/sda3\r\nswapon \/dev\/sda3<\/pre>\n\u5b8c\u6210\u540e\uff0c\u88c5\u8f7d\u7cfb\u7edf\u5e76\u521b\u5efa\u5fc5\u8981\u7684\u76ee\u5f55\uff1a<\/p>\n
mount \/dev\/sda2 \/mnt\r\nmkdir \/mnt\/boot \/mnt\/var \/mnt\/home\r\nmount \/dev\/sda1 \/mnt\/boot<\/pre>\n\u540c\u6837\uff0c\u786e\u4fdd\u4f60\u6839\u636e\u4f60\u7684\u7cfb\u7edf\u6539\u53d8 \/dev\/sda1\u3001\/dev\/sda2 \u548c \/dev\/sda3\u3002
\n
\n\u51c6\u5907\u6587\u4ef6\u7cfb\u7edf<\/p>\n
\u5b89\u88c5\u57fa\u7840\u7cfb\u7edf<\/strong>
\n\u6211\u5e0c\u671b\u4f60\u5df2\u7ecf\u8fde\u63a5\u5230\u4e92\u8054\u7f51\u4e86\u3002\u5982\u679c\u6ca1\u6709\uff0c\u8bf7\u5c1d\u8bd5\u4f7f\u7528 USB \u7f51\u5361\u6216 Arch \u5b89\u88c5\u7a0b\u5e8f\u81ea\u52a8\u914d\u7f6e\u548c\u68c0\u6d4b\u7684\u6709\u7ebf\u7f51\u7edc\u8fde\u63a5\u3002\u5982\u679c\u4f60\u6ca1\u6709\u53ef\u7528\u7684\u6709\u7ebf\u8fde\u63a5\uff0c\u8bf7\u6309\u7167 \u8be5\u6307\u5357 \u4f7f\u7528 Arch Linux \u5b89\u88c5\u7a0b\u5e8f\u914d\u7f6e\u4e00\u4e2a\u65e0\u7ebf\u6216 Wi-Fi \u7f51\u7edc\u3002<\/p>\n\u4f9d\u6b21\u8fd0\u884c\u4e0b\u9762\u7684\u547d\u4ee4\uff0c\u5c06\u57fa\u672c\u7cfb\u7edf\u5b89\u88c5\u5230\u5df2\u5b89\u88c5\u7684\u5206\u533a\u4e2d\u3002\u4e0b\u8f7d\u7684\u5927\u5c0f\u7ea6\u4e3a 400MB\u3002<\/p>\n
pacman -Syy\r\npacstrap \/mnt base base-devel linux linux-firmware nano dhcpcd net-tools grub<\/pre>\n
\n\u5b89\u88c5\u57fa\u672c\u7cfb\u7edf<\/p>\n
\u4e00\u65e6\u5b8c\u6210\uff0c\u5c31\u4f1a\u751f\u6210\u6587\u4ef6\u7cfb\u7edf\u8868\uff0c\u6ca1\u6709\u5b83\u4f60\u5c31\u65e0\u6cd5\u542f\u52a8\u7cfb\u7edf\u3002<\/p>\n
genfstab -U \/mnt >> \/mnt\/etc\/fstab<\/pre>\n\u914d\u7f6e\u57fa\u7840\u7cfb\u7edf<\/strong>
\n\u4f9d\u6b21\u6309\u7167\u4e0b\u9762\u7684\u547d\u4ee4\u6765\u914d\u7f6e\u57fa\u672c\u7cfb\u7edf\u3002\u8fd9\u6d89\u53ca\u5230\u8bbe\u7f6e\u4f60\u7684\u5730\u57df\u3001\u8bed\u8a00\u3001\u6dfb\u52a0\u4e00\u4e2a\u767b\u5f55\u7528\u6237\uff0c\u4ee5\u53ca\u8bbe\u7f6e\u4e92\u8054\u7f51\uff1a<\/p>\narch-chroot \/mnt\r\nnano \/etc\/locale.gen<\/pre>\n\u901a\u8fc7\u53bb\u6389\u5f00\u5934\u7684 # \u6765\u53d6\u6d88\u5bf9\u4f60\u6240\u9009\u62e9\u7684 \u8bed\u8a00\u73af\u5883locale \u7684\u6ce8\u91ca\u3002\u5728\u672c\u6307\u5357\u4e2d\uff0c\u6211\u9009\u62e9\u4e86 en_US.UTF-8 UTF-8\uff0c\u6309 CTRL+O\u3001\u56de\u8f66\u548c CTRL+X \u9000\u51fa nano\u3002
\n
\n\u672c\u5730\u5316<\/p>\n
\u4f7f\u7528\u4ee5\u4e0b\u65b9\u6cd5\u751f\u6210\u8bed\u8a00\u73af\u5883\uff1a<\/p>\n
locale-gen<\/pre>\n\u5982\u679c\u4f60\u4e0d\u60f3\u624b\u52a8\u53bb \/etc\/locale.gen \u8bbe\u7f6e\u8bed\u8a00\uff0c\u4e5f\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8bbe\u7f6e\u8bed\u8a00\uff1a<\/p>\n
echo LANG=en_US.UTF-8 > \/etc\/locale.conf\r\nexport LANG=en_US.UTF-8<\/pre>\n\u8bbe\u7f6e\u5f53\u5730\u7684\u65f6\u533a\uff1a<\/p>\n
ln -s \/usr\/share\/zoneinfo\/America\/New_York \/etc\/localtime<\/pre>\n\u540c\u6837\uff0c\u4f60\u53ef\u4ee5\u6839\u636e\u4f60\u7684\u9700\u8981\u6765\u9009\u62e9\u5b83\u4eec\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5217\u51fa\u5f53\u5730\u7684\u65f6\u533a\uff1a<\/p>\n
ls \/usr\/share\/zoneinfo\r\nls \/usr\/share\/zoneinfo\/America<\/pre>\n\u8bbe\u7f6e\u786c\u4ef6\u65f6\u949f\uff0c\u521b\u5efa\u4e00\u4e2a\u4e3b\u673a\u540d\uff0c\u5e76\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u4f9d\u6b21\u542f\u7528\u4e92\u8054\u7f51\u7684 DHCP\u3002\u4f60\u53ef\u4ee5\u6839\u636e\u4f60\u7684\u60f3\u6cd5\uff0c\u5c06 arindam-pc \u6539\u4e3a\u4efb\u4f55\u4e3b\u673a\u540d\uff1a<\/p>\n
hwclock --systohc --utc\r\necho arindam-pc > \/etc\/hostname\r\nsystemctl enable dhcpcd<\/pre>\n\u4e0b\u4e00\u6b65\u662f\u8bbe\u7f6e\u6839\u7528\u6237\u7684\u5bc6\u7801\uff0c\u521b\u5efa\u4e00\u4e2a\u7ba1\u7406\u5458\u7528\u6237\uff0c\u5e76\u5728 sudoers \u6587\u4ef6\u4e2d\u6dfb\u52a0\u8be5\u7528\u6237\u3002<\/p>\n
\u4f9d\u6b21\u6309\u7167\u4e0b\u9762\u7684\u547d\u4ee4\u8fdb\u884c\u64cd\u4f5c\u3002\u8bf7\u786e\u4fdd\u6839\u636e\u4f60\u7684\u9700\u8981\u5c06\u7528\u6237\u540d\u4ece debugpoint \u6539\u4e3a\u5176\u4ed6\u540d\u79f0\uff1a<\/p>\n
passwd rootuseradd -m -g users -G wheel -s \/bin\/bash debugpointpasswd debugpoint<\/pre>\n
\n\u521b\u5efa\u7528\u6237<\/p>\n
\u6253\u5f00 sudoers \u6587\u4ef6\uff0c\u6dfb\u52a0\u4ee5\u4e0b\u51e0\u884c\uff1a<\/p>\n
nano \/etc\/sudoers<\/pre>\n\u6dfb\u52a0\u4ee5\u4e0b\u51e0\u884c\u3002\u7531\u4e8e\u4f60\u5df2\u7ecf\u521b\u5efa\u4e86 root \u7528\u6237\uff0c\u8be5\u6761\u76ee\u5e94\u8be5\u5df2\u7ecf\u6709\u4e86\uff1a<\/p>\n
root ALL=(ALL) ALL\r\ndebugpoint ALL=(ALL) ALL<\/pre>\n
\n\u66f4\u6539 sudoer \u6587\u4ef6<\/p>\n
\u4f9d\u6b21\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\u5b89\u88c5 Grub\uff0c\u8bbe\u7f6e\u521d\u59cb\u5316 Ramdisk \u73af\u5883\uff0c\u5378\u8f7d\u7cfb\u7edf\uff1a<\/p>\n
grub-install \/dev\/sda\r\ngrub-mkconfig -o \/boot\/grub\/grub.cfg\r\nmkinitcpio -p linux\r\nexit<\/pre>\n
\n\u914d\u7f6e Grub<\/p>\n
\u7136\u540e\u91cd\u65b0\u542f\u52a8\u4f60\u7684\u7cfb\u7edf\u3002\u5982\u679c\u4f60\u662f\u5728\u4e00\u4e2a\u7269\u7406\u7cfb\u7edf\u4e2d\u5b89\u88c5\u7684\uff0c\u5728\u8fd9\u4e00\u6b65\u8981\u62d4\u6389 USB \u4ecb\u8d28\u3002<\/p>\n
umount \/mnt\/boot\r\numount \/mnt\r\nreboot<\/pre>\n\u4f60\u73b0\u5728\u5df2\u7ecf\u6210\u529f\u5730\u5b89\u88c5\u4e86 Arch Linux \u57fa\u672c\u7cfb\u7edf\u3002\u73b0\u5728\u662f\u5b89\u88c5\u5b8c\u6574\u7684 GNOME \u684c\u9762\u7684\u65f6\u5019\u4e86\u3002
\n
\nArch \u5b89\u88c5\u597d\u4e86<\/p>\n
\u7b2c\u4e8c\u90e8\u5206\uff1a\u5728 Arch Linux \u4e2d\u5b89\u88c5 GNOME<\/strong><\/div>\n\u91cd\u542f\u540e\uff0c\u4ece Grub \u4e2d\u9009\u62e9 Arch Linux\u3002\u5728 Arch Linux \u7684\u63d0\u793a\u7b26\u4e0b\uff0c\u5f00\u59cb\u4f9d\u6b21\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u3002\u8fd9\u4e9b\u547d\u4ee4\u5b89\u88c5 Xorg \u670d\u52a1\u5668\u3001\u663e\u793a\u7ba1\u7406\u5668\u3001GNOME \u684c\u9762\u7ec4\u4ef6\u3001\u63a7\u5236\u5668\u5305\u548c\u5176\u4ed6\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n
\u6240\u6709\u7684\u547d\u4ee4\u90fd\u4f7f\u7528\u9ed8\u8ba4\u503c\uff0c\u5373\u5728\u8981\u6c42\u65f6\u6309\u56de\u8f66\u3002<\/p>\n
\u5b89\u88c5 Xorg \u670d\u52a1\u5668\u3002\u5b89\u88c5\u5927\u5c0f\u7ea6\u4e3a 80MB:<\/p>\n
sudo pacman -S --needed xorg<\/pre>\n\u5b89\u88c5\u663e\u793a\u7ba1\u7406\u5668\u3001GNOME \u684c\u9762\u3002\u5b89\u88c5\u5927\u5c0f\u7ea6\u4e3a 300MB\uff1a<\/p>\n
sudo pacman -S --needed gnome gnome-tweaks nautilus-sendto gnome-nettool gnome-usage gnome gnome-multi-writer adwaita-icon-theme xdg-user-dirs-gtk fwupd arc-gtk-theme seahosrse gdm<\/pre>\n\u4e0a\u9762\u7684\u5b89\u88c5\u4f1a\u8981\u6c42\u63d0\u4f9b\u51e0\u4e2a\u8f6f\u4ef6\u5305\u7684\u9009\u9879\u3002\u9009\u62e9\u4f60\u60f3\u8981\u7684\u4efb\u4f55\u4e00\u4e2a\u3002\u5982\u679c\u4f60\u4e0d\u786e\u5b9a\uff0c\u5728\u8be2\u95ee\u65f6\u9009\u62e9 \u201cjack\u201d\u3001\u201cnoto-sans\u201d \u548c \u201cxdg-portal-desktop-gnome\u201d\u3002<\/p>\n
\u5b89\u88c5\u5e94\u7528\u7a0b\u5e8f\u3002\u8fd9\u53ea\u662f\u4e00\u4e2a\u53c2\u8003\u3002\u4f60\u4e5f\u53ef\u4ee5\u5b89\u88c5\u4f60\u6240\u9700\u8981\u7684\uff1a<\/p>\n
sudo pacman -S --needed firefox vlc filezilla leafpad xscreensaver archlinux-wallpaper<\/pre>\n\u73b0\u5728\u662f\u65f6\u5019\u628a\u663e\u793a\u7ba1\u7406\u5668\u548c\u7f51\u7edc\u7ba1\u7406\u5668\u4f5c\u4e3a\u670d\u52a1\u542f\u7528\u4e86\u3002\u8fd9\u6837\uff0c\u4e0b\u6b21\u767b\u5f55\u65f6\uff0c\u5b83\u4eec\u5c31\u53ef\u4ee5\u7531 systemd \u81ea\u52a8\u8fd0\u884c\u3002<\/p>\n
systemctl enable gdm\r\nsystemctl enable NetworkManager<\/pre>\n\u4f7f\u7528 reboot \u547d\u4ee4\u91cd\u65b0\u542f\u52a8\u7cfb\u7edf\uff1a<\/p>\n
reboot<\/pre>\n
\nArch Linux \u8fd0\u884c GNOME 43 \u684c\u9762<\/p>\n
\u5982\u679c\u4e00\u5207\u987a\u5229\uff0c\u4f60\u5e94\u8be5\u5728 GNOME \u684c\u9762\u4e0a\u770b\u5230\u4e00\u4e2a\u6f02\u4eae\u7684\u767b\u5f55\u63d0\u793a\u3002\u4f7f\u7528\u4f60\u521a\u521a\u521b\u5efa\u7684\u51ed\u8bc1\u767b\u5f55\u3002\u8fce\u63a5\u4f60\u7684\u5e94\u8be5\u662f Arch Linux \u6f02\u4eae\u800c\u5e72\u51c0\u7684 GNOME 43 \u684c\u9762\u3002<\/p>\n
\u6211\u5e0c\u671b\u8fd9\u4e2a\u6307\u5357\u80fd\u5e2e\u52a9\u4f60\u5728\u88f8\u673a Arch \u5b89\u88c5 GNOME \u684c\u9762\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
\u672c\u6307\u5357\u6709\u4e24\u90e8\u5206\uff1a\u7b2c\u4e00\u90e8\u5206\u662f\u5173\u4e8e\u5b89\u88c5\u57fa\u672c\u7684 Arch \u7cfb\u7edf\uff1b\u7b2c\u4e8c\u90e8\u5206\u662f\u5728 Arch Linux \u57fa\u7840\u4e0a\u5b89\u88c5\u5b8c\u6574\u7684 […]<\/p>\n","protected":false},"author":1481,"featured_media":264367,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-264351","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/264351","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1481"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=264351"}],"version-history":[{"count":4,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/264351\/revisions"}],"predecessor-version":[{"id":264374,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/264351\/revisions\/264374"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/264367"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=264351"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=264351"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=264351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}