Chinaunix首页 | 论坛 | 博客
  • 博客访问: 837231
  • 博文数量: 90
  • 博客积分: 766
  • 博客等级: 军士长
  • 技术积分: 1867
  • 用 户 组: 普通用户
  • 注册时间: 2011-12-18 08:42
个人简介

linux

文章分类

全部博文(90)

文章存档

2021年(2)

2020年(2)

2017年(1)

2015年(11)

2014年(1)

2013年(53)

2012年(16)

2011年(4)

分类: 系统运维

2013-05-20 16:04:46

        创建bash shell启动文件:

点击(此处)折叠或打开

  1. cat > /etc/profile << "EOF"
  2. # Begin /etc/profile

  3. export LANG=en_US.ISO-8859-1

  4. # End /etc/profile

        配置localnet脚本:
                echo "HOSTNAME=zengcj-host" > /etc/sysconfig/network

       创建/etc/hosts:

点击(此处)折叠或打开

  1. # Begin /etc/hosts (network card version)
  2. 127.0.0.1 localhost
  3. # End /etc/hosts (network card version)
        安装linux内核:

点击(此处)折叠或打开

  1. make mrproper
  2. make LANG=en_US.ISO-8859-1 LC_ALL= menuconfig
  3. make
  4. make modules_install
  5. cp -v arch/x86/boot/bzImage /boot/vmlinux-2.6.32.8-lfs-6.6
  6. cp -v System.map /boot/System.map-2.6.32.8
  7. cp -v .config /boot/config-2.6.32.8
  8. install -d /usr/share/doc/linux-2.6.32.8
  9. cp -r Documentation/* /usr/share/doc/linux-2.6.32.8

  10. 建立usb加载顺序文件:
  11. install -v -m755 -d /etc/modprobe.d
  12. cat > /etc/modprobe.d/usb.conf << "EOF"
  13. # Begin /etc/modprobe.d/usb.conf

  14. install ohci_hcd /sbin/modprobe ehci_hcd ; /sbin/modprobe -i ohci_hcd ; true
  15. install uhci_hcd /sbin/modprobe ehci_hcd ; /sbin/modprobe -i uhci_hcd ; true

  16. # End /etc/modprobe.d/usb.conf
  17. EOF
        配置grub:

点击(此处)折叠或打开

  1. grub-install --grub-setup=/bin/true /dev/sdb

  2. grub-mkconfig -o /boot/grub/grub.cfg

  3. grub-setup /dev/sdb

        本来这里是前几天就做了,但是一直不能启动起来,设计到比较多的知识点。所以不得不将这部分知识好好的学一下。
       
       本来对每部分的知识的学习是放在第二阶段的,但是没办法了,不能google只能自己解决了。

阅读(2286) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~