You are currently browsing the archives for the 系统 category


联想thinkpad x220,X220t,x220i,x220s windows 7 x64 专业版恢复盘下载地址

FRU:04X0006
只对本机自带slic2.1能激活
Type:(NEW)!
4286,4287,4289,4290,4291,
4294,4296,4297,4298,4299.

发布时间:2011.6.30日
恢复介质:4DVD
disc 1 0A25253 3.37GB
disc 2 0A40447 4.25GB
disc 3 0A40473 814MB
additional software disc 89Y6527 1.14GB
前三张盘为系统恢复盘,第四张为额外软件盘
Continue reading →

hanewin或TFTP32+binlsrv.exe搭建windows 远程安装环境

我的远程计算机系统是32bit windows 7 pro中文版,待安装的系统为windows xp sp2 中文专业版。

参考的资料有:

http://blog.csdn.net/magicbreaker/article/details/3373728

—–说实在的,实际上不用那么复杂。

http://bbs.znpc.net/viewthread.php?tid=4192

——描述得比较简单,不过够清楚,可以作为配置的主干

用到的软件:

http://www.hanewin.net/dhcp-e.htm

——这款软件的稳定性不错,但是在客户端电脑读取winnt.sif的时候,经常会抽风,使得客户端无法获取winnt.sif。

http://tftpd32.jounin.net/tftpd32_download.html

——我下载的是tftpd32 standard edition (zip),这款软件的问题是,快速传送文件的时候,TFTP服务端经常会崩溃。

http://diddy.boot-land.net/pxe/files/binl.htm

——主要用到里面的binlsrv.exe,infparser.exe(用于生成nics.txt和devlist.cache),用法可以参考以上提到的参考资料。参考资料里面说devlist.cache在windows的环境下用不到,不过我用的这个版本的binlsrv.exe程序提示必须有devlist.cache这个文件与binlsrv.exe在同一个目录下,否则程序无法启动。

简要步骤提炼:

1、准备好TFTP/DHCP服务器,比如tftp32或者hanewin

2、设定好DHCP/TFTP服务器,指定TFTP根目录和启动文件名(startrom.n12或其他)。

3、建立tftp server的根目录,比如tftpboot

目录结构如下:

tftpboot
│ ntdetect.com
│ ntldr
│ startrom.n12
│ winnt.sif

└─boot
    └─I386

并将tftpboot共享出去(无密码共享),否则客户端无法读取i386目录下的文件。

以上各文件的来历:

①ntdetect.com,直接来源于i386目录下的同名文件,复制一份即可

②ntldr, 取i386目录下的SETUPLDR.EX_,文件解压、更名而来,解压出来的文件名叫做setupldr.exe,直接改名为ntldr即可

③startrom.n12,取i386目录下的STARTROM.N1_,文件解压而来,解压出来的文件名即叫做startrom.n12

④winnt.sif,此文件为系统安装配置指导文件,内容可参考如下:

[Data]
    AutoPartition=0
    floppyless = "1"
    msdosinitiated = "1"
    ; Needed for second stage
    OriSrc = "\\192.168.0.1\tftpboot\boot\i386"
    OriTyp = "4"
    LocalSourceOnCD = 1
    DisableAdminAccountOnDomainJoin = 1
    UnattendedInstall = "No"
[SetupData]
    OsLoadOptions = "/fastdetect"
    ; Needed for first stage
    SetupSourceDevice = "\Device\LanmanRedirector\192.168.0.1\tftpboot\boot"

[UserData]
    ComputerName=MTH
    ; if needed
    ProductID=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX

[RemoteInstall]
    Repartition = No
    UseWholeDisk = No

⑤i386目录即为XP光盘里面的i386目录(完整目录及目录下文件)

4、将客户端网卡驱动程序.sys文件放入i386目录下

5、将由infparser.exe生成的网卡信息文件nics.txt和devlist.cache放在binlsrv.exe相同的文件夹下,启动binlsrv.exe

6、启动tftp/dhcp服务器

7、远端客户机可以开始网络安装系统了。

 

遇到的问题:

1、网卡驱动:一定要用正确的网卡驱动,可以直接用“infparser.exe  网卡驱动.inf” 生成 nics.txt。最好将“网卡驱动.inf”中的无用驱动信息都删除。

2、安装开始时,windows XP一直卡在滚动条那里不动,原因是TFTP根目录没有被正确的共享。如:http://www.renren.it/a/caozuoxitong/Windows/20101005/32838.html     ,win7下的共享设置方法见:http://wenku.baidu.com/view/0b0ad619964bcf84b9d57b4d.html,一定要设置为 “无密码共享”,否则客户端无法读取安装文件。

Sun Solaris 10下编译安装iperf-2.0.4

一个朋友在solaris下安装iperf时不顺利,大致情况是编译过程出错,无法完成编译。他的安装环境,我无法得知,这里,我用虚拟机模拟安装。

系统环境:windows 7 ultimate x64 Edition /T9500 @ 2.60 GHz/4GB RAM/Vmware 6.5.3 build 185404/Sun Solaris 10 x86 /gcc 3.4.6 /iperf-2.0.4

一、安装系统

这个过程就省略了,实在没必要在这里介绍。

二、安装gcc

solaris默认安装是不带gcc的,所以,我们需要自行安装

1、系统环境准备(更改系统shell环境为bash,默认shell着实不好用)

a.由于系统默认的shell使用不太方便,所以将系统shell更改为bash。

# which bash

/usr/bin/bash

# usermod -s /usr/bin/bash root

b.建立系统 .profile文件:

# cp /etc/skel/local.profile /.profile

c.在.profile文件中添加如下内容

PATH=/usr/bin:/usr/local/bin:/usr/ucb:/etc:/usr/sbin:/usr/sfw/bin:/usr/ccs/bin:/opt/csw/bin:.

export PATH

export PS1=’u:w#’

d. 从Solaris 10安装光盘中安装如下工具包(这是为从网上下载gcc包做准备,如果已经下载好了,就不需要这一步了)

# pkgadd –d /cdrom/Solaris_10/Product  SUNWwgetr

# pkgadd –d /cdrom/Solaris_10/Product  SUNWwgetu

# pkgadd –d /cdrom/Solaris_10/Product  SUNWwgetS

# pkgadd –d /cdrom/Solaris_10/Product  SUNWgcmn

2.下载gcc软件(如果已经下载好了,则只需将这些包拷贝到solaris中即可)

#wget ftp://ftp.sunfreeware.com/pub/freeware/intel/10/gcc-3.4.6-sol10-x86-local.gz

#wget ftp://ftp.sunfreeware.com/pub/freeware/intel/10/libiconv-1.11-sol10-x86-local.gz

#wget ftp://ftp.sunfreeware.com/pub/freeware/intel/10/libgcc-3.4.6-sol10-x86-local.gz

#wget ftp://ftp.sunfreeware.com/pub/freeware/intel/10/libintl-3.4.0-sol10-x86-local.gz

注:第一个为gcc的应用程序,下面3个为gcc的库文件包

3.解压和安装

# gunzip  gcc-3.4.6-sol10-x86-local.gz

# gunzip  libiconv-1.11-sol10-x86-local.gz

# gunzip  libgcc-3.4.6-sol10-x86-local.gz

# gunzip  libintl-3.4.0-sol10-x86-local.gz

# pkgadd  -d  gcc-3.4.6-sol10-x86-local

# pkgadd  -d  libiconv-1.11-sol10-x86-local.gz

# pkgadd  -d  libgcc-3.4.6-sol10-x86-local.gz

# pkgadd  -d  libintl-3.4.0-sol10-x86-local.gz

4. 修改 .profile文件

在 .profile文件中增加如下内容

export LD_LIBRARY_PATH=/usr/local/lib:.

export CC=gcc

三、安装iperf-2.0.4

1. 解压iperf-2.0.4

# tar zxvf  iperf-2.0.4.tar.gz

2. 配置iperf

# cd iperf-2.0.4

#./configure

这时候,部分输出如下(只截取了我们关心的部分):

then mv -f “.deps/tcp_window_size.Tpo” “.deps/tcp_window_size.Po”; else rm -f “.deps/tcp_window_size.Tpo”; exit 1; fi
g++ -Wall -O2    -o iperf -O2  -D_REENTRANT -pthread  -DHAVE_CONFIG_H Client.o Extractor.o  Launch.o List.o Listener.o  Locale.o PerfSocket.o ReportCSV.o  ReportDefault.o Reporter.o Server.o  Settings.o SocketAddr.o gnu_getopt.o  gnu_getopt_long.o main.o service.o  sockets.o stdio.o tcp_window_size.o ../compat/libcompat.a -lsocket -lnsl
g++: unrecognized option `-pthread’
Undefined                       first referenced
symbol                             in file
sched_yield                         ../compat/libcompat.a(Thread.o)
ld: fatal: Symbol referencing errors. No output written to iperf
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `iperf’
Current working directory /Documents/iperf-2.0.4/src
*** Error code 1
The following command caused the error:
failcom=’exit 1′;
for f in x $MAKEFLAGS; do
case $f in
*=* | –[!k]*);;
*k*) failcom=’fail=yes’;;
esac;
done;
dot_seen=no;
target=`echo all-recursive | sed s/-recursive//`;
list=’compat doc include src man’; for subdir in $list; do
echo “Making $target in $subdir”;
if test “$subdir” = “.”; then
dot_seen=yes;
local_target=”$target-am”;
else
local_target=”$target”;
fi;
(cd $subdir && make  $local_target)
|| eval $failcom;
done;
if test “$dot_seen” = “no”; then
make  “$target-am” || exit 1;
fi; test -z “$fail”
make: Fatal error: Command failed for target `all-recursive’
Current working directory /Documents/iperf-2.0.4
*** Error code 1
make: Fatal error: Command failed for target `all’

仔细观察,我看到了这样一行“g++: unrecognized option `-pthread’”,这之前确实有一行代码用到了pthread这个参数。于是,从头再来:

#make clean

#./configure –disable-threads

# make

# make install

以上,一切顺利。

至此,在solaris 10上成功完成安装iperf-2.0.4。