最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

Centos6.5全自動安裝 vsftpd+dhcp+nfs+tftp

 更新時間:2014年09月11日 09:14:36   投稿:hebedich  
本文主要記述了在Centos6.5中,如何配置無人值守安裝vsftpd+dhcp+nfs+tftp,非常實用,希望對大家能有所幫助。

步驟

1、mount /dev/sr0 /media/

2、安裝所需要的軟件

安裝并配置tftp服務(wù)

yum install tftp tftp-server vsftpd dhcp syslinux nfs-utils
vim /etc/xinetd.d/tftp
      service tftp
  {
    disable = no
    socket_type       = dgram
    protocol        = udp
    wait          = yes
    user          = root
    server         = /usr/sbin/in.tftpd
    server_args       = -s /var/lib/tftpboot
    per_source       = 11
    cps           = 100 2
    flags          = IPv4
  }

配置dhcp

# dhcpd.conf
  #
  # Sample configuration file for ISC dhcpd
  #
 
  allow booting;
  allow bootp;
 
 
  # A slightly different configuration for an internal subnet.
  subnet 192.168.1.0 netmask 255.255.255.0 {
  range 192.168.1.50 192.168.1.60;
  option domain-name-servers KangChangWei;
  option domain-name "KangChangWei";
  option routers 192.168.1.1;
  default-lease-time 600;
  max-lease-time 7200;
  filename "pxelinux.0";
  next-server 192.168.1.101;
  }

以上IP可以根據(jù)自己所在的網(wǎng)絡(luò)修改

3、復(fù)制所需要的啟動文件

cp /usr/share/syslinux/pxelinux.0 /var/lib/tftpboot
 cp /mnt/images/pxeboot/initrd.img /var/lib/tftpboot
 cp /media/images/pxeboot/initrd.img /var/lib/tftpboot/
 cp /media/images/pxeboot/vmlinuz /var/lib/tftpboot/

mkdir /var/lib/tftpboot/pxelinux.cfg
 cp /media/isolinux/isolinux.cfg /var/lib/tftpboot/pxelinux.cfg/default

編輯
 Vim /var/lib/tftpboot/pxelinux.cfg/default

default linux
#default vesamenu.c32
prompt 1
timeout 600
 
display boot.msg
 
menu background splash.jpg
menu title Welcome to CentOS 6.5!
menu color border 0 #ffffffff #00000000
menu color sel 7 #ffffffff #ff000000
menu color title 0 #ffffffff #00000000
menu color tabmsg 0 #ffffffff #00000000
menu color unsel 0 #ffffffff #00000000
menu color hotsel 0 #ff000000 #ffffffff
menu color hotkey 7 #ffffffff #ff000000
menu color scrollbar 0 #ffffffff #00000000
 
label linux
 menu label ^Install or upgrade an existing system
 menu default
 kernel vmlinuz
 append initrd=initrd.img ks=ftp://192.168.1.101/pub/ks.cfg
label vesa
 menu label Install system with ^basic video driver
 kernel vmlinuz
 append initrd=initrd.img xdriver=vesa nomodeset
label rescue
 menu label ^Rescue installed system
 kernel vmlinuz
 append initrd=initrd.img rescue
label local
 menu label Boot from ^local drive
 localboot 0xffff
label memtest86
 menu label ^Memory test
 kernel memtest
 append -

4、共享光盤

vim /etc/export
/media *(ro,sync)

啟動nfs服務(wù)

[root@kcw ~]# /etc/init.d/rpcbind restart
停止 rpcbind:                       [確定]
正在啟動 rpcbind:                     [確定]
[root@kcw ~]# /etc/init.d/nfs restart
關(guān)閉 NFS 守護(hù)進(jìn)程:                    [確定]
關(guān)閉 NFS mountd:                     [確定]
關(guān)閉 NFS 服務(wù):                      [確定]
Shutting down RPC idmapd:                 [確定]
啟動 NFS 服務(wù):                      [確定]
啟動 NFS mountd:                     [確定]
啟動 NFS 守護(hù)進(jìn)程:                    [確定]
正在啟動 RPC idmapd:                   [確定]

查看nfs輸出

[root@kcw ~]# showmount -e localhost
Export list for localhost:
/media *

生成ks.cfg文件安裝工具

[root@kcw ~]# yum install system-config-kickstart

然后運(yùn)行

system-config-kickstart

來修改頁面得到自己安裝的客戶端
我這里省略。。

這有個做好的ks.cfg

內(nèi)容如下:

#platform=x86, AMD64, or Intel EM64T
#version=DEVEL
key --skip
# Firewall configuration
firewall --disabled
# Install OS instead of upgrade
install
# Use network installation
nfs --server=192.168.1.101 --dir=/media
# Root password
rootpw --iscrypted $1$9ElloIHk$pO.NfjND/6K88z3CiIvPc.
# Network information
network --bootproto=dhcp --device=eth0 --onboot=on
# System authorization information
auth --useshadow --passalgo=md5
# Use text mode install
text
# System keyboard
keyboard us
# System language
lang zh_CN
# SELinux configuration
selinux --disabled
# Do not configure the X Window System
skipx
# Installation logging level
logging --level=info
# Reboot after installation
reboot
# System timezone
timezone Asia/Shanghai
# System bootloader configuration
bootloader --location=mbr
# Clear the Master Boot Record
zerombr
# Partition clearing information
clearpart --all 
# Disk partitioning information
part swap --size 2048 
part /boot --size 200 
part pv.01 --size 30000 
volgroup vol0 pv.01
logvol / --vgname=vol0 --size=25000 --name=root
#logvol /home --vgname=vol0 --size=500 --name=home
 
%post
#wget ftp://192.168.1.101/pub/yum.repo -P /etc/yum.repos.d/
%packages
@ Desktop
@ Console internet tools
@ Desktop Platform
@ Development Tools
@ General Purpose Desktop
@ Graphical Administration Tools
@ Internet Browser
@ Network file system client
@ Printing client
@ X Window System
@ Chinese Support

注意我這塊root密碼是redhat
我這里分區(qū)時lvm分區(qū)根據(jù)你的需求也可以修改

然后把ks.cfg放到你的vsftpd默認(rèn)可以訪問的目錄里

即:

[root@kcw ~]# cd /var/ftp/pub/
[root@kcw pub]# ls
ks.cfg
[root@kcw pub]# pwd
/var/ftp/pub


注意先測試你的這個文件能不能訪問打開IE
輸入ftp://192.168.1.101/pub/ks.cfg

看能否看到內(nèi)容!

做完重啟dhcp vsftpd xine xinetd nfs

然后重新開臺電腦開機(jī)設(shè)置從網(wǎng)卡引導(dǎo)看能否啟動成功并且自動安裝

我這塊等待默認(rèn)600秒 自動安裝

開機(jī)引導(dǎo)到boot:時按回車安裝

相關(guān)文章

  • foreman ubuntu16 快速安裝

    foreman ubuntu16 快速安裝

    foreman ubuntu16快速安裝,非常實用的方法,小編覺得很不錯,分享給大家,希望對大家有幫助
    2018-09-09
  • CentOS下寶塔部署Django項目的詳細(xì)教程

    CentOS下寶塔部署Django項目的詳細(xì)教程

    這篇文章主要介紹了CentOS下寶塔部署Django項目的詳細(xì)教程,本文給大家介紹的非常詳細(xì),對大家的學(xué)習(xí)或工作具有一定的參考借鑒價值,需要的朋友可以參考下
    2020-04-04
  • 使用htaccess規(guī)范化網(wǎng)址的配置

    使用htaccess規(guī)范化網(wǎng)址的配置

    使用htaccess規(guī)范化網(wǎng)址,提高程序的運(yùn)行效率。
    2010-02-02
  • Vmware虛擬機(jī)中centOS7安裝圖文教程

    Vmware虛擬機(jī)中centOS7安裝圖文教程

    這篇文章主要為大家詳細(xì)介紹了Vmware虛擬機(jī)中centOS7安裝圖文教程,具有一定的參考價值,感興趣的小伙伴們可以參考一下
    2017-03-03
  • sersync2 完全安裝配置說明(三) 插件基本配置和使用

    sersync2 完全安裝配置說明(三) 插件基本配置和使用

    sersync2 完全安裝配置說明(三) 插件基本配置和使用,需要的朋友可以參考下。
    2011-11-11
  • 解決linux下vim中文亂碼的方法

    解決linux下vim中文亂碼的方法

    在vim中編輯一個中文文本時,有時候看起來有亂碼,以前都是修修補(bǔ)補(bǔ)的弄沒有亂碼了就不管了,這個問題一直都很困擾我。突然想到這個問題想把它給解決掉,在網(wǎng)上有很多這方面的資料,但是說得不是很到位,經(jīng)過了一天的折騰并做了一些小測試終于搞定了。下面來一起看看吧。
    2016-12-12
  • Ubuntu 20.04換阿里源的方法

    Ubuntu 20.04換阿里源的方法

    這篇文章主要介紹了Ubuntu 20.04換阿里源的方法,文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧
    2020-05-05
  • Linux?vim全局替換的實現(xiàn)方法

    Linux?vim全局替換的實現(xiàn)方法

    這篇文章主要介紹了Linux?vim全局替換的實現(xiàn)方法,具有很好的參考價值,希望對大家有所幫助,如有錯誤或未考慮完全的地方,望不吝賜教
    2023-08-08
  • Linux下亂碼問題的解決方案小結(jié)

    Linux下亂碼問題的解決方案小結(jié)

    linux系統(tǒng)中文件名內(nèi)容為urf8編碼, windows系統(tǒng)中文件名默認(rèn)為gbk編碼, 多數(shù)文檔使用gbk編碼,系統(tǒng)采用utf8編碼.這篇文章主要介紹了Linux下亂碼問題的解決方案,需要的朋友可以參考下
    2016-10-10
  • Apache服務(wù)器一個IP多個站點(diǎn)的配置方法示例

    Apache服務(wù)器一個IP多個站點(diǎn)的配置方法示例

    這篇文章主要介紹了Apache服務(wù)器一個IP多個站點(diǎn)的配置方法示例,本文介紹的方法其實就是虛擬主機(jī)的方式,需要的朋友可以參考下
    2015-07-07

最新評論

莱芜市| 光山县| 红安县| 祁门县| 仙居县| 万州区| 盐边县| 阳泉市| 包头市| 若尔盖县| 宁明县| 吕梁市| 昌江| 将乐县| 台北县| 卢龙县| 黄冈市| 莱州市| 商水县| 张家港市| 巴楚县| 塘沽区| 靖宇县| 宣武区| 新竹市| 普陀区| 汶川县| 句容市| 惠东县| 武夷山市| 上虞市| 平舆县| 沙雅县| 宜都市| 锡林浩特市| 贵德县| 安泽县| 儋州市| 独山县| 静安区| 海林市|