• 在Ubuntu 14.04 64bit上安装StarUML 2.5版本


    1,在“http://staruml.io/”下载;

    2,sudo dpkg -i StarUML-v2.5.0-64-bit.deb安装。

    3,注册 。在help中输入。name:maxiongying 注册码:54rczxrcxszeww

    或者这样注册,没有试过。

    修改 LicenseManagerDomain.js

    function validate(PK, name, product, licenseKey) {
            var pk, decrypted;
            //添加注释的这块代码
           /*
            return {
                name: "0xcb",
                product: "StarUML",
                licenseType: "vip",
                quantity: "bbs.chinapyg.com",
                licenseKey: "later equals never!"
            };
            */
    
            try {
                pk = new NodeRSA(PK);
                decrypted = pk.decrypt(licenseKey, ‘utf8‘);
            } catch (err) {
                return false;
            }
            var terms = decrypted.trim().split("
    ");
            if (terms[0] === name && terms[1] === product) {
                return { 
                    name: name, 
                    product: product, 
                    licenseType: terms[2],
                    quantity: terms[3],
                    licenseKey: licenseKey
                };
            } else {
                return false;
            }
        }

    (1)查找LicenseManagerDomain.js位置

    命令: 

     dpkg -S staruml | grep LicenseManagerDomain.js

    然后编辑文件

    sudo gedit /opt/staruml/www/license/node/LicenseManagerDomain.js

  • 相关阅读:
    Odoo Documentation : Fields
    Odoo models.py BaseModel
    Odoo Documentation : Environment
    Odoo Documentation : Recordsets
    Odoo中使用的部分表名及用途
    Odoo启动过程
    6779. Can you answer these queries VII
    1874 素数和最大
    3150 Pibonacci数
    2817 Tangent的愤怒
  • 原文地址:https://www.cnblogs.com/senior-engineer/p/4872351.html
Copyright © 2020-2023  润新知