windows 升级遇到 0x80092004 错误
windows 升级遇到 0x80092004 错误时候需要单独下载两个更新文件,并手动更新
SHA-2 code signing support update
https://support.microsoft.com/en-us/help/4474419/sha-2-code-signing-support-update
windows 升级遇到 0x80092004 错误时候需要单独下载两个更新文件,并手动更新
SHA-2 code signing support update
https://support.microsoft.com/en-us/help/4474419/sha-2-code-signing-support-update
通过yum 在阿里云的Centos ECS中安装或更新软件的时候有时会遇到
http://mirrors.cloud.aliyuncs.com/centos/7/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 – “Could not resolve host: mirrors.cloud.aliyuncs.com; Unknown error”
需要编辑/etc/yum.repo.d/下面的配置文件,删除 mirrors.cloud.aliyuncs.com或替换为mirrors.aliyun.com
yum clean all
yum make cache
1. 用homebrew安装较新版本的python2.7
1 2 3 |
brew install python sudo -H easy_install pip |
2. 安装selenium
1 |
sudo -H pip install selenium |
3. 安装selenium webdriver
Firefox:
到https://github.com/mozilla/geckodriver/releases下载macOS版本的driver解压出来,复制到/usr/local/bin
1 |
sudo cp ~/Download/geckodriver /usr/local/bin |
Chrome
到https://chromedriver.storage.googleapis.com/index.html下载chromedriver,和firefox版一样复制到/usr/local/bin
1 |
sudo cp ~/Download/chromedriver /usr/local/bin |
4. 检查安装
在python console
1 2 3 |
from selenium import webdriver browser = webdriver.Firefox() browser.get('https://www.baidu.com') |
能够成功打开浏览器,并打开网页,说明安装成功。
note: 必须要保证系统里面安装了Firefox或者Chrome浏览器
不然可能会有如下的异常:
1 2 |
selenium.common.exceptions.WebDriverException: Message: Expected browser binary location, but unable to find binary in default location, no 'moz:firefoxOptions.binary' capability provided, and no binary flag set on the command line |
1 2 3 |
wget https://access.redhat.com/sites/default/files/rh-cve-2016-5195_1.sh bash ~/rh-cve-2016-5195_1.sh Your kernel is 2.6.32-358.6.2.el6.x86_64 which IS vulnerable. |
1 2 |
#exclude=*.i?86 <del>kernel</del> kernel-xen kernel-debug exclude=*.i?86 kernel-xen kernel-debug |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
yum update kernel Loaded plugins: fastestmirror Setting up Update Process Loading mirror speeds from cached hostfile * base: mirrors.aliyuncs.com * epel: mirrors.aliyuncs.com * extras: mirrors.aliyuncs.com * updates: mirrors.aliyuncs.com base | 3.7 kB 00:00 epel | 4.3 kB 00:00 extras | 3.4 kB 00:00 updates | 3.4 kB 00:00 Resolving Dependencies --> Running transaction check ---> Package kernel.x86_64 0:2.6.32-642.6.2.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================================== Package Arch Version Repository Size ============================================================================================================================================================== Installing: kernel x86_64 2.6.32-642.6.2.el6 updates 32 M Transaction Summary ============================================================================================================================================================== Install 1 Package(s) Total download size: 32 M Installed size: 131 M Is this ok [y/N]: y Downloading Packages: kernel-2.6.32-642.6.2.el6.x86_64.rpm | 32 MB 00:31 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : kernel-2.6.32-642.6.2.el6.x86_64 1/1 Verifying : kernel-2.6.32-642.6.2.el6.x86_64 1/1 Installed: kernel.x86_64 0:2.6.32-642.6.2.el6 Complete! |
1 |
reboot |
1 2 |
bash ~/rh-cve-2016-5195_1.sh Your kernel is 2.6.32-642.6.2.el6.x86_64 which is NOT vulnerable. |
打开iphone的热点功能,
笔记本能连接上,但是显示无internet连接,
查看ipconfig
1 2 3 4 5 6 |
无线局域网适配器 无线网络连接: 连接特定的 DNS 后缀 . . . . . . . : 自动配置 IPv4 地址 . . . . . . . : 169.254.64.152 子网掩码 . . . . . . . . . . . . : 255.255.0.0 默认网关. . . . . . . . . . . . . : |
估计可能是iphone的dhcp功能有问题,重启iphone,还是不行,
把ip v4设置为手动,如下
1 2 3 4 5 6 |
无线局域网适配器 无线网络连接: 连接特定的 DNS 后缀 . . . . . . . : IPv4 地址 . . . . . . . . . . . . : 172.20.10.2 子网掩码 . . . . . . . . . . . . : 255.255.255.240 默认网关. . . . . . . . . . . . . : 172.20.10.1 |
发现已经可以连接
记录一下,从burstnet搬家到 linode ,Burst用了几年,发现不是太稳定。经常容易抽风,宕机。印证了一句话 ‘便宜无好货’