Automation主机搭建过程(一)
Automation主机搭建过程(一)
Benson_Win 发表于2年前
Automation主机搭建过程(一)
  • 发表于 2年前
  • 阅读 4
  • 收藏 0
  • 点赞 0
  • 评论 0

【腾讯云】新注册用户域名抢购1元起>>>   

摘要: fc16搭建robterFramework工作环境
修改网卡名字为ethx:
@@@@@@@@@@@@
Fedora20/22按照如下方法
To do so follow this steps:

 1   Edit /etc/default/grub

    At the end of GRUB_CMDLINE_LINUX line append "net.ifnames=0 biosdevname=0"

    Save the file

 2   Type "grub2-mkconfig -o /boot/grub2/grub.cfg"

    Type "reboot"

@@@@@@@
Fedora 16 按照如下方法
1.vim /etc/default/grub
 
  在 GRUB_CMDLINE_LINUX="rd.md=0 rd.lvm=0 rd.dm=0  KEYTABLE=us quiet rhgb rd.luks=0.UTF-8 " 中加入biosdevname=0变成GRUB_CMDLINE_LINUX="rd.md=0 rd.lvm=0 rd.dm=0  KEYTABLE=us quiet rhgb rd.luks=0.UTF-8 biosdevname=0 "
 
  2.$grub2-mkconfig -o /boot/grub2/grub.cfg
 
  3.$touch /etc/udev/rules.d/70-persistent-net.rules
  #写入SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="44:37:e6:19:46:5e", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
然后重启即可






################
远程链接x11vnc的配置:
1 下载安装:
[root@localhost sysconfig]# yum install x11vnc
Loaded plugins: langpacks, presto, refresh-packagekit
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package x11vnc.x86_64 0:0.9.13-1.fc16 will be installed
--> Processing Dependency: Xvfb for package: x11vnc-0.9.13-1.fc16.x86_64
--> Processing Dependency: libvncserver.so.0()(64bit) for package: x11vnc-0.9.13-1.fc16.x86_64
--> Processing Dependency: libvncclient.so.0()(64bit) for package: x11vnc-0.9.13-1.fc16.x86_64
--> Running transaction check
---> Package libvncserver.x86_64 0:0.9.8.2-2.fc16 will be installed
--> Processing Dependency: libminilzo.so.0()(64bit) for package: libvncserver-0.9.8.2-2.fc16.x86_64
---> Package xorg-x11-server-Xvfb.x86_64 0:1.11.4-3.fc16 will be installed
--> Processing Dependency: xorg-x11-server-common >= 1.11.4-3.fc16 for package: xorg-x11-server-Xvfb-1.11.4-3.fc16.x86_64
--> Running transaction check
---> Package lzo-minilzo.x86_64 0:2.06-1.fc16 will be installed
---> Package xorg-x11-server-common.x86_64 0:1.11.1-1.fc16 will be updated
---> Package xorg-x11-server-common.x86_64 0:1.11.4-3.fc16 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================================================================================
 Package                                  Arch                     Version                           Repository                 Size
=====================================================================================================================================
Installing:
 x11vnc                                   x86_64                   0.9.13-1.fc16                     updates                   842 k
Installing for dependencies:
 libvncserver                             x86_64                   0.9.8.2-2.fc16                    updates                   197 k
 lzo-minilzo                              x86_64                   2.06-1.fc16                       fedora                     13 k
 xorg-x11-server-Xvfb                     x86_64                   1.11.4-3.fc16                     updates                   768 k
Updating for dependencies:
 xorg-x11-server-common                   x86_64                   1.11.4-3.fc16                     updates                    78 k

Transaction Summary
=====================================================================================================================================
Install       4 Packages
Upgrade       1 Package

Total download size: 1.9 M
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
(1/5): libvncserver-0.9.8.2-2.fc16.x86_64.rpm                                                                 | 197 kB     00:00     
(2/5): lzo-minilzo-2.06-1.fc16.x86_64.rpm                                                                     |  13 kB     00:00     
(3/5): x11vnc-0.9.13-1.fc16.x86_64.rpm                                                                        | 842 kB     00:00     
(4/5): xorg-x11-server-Xvfb-1.11.4-3.fc16.x86_64.rpm                                                          | 768 kB     00:00     
(5/5): xorg-x11-server-common-1.11.4-3.fc16.x86_64.rpm                                                        |  78 kB     00:00     
-------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                236 kB/s | 1.9 MB     00:08     
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : lzo-minilzo-2.06-1.fc16.x86_64                                                                                    1/6
  Installing : libvncserver-0.9.8.2-2.fc16.x86_64                                                                                2/6
  Updating   : xorg-x11-server-common-1.11.4-3.fc16.x86_64                                                                       3/6
  Installing : xorg-x11-server-Xvfb-1.11.4-3.fc16.x86_64                                                                         4/6
  Installing : x11vnc-0.9.13-1.fc16.x86_64                                                                                       5/6
  Cleanup    : xorg-x11-server-common-1.11.1-1.fc16.x86_64                                                                       6/6

Installed:
  x11vnc.x86_64 0:0.9.13-1.fc16                                                                                                      

Dependency Installed:
  libvncserver.x86_64 0:0.9.8.2-2.fc16       lzo-minilzo.x86_64 0:2.06-1.fc16       xorg-x11-server-Xvfb.x86_64 0:1.11.4-3.fc16      

Dependency Updated:
  xorg-x11-server-common.x86_64 0:1.11.4-3.fc16                                                                                      

Complete!

2 配置登陆密码:
#sudo x11vnc -forever -passwd  /root/.vnc           // 这里需要在你的用户主目录下的隐藏.vnc目录里面保存密码.

3 指定密码路径启动:
#  x11vnc -forever -shared -rfbauth /root/.vnc/passwd
-forever keep listening for more connections
-shared more than one viewer can connect at the same time
-rfbauth use authentication on RFB protocol

4 使用vnc-client工具, 输入以下地址:
# x.x.x.x:0                // 数字0代表端口号. 0=5900, 1=5901....
 








1 ### root登陆GNOME ###
1 编辑文件/etc/pam.d/gdm,将该文件中的"auth required pam_succeed_if.so user != root quiet"这一行注释掉。(在这一行前面加上"#"号,即改成# auth required pam_succeed_if.so user != root quiet)
2 再修改文件/etc/pam.d/gdm-password,同样地注释掉"auth required pam_succeed_if.so user != root quiet"这一行。然后重启电脑。

2 ### 卸载NetworkManager服务 (图形化网卡控制) ###
# yum delete NetworkManager

3 ### 修改yum的配置文件, 以便yum正常工作 ###
进入/etc/yum.repos.d目录
里面有3个文件, 分别备份*.bak, 然后分别修改.
[root@localhost yum.repos.d]# pwd
/etc/yum.repos.d
[root@localhost yum.repos.d]# ll
total 24
-rw-r--r--. 1 root root 1141 Nov 18 14:46 fedora.repo
-rw-r--r--. 1 root root 1144 Nov 18 14:45 fedora.repo.bak
-rw-r--r--. 1 root root 1102 Nov 18 14:47 fedora-updates.repo
-rw-r--r--. 1 root root 1105 Nov 18 14:46 fedora-updates.repo.bak
-rw-r--r--. 1 root root 1160 Nov 18 14:47 fedora-updates-testing.repo
-rw-r--r--. 1 root root 1163 Nov 18 14:46 fedora-updates-testing.repo.bak

三个文件都要修改, 将里面https://开头的链接全部改成http开头. 分别保存.
such as:
-------------------------------------------------------------
[fedora]
name=Fedora $releasever - $basearch
failovermethod=priority
baseurl=ftp://ftp.cru.fr/pub/linux/fedora/releases/11/Everything/x86_64/os/
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch
enabled=1
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearchthe
--------------------------------------------------------------
change is like this
--------------------------------------------------------------
"mirrorlist=https:"--->"mirrorlist=https:"
  • 打赏
  • 点赞
  • 收藏
  • 分享
共有 人打赏支持
粉丝 0
博文 12
码字总数 8984
评论 (0)
×
Benson_Win
如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
* 金额(元)
¥1 ¥5 ¥10 ¥20 其他金额
打赏人
留言
* 支付类型
微信扫码支付
打赏金额:
已支付成功
打赏金额: