龙蜥8安装tigervnc server

1.安装vncserver

yum install tigervnc tigervnc-server

2.配置

在 /etc/tigervnc/vncserver.users 文件中添加用户映射,:1=root,指的是5901端口,root用户

vim /etc/tigervnc/vncserver.users
# TigerVNC User assignment
#
# This file assigns users to specific VNC display numbers.
# The syntax is <display>=<username>. E.g.:
#
# :2=andrew
# :3=lisa
:1=root

继续阅读 »

AnolisOS 8.6使用Certbot申请nginx ssl证书

安装certbot

yum install -y certbot python3-certbot-nginx

获取证书

通过nginx获取证书

certbot certonly --nginx -d www.xxx.com

通过静态目录获取证书

certbot certonly --webroot -w /根目录地址 -d www.xxx.com

注:不加certonly会使certbot自动修改配置文件

继续阅读 »

Unable to negotiate with x.x.x.x port xx: no matching host key type found. Their offer: ssh-rsa

背景

最近升级git到最新版 发现pull代码报错

$ git version
git version 2.33.1.windows.1

$ git pull
Unable to negotiate with 47.98.49.44 port 22: no matching host key type found. Their offer: ssh-rsa
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

继续阅读 »

Centos8.2 Python3 安装Selenium+Chrome

前言

本来准备装Selenium+PhantomJS的,但是Selenium已经停止支持,果断更换Chrome.

/usr/local/lib/python3.6/site-packages/selenium/webdriver/phantomjs/webdriver.py:49: UserWarning: Selenium support for PhantomJS has been deprecated, please use headless versions of Chrome or Firefox instead
  warnings.warn('Selenium support for PhantomJS has been deprecated, please use headless '

安装Python3+Pip3

yum install -y python3-devel python3
python3 -V
Python 3.6.8
pip3 -V
pip 9.0.3 from /usr/lib/python3.6/site-packages (python 3.6)

注:pip3已和python3捆绑安装

继续阅读 »