美文网首页
mac 手动完成正版注册Parallels Desktop

mac 手动完成正版注册Parallels Desktop

作者: 竹韵_932a | 来源:发表于2023-01-13 15:49 被阅读0次

    1. 官网下载PD 18.0.2

    https://download.parallels.com/desktop/v18/18.0.2-53077/ParallelsDesktop-18.0.2-53077.dmg
    
    • 直接安装,千万不要登录账号!!!
    • 退出PD, 查看MD5,如果不一致,请重新下载上述的指定版本
    // 正确的MD5为:1eba7cd331518453ece0ecc888d8cbfe
    md5 "/Applications/Parallels Desktop.app/Contents/MacOS/Parallels Service.app/Contents/MacOS/prl_disp_service"
    
    • 启动服务,退出账号,再停止服务,如果没登录过,这一步可以跳过
    # 启动pd服务
    "/Applications/Parallels Desktop.app/Contents/MacOS/Parallels Service" service_start
     
    # 退出原本的账号,如果有的话
    "/Applications/Parallels Desktop.app/Contents/MacOS/prlsrvctl" web-portal signout
     
    # 停止pd服务
    "/Applications/Parallels Desktop.app/Contents/MacOS/Parallels Service" service_stop
    

    2. 开始准备关键字替换

    • 杀掉所有pd服务和app
    sudo killall prl_client_app prl_disp_service
    
    • 创建临时目录,并替换关键字
    # 创建临时目录
    mkdir ./tmp/
    # 替换license,关键步骤
    echo '{"license":"{\"product_version\":\"18.*\",\"edition\":2,\"platform\":3,\"product\":7,\"offline\":true,\"cpu_limit\":32,\"ram_limit\":131072}"}' > ./tmp/licenses.json
    # 给 prl_disp_service 打补丁
    cp "/Applications/Parallels Desktop.app/Contents/MacOS/Parallels Service.app/Contents/MacOS/prl_disp_service" ./tmp/prl_disp_service
    printf "\x6a\x01\x58\xc3" | dd of=./tmp/prl_disp_service obs=1 seek=5982080 conv=notrunc
    printf "\x6a\x01\x58\xc3" | dd of=./tmp/prl_disp_service obs=1 seek=8180352 conv=notrunc
    printf "\x20\x00\x80\xd2\xc0\x03\x5f\xd6" | dd of=./tmp/prl_disp_service obs=1 seek=17474948 conv=notrunc
    printf "\x20\x00\x80\xd2\xc0\x03\x5f\xd6" | dd of=./tmp/prl_disp_service obs=1 seek=19397140 conv=notrunc
    
    • 检查替换后的MD5
    # 检查替换后的 prl_disp_service 的MD5
    # 应该是 76485203bdf19841e79fa7dc092ad70e ,如果不是,请停止当前操作
    md5 ./tmp/prl_disp_service
    
    • 替换并完成签名,请逐行执行
    # 安装替换的文件
    sudo cp -Xf ./tmp/licenses.json "/Library/Preferences/Parallels/licenses.json"
    sudo cp -Xf ./tmp/prl_disp_service "/Applications/Parallels Desktop.app/Contents/MacOS/Parallels Service.app/Contents/MacOS/prl_disp_service"
    # 修改文件的归属人和权限
    sudo chown root:wheel "/Applications/Parallels Desktop.app/Contents/MacOS/Parallels Service.app/Contents/MacOS/prl_disp_service"
    sudo chmod 755 "/Applications/Parallels Desktop.app/Contents/MacOS/Parallels Service.app/Contents/MacOS/prl_disp_service"
    # 重新签名刚刚替换的 prl_disp_service, 防止报错
    sudo codesign -f -s - --timestamp=none --all-architectures "/Applications/Parallels Desktop.app/Contents/MacOS/Parallels Service.app/Contents/MacOS/prl_disp_service"
    # 锁定 licenses.json (如果要解锁,可以吧`schg`替换成`noschg`)
    sudo chflags schg "/Library/Preferences/Parallels/licenses.json"
    # 删除掉临时文件夹
    rm -r ./tmp/
    
    • 最后,重新打开PD,查看“账户和许可证”,会显示“永久许可证”

    相关文章

      网友评论

          本文标题:mac 手动完成正版注册Parallels Desktop

          本文链接:https://www.haomeiwen.com/subject/dwlwcdtx.html