打开/关闭搜索
搜索
打开/关闭菜单
通知
打开/关闭个人菜单
查看“Gentoo/教程”的源代码
来自OSSmedia
查看
阅读
查看源代码
查看历史
associated-pages
页面
讨论
更多操作
←
Gentoo/教程
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
[[分类:教程]] [[分类:系统]] 本页面介绍gentoo安装的过程并提供一些指令速查。可以加速gentoo的安装过程。 == 安装核检表 == * root密码 * 具有sudo权限的用户 * 时区 * 主机名称 * systemd-networkd systemd-resolved NetworkManager == 安装 stage == 反正下载一下就行 https://mirrors.bfsu.edu.cn/gentoo/releases/amd64/autobuilds/current-stage3-amd64-desktop-systemd/ tar xpvf stage3-*.tar.xz --xattrs-include='*.*' --numeric-owner -C /mnt/gentoo == 配置portage == === GRUB === GRUB_PLATFORMS="emu efi-32 efi-64 pc" === USE === USE="X fcitx5 tkip kcm cjk" === 协议 === ACCEPT_LICENSE="* -@EULA" === 显卡 === VIDEO_CARDS="nvidia amdgpu radeon radeonsi intel mesa" #请根据自己的需要配置 === cpu flag === <code>echo "*/* $(cpuid2cpuflags)" > /etc/portage/package.use/00cpu-flags</code> == studio.use == <pre> #kernel sys-kernel/installkernel dracut grub # kde kde-plasma/plasma-meta networkmanager kwallet display-manager sddm wacom systemd sdk rdp plymouth oxygen-theme gtk grub discover bluetooth smart kde-plasma/kde-apps-meta admin education games graphics multimedia network pim sdk utils # latex app-text/texlive X cjk context extra games graphics humanities luatex metapost music pdfannotextractor png pstricks publishers science tex4ht texi2html truetype xetex xml </pre> == 软件包 == # 基础配置包 mirrorselect bash-completion net-misc/networkmanager app-portage/cpuid2cpuflags sudo glances app-misc/screen # 内核 sys-kernel/installkernel sys-kernel/linux-firmware sys-kernel/gentoo-kernel # 桌面环境 plasma-meta kde-apps-meta # 浏览器 firefox chromium # latex 编辑器 app-editors/kile app-text/texlive === fcitx === 输入法,带上kcm USE 安装 fcitx-configtools 编辑 .xprofile export XMODIFIERS="@im=fcitx" export QT_IM_MODULE=fcitx export GTK_IM_MODULE=fcitx === 字体 === <pre> media-fonts/arphicfonts \ media-fonts/noto-cjk \ media-fonts/source-han-sans \ media-fonts/wqy-microhei \ </pre> == 自制脚本 == 请在挂载磁盘后运行(默认位置 /mnt/gentoo) <pre> # URL of the Gentoo mirror MIRROR_URL="https://mirrors.bfsu.edu.cn/" # Fetch the latest signed file SIGNED_FILE=$(curl -s "${MIRROR_URL}gentoo/releases/amd64/autobuilds/current-stage3-amd64-desktop-systemd/latest-stage3-amd64-desktop-systemd.txt") tar xpvf stage3-*.tar.xz --xattrs-include='*.*' --numeric-owner -C /mnt/gentoo cp --dereference /etc/resolv.conf /mnt/gentoo/etc/ arch-chroot /mnt/gentoo </pre> <pre> echo RUSTFLAGS="${RUSTFLAGS} -C target-cpu=native" >> /etc/portage/make.conf sed -i '/^COMMON_FLAGS=/ s/"$/ -march=native"/' /etc/portage/make.conf echo "*/* $(cpuid2cpuflags)" > /etc/portage/package.use/00cpu-flags tee -a /etc/portage/make.conf <<EOF GRUB_PLATFORMS="emu efi-32 efi-64 pc" USE="X fcitx5 tkip kcm cjk" ACCEPT_LICENSE="* -@EULA" VIDEO_CARDS="nvidia amdgpu radeon radeonsi intel mesa" EOF tee -a /etc/portage/make.conf <<EOF # kernel sys-kernel/installkernel dracut grub # kde kde-plasma/plasma-meta networkmanager kwallet display-manager sddm wacom systemd sdk rdp plymouth oxygen-theme gtk grub discover bluetooth smart kde-plasma/kde-apps-meta admin education games graphics multimedia network pim sdk utils # latex app-text/texlive X cjk context extra games graphics humanities luatex metapost music pdfannotextractor png pstricks publishers science tex4ht texi2html truetype xetex xml EOF cp /usr/share/portage/config/repos.conf /etc/portage/repos.conf/gentoo.conf sed -i 's|rsync://rsync.gentoo.org/gentoo-portage|rsync://mirrors.bfsu.edu.cn/gentoo-portage|' /etc/portage/repos.conf/gentoo.conf </pre> <pre> </pre>
返回
Gentoo/教程
。