跳转到内容
主菜单
主菜单
移至侧栏
隐藏
规范/协议
协议
算法
JVM
多线程/并发
存储
AI
深度学习
工具箱
最近更改
文章分类
全部文章
WHY42
搜索
搜索
外观
登录
个人工具
登录
欢迎来到Riguz的小站!这是一个私人wiki,用来记录一些我的笔记。
查看“︁Gentoo:安装Stage3”︁的源代码
页面
讨论
大陆简体
阅读
查看源代码
查看历史
工具
工具
移至侧栏
隐藏
操作
阅读
查看源代码
查看历史
常规
链入页面
相关更改
页面信息
外观
移至侧栏
隐藏
←
Gentoo:安装Stage3
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
=安装文件系统= <source lang="bash"> cd /mnt/gentoo wget http://mirrors.sohu.com/gentoo/releases/amd64/autobuilds/current-stage3-amd64/stage3-amd64-20161208.tar.bz2 wget http://mirrors.sohu.com/gentoo/releases/amd64/autobuilds/20161208/stage3-amd64-20161208.tar.bz2.DIGESTS sha512sum stage*.tar.bz2 tar xvjpf stage3-*.tar.bz2 --xattrs </source> 确保你使用了同样的参数 (xvjpf 即使用--xattrs)。 x表示解开(Extract),v表示详细信息(Verbose)可以用来查看解压缩时发生了什么(可选参数), j 表示使用bzip2解压缩,thep 表示保留权限(Preserve permissions),还有f 表示我们要解开一个文件,而不是标准输入。最后,--xattrs的是包括存储在归档以及扩展属性。 =编译选项= /mnt/gentoo/etc/portage/make.conf <pre> CFLAGS="-march=native -O2 -pipe" CXXFLAGS="${CFLAGS}" MAKEOPTS="-j5" </pre> MAKEOPTS:A good choice is the number of CPUs (or CPU cores) in the system plus one, but this guideline isn't always perfect. 笔者认为,少设点,稳定点,慢点无所谓,i7-4700MQ我觉得设个5就差不多了 =mirror选择= <source lang="bash"> mirrorselect -i -o >> /mnt/gentoo/etc/portage/make.conf </source> 这里选择163的http和厦门大学的rsync源。 =挂载文件系统= <source lang="bash"> cp -L /etc/resolv.conf /mnt/gentoo/etc/ mount -t proc proc /mnt/gentoo/proc mount --rbind /sys /mnt/gentoo/sys mount --make-rslave /mnt/gentoo/sys mount --rbind /dev /mnt/gentoo/dev mount --make-rslave /mnt/gentoo/dev #--make-rslave操作是稍后安装systemd支持时所需要的。 </source> chroot到新系统 <source lang="bash"> chroot /mnt/gentoo /bin/bash source /etc/profile export PS1="(chroot) $PS1" </source> =更新portage树= <source lang="bash"> emerge-webrsync eselect profile list eselect profile set 6 # default/linux/amd64/13.0/desktop/kde </source> =配置USE= USE这玩意又多又乱,完全不知道该怎么选了.... <pre> USE="-gtk -gnome qt4 kde dvd alsa cdr" </pre> <source lang="bash"> echo "Asia/Shanghai" > /etc/timezone emerge --config sys-libs/timezone-data nano -w /etc/locale.gen locale-gen eselect locale list #zh_CN.UTF8 env-update && source /etc/profile && export PS1="(chroot) $PS1" </source> [[Category:Linux/Unix]]
返回
Gentoo:安装Stage3
。
搜索
搜索
查看“︁Gentoo:安装Stage3”︁的源代码
添加话题