IPX 与 DOS 和 DOSBox 联网(在 Raspbian 下)

IPX Networking with DOS and DOSBox (under Raspbian)

我的长期目标是在 3 screen mode 中获得 Doom(版本 1.1) 运行 在混合硬件上(1 x Pentium 3 在 DOS 7.10 下和 2 x Raspberry Pi 在Raspbian).

我有 DOS 运行ning LNE100TX(如果有帮助,我可以分享配置文件)。

我在 Raspbian 下启动 DOSBox 的配置文件中启用了 IPX。

[ipx]
# ipx: Enable ipx over UDP/IP emulation.
ipx=true

pi@raspberrypi:~$ dosbox
DOSBox version 0.74
Copyright 2002-2010 DOSBox Team, published under GNU GPL.
---
CONFIG:Loading primary settings from config file /home/pi/.dosbox/dosbox-0.74.conf
MIXER:No Sound Mode Selected.
ALSA:Can’t subscribe to MIDI port (65:0) nor (17:0)
MIDI:Opened device:none

我启动了 ipx 服务器并在 DOSBox 中安装了驱动器

Z:\>ipxnet startserver 19900
IPX Tunneling utility for DosBox
IPX Tunneling Server started

Z:\>mount c ~/dos-games
Drive C is mounted as local directory /home/pi/dos-games/

我在 Github 上找到 ipxbox 上面写着:

ipxbox is a standalone DOSBox IPX server written in Go. DOSBox clients can connect to the server and play together.

A unique feature is that it is optionally able to bridge to real physical networks, in a manner similar to a VPN. DOSBox clients can communicate with each other on the server, but with this feature enabled they can also communicate with physical IPX nodes on the connected network. So emulated DOS clients should be able to play games against real DOS machines connected to the same network.

所以,我安装了 Go:

pi@raspberrypi:~ $ sudo apt-get install libpcap-dev
pi@raspberrypi:~ $ export GOPATH=/home/pi/work
pi@raspberrypi:~ $ export PATH=$PATH:$GOPATH/bin
pi@raspberrypi:~ $ sudo apt-get install golang

然后我尝试安装 ipxbox:

pi@raspberrypi:~ $ go get github.com/fragglet/ipxbox
pi@raspberrypi:~ $ cd work
pi@raspberrypi:~ $ go build ipxbox.go

这是我在 运行 此命令时收到的消息:

#github.com/google/gopacket/pcap
go/src/github.com/google/gopacket/pcap/pcap_unix.go:34:18: fatal error: pcap.h: No such file or directory
#include <pcap.h>
compilation terminated.

也许这是显而易见的,但我对Linux不是很熟悉。有没有人对造成这种情况的原因有任何建议?

您需要安装 pcap 开发包。

sudo apt-get install libpcap-dev