JKS 和 P12 证书相互转换

  • JKS 转换为 P12

    1
    2
    3
    4
    5
    6
    7
    keytool -importkeystore \
    -srckeystore source.jks \
    -srcstoretype jks \
    -destkeystore target.p12 \
    -deststoretype pkcs12 \
    -srcstorepass source_password \
    -deststorepass target_password

Windows Server 2003 无法连接网络:Dhcp 服务和下列不存在的服务存在相依的关系:Tdx

  • 运行注册表编辑器,依次打开 我的电脑\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Dhcp,在右边的窗口中,双击 DependOnService,将数值数据修改为

    1
    2
    3
    Tcpip
    Afd
    NetBT
  • 重启

Ubuntu 20.04 打开 Wi-Fi 热点

  • 第一次打开热点的步骤:“设置”——“Wi-Fi”——“⋮”——“打开 Wi-Fi 热点”……

  • 关闭热点,再次打开时,“打开 Wi-Fi 热点”这个选项变成灰色,不能点击,提示“系统策略禁止作为热点使用”

  • 点击“连接到隐藏网络”,选择热点

  • 连接

Ubuntu 20.04 刻录 ISO 映像文件

  • 查看 U 盘的设备名称

    1
    sudo fdisk -l
  • /dev/sdb 是我的 U 盘,需要先卸载它

    1
    sudo umount /dev/sdb

Ubuntu 20.04 下载 m3u8 视频

  • 安装 ffmpeg

    1
    sudo apt-get install ffmpeg
  • 下载视频

    1
    ffmpeg -protocol_whitelist file,http,https,tcp,tls,crypto -i "https://sapi.hongyishuzhai.com/data/youku/XNDUwNTc2MTgwOA==.m3u8" -c copy video.mp4