加入收藏 | 设为首页 | 会员中心 | 我要投稿 佛山站长网 (https://www.0757zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 搭建环境 > Linux > 正文

Gentoo LINUX的安装部署教程

发布时间:2016-11-01 03:04:52 所属栏目:Linux 来源:网络整理
导读:这几天看到群里一直在研究gentoo这个LINUX操作系统,整体安装貌似是纯手工编译,刚好忙里偷闲尝鲜了这款系统,网上整理了大部分资料,花了半天时间搞定,虽然过程很

9.解压stage3和portage两个文件

# tar -jxvf stage3-amd64-20131010.tar.bz2

注: stage3-amd64-20131010.tar.bz2解压的文件是Gentoo的目录结构,所以要解压到临时的系统目录下,即/mnt/gentoo,方便后面进行chroot

# tar jxvf portage-latest.tar.bz2 -C/mnt/gentoo/usr

注: portage-latest.tar.bz2解压的文件为系统软件目录结构,需要解压到/mnt/gentoo/usr目录下

10.切换系统到/dev/sda3根分区上并更新系统环境变量

# mount -t proc none /mnt/gentoo/proc

# mount -o bind /dev /mnt/gentoo/dev

# chroot /mnt/gentoo /bin/bash

# env-update

>> Regenerating /etc/ld.so.cache...

# source /etc/profile

# export PS1="(chroot) $PS1"

11.设置时区

# cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

12.设置主机名

# sed -i -e's/hostname.*/hostname="gentoo.example.com"/' /etc/conf.d/hostname

# echo "127.0.0.1 gentoo.example.com localhost" >/etc/hosts

13.设置DNS

# echo "nameserver 192.168.7.1">> /etc/resolv.conf

14.内核配置

(1).安装内核源码

# emerge gentoo-sources

(2).安装自动编译内核工具genkernel

# emerge genkernel

查看本栏目更多精彩内容:http://www.bianceng.cn/OS/Linux/

(3).复制安装光盘的配置文件到genkernel搜索配置文件的默认位置

# zcat /proc/config.gz > /usr/share/genkernel/arch/x86/kernel-config

(编辑:佛山站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

热点阅读