• Win7下安装Centos7


    win7下安装Centos
    同一块硬盘时:win启动项没有,使用pe进行修复,之后用easybcd进行centos启动项修复,grub2,自动搜索
    两块硬盘时:不要动启动项,bios选启动的硬盘即可

    linux下挂在window硬盘
    yum install ntfs-3g
    vi /etc/fstab
    /dev/sda1 /mnt/winC ntfs-3g defaults 0 0
    /dev/sda2 /mnt/winD ntfs-3g defaults 0 0

    多媒体安装
    https://wiki.centos.org/zh/TipsAndTricks/MultimediaOnCentOS7

    The file /usr/src/kernels/3.10.0-514.2.2.el7.x86_64/include/linux/version.h does not exist.
    用命令 sudo ln -s <内核头文件目录>/generated/uapi/linux/version.h <内核头文件目录>/include/linux/version.h
    sudo ln -s /usr/src/kernels/3.10.0-229.el7.x86_64/include/generated/uapi/linux/version.h /usr/src/kernels/3.10.0-229.el7.x86_64/include/linux/version.h

    grub修复
    http://www.linuxidc.com/Linux/2015-03/114678.htm

    vnc
    http://jingyan.baidu.com/article/6c67b1d6f1bac92786bb1e6d.html

    1.UltraISO刻盘
    http://blog.csdn.net/u011318735/article/details/52187448
    2.安装
    http://www.jb51.net/os/188487.html

    最小化安装
    http://www.linuxidc.com/Linux/2015-04/116740.htm
    没有ifconfig,需要安装net-tools*.rpm
    没有wget,安装wget*.rpm
    注意添加默认路由 route add default gw 192.168.1.1

    安装界面
    http://www.centoscn.com/image-text/config/2015/0528/5552.html

    修改yum源
    1、备份
    mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
    2、下载新的CentOS-Base.repo 到/etc/yum.repos.d/
    CentOS 5
    wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo
    CentOS 6
    wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
    CentOS 7
    wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
    3、之后运行yum makecache生成缓存


    配置DNS
    vi /etc/resolv.conf
    加入
    nameserver 192.168.0.1
    nameserver 8.8.8.8
    nameserver 8.8.4.4

    配置网关:
    vi /etc/sysconfig/network
    加入:
    GATEWAY=192.168.0.1

    配置ip地址:
    vi /etc/sysconfig/network-scripts/ifcfg-eth0
    DEVICE="eth0"
    HWADDR="00:0C:29:6C:BB:E6"
    NM_CONTROLLED="yes"
    ONBOOT="no"
    NETMASK=255.255.255.0
    IPADDR=192.168.0.8
    GATEWAY=192.168.0.1
    BOOTPROTO=static
    ONBOOT=yes
    PEERDNS=yes

    重启服务
    /etc/init.d/network restart
    或使用命令:
    service network restart

  • 相关阅读:
    jquery对象中 “冒号” 详解
    vscode自定以vue代码模板
    Vue项目开发环境proxyTable反向代理,生产环境下服务接口地址找不到的解决
    JS函数的节流和防抖
    BFC-块状格式化上下文
    c# 鼠标钩子
    C# 以管理员身份运行WinForm程序
    样式更换
    Revert to this revision 和 Revert changes from this revision 区别
    人工智能几行代码实现换脸
  • 原文地址:https://www.cnblogs.com/tla001/p/6206038.html
Copyright © 2020-2023  润新知