本帖最后由 江南一根葱 于 2019-8-14 19:27 编辑

工具及下载链接:http://bbs.wuyou.net/forum.php?mod=viewthread&tid=415752&page=1&extra=#pid3836856

前炎:向睾手丸家们致敬,睾手就不需要细看帖子享受我的班门弄腐了,本帖适合入门学习党,比如会问“为什么 启不来pe啊?为什么开机执行不了我指定的批处理啊?”这类菜鸟(我是老菜鸟)新手玩家(95后00后叫萌新)

传统bios:直接用我的tftpboot目录,启动时会chain app/config/tinycore.ipxe,对此脚本文件的建议和解释如下:

#!ipxe

#这句脚本是读取本地文件用,不用管

ifopen net0

#同上

ifstat

#设置pe的路径

set pe64wimfile= /boot/pe64.wim

set pe32wimfile= /boot/pe32.wim

#设置efi和bios下环境的不同菜单

iseq ${platform} pcbios && set mainmenu grub4dos ||

iseq ${platform} efi && set mainmenu grub2 ||

#这个我自己调试用的

set getfile /app/config/tinycore.ipxe

#设置菜单超时时间

set menu-timeout 8000

#设置菜单默认选中启动的项

set menu-default netgrubfm

:boot

#找不到next-server变量就把dhcp-server的变量值给它

isset ${next-server} || set next-server ${dhcp-server}

#找不到proxydhcp/next-server变量就把proxydhcp/dhcp-server的变量值给它

isset ${proxydhcp/next-server} || set proxydhcp/next-server ${proxydhcp/dhcp-server}

#如果proxydhcp/next-server变量值存在,那么赋给booturl,不然就使用next-server的变量值

isset ${proxydhcp/next-server} && set booturl ${proxydhcp/next-server} || set booturl ${next-server}

#备用 prompt --key 0x02 --timeout 2000 Press Ctrl-B for the iPXE command line... && shell ||

:menu

goto start

#菜单项我就不解释了

:start

menu Choose An Existing Server!  Serverip:${serverip} bootfile: ${getfile}

item --gap --             --------------------------------PXE BOOT-----------------------------

item ${mainmenu}          ${mainmenu} menu

item win10pex64           win10pe x64

item win10pex32           win10pe x32

item gitcloud                   Cloud Boot

item retry                         set filename

item --gap --             ---------------------------- Advanced options -----------------------

item --key c config       Configure settings                                   -- c

item --key p pxelinux     Load PXELinux menu                                   -- p

item shell                Drop to iPXE shell

item reboot               Reboot computer

item --key x exit         Exit iPXE and continue BIOS boot                     -- x

choose --timeout ${menu-timeout} --default ${menu-default} selected

goto ${selected}

#云启动

:gitcloud

echo Cloud Boot

goto start

#启动bios版grub2文件管理器

:grub4dos

set next-server ${proxydhcp/next-server} && chain tftp://${booturl}/grub4dos/managerpxe ||

goto retryip

:grub2

isset ${proxydhcp/dhcp-server} && imgexec http://${proxydhcp/dhcp-server}/grub2/grubfmx64.efi proxydhcp=${proxydhcp/dhcp-server} ||

imgexec http://${dhcp-server}/grub2/grubfmx64.efi proxydhcp=${dhcp-server}

goto retryip

:wimboot

#假如取文件失败就换个地址

kernel http://${booturl}/app/wimboot/wimboot || goto retryip

#前方高能!这个ghost.bat最终会出现在你所有pe的X:\windows\system32目录下,不要再问来问去怎么启动pxeautorun.txt了!取不到说明你没放,会继续启动

#如果是我提供的pe,进入系统后会自动执行ghost.bat

initrd http://${booturl}/app/bat/ghost.bat ghost.bat || goto nextg

:nextg

#在bios和efi不同环境取相应的文件

iseq ${platform} pcbios && initrd http://${booturl}/app/wimboot/bootmgr  bootmgr ||

iseq ${platform} efi    && initrd http://${booturl}/app/wimboot/bootmgfw.efi bootx64.efi ||

iseq ${platform} pcbios && initrd http://${booturl}/app/wimboot/biosbcd  bcd ||

iseq ${platform} efi    && initrd http://${booturl}/app/wimboot/bcd  bcd ||

initrd http://${booturl}/app/wimboot/boot.sdi   boot.sdi  || goto retry

initrd -n boot.wim http://${booturl}${wimfile} || goto retry

boot || goto retry

#设置选择win10pe x64并启动

:win10pex64

set wimfile ${pe64wimfile=}

goto wimboot

#设置选择win10pe x32并启动

:win10pex32

set wimfile ${pe32wimfile=}

goto wimboot

#我的云启动

:retry

console

echo set Filename

read getfile

set menu-default gitcloud

goto start

#如果当前booturl变量值是proxydhcp/next-server,那么就换成next-server,反之亦然,我瞎写的,不知道语法有没有问题

:retryip

issq ${booturl} ${proxydhcp/next-server} && set booturl ${next-server} && goto start ||

set booturl ${proxydhcp/next-server} && goto start

#下面都是些进入命令行模式,重启,退出,关机之类的,还有些备用项目,不用解释

:shell

echo Type 'exit' to get the back to the menu

shell

goto start

:failed

echo Booting failed, dropping to shell

goto shell

:reboot

reboot

:exit

exit

:config

config

goto start

脚本应该还有些错误,待闲时更新

linux 单文件4g,[史上最伟大网管]miniLinux网启server撒旦单文件版使用技巧和ipxe脚本解释20190814...相关推荐

  1. Linux 面试题(史上最全面试题,精心整理100家互联网企业,面试必过)

    最全面试题,精心整理100家互联网企业面经,祝你面试成功.面试必过(2023优化版)已发布在个人微信公众号[面向Offer学编程],优化版首先修正了读者反馈的部分答案存在的错误,同时根据最新面试总结, ...

  2. mdf文件和ldf文件ndf是什么,怎么用?如何给SQL server添加数据文件?分离和附加数据库的操作

    目录 三种文件介绍: 附加数据库操作: 分离数据库: bak备份文件: 三种文件介绍: 在微软的SQL Server 2000 数据库有三种类型的文件: 类型 缩写 中文意思 mdf primary ...

  3. linux把m4s格式转换mp4,史上最详细!如何将B站缓存的m4s文件无损转换为mp4格式

    1. 首先我们将视频缓存下来,然后找到需要的m4s文件(已经找到m4s文件的可以跳过此步) 在B站主界面点击我的,然后点击离线缓存,再点击右上角的设置,进入如下界面 然后点击自定义目录,设置成你能找到 ...

  4. Kali linux安装步骤,史上最详细的步骤,傻瓜式教学

    Kali linux安装步骤 Kali linux安装步骤 一. 虚拟机安装 下载镜像文件https://www.kali.org/downloads/ 可以选择自己的版本,这里选择的是64位 1. ...

  5. linux vi使用手册,史上最全VIM使用手册

    vim是一个向上兼容于vi的文本编辑器,可用于编辑各种纯文本.它对编辑程序特别有用. 基本模式:编辑模式:默认编辑文件进入的模式 输入模式: 末行模式:内置的命令行接口 基本使用:# vim [opt ...

  6. 红旗linux as4,可能是史上最完美的IC5141安装说明档(RHEL-AS4)

    文档作者:Sideway 联系方式:EMAIL:xtadw@yahoo.com.cn QQ:19487607 一.安装环境 1.硬件需求 (1)内存128M以上 (2)硬盘空间10G以上(IC5141 ...

  7. linux ps 简书,史上最全ps 命令解析

    进程状态 https://www.cnblogs.com/diegodu/p/9167671.html Linux进程状态:D (TASK_UNINTERRUPTIBLE),不可中断的睡眠状态. 与T ...

  8. linux 怎么卸载gnome-screenshot,史上最全的使用 gnome-screenshot 获取屏幕快照指南

    在应用市场中有好几种屏幕截图工具,但其中大多数都是基于 GUI 的.如果你花时间在 linux 命令行上工作,而且正在寻找一款优秀的功能丰富的基于命令行的屏幕截图工具,你可能会想尝试 gnome-sc ...

  9. linux操作系统版本_史上最全的Linux 各个发行版本的优点、缺点、发展史介绍

    概述 今天主要学习一下Linux 各个发行版本,看一下各个发现版本的发展史. 什么是Linux? 也许很多人会认为Linux不就是个操作系统么.其实严格来讲,Linux只是一个操作系统中的内核.内核是 ...

最新文章

  1. 【深度学习】如何从结构出发更好的改进一个神经网络(二)
  2. ffmpeg 0.8.11 VC编译的SDK已经发布
  3. bzoj2111,P2606-[ZJOI2010]排列计数【Lucas,组合计数,dp】
  4. php面试题接口方面,php面试题6 - osc_xb4v1nhl的个人空间 - OSCHINA - 中文开源技术交流社区...
  5. c语言指针慕课,C语言指针
  6. 2019-04-17 PowerShell基本语法
  7. 社会关系分析_肯德基加盟费分析!肯德基加盟流程!肯德基加盟条件2021
  8. VC6 SDK 下载
  9. 记录工作时,优化程序代码二
  10. Android WebView性能分析与优化
  11. 多层线性模型和面板数据模型笔记(待完善,持续更)
  12. ACL2021_Lexicon Enhanced Chinese Sequence Labelling Using BERT Adapter
  13. PAT : PAT (Basic Level) Practice(中文)答案(1001 ~ 1095)(纯C编写)
  14. 效率是绳,质量是命!——浅析如何运用UML来提高手游团队的绳命质量
  15. ie上直接打开服务器word文档,win7 ie11直接打开word
  16. 请先切换至Wxml Pannel的解决方法
  17. easypoi导入excel实践方法:
  18. C#转换Excel表格中的科学计数法数字
  19. jdk几个好用的性能调优工具
  20. 战国策评析(二)---秦

热门文章

  1. 【Java入门】统计字符串中“ a ~ z “各个字符出现的次数
  2. 家用打印机助力返校季 惠普发布《亚洲儿童学习白皮书》
  3. 希望不是我的神话-coder's_life(转)
  4. 快消出海系列:轻松找准波动原因--快消品出口额下降归因分析
  5. 自然语言处理(NLP)数据集汇总 4(附下载链接)
  6. Pico 的安卓自启动
  7. 入行物联网8年后的自白,机智云系“物联网创业者”的希望承载者
  8. Pygame学习笔记13:Dungeon角色扮演游戏
  9. vue中按ctrl原页面锁定打开新页面
  10. PowerPMAC技术培训------7、上位机开发 PDK