pvpgn安装笔记

原创 2004年09月22日 20:52:00

需要的程序
http://pvpgn.cyfxstudios.com/main.html
pvpgn-1.6.5.tar.bz2
PvPGN Support Files 1.0 (nix)
BattleNet Gateway Editor (PC)
w3l.exe
安装说明
http://pvpgn.ez15loan.com/
http://www.lostcity.cn/bbs/index.php?showforum=12
http://www.soarchin.com/
chroot pvpgn
安装路径是/home/pvpgn
建立chroot需要的目录
mkdir -p /chroot/{home,bin,sbin,dev,etc,tmp,usr/lib,usr/libexec,var/run,var/log}
chmod 1777 tmp
truss /hoem/pvpgn/sbin/bnetd
kid# truss /home/pvpgn/sbin/bnetd
mmap(0x0,2048,0x3,0x1000,-1,0x0)                 = 672108544 (0x280f9000)
munmap(0x280f9000,0x800)                         = 0 (0x0)
__sysctl(0xbfbffaf4,0x2,0x280f7fa8,0xbfbffaf0,0x0,0x0) = 0 (0x0)
mmap(0x0,32768,0x3,0x1002,-1,0x0)                = 672108544 (0x280f9000)
geteuid()                                        = 0 (0x0)
getuid()                                         = 0 (0x0)
getegid()                                        = 0 (0x0)
getgid()                                         = 0 (0x0)
open("/etc/libmap.conf",0x0,0666)                ERR#2 'No such file or directory'
open("/var/run/ld-elf.so.hints",0x0,00)          = 3 (0x3)
read(0x3,0xbfbffad4,0x80)                        = 128 (0x80)
lseek(3,0x80,0)                                  = 128 (0x80)
read(0x3,0x280fd000,0x42)                        = 66 (0x42)
close(3)                                         = 0 (0x0)
access("/usr/lib/libm.so.2",0)                   = 0 (0x0)
open("/usr/lib/libm.so.2",0x0,05003512133)       = 3 (0x3)
fstat(3,0xbfbffb1c)                              = 0 (0x0)
read(0x3,0xbfbfeaec,0x1000)                      = 4096 (0x1000)
mmap(0x0,110592,0x5,0x20002,3,0x0)               = 672141312 (0x28101000)
mprotect(0x28117000,0x1000,0x7)                  = 0 (0x0)
mprotect(0x28117000,0x1000,0x5)                  = 0 (0x0)
mmap(0x28118000,16384,0x3,0x12,3,0x16000)        = 672235520 (0x28118000)
close(3)                                         = 0 (0x0)
access("/usr/lib/libz.so.2",0)                   = 0 (0x0)
open("/usr/lib/libz.so.2",0x0,05003512133)       = 3 (0x3)
fstat(3,0xbfbffb1c)                              = 0 (0x0)
read(0x3,0xbfbfeaec,0x1000)                      = 4096 (0x1000)
mmap(0x0,53248,0x5,0x20002,3,0x0)                = 672251904 (0x2811c000)
mprotect(0x28126000,0x1000,0x7)                  = 0 (0x0)
mprotect(0x28126000,0x1000,0x5)                  = 0 (0x0)
mmap(0x28127000,8192,0x3,0x12,3,0xa000)          = 672296960 (0x28127000)
close(3)                                         = 0 (0x0)
access("/usr/lib/libc.so.4",0)                   = 0 (0x0)
open("/usr/lib/libc.so.4",0x0,05003512133)       = 3 (0x3)
fstat(3,0xbfbffb1c)                              = 0 (0x0)
read(0x3,0xbfbfeaec,0x1000)                      = 4096 (0x1000)
mmap(0x0,626688,0x5,0x20002,3,0x0)               = 672305152 (0x28129000)
mprotect(0x281aa000,0x1000,0x7)                  = 0 (0x0)
mprotect(0x281aa000,0x1000,0x5)                  = 0 (0x0)
mmap(0x281ab000,20480,0x3,0x12,3,0x81000)        = 672837632 (0x281ab000)
mmap(0x281b0000,73728,0x3,0x1012,-1,0x0)         = 672858112 (0x281b0000)
close(3)                                         = 0 (0x0)
mmap(0x0,1080,0x3,0x1000,-1,0x0)                 = 672931840 (0x281c2000)
munmap(0x281c2000,0x438)                         = 0 (0x0)
mmap(0x0,2208,0x3,0x1000,-1,0x0)                 = 672931840 (0x281c2000)
munmap(0x281c2000,0x8a0)                         = 0 (0x0)
mmap(0x0,968,0x3,0x1000,-1,0x0)                  = 672931840 (0x281c2000)
munmap(0x281c2000,0x3c8)                         = 0 (0x0)
mmap(0x0,13360,0x3,0x1000,-1,0x0)                = 672931840 (0x281c2000)
munmap(0x281c2000,0x3430)                        = 0 (0x0)
sigaction(SIGILL,0xbfbffb74,0xbfbffb5c)          = 0 (0x0)
sigprocmask(0x1,0x0,0x280f7edc)                  = 0 (0x0)
sigaction(SIGILL,0xbfbffb5c,0x0)                 = 0 (0x0)
sigprocmask(0x1,0x280f7ea0,0xbfbffb9c)           = 0 (0x0)
sigprocmask(0x3,0x280f7eb0,0x0)                  = 0 (0x0)
chdir(0x80b6493)                                 = 0 (0x0)
fork()                                           = 7993 (0x1f39)
exit(0x0)                                       process exit, rval = 0
整理得到
open("/var/run/ld-elf.so.hints",0x0,00)          = 3 (0x3)
open("/usr/lib/libm.so.2",0x0,05003512133)       = 3 (0x3)
open("/usr/lib/libz.so.2",0x0,05003512133)       = 3 (0x3)
open("/usr/lib/libc.so.4",0x0,05003512133)       = 3 (0x3)
得到需要库文件
cp -p /var/run/ld-elf.so.hints /chroot1/var/run/
cp -p /usr/lib/libm.so.2 /chroot/usr/lib/
cp -p /usr/lib/libz.so.2 /chroot/usr/lib/
cp -p /usr/lib/libc.so.4 /chroot/usr/lib/
建立chroot/etc/
cp -p /etc/group /chroot1/etc/
cp -p /etc/master.passwd /chroot1/etc/
cd /chroot1/etc
vi group
vi master.passwd
kid# cat /chroot1/etc/group
games:*:13:
kid# cat /chroot1/etc/master.passwd
games:*:7:13::0:0:Games pseudo-user:/dev/null:/sbin/nologin
pwd_mkdb -d /chroot1/etc/ master.passwd
rm /chroot1/etc/master.passwd
-------------------------------------------------------------------
cp -p /sbin/nologin /chroot1/sbin/
kid# ls -alo /dev/null
crw-rw-rw-  1 root  wheel  -   2,   2 Oct 19 14:43 /dev/null
mknod /chroot1/dev/null c 2 2
kid# ls -alo /chroot1/dev
crw-r--r--   1 root  wheel  -   2,   2 Oct 19 15:30 null
kid#chmod 666 /chroot1/dev/null
kid#ls -alo /chroot1/dev/null
crw-rw-rw-   1 root  wheel  -   2,   2 Oct 19 15:30 null
-------------------------------------------------------------------
cp -Rp /home/pvpgn /chroot1/home/
cd /chroot1/home/pvpgn
chown  -R games:games var
-------------------------------------------------------------------
kid# pwd
/chroot1/home/pvpgn
kid# ls -al
total 14
drwxr-xr-x   7 root   wheel   512 Sep 22 12:45 .
drwxr-xr-x   3 root   wheel   512 Oct 19 15:33 ..
drwxr-xr-x   2 root   wheel   512 Sep 22 12:45 bin
drwxr-xr-x   2 root   wheel  1024 Sep 22 21:37 etc
drwxr-xr-x   4 root   wheel   512 Sep 22 12:45 man
drwxr-xr-x   2 root   wheel   512 Sep 22 12:45 sbin
drwxr-xr-x  14 games  games   512 Sep 22 15:44 var
----------------------------------------------------------------------
test chroot pvpgn
chroot /chroot1/ /home/pvpgn/sbin/bnetd -D
ELF interpreter /usr/libexec/ld-elf.so.1 not found
cp -p /usr/libexec/ld-elf.so.1 /chroot1/usr/libexec/
chroot /chroot1/ /home/pvpgn/sbin/bnetd -D
OK
sockstat |grep 6200
sockstat |grep 6112


ubuntu16.04 安装为知笔记

ubuntu 安装为知笔记目录ubuntu 安装为知笔记 目录 简介 安装git 安装cc编译工具 安装Cmake 安装zlib 安装Qt Clone为知笔记源代码 编译源代码 运行Qt 打开WizT...
  • a87768092
  • a87768092
  • 2017年01月10日 11:38
  • 3306

Linux系统使用--Ubuntu 16.04 安装为知笔记

一、前言为了测试MetaWebBlog协议在为知笔记的使用情况,需要安装为知笔记。二、准备工具和环境搭建2.1 准备工具安装Linux版的为知笔记需要准备很多必要的工具,现列表如下:1. Qt下载 ...
  • qq_33429968
  • qq_33429968
  • 2017年03月24日 17:30
  • 2097

在 Ubuntu 16.04 中 安装为知笔记

摘要:本文讲述如何在 Ubuntu 16.04 中编译安装为知笔记。
  • u011642663
  • u011642663
  • 2017年06月21日 22:00
  • 391

OpenCV学习笔记(0x00) OpenCV的安装与配置

首先,先说明一下什么是OpenCV?我为什么要学习OpenCV? OpenCV的全称是:Open Source Computer Vision Library . (我发现对于一个英文缩写知道它的全...
  • SFQRM
  • SFQRM
  • 2016年10月09日 10:40
  • 261

linux学习笔记

grep -v ^# xxxx  查看不以#开头(非注释)的内容 查找语句:find,locate,which,whereis,grep 压缩命令:tar,gz,zip,br2 压缩:tar -...
  • sd2131512
  • sd2131512
  • 2014年11月03日 21:19
  • 520

Gentoo安装笔记

我想在自己的Macbook上搞套开发环境,但比如Mysql之类的软件不想安装在Macbook的系统里,于是就想虚拟一个系统作为服务器。Gentoo官方的文档已经非常详细,信息量巨大,如果你肯专研,那么...
  • jashawn
  • jashawn
  • 2016年09月04日 10:56
  • 171

Fuel安装笔记-搭建openstack环境流程

1.1 前言 在《Fuel安装笔记-初探Fuel》一文中介绍了Fuel Server安装过程,并对Fuel安装openstack进行了初步的了解,遗憾的是当时并没有成功的安装完成openstack环境...
  • sxmatch
  • sxmatch
  • 2014年01月07日 09:18
  • 5048

OGG学习笔记02-单向复制配置实例

OGG学习笔记02-单向复制配置实例 实验环境: 源端:192.168.1.30,Oracle 10.2.0.5 单实例 目标端:192.168.1.31,Oracle 10.2.0.5 单...
  • tCDPYh6sA3
  • tCDPYh6sA3
  • 2017年03月09日 14:52
  • 159

C白白的游戏服务器开发笔记:安装linux虚拟机

一个游戏客户端程序员,但是有了一颗做一个服务器的心,于是便决定利用业余时间开发一款游戏服务器。经过3个月的无休无眠之后,终于写出了一个分布式java游戏服务器,并且和另一个客户端程序员合作,实现了德州...
  • webuse
  • webuse
  • 2017年06月11日 10:54
  • 151

使用Linux版印象笔记nixnote2

Edit 使用Linux版印象笔记nixnote2 厌倦了windows10,最近一直使用ubuntu系统,其他都还好,就是我使用的笔记软件印象笔记只有网页版使用不方便。看到有非官...
  • u013401853
  • u013401853
  • 2017年03月26日 00:26
  • 3359
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:pvpgn安装笔记
举报原因:
原因补充:

(最多只允许输入30个字)