首页
随机
最近更改
特殊页面
社群首页
参数设置
关于WHY42
免责声明
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> [[Category:Linux/Unix]]
返回
Gentoo:安装Stage3
。