1. yum install wxGTK* –y
2. yum install xulrunner.i686
3. yum install libXtst.i686
4. yum install libcanberra-gtk2.i686 –y
5. yum install -y gtk2-engines.i686
[RESOLVE:]
(python:26319): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks",
(python:26319): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks",
Gtk-Message: Failed to load module "pk-gtk-module"
6. yum install -y PackageKit-gtk-module.i686
[RESOLVE:]
Gtk-Message: Failed to load module "pk-gtk-module"
[ANALYSIS:]
yum whatprovides */libpk-gtk-module.so
yum list PackageKit-gtk-module.i686
0. modify /etc/sudoers
atxuser ALL=NOPASSWD:/bin/kill
atxuser ALL=NOPASSWD:/bin/rm
atxuser ALL=NOPASSWD:/root/PCTA/pcta.exe -d > ./PCTA_OPF.txt &
atxuser ALL=NOPASSWD:/etc/init.d/mysqld
atxuser ALL=NOPASSWD:/etc/init.d/ser
atxuser ALL=NOPASSWD:/usr/sbin/wireshark
atxuser ALL=NOPASSWD:/usr/local/bin/wireshark
atxuser ALL=NOPASSWD:/usr/local/bin/ethereal
atxuser ALL=NOPASSWD:/home/alcatel/MGC_367_ABOVE/mpp_server
atxuser ALL=NOPASSWD:/home/alcatel/MGC_367_ABOVE/mgc_run
atxuser ALL=NOPASSWD:/sbin/service
atxuser ALL=NOPASSWD:/sbin/pppoe-server
atxuser ALL=NOPASSWD:/root/PCTA/pcta.exe
atxuser ALL=NOPASSWD:/root/PCTA/pcta.exe -d
atxuser ALL=NOPASSWD:/root/PCTA/pcta_test.exe -d > ./PCTA_OPF_TEST.txt &
atxuser ALL=NOPASSWD:/sbin/reboot
atxuser ALL=NOPASSWD:/sbin/ifconfig
atxuser ALL=NOPASSWD:/sbin/vconfig
atxuser ALL=NOPASSWD:/usr/local/sbin/radiusd -X
atxuser ALL=NOPASSWD:/usr/local/bin/radclient
atxuser ALL=NOPASSWD:/usr/sbin/xsupplicant
atxuser ALL=NOPASSWD:/bin/chmod
atxuser ALL=NOPASSWD:/usr/sbin/tcpdump
atxuser ALL=NOPASSWD:/usr/bin/killall /usr/sbin/xsupplicant
atxuser ALL=NOPASSWD:/usr/bin/killall -9 /usr/local/sbin/radiusd
atxuser ALL=NOPASSWD:/usr/local/sbin/radiusd -X /dev/null 2>&1
atxuser ALL=NOPASSWD:/dev/null
atxuser ALL=NOPASSWD:/tftpboot/atx/atxuser/wide-dhcpv6-20080615/isc_dhcp/server/dhcpd
atxuser ALL=NOPASSWD:/bin/touch
atxuser ALL=NOPASSWD:/bin/echo
atxuser ALL=NOPASSWD:/bin/sed
atxuser ALL=NOPASSWD:/sbin/route
atxuser ALL=NOPASSWD:/sbin/ip
1. yum install the following packages
3. yum install showmount * -y
4. yum install vnc-server* -y
5. yum install dhcp* -y
7. yum install openssh-clients -y
8. yum install firefox –y
9. yum install gvim -y
10. yum install wireshark* -y
11. yum install mercurial-2.2* -y
2. yum install wxGTK* –y
6. yum install tftp* -y
11. yum install mercurial-2.2* -y
10. yum install wireshark* -y
8. yum install firefox –y
8. yum install net-snmp-utils –y
[root@rlab128 robot]# cp -r /usr/lib /usr/lib.ini
[root@rlab128 robot]# cp -r /lib /lib.ini
[root@rlab128 robot]#
[root@rlab128 robot]#
[root@rlab128 robot]# ls -l /usr/lib | wc
40 367 2390
[root@rlab128 robot]# ls -l /lib | wc
60 577 4033
[root@rlab128 robot]#
# yum install xulrunner.i686
# yum install libXtst.i686
[root@rlab128 robot]# ls -l /usr/lib | wc
102 987 7148
[root@rlab128 robot]#
[root@rlab128 robot]# ls -l /lib | wc
60 577 4033
3.ride.py crash
Gdk-ERROR **: The program 'python' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAlloc (insufficient resources for operation)'.
(Details: serial 2125 error_code 11 request_code 53 minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
aborting...
[1] + abort (core dumped) ride.py
yum install libcanberra-gtk2.i686 -y
http://askubuntu.com/questions/342202/failed-to-load-module-canberra-gtk-module-but-already-installed
>>> import wx
>>> a = wx.PySimpleApp()
(python:20075): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks",
Gtk-Message: Failed to load module "canberra-gtk-module"
Gtk-Message: Failed to load module "pk-gtk-module"
>>>
>>> quit()
4. modify tftp configuration.
[atxuser@rlab021]~% cat /etc/xinetd.d/tftp
# default: off
# description: The tftp server serves files using the trivial file transfer \
# protocol. The tftp protocol is often used to boot diskless \
# workstations, download configuration files to network-aware printers, \
# and to start the installation process for some operating systems.
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot -c
disable = no
per_source = 11
cps = 100 2
flags = IPv6
}
5. restart tftp server
#service xinetd restart
6. issue: Error code 1: File not found
可能的原因:
1. 指定的文件不存在isc_dhcp.tar;
2. 或tftpd启动参数server_args中没有指定-c选项,允许上传文件
3. 或者有两个tftp进程,需要全部杀掉,然后service xinetd restart重启
# service ip6tables stop
# service iptables stop
# vi /etc/selinux/config (SELINUX=disabled)
# /usr/sbin/setenforce 0
7. 配置eth2端口 (netconf项目可忽略?)
1.
#ifconfig eth2
inet6 addr: fe80::2e0:edff:fe1e:2c71/64
2.combine a new IPV6 address
2001:da8:201:0:2e0:edff:fe1e:2c71
3. modify ifcfg-eth2
#vi /etc/sysconfig/network-scripts/ifcfg-eth2
-----adding the following lines----------------
IPV6INIT=yes
IPV6_AUTOCONF=no
IPV6ADDR=2001:da8:201:0:2e0:edff:fe1e:2c71/64
4. restart ethx
#service network restart
8.dhcp issue: Can't bind to dhcp address: Address already in use
切换到root用户下
#ps -ef | grep dhcp
#kill -9 dhcp_pid
9. trigger LTB failed: File /vobs/esam/build/fulltests/COMMON/ONTMAPLIST.txt is missing
add ENV REPO for atxuser:
# su - atxuser
# cd /tftpboot/atx/atxuser
# cat .profile
#!/bin/ksh
EDITOR=nedit
PRINTER=
WINEDITOR=nedit
DARK_BG=no
echo_dot=no
user=`whoami`
REPO=/repo/$user/atc
. $REPO/env/.profile.common
export REPO
10. Downgrade centos kernel
[root@rlab128 atxuser]# rpm -qa kernel
kernel-2.6.32-573.el6.x86_64
[root@rlab128 atxuser]#
[root@rlab128 atxuser]# rpm -ivh kernel-2.6.32-504.el6.x86_64.rpm --force
warning: kernel-2.6.32-504.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 192a7d7d: NOKEY
Preparing... ########################################### [100%]
1:kernel ########################################### [100%]
[root@rlab128 atxuser]# reboot
# reboot
- reboot
Issues of Centos 7 64bits to run robot framework:
1. run python: no /lib/ld-linux.so.2
2. yum install xulrunner.i686
3. yum install libXtst.i686
4. yum install libcanberra-gtk2.i686 –y
2. can't run wxpython
>>> import wx
ImportError: libpng12.so.0: cannot open shared object file: No such file or directory
Resolved:
1. download rpm from :
https://pkgs.org/centos-7/centos-x86_64/libpng12-1.2.50-6.el7.i686.rpm/download/
2. installed:
rpm -ivh libpng12-1.2.50-6.el7.i686.rpm --force
>>> import wx
ImportError: libtiff.so.3: cannot open shared object file: No such file or directory
Resolved:
1. download rpm from :
https://pkgs.org/centos-7/centos-x86_64/compat-libtiff3-3.9.4-11.el7.i686.rpm/download/
2. rpm -ivh libpng12-1.2.50-6.el7.i686.rpm --force