1 Star 0 Fork 0

KKTT007/ai

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
chroot.sh 1.73 KB
一键复制 编辑 原始数据 按行查看 历史
KKTT007 提交于 2021-09-10 11:41 . main file
# /mnt is the /, /mnt/home/kktt007 /home/kktt007
timedatectl set-timezone Asia/Shanghai
hwclock -w
systemctl enable systemd-timesyncd.service
timedatectl set-ntp true
echo archlinux > /etc/hostname
echo KEYMAP=us >> /etc/vconsole.conf
echo '127.0.0.1 localhost' >> /etc/hosts
echo '::1 localhost' >> /etc/hosts
echo '127.0.1.1 archlinux.localdomain archlinux' >> /etc/hosts
echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen
echo 'zh_CN.UTF-8 UTF-8' >> /etc/locale.gen
echo 'zh_HK.UTF-8 UTF-8' >> /etc/locale.gen
echo 'zh_TW.UTF-8 UTF-8' >> /etc/locale.gen
echo 'zh_CN.GB18030 GB18030' >> /etc/locale.gen
# echo "LANG=en_US.UTF-8" > /etc/locale.conf
localectl set-locale LANG=en_US.UTF-8
locale-gen
echo "[archlinuxcn]" >> /etc/pacman.conf
echo "Server = http://mirrors.aliyun.com/archlinuxcn/\$arch" >> /etc/pacman.conf
pacman -Sy
pacman -S --noconfirm archlinux-keyring archlinuxcn-keyring
pacman -Sy
passwd
useradd -m -G wheel kktt007
passwd kktt007
pacman -S --noconfirm base-devel git wget curl nano networkmanager sddm nm-connection-editor dosfstools ntfs-3g bbswitch alacritty ranger dialog wpa_supplicant netctl wireless_tools dosfstools grub efibootmgr os-prober intel-ucode
sed -e "s|# %wheel ALL=(ALL) ALL|%wheel ALL=(ALL) ALL|" -i /etc/sudoers
# bios需要先建立ef02分区,然后grub-install /dev/sda vmware中设置虚拟机选项为uefi
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=grub --recheck
sed -e "s|GRUB_DISABLE_OS_PROBER=\"true\"|GRUB_DISABLE_OS_PROBER=\"false\"|" -i /usr/bin/grub-mkconfig
grub-mkconfig -o /boot/grub/grub.cfg
systemctl enable NetworkManager.service
curl -O https://kktt007.top/ai/install.sh
cp install.sh /home/kktt007/
chmod +x /home/kktt007/install.sh
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/KKTT007/ai.git
[email protected]:KKTT007/ai.git
KKTT007
ai
ai
master

搜索帮助