如何网络启动BitDefender救援CD(PXE)

We’ve already shown you how to use the BitDefender Rescue CD to clean your infected PC, but what if you wanted to achieve the same thing only without a CD over the network? In this guide, we’ll show you how.

我们已经向您展示了如何使用BitDefender Rescue CD清洁受感染的PC ,但是如果您只想在没有网络CD的情况下实现相同的目的怎么办? 在本指南中,我们将向您展示如何进行。

Image by baronsquirrel

图片来自baronsquirrel

先决条件 (Prerequisites)

  • It is assumed that you have already setup the FOG server as explained in our “What Is Network Booting (PXE) and How Can You Use It?” guide.

    假定您已经按照我们的“ 什么是网络引导(PXE)和如何使用它 ”中的说明安装了FOG服务器 指南。

  • You will see the “VIM” program used as the editor, this is mainly because it is widely available on Linux platforms. You may use any other editor that you’d like.

    您将看到“ VIM ”程序用作编辑​​器,这主要是因为它在Linux平台上广泛可用。 您可以使用任何其他想要的编辑器。

总览 (Overview)

In the The 10 Cleverest Ways to Use Linux to Fix Your Windows PC, one of the things we’ve shown, was that it is possible to install an antivirus and scan your computer from an Ubuntu LiveCD. With that said, what if you wanted to make absolutely sure that your computer is not infected by scanning it with another antivirus?

在“ 使用Linux修复Windows PC的10种最聪明的方法”中,我们展示的一件事是可以从Ubuntu LiveCD安装防病毒软件并扫描计算机。 话虽如此,如果您想通过使用另一种防病毒软件扫描计算机以确保绝对没有感染计算机,该怎么办?

To that end, you could use another antivirus rescue CD, and there are some out there that we have reviewed in the past like Kaspersky and Avira. The clever thing is, what if you wanted to add this additional tool to your PXE server, so you’d never again have to look for the CD of the utility?

为此,您可以使用另一张防病毒救援CD,并且过去我们曾经审查过其中的一些文件,例如KasperskyAvira 。 聪明的事情是,如果您想将此附加工具添加到PXE服务器中,那么您将不必再寻找该实用程序的CD怎么办?

We’ve done the legwork and found that, even though it requires some TLA post boot, the BitDefender Rescue CD is by far the easiest to get PXEable from the above options.

我们已经完成了工作,发现,即使需要一些TLA后引导, BitDefender Rescue CD还是从上述选项中最容易获得PXEable的工具。

In the “How to Setup Network Bootable Utility Discs Using PXE” guide, we’ve promised that we will give another example for the “Kernel + Initrd + NFS method” and we shall deliver. The principle here is just the same as for the How To Network Boot (PXE) The Ubuntu LiveCD.

在“ 如何使用PXE设置网络可引导实用程序光盘 ”指南中,我们承诺将提供“内核+ Initrd + NFS方法”的另一个示例,我们将提供。 这里的原理与Ubuntu LiveCD的“ 如何进行网络引导(PXE)”相同

We will take the files off of the CD, make them available through an NFS share, and point the PXE client to this NFS share as its “root filesystem”.

我们将从CD中取出文件,通过NFS共享使它们可用,并将PXE客户端指向该NFS共享作为其“根文件系统”。

服务器端设置 (Server side setup)

What you would do is repeat the steps taken in the How To Network Boot (PXE) The Ubuntu LiveCD guide, which were:

您要做的就是重复How to Network Boot(PXE)Ubuntu LiveCD指南中采取的步骤,这些步骤是:

  • Download the latest ISO from bitdefender’s site and put it in the “/tftpboot/howtogeek/utils/”.

    从bitdefender的站点下载最新的ISO ,并将其放在“ / tftpboot / howtogeek / utils /”中。

  • Create the mount point:

    创建安装点:

    sudo mkdir -p /tftpboot/howtogeek/utils/bitdefender

    sudo mkdir -p /tftpboot/howtogeek/utils/bitdefender

  • Edit the “fstab” file to have the ISO auto-mounted at boot:

    编辑“ fstab ”文件以在启动时自动挂载ISO:

    sudo vim /etc/fstab

    sudo vim /etc/fstab

  • Append to “fstab” the ISO mount entry:

    附加到“ fstab” ISO安装条目:

    /tftpboot/howtogeek/utils/bitdefender-rescue-cd.iso /tftpboot/howtogeek/utils/bitdefender udf,iso9660 user,loop 0 0

    /tftpboot/howtogeek/utils/bitdefender-rescue-cd.iso /tftpboot/howtogeek/utils/bitdefender udf,iso9660 user,loop 0 0

    Note: Despite representation, this is one unbroken line.

    注意:尽管有代表性,但这是一条连续的线。

  • Test that the mount point works by issuing:

    通过发出以下命令来测试安装点是否正常工作:

    sudo mount -a

    sudo mount -a

  • If all went well, you should be able to list the contents of the ISO by issuing:

    如果一切顺利,您应该可以通过发出以下命令列出ISO的内容:

    ls -lash /tftpboot/howtogeek/utils/bitdefender/

    ls -lash /tftpboot/howtogeek/utils/bitdefender/

  • Create an NFS share by editing the “exports” file:

    通过编辑“导出”文件来创建NFS共享:

    sudo vim /etc/exports

    sudo vim /etc/exports

  • Append to it the pointer to our ISO mount point:

    附加指向我们ISO挂载点的指针:

    /tftpboot/howtogeek/utils/bitdefender *(ro,sync,no_wdelay,insecure_locks,no_root_squash,insecure)

    /tftpboot/howtogeek/utils/bitdefender *(ro,sync,no_wdelay,insecure_locks,no_root_squash,insecure)

  • Restart the NFS service for the settings to take affect:

    重新启动NFS服务以使设置生效:

    sudo /etc/init.d/nfs-kernel-server restart

    sudo /etc/init.d/nfs-kernel-server restart

  • Create the PXE menu entry by editing the “Utils” menu:

    通过编辑“实用程序”菜单来创建PXE菜单项:

    sudo vim /tftpboot/howtogeek/menus/utils.cfg

    sudo vim /tftpboot/howtogeek/menus/utils.cfg

  • Append to it the following:

    附加以下内容:

    label BitDefender Rescue Live
    kernel howtogeek/utils/bitdefender/casper/vmlinuz
    append file=/cdrom/preseed/ubuntu.seed boot=casper initrd=howtogeek/utils/bitdefender/casper/initrd.gz splash vga=791 lang=us root=/dev/nfs netboot=nfs nfsroot=<YOUR-SERVER-IP>:/tftpboot/howtogeek/utils/bitdefender

    label BitDefender Rescue Live
    kernel howtogeek/utils/bitdefender/casper/vmlinuz
    append file=/cdrom/preseed/ubuntu.seed boot=casper initrd=howtogeek/utils/bitdefender/casper/initrd.gz splash vga=791 lang=us root=/dev/nfs netboot=nfs nfsroot=<YOUR-SERVER-IP>:/tftpboot/howtogeek/utils/bitdefender

That is it on the server’s side, your client should be ready to boot into the rescue CD via PXE.

就在服务器端,您的客户端应该已经准备好通过PXE引导到救援CD中。

客户端使用 (Client side usage)

As we said in the overview, this antivirus requires some intervention, when you actually boot into it using PXE vs the client booted from CD mode.

正如我们在概述中所述,当您使用PXE引导从CD模式引导的客户端时,这种防病毒需要一些干预。

The problem is in the way the network is setup/detected when the Linux’s rescue CD is booted, but the fix is rather simple.

问题在于引导Linux的救援CD时如何设置/检测网络,但修复方法非常简单。

av-update

When you boot into the rescue environment, you will be greeted by an update error like:

当您启动到救援环境时,将出现如下更新错误:

Click OK and close this message.

单击确定,然后关闭此消息。

av-update2

Next, click on the “Dog” icon to bring up programs menu. Once in the terminal bring up the Midnight commander with root privileges, by issuing:

接下来,单击“狗”图标以调出程序菜单。 进入终端后,通过发出以下命令,以root权限调出Midnight指挥官

sudo mc

sudo mc

av-update3

Once in the midnight commander, go into “/etc/network” and edit (use F4) the “interfaces” file.

进入午夜指挥官后,进入“ / etc / network”并编辑(使用F4)“ interfaces”文件。

Find the line which reads “iface eth0 inet manual”, and replace manual with “dhcp”.

找到显示“ iface eth0 inet手册”的行,然后将手册替换为“ dhcp”。

av-update4

So that your end configuration should look something like:

这样您的最终配置应类似于:

Quit “edit mode” while saving your changes by hitting “F10” and selecting “Yes” when prompted.

保存更改时退出“编辑模式”,方法是按“ F10”并在出现提示时选择“是”。

Restart the clients networking, by issuing:

通过发出以下命令重新启动客户端网络:

sudo /etc/init.d/networking restart

sudo /etc/init.d/networking restart

If all went well you should see that you obtained an IP address and now you can use the update function of the BitDefender application.

如果一切顺利,您应该看到已经获取了IP地址,现在您可以使用BitDefender应用程序的更新功能了。

av-update5

From here on out, the instructions are the same as with the How to Use the BitDefender Rescue CD to Clean Your Infected PC guide.

从这里开始,说明与如何使用BitDefender Rescue CD清洁感染的PC指南相同。

Smile

Its easy once you get the hang of it… and as always, Enjoy your virus-free PC

一经掌握,它就很容易...而且像往常一样,享受无病毒的PC



The main image is by baronsquirrel, the rest were captured by Aviad Raviv.

主要图像是男爵夫人拍摄的 ,其余的则是Aviad Raviv拍摄的。

Have no fear for the geek is here.

不用担心极客在这里。

翻译自: https://www.howtogeek.com/64259/how-to-network-boot-the-bitdefender-rescue-cd-pxe/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值