以下全部按照 数码之家 里介绍的进行操作

买了一款 pny-m1-8G的U盘,准备做光驱用,这样就不用买光驱了

方法有2种:1、UltraISO      2、对USB进行底层设置

-——————————————————————————————————————–

我买的pny m1 详细信息:

芯片是:SMI SM3255AB 的

USB量产 - leaf - ------坚持雅操------

用量产工具检测出flash型号,并用闪存精灵检查出闪存的参数如下:

USB量产 - leaf - ------坚持雅操------

-——————————————————————————————————————–

软件:

MyDiskTest V2.93|U盘扩容检测/速度测试工具 http://dl.mydigit.net/2010/09/mydisktest.html

ChipGenius芯片精灵V3.01|USB主控芯片检测工具 :http://www.mydigit.cn/chipgenius.htm 

SMI3255AB最新量产工具SM32x_K0530_SM3255AB_(v2.03.42  )

http://bbs.mydigit.cn/read.php?tid=290932

FlashGenius V3.5|闪存精灵/FLASH参数查询 http://dl.mydigit.net/2010/09/FlashGenius.html

-———————————————————————————————————————-

量产操作:

1、第一次量产操作

按照这个一步一步操作即可

 慧荣SM321~SM3257 量产CDROM成功 全文图解

一看就会,smi32x量产详细图示教程(已添加说明文字)

做好后我看跳出来说要格式化,然后就格式化了,格了之后才知道错了。。。把光驱格成空了。(本来直接拔出来,再插即可)

2、然后工程调试,把权限分出去的盘清除掉

参考 预防及解决“SMI方案量产CDROM后,再次量产引起无法识别出盘符问题”

点-tools-multiple erase all 清除

清除后拔出内存再插虽然能显示USB,却显示0M空间,我郁闷了。。。。

而且setting也不能操作

3、重做量产操作,然后直接拔掉U盘,再插上,搞定

这时,setting可以重新设置,跟第一步是一样的,做好后就是你想要的U盘了

USB量产操作 - leaf - ------坚持雅操------

其他:SMI方案U盘不识别盘后安装工厂驱动详细步骤

minicom -C conf-s3600

display current-configuration                                #查看当前配置
system-view
sysname H3C                                                       #更改交换机名
vlan 1 to 4                                                            #划分vlan 1-4
vlan 7                                                                   #划分vlan7
interface Vlan-interface3
ip address 192.168.1.3 255.255.255.0
interface Ethernet1/0/1
port access vlan 7
interface Ethernet1/0/2
port access vlan 3
vlan 4
port Ethernet 1/0/3 to Ethernet 1/0/36
vlan 2
port Ethernet 1/0/37 to Ethernet 1/0/48
interface GigabitEthernet1/1/1
duplex full
port link-type trunk
port trunk permit vlan all
user-interface aux 0 7
user-interface vty 0
user privilege level 3
set authentication password 7 ***
user-interface vty 1 4
save

排量:发动机做功的空间。喷空气、油料进去,活塞做功。
缸:   就是活塞数,有几个缸就有几个活塞。
          活塞连接曲轴,一字排开,旋转做功。
          缸的排列有2种,1排,跟曲轴平行排列;2排,跟曲轴平行排列。
曲轴:传递动力,曲轴有一段是弯曲的,连接活塞。
功率:P=FV P是功率,F是牵引力,V是速度。
           P是一定的,档位就是变换F,3档及以下注重F,3档以上注重V
换档:就是换齿轮。
积碳:发动机上壁由于燃烧不充分而附着了碳粉,会导致排量减少,动力缺失。

关于车 - leaf - ------坚持雅操------

http://wenku.baidu.com/view/147ee782e53a580216fcfe62.html

     为了增加无线网络的覆盖范围,增加远距离无线传输速率,使较远处能够方便快捷地使用无线来上网冲浪,这样就需要用到我们无线路由器的桥接或WDS功能。其中,桥接又分为点对点的桥接和点对多点的桥接。无线桥接示意图如下:

无线路由做桥接方法 - leaf - ------坚持雅操------

       如上图,住在同一栋楼的住户B、C、D希望通过A家的ADSL宽带无线上网,但是B、C、D家中只有部分区域信号较好,其它区域信号弱或者根本就搜不到信号,怎么办?在B、C、D家中各增加一台TP-LINK无线路由器,通过无线桥接功能就可以实现整个区域的完美覆盖、消除盲点,这是点对多点桥接的典型应用。如果只有住户B想通过A家的ADSL宽带无线上网,则需要用到点对点的桥接模式。不只是家庭,在多办公楼层、居民小区、复式家庭等环境同样可以桥接来实现无线覆盖。由于在配置过程中,点对点桥接与点对多点桥接基本类似,因此我们以点对多点桥接为例,进行配置说明。

**
1、IP设置**:
        住户A、B、C、D家中的无线路由器依次标记为无线路由器A、无线路由器B、无线路由器C、无线路由器D。IP地址192.168.1.X中X的范围为2到254之间的任何数字(1做网关地址),但是所有电脑和无线路由器的IP地址的最后一位不能相同。

2.配置无线路由器:

>>>启用无线路由器A“无线参数”的Bridge功能,写入无线路由器B、C、D的MAC地址,
      并根据个人需求修改SSID和频段;在网络参数—WAN口设置处,设置无线路由器A上网。

无线路由做桥接方法 - leaf - ------坚持雅操------

>>>配置无线路由器B、C、D:禁用DHCP服务器;

无线路由做桥接方法 - leaf - ------坚持雅操------

      修改LAN口IP地址为192.168.1.X(各设备IP不同);

无线路由做桥接方法 - leaf - ------坚持雅操------

     启用“无线参数”的Bridge功能,写入无线路由器A的MAC地址,调整频段与无线路由器A一致,修改SSID(各自不一样);

无线路由做桥接方法 - leaf - ------坚持雅操------

**3.完成设置
**       将无线路由器A、B、C、D放到指定位置。注意B、C、D的摆放位置要能较好的搜索到A的信号;
       操作各自的电脑无线连接到无线路由器,即可实现无线共享上网。

提示:不同产品的桥接功能其配置原理一样,只是在配置界面上有所区别。桥接时需要注意双方频段一致,以及填写好对方正确的无线MAC地址。

公司的是富士通的笔记本,用的是ati的显卡,投影的时候只能显示在投影或者笔记本显示屏上。
搜索了以下终于搞定了

右击桌面-点属性-设置-高级-显卡的控制面板页面-(以ati为例)ati catalyst control center-
显示器管理器-在“桌面和显示器设置“里面把“投影仪的显示器“拖上去然后设置“复制画面”即可

        买了个IP1180的打印机用了一年多,每次缺墨灌墨水都搞一手墨,有时还要清洗好长时间才能正常用。后去电脑城问加一个联供多少钱,多则4500元,少则3400百元(一般另带墨盒的)。无意中在淘宝网看到一款,加邮费75元,稍加咨询就淘了一个回来;佳能IP1180连供改装图(原创) - 豆老D - 清水绿林 博客

        拿到产品就按图纸和卖家提供的安装视频进行钻孔、走线路,很快便大功告成了;但调试打印时才傻了眼,一启动打印小车靠右就“咔”一下,红灯就亮,出错了。我反复试验,又把软管切了重装,还是不行,在网上搜索又换一种管路走法,还是不行。我开始有点着急了。

       晚上,我又在网上查能够参考的信息,看到一个网友发表的图文并茂的“将连供进行到底!佳能IP1180连供超强走线图”,才受到启发,原来这款机反连供方面够强,只能明天对它进行手术了。

      第二天星期六,我开始想怎样对它进行手术,认为左边的管路走得比较顺,不用解剖,问题出在右边;我用电烙铁和美工刀将右边容易挡管的一块塑料挖掉,装上,哎,可以正常打印了!可我试了有三四张纸的时候,红灯还是亮,又出错了;我观察发现软管还是有点碰右边,再切狠一点(图中蓝色标注部位),试打十多张,OK了!

    心里美滋滋的!

佳能IP1180连供改装图(原创) - 豆老D - 清水绿林 博客

佳能IP1180连供改装图(原创) - 豆老D - 清水绿林 博客

佳能IP1180连供改装图(原创) - 豆老D - 清水绿林 博客

 

佳能IP1180连供改装图(原创) - 豆老D - 清水绿林 博客

1、设置等待时间:10秒

修改 /etc/grub.d/30_os-prober 里的一个数字

if keystatus; then
if keystatus –shift; then
set timeout=-1
else
set timeout=10 #把0改为10
fi
else
if sleep$verbose –interruptible 3 ; then
set timeout=0
fi
fi

保存后,运行 sudo update-grub

重启后自动进入grub2界面,不需要再按shift调出来

2、设置修改grub2时的密码

1\ grub-mkpasswd-pbkdf2生成加密的密码

2\ 向/etc/grub.d/00_head末尾追加:

cat << EOF

          set superusers=”ywz”

          password_pbkdf2   ywz    grub.pbkdf2.sha512.10000.`````              #即刚才运行命令时显示的代码

          EOF

参考:1、 http://leonhongchina.blog.163.com/blog/static/1802941172011018450428/

2、http://www.douban.com/note/64464787/

/etc/hosts:127.0.0.1 ywz.leaf.com ywz localhost

/etc/krb5.conf

[libdefaults]

default_realm = LEAF.COM

# The following krb5.conf variables are only for MIT Kerberos.

krb4_config = /etc/krb.conf

krb4_realms = /etc/krb.realms

kdc_timesync = 1

ccache_type = 4

forwardable = true

proxiable = true

# The following encryption type specification will be used by MIT Kerberos

# if uncommented.  In general, the defaults in the MIT Kerberos code are

# correct and overriding these specifications only serves to disable new

# encryption types as they are added, creating interoperability problems.

#

# Thie only time when you might need to uncomment these lines and change

# the enctypes is if you have local software that will break on ticket

# caches containing ticket encryption types it doesn’t know about (such as

# old versions of Sun Java).

default_tgs_enctypes = des3-hmac-sha1

default_tkt_enctypes = des3-hmac-sha1

permitted_enctypes = des3-hmac-sha1

# The following libdefaults parameters are only for Heimdal Kerberos.

v4_instance_resolve = false

v4_name_convert = {

host = {

rcmd = host

ftp = ftp

}

plain = {

something = something-else

}

}

fcc-mit-ticketflags = true

default_tgs_enctypes = RC4-HMAC DES-CBC-MD5 DES-CBC-CRC

default_tkt_enctypes = RC4-HMAC DES-CBC-MD5 DES-CBC-CRC

preferred_enctypes = RC4-HMAC DES-CBC-MD5 DES-CBC-CRC

dns_lookup_kdc = true

[realms]

ATHENA.MIT.EDU = {

kdc = kerberos.mit.edu:88

kdc = kerberos-1.mit.edu:88

kdc = kerberos-2.mit.edu:88

admin_server = kerberos.mit.edu

default_domain = mit.edu

}

MEDIA-LAB.MIT.EDU = {

kdc = kerberos.media.mit.edu

admin_server = kerberos.media.mit.edu

}

ZONE.MIT.EDU = {

kdc = casio.mit.edu

kdc = seiko.mit.edu

admin_server = casio.mit.edu

}

MOOF.MIT.EDU = {

kdc = three-headed-dogcow.mit.edu:88

kdc = three-headed-dogcow-1.mit.edu:88

admin_server = three-headed-dogcow.mit.edu

}

CSAIL.MIT.EDU = {

kdc = kerberos-1.csail.mit.edu

kdc = kerberos-2.csail.mit.edu

admin_server = kerberos.csail.mit.edu

default_domain = csail.mit.edu

krb524_server = krb524.csail.mit.edu

}

IHTFP.ORG = {

kdc = kerberos.ihtfp.org

admin_server = kerberos.ihtfp.org

}

GNU.ORG = {

kdc = kerberos.gnu.org

kdc = kerberos-2.gnu.org

kdc = kerberos-3.gnu.org

admin_server = kerberos.gnu.org

}

1TS.ORG = {

kdc = kerberos.1ts.org

admin_server = kerberos.1ts.org

}

GRATUITOUS.ORG = {

kdc = kerberos.gratuitous.org

admin_server = kerberos.gratuitous.org

}

DOOMCOM.ORG = {

kdc = kerberos.doomcom.org

admin_server = kerberos.doomcom.org

}

ANDREW.CMU.EDU = {

kdc = vice28.fs.andrew.cmu.edu

kdc = vice2.fs.andrew.cmu.edu

kdc = vice11.fs.andrew.cmu.edu

kdc = vice12.fs.andrew.cmu.edu

admin_server = vice28.fs.andrew.cmu.edu

default_domain = andrew.cmu.edu

}

CS.CMU.EDU = {

kdc = kerberos.cs.cmu.edu

kdc = kerberos-2.srv.cs.cmu.edu

admin_server = kerberos.cs.cmu.edu

}

DEMENTIA.ORG = {

kdc = kerberos.dementia.org

kdc = kerberos2.dementia.org

admin_server = kerberos.dementia.org

}

stanford.edu = {

kdc = krb5auth1.stanford.edu

kdc = krb5auth2.stanford.edu

kdc = krb5auth3.stanford.edu

master_kdc = krb5auth1.stanford.edu

admin_server = krb5-admin.stanford.edu

default_domain = stanford.edu

}

LEAF.COM = {

auth_to_local = RULE:[1:$0\$1](^LEAF\.COM\\.*)s/^LEAF\.COM/LEAF/

auth_to_local = RULE:[1:$0\$1](^LEAF\.COM\\.*)s/^LEAF\.COM/LEAF/

auth_to_local = DEFAULT

}

[domain_realm]

.mit.edu = ATHENA.MIT.EDU

mit.edu = ATHENA.MIT.EDU

.media.mit.edu = MEDIA-LAB.MIT.EDU

media.mit.edu = MEDIA-LAB.MIT.EDU

.csail.mit.edu = CSAIL.MIT.EDU

csail.mit.edu = CSAIL.MIT.EDU

.whoi.edu = ATHENA.MIT.EDU

whoi.edu = ATHENA.MIT.EDU

.stanford.edu = stanford.edu

.slac.stanford.edu = SLAC.STANFORD.EDU

.LEAF.com = LEAF.COM

[login]

krb4_convert = true

krb4_get_tickets = false

[appdefaults]

pam = {

   mappings = LEAF\\(.*) $1@LEAF.COM

   forwardable = true

   validate = true

}

httpd = {

   mappings = LEAF\\(.*) $1@LEAF.COM

   reverse_mappings = (.*)@LEAF\.COM LEAF\$1

}

desktop:~/Ocsinventory-Agent-2.0rc4$ sudo make install

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Compress.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/postinst.pl

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Logger.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/LoggerBackend/Stderr.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/LoggerBackend/File.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/LoggerBackend/Syslog.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Network.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Hooks.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Config.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/AccountConfig.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Common.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/AccountInfo.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/IpDiscover.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/DeviceID.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/AccessLog.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/Virtualization/Parallels.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/Virtualization/Libvirt.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/Virtualization/SolarisZones.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/Virtualization/VmWareDesktop.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/Virtualization/Xen.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/Virtualization/VirtualBox.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/Virtualization/VmWareESX.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/Virtualization/Vmsystem.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/Virtualization/Qemu.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/Virtualization/Xen/XM.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/IpDiscover/IpDiscover.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/IpDiscover/Nmap.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/AIX.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/HPUX.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Solaris.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/BSD.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/MacOS.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Linux.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Generic.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Solaris/Domains.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Solaris/Controllers.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Solaris/IPv4.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Solaris/Storages.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Solaris/Mem.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Solaris/Networks.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Solaris/Packages.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Solaris/Bios.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Solaris/Users.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Solaris/Slots.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Solaris/Memory.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Solaris/Drives.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Solaris/CPU.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/AIX/Domains.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/AIX/IPv4.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/AIX/Sounds.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/AIX/Storages.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/AIX/Modems.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/AIX/Mem.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/AIX/Networks.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/AIX/Controller.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/AIX/Videos.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/AIX/Users.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/AIX/Slots.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/AIX/Software.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/AIX/Hardware.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/AIX/Memory.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/AIX/Drives.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/AIX/CPU.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/MacOS/Domains.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/MacOS/IPv4.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/MacOS/Printers.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/MacOS/Storages.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/MacOS/Mem.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/MacOS/Uptime.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/MacOS/Networks.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/MacOS/Packages.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/MacOS/Bios.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/MacOS/Sound.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/MacOS/Hostname.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/MacOS/Video.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/MacOS/Drives.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/MacOS/CPU.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Generic/Ipmi.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Generic/Hostname.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Generic/Users.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Generic/Dmidecode.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Generic/Screen.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Generic/Packaging.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Generic/Lspci.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Generic/Processes.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Generic/Lspci/Controllers.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Generic/Lspci/Sounds.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Generic/Lspci/Modems.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Generic/Lspci/Videos.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Generic/Printers/Cups.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Generic/Packaging/BSDpkg.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Generic/Packaging/Pacman.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Generic/Packaging/RPM.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Generic/Packaging/ByHand.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Generic/Packaging/Deb.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Generic/Packaging/Gentoo.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Generic/Dmidecode/Ports.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Generic/Dmidecode/UUID.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Generic/Dmidecode/Bios.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Generic/Dmidecode/Slots.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Generic/Dmidecode/Memory.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/HPUX/Domains.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/HPUX/IPv4.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/HPUX/Storages.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/HPUX/Mem.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/HPUX/Networks.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/HPUX/Bios.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/HPUX/Controller.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/HPUX/Slots.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/HPUX/Software.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/HPUX/Memory.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/HPUX/Drives.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/HPUX/README

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/HPUX/CPU.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Linux/Domains.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Linux/Sounds.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Linux/Storages.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Linux/Mem.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Linux/Uptime.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Linux/Sys.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Linux/Drives.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Linux/Archs/ARM.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Linux/Archs/MIPS.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Linux/Archs/PowerPC.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Linux/Archs/SPARC.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Linux/Archs/m68k.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Linux/Archs/Alpha.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Linux/Archs/i386.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Linux/Archs/MIPS/CPU.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Linux/Archs/ARM/CPU.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Linux/Archs/Alpha/CPU.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Linux/Archs/PowerPC/Various.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Linux/Archs/PowerPC/CPU.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Linux/Archs/i386/CPU.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Linux/Archs/m68k/CPU.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Linux/Archs/SPARC/CPU.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Linux/Storages/3ware.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Linux/Storages/Lsilogic.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Linux/Storages/Adaptec.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Linux/Storages/ServeRaid.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Linux/Storages/HP.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Linux/Distro/LSB.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Linux/Distro/NonLSB.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Linux/Distro/NonLSB/Redhat.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Linux/Distro/NonLSB/Trustix.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Linux/Distro/NonLSB/Ubuntu.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Linux/Distro/NonLSB/ArchLinux.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Linux/Distro/NonLSB/Mandrake.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Linux/Distro/NonLSB/VmWare.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Linux/Distro/NonLSB/Fedora.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Linux/Distro/NonLSB/Gentoo.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Linux/Distro/NonLSB/Mandriva.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Linux/Distro/NonLSB/Knoppix.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Linux/Distro/NonLSB/Debian.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Linux/Distro/NonLSB/SuSE.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Linux/Distro/NonLSB/Slackware.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Linux/Network/IPv4.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/Linux/Network/Networks.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/BSD/Domains.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/BSD/IPv4.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/BSD/Storages.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/BSD/Mem.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/BSD/Uptime.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/BSD/Networks.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/BSD/Sys.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/BSD/Drives.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/BSD/CPU.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/BSD/Archs/Sparc.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/BSD/Archs/Sgimips.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/BSD/Archs/Alpha.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Backend/OS/BSD/Archs/I386.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/XML/Inventory.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/XML/Response.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/XML/Prolog.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/XML/SimpleMessage.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/XML/Response/Inventory.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/XML/Response/Prolog.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Modules/Download.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Modules/Snmp.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Modules/Example.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Modules/Snmp/If_Mib.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Modules/Snmp/11.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Modules/Snmp/3224.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Modules/Snmp/641.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Modules/Snmp/9.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Modules/Snmp/311.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Modules/Snmp/7244.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Modules/Snmp/8072.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Modules/Snmp/3375.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Modules/Snmp/2620.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Modules/Snmp/Printer_Mib.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Modules/Snmp/Host_Resources_Mib.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Modules/Snmp/Entity_Mib.pm

Installing /usr/local/share/perl/5.10.1/Ocsinventory/Agent/Modules/Snmp/Default.pm

Installing /usr/local/man/man1/ocsinventory-agent.1p

Installing /usr/local/man/man3/Ocsinventory::Agent::XML::Inventory.3pm

Installing /usr/local/man/man3/Ocsinventory::Agent::Common.3pm

Installing /usr/local/bin/ipdiscover

Installing /usr/local/bin/ocsinventory-agent

#安装在/usr/local/share/perl下面

Appending installation info to /usr/local/lib/perl/5.10.1/perllocal.pod

[ ! -f run-postinst ] || /usr/bin/perl postinst.pl

Do you want to configure the agent   #配置agent

Please enter ‘y’ or ‘n’?> [y] y

Where do you want to write the configuration file?

 0 -> /etc/ocsinventory

 1 -> /usr/local/etc/ocsinventory

 2 -> /etc/ocsinventory-agent

?>  2  #配置文件放在/etc/ocsinventory-agent目录下

Do you want to create the directory /etc/ocsinventory-agent?

Please enter ‘y’ or ‘n’?> [y] y

[info] The config file will be written in /etc/ocsinventory/ocsinventory-agent.cfg,

What is the address of your ocs server?> [ocsinventory-ng] ywz-desktop  #设置服务器名

Do you need credential for the server? (You probably don’t) #设置证书

Please enter ‘y’ or ‘n’?> [n] n

Do you want to apply an administrative tag on this machine  #设置标签

Please enter ‘y’ or ‘n’?> [y] y

tag?>  test

ocsinventory agent presents: /usr/local/bin/ocsinventory-agent

Do yo want to install the cron task in /etc/cron.d #建立例行性命令

Please enter ‘y’ or ‘n’?> [y] y

Where do you want the agent to store its files? (You probably don’t need to change it)?> [/var/lib/ocsinventory-agent] 

Do you want to create the /var/lib/ocsinventory-agent directory?

Please enter ‘y’ or ‘n’?> [y] y

New settings written! Thank you for using OCS Inventory

Should I remove the old linux_agent

Please enter ‘y’ or ‘n’?> [n] y

/etc/ocsinventory-client

/etc/logrotate.d/ocsinventory-client

/usr/sbin/ocsinventory-client.pl

/etc/cron.d/ocsinventory-client

/bin/ocsinv

done

Do you want to use OCS-Inventory software deployment feature?

Please enter ‘y’ or ‘n’?> [y] y

Do you want to use OCS-Inventory SNMP scans feature?

Please enter ‘y’ or ‘n’?> [y] y

Do you want to send an inventory of this machine?

Please enter ‘y’ or ‘n’?> [y] y

[info] Accountinfo file doesn’t exist. I create an empty one.   #要安装libnet-snmp-perl

   ->  Success!

desktop:~/XML-Entities/OCSNG_UNIX_SERVER-2.0rc4$ sudo sh ./setup.sh 

+———————————————————-+

|                                                          |

| Welcome to OCS Inventory NG Management server setup !    |

|                                                          |

+———————————————————-+

Trying to determine whitch OS or Linux distribution you use

+———————————————————-+

| Checking for Apache web server binaries !                |

+———————————————————-+

CAUTION: If upgrading Communication server from OCS Inventory NG 1.0 RC2 and

previous, please remove any Apache configuration for Communication Server!

Do you wish to continue ([y]/n)?y

Assuming Communication server 1.0 RC2 or previous is not installed

on this computer.

Starting OCS Inventory NG Management server setup from folder /home/ywz/XML-Entities/OCSNG_UNIX_SERVER-2.0rc4

Storing log in file /home/ywz/XML-Entities/OCSNG_UNIX_SERVER-2.0rc4/ocs_server_setup.log

#1、做安装前的准备,包括数据库等

+———————————————————-+

| Checking for database server properties…               |

+———————————————————-+

Your MySQL client seems to be part of MySQL version 5.1.

Your computer seems to be running MySQL 4.1 or higher, good ;-)

#要安装mysql5.1

Which host is running database server [localhost] ?

OK, database server is running on host localhost ;-)

#因为是本机安装,所以就写localhost

On which port is running database server [3306] ?

OK, database server is running on port 3306 ;-)

#mysql服务端口:3306

+———————————————————-+

| Checking for Apache web server daemon…                 |

+———————————————————-+

Where is Apache daemon binary [/usr/sbin/apache2] ?

OK, using Apache daemon /usr/sbin/apache2 ;-)

#要安装aphche2

+———————————————————-+

| Checking for Apache main configuration file…           |

+———————————————————-+

Where is Apache main configuration file [/etc/apache2/apache2.conf] ?

OK, using Apache main configuration file /etc/apache2/apache2.conf ;-)

#apache2的配置文件在/etc/apache2/apache2.conf

+———————————————————-+

| Checking for Apache user account…                      |

+———————————————————-+

Which user account is running Apache web server [www-data] ?

OK, Apache is running under user account www-data ;-)

#apache的用户名为:www-data

+———————————————————-+

| Checking for Apache group…                             |

+———————————————————-+

Which user group is running Apache web server [www-data] ?

OK, Apache is running under users group www-data ;-)

#apache的用户组为:www-data

+———————————————————-+

| Checking for Apache Include configuration directory…   |

+———————————————————-+

Setup found Apache Include configuration directory in

//etc/apache2/conf.d/.

Setup will put OCS Inventory NG Apache configuration in this directory.

Where is Apache Include configuration directory [//etc/apache2/conf.d/] ?

OK, Apache Include configuration directory //etc/apache2/conf.d/ found ;-)

#apache的配置文件还包括/etc/apache2/conf.d/

+———————————————————-+

| Checking for PERL Interpreter…                         |

+———————————————————-+

Found PERL Intrepreter at </usr/bin/perl> ;-)

Where is PERL Intrepreter binary [/usr/bin/perl] ?

OK, using PERL Intrepreter /usr/bin/perl ;-)

#要安装perl

Do you wish to setup Communication server on this computer ([y]/n)?y

#2、OCS Inventory NG Communication server安装

+———————————————————-+

| Checking for Make utility…                             |

+———————————————————-+

OK, Make utility found at </usr/bin/make> ;-)

#要安装make

+———————————————————-+

| Checking for Apache mod_perl version…                  |

+———————————————————-+

Checking for Apache mod_perl version 1.99_22 or higher

Found that mod_perl version 1.99_22 or higher is available.

OK, Apache is using mod_perl version 1.99_22 or higher ;-)

#要安装libapache2-mod-perl2

+———————————————————-+

| Checking for Communication server log directory…       |

+———————————————————-+

Communication server can create detailled logs. This logs can be enabled

by setting interger value of LOGLEVEL to 1 in Administration console

menu Configuration.

Where to put Communication server log directory [/var/log/ocsinventory-server] ?

OK, Communication server will put logs into directory /var/log/ocsinventory-server ;-)

#Communication server的log放在/var/log/ocsinventory-server

+———————————————————-+

| Checking for required Perl Modules…                    |

+———————————————————-+

Checking for DBI PERL module…                              #要安装libdbi-perl

Found that PERL module DBI is available. 

Checking for Apache::DBI PERL module…                 #要安装libapache-dbi-perl

Found that PERL module Apache::DBI is available.

Checking for DBD::mysql PERL module…                  #要安装libdbd-mysql-perl

Found that PERL module DBD::mysql is available.

Checking for Compress::Zlib PERL module…             #要安装libcompress-zlib-perl

Found that PERL module Compress::Zlib is available.

Checking for XML::Simple PERL module…                #要安装libxml-simple-perl

Found that PERL module XML::Simple is available.

Checking for Net::IP PERL module…                         #要安装libnet-ip-perl

Found that PERL module Net::IP is available.

+———————————————————-+

| Checking for optional Perl Modules…                    |

+———————————————————-+

Checking for SOAP::Lite PERL module…                  #要安装libsoap-lite-perl

Found that PERL module SOAP::Lite is available.

Checking for XML::Entities PERL module…               #要安装XML-Entities

Found that PERL module XML::Entities is available.

+———————————————————-+

| OK, looks good ;-)                                       |

|                                                          |

| Configuring Communication server Perl modules…         |

+———————————————————-+

Checking if your kit is complete…

Looks good

Writing Makefile for Apache::Ocsinventory

+———————————————————-+

| OK, looks good ;-)                                       |

|                                                          |

| Preparing Communication server Perl modules…           |

+———————————————————-+

+———————————————————-+

| OK, prepare finshed ;-)                                  |

|                                                          |

| Installing Communication server Perl modules…          |

+———————————————————-+

+———————————————————-+

| OK, Communication server Perl modules install finished;-)|

|                                                          |

| Creating Communication server log directory…           |

+———————————————————-+

Creating Communication server log directory /var/log/ocsinventory-server.

Fixing Communication server log directory files permissions.

Configuring logrotate for Communication server.

Removing old communication server logrotate file /etc/logrotate.d/ocsinventory-NG

Writing communication server logrotate to file /etc/logrotate.d/ocsinventory-server

#做communication server的轮替 /etc/logrotate.d/ocsinventory-server

+———————————————————-+

| OK, Communication server log directory created ;-)       |

|                                                          |

| Now configuring Apache web server…                     |

+———————————————————-+

To ensure Apache loads mod_perl before OCS Inventory NG Communication Server,

Setup can name Communication Server Apache configuration file

‘z-ocsinventory-server.conf’ instead of ‘ocsinventory-server.conf’.

Do you allow Setup renaming Communication Server Apache configuration file

to ‘z-ocsinventory-server.conf’ ([y]/n) ?y

OK, using ‘z-ocsinventory-server.conf’ as Communication Server Apache configuration file

Removing old communication server configuration to file //etc/apache2/conf.d//ocsinventory.conf

Writing communication server configuration to file //etc/apache2/conf.d//z-ocsinventory-server.conf

#communication server的配置文件/etc/apache2/conf.d/ocsinventory.conf

+———————————————————-+

| OK, Communication server setup sucessfully finished ;-)  |

|                                                          |

| Please, review //etc/apache2/conf.d//z-ocsinventory-server.conf

| to ensure all is good. Then restart Apache daemon.       |

+———————————————————-+

Do you wish to setup Administration Server (Web Administration Console)

on this computer ([y]/n)?y

#3、安装Administration Server

+———————————————————-+

| Checking for Administration Server directories…        |

+———————————————————-+

CAUTION: Setup now install files in accordance with Filesystem Hierarchy

Standard. So, no file is installed under Apache root document directory

(Refer to Apache configuration files to locate it).

#文件不放在/var/www下,放在/usr/share/ocsinventory-reports

#具体查看apache2的配置文件在/etc/apache2/apache2.conf和/etc/apache2/conf.d/

If you’re upgrading from OCS Inventory NG Server 1.01 and previous, YOU

MUST REMOVE (or move) directories ‘ocsreports’ and ‘download’ from Apache

root document directory.

If you choose to move directory, YOU MUST MOVE ‘download’ directory to

Administration Server writable/cache directory (by default

/var/lib/ocsinventory-reports), especialy if you use deployement feature.

#download文件夹要放在/var/lib/ocsinventory-reports下以做部署用

Do you wish to continue ([y]/n)?y

Assuming directories ‘ocsreports’ and ‘download’ removed from

Apache root document directory.

Where to copy Administration Server static files for PHP Web Console

[/usr/share/ocsinventory-reports] ?

#ocsinventory的控制端放在/usr/share/ocsinventory-reports

OK, using directory /usr/share/ocsinventory-reports to install static files ;-)

Where to create writable/cache directories for deployement packages,

IPDiscover and SNMP [/var/lib/ocsinventory-reports] ?

OK, writable/cache directory is /var/lib/ocsinventory-reports ;-)

#部署文件,IPDiscover and SNMP的相关文件放在/var/lib/ocsinventory-reports

+———————————————————-+

| Checking for required Perl Modules…                    |

+———————————————————-+

Checking for DBI PERL module…

Found that PERL module DBI is available.

Checking for DBD::mysql PERL module…

Found that PERL module DBD::mysql is available.

Checking for XML::Simple PERL module…

Found that PERL module XML::Simple is available.

Checking for Net::IP PERL module…

Found that PERL module Net::IP is available.

+———————————————————-+

| Installing files for Administration server…            |

+———————————————————-+

Creating PHP directory /usr/share/ocsinventory-reports/ocsreports.

Copying PHP files to /usr/share/ocsinventory-reports/ocsreports.

Fixing permissions on directory /usr/share/ocsinventory-reports/ocsreports.

#php文件放在/usr/share/ocsinventory-reports/ocsreports

Creating database configuration file /usr/share/ocsinventory-reports/ocsreports/dbconfig.inc.php.

#数据库配置文件放在/usr/share/ocsinventory-reports/ocsreports/dbconfig.inc.php

Creating IPDiscover directory /var/lib/ocsinventory-reports/ipd.

Fixing permissions on directory /var/lib/ocsinventory-reports/ipd.

#ipd文件夹放在/var/lib/ocsinventory-reports/ipd

Creating packages directory /var/lib/ocsinventory-reports/download.

Fixing permissions on directory /var/lib/ocsinventory-reports/download.

#部署文件放在/var/lib/ocsinventory-reports/download

Creating packages directory /var/lib/ocsinventory-reports/snmp.

Fixing permissions on directory /var/lib/ocsinventory-reports/snmp.

#snmp文件放在/var/lib/ocsinventory-reports/snmp

Configuring snmp_com.txt file

Configuring IPDISCOVER-UTIL Perl script.

Installing IPDISCOVER-UTIL Perl script.

Fixing permissions on IPDISCOVER-UTIL Perl script.

Writing Administration server configuration to file //etc/apache2/conf.d//ocsinventory-reports.conf

#控制端配置文件放在/etc/apache2/conf.d//ocsinventory-reports.conf

+———————————————————-+

| OK, Administration server installation finished ;-)      |

|                                                          |

| Please, review //etc/apache2/conf.d//ocsinventory-reports.conf

| to ensure all is good and restart Apache daemon.         |

|                                                          |

| Then, point your browser to http://server//ocsreports

| to configure database server and create/update schema.   |

+———————————————————-+

#网页打开http://server//ocsreports 来配置数据库和架构

Setup has created a log file /home/ywz/XML-Entities/OCSNG_UNIX_SERVER-2.0rc4/ocs_server_setup.log. Please, save this file.    # 安装记录放在ocs_server_setup.log

If you encounter error while running OCS Inventory NG Management server,

we can ask you to show us his content !

DON’T FORGET TO RESTART APACHE DAEMON !

#重启apache服务

Enjoy OCS Inventory NG ;-)

总结:

1、要安装的软件

      make、mysql5、apache2、php

      perl、libapache2-mod-perl2、libdbi-perl、libapache-dbi-perl、libdbd-mysql-perl、

      libcompress-zlib-perl、libxml-simple-perl、libnet-ip-perl、libsoap-lite-perl、XML-Entities

2、apache的配置文件

      /etc/apache2/apache2.conf和/etc/apache2/conf.d/

3、communication server

     communication server的配置文件/etc/apache2/conf.d/ocsinventory.conf

     Communication server的log放在/var/log/ocsinventory-server

     communication server的轮替 /etc/logrotate.d/ocsinventory-server

4、Administration Server

     控制端配置文件放在/etc/apache2/conf.d/ocsinventory-reports.conf

     数据库配置文件放在/usr/share/ocsinventory-reports/ocsreports/dbconfig.inc.php

     文件放在/usr/share/ocsinventory-reports

      php文件放在/usr/share/ocsinventory-reports/ocsreports

      部署文件放在/var/lib/ocsinventory-reports/download

      ipd文件夹放在/var/lib/ocsinventory-reports/ipd

      snmp文件放在/var/lib/ocsinventory-reports/snmp