Navicat15在Ubuntu下的使用
  在 软件、工具 分类下   1 条评论

Navicat15在Ubuntu下的使用

  在 软件、工具 分类下   1 条评论

下载Navicat

点击Navicat官网下载页面到官网下载Linux版Navicat

下载后会得到一个navicat15-premium-cs.AppImage文件。
假定保存在桌面,即~/Desktop文件夹下。

下载工具 Navicat Keygen.zip并解压

提取AppImage文件

提取AppImage里的文件到文件夹下:

$ mkdir ~/Desktop/navicat-premium-cs
$ sudo mount -o loop ~/Desktop/navicat-premium-cs.AppImage ~/Desktop/navicat-premium-cs
$ cp -r ~/Desktop/navicat-premium-cs ~/Desktop/navicat-premium-cs-patched
$ sudo umount ~/Desktop/navicat-premium-cs
$ rm -rf ~/Desktop/navicat-premium-cs

替换公钥

使用navicat-patcher替换官方公钥

Usage:
    navicat-patcher [--dry-run] <Navicat Installation Path> [RSA-2048 Private Key File]

        [--dry-run]                   Run patcher without applying any patches.
                                    This parameter is optional.

        <Navicat Installation Path>   Path to a directory where Navicat locates
                                    This parameter must be specified.

        [RSA-2048 Private Key File]   Path to a PEM-format RSA-2048 private key file.
                                    This parameter is optional.

例如:

$ ./navicat-patcher ~/Desktop/navicat-premium-cs-patched

可能出现的报错

执行: ./navicat-patcher navicat15-premium-cs-patched这里报错
报错信息:./navicat-patcher: error while loading shared libraries: libcapstone.so.3: cannot open shared object file: No such file or directory
尝试安装:sudo apt install libcapstone-dev

继续执行:./navicat-patcher navicat15-premium-cs-patched
继续报错:./navicat-patcher: error while loading shared libraries: libkeystone.so.0: cannot open shared object file: No such file or directory

然后进行以下操作:
sudo apt-get install cmake
sudo apt-get install rapidjson-dev
git clone https://github.com/keystone-engine/keystone.git
cd keystone
mkdir build
cd build
../make-share.sh
sudo make install
sudo ldconfig    

将文件重新打包成AppImage

$ wget 'https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage'
$ chmod +x appimagetool-x86_64.AppImage
$ ./appimagetool-x86_64.AppImage ~/Desktop/navicat-premium-cs-patched ~/Desktop/navicat15-premium-cs-patched.AppImage

运行刚生成的AppImage

$ chmod +x ~/Desktop/navicat15-premium-cs-patched.AppImage
$ ~/Desktop/navicat15-premium-cs-patched.AppImage

使用navicat-keygen生成序列号和激活码

Usage:
    navicat-keygen <--bin|--text> [--adv] <RSA-2048 Private Key File>

        <--bin|--text>    Specify "--bin" to generate "license_file" used by Navicat 11.
                        Specify "--text" to generate base64-encoded activation code.
                        This parameter must be specified.

        [--adv]                       Enable advance mode.
                                    This parameter is optional.

        <RSA-2048 Private Key File>   A path to an RSA-2048 private key file.
                                    This parameter must be specified.

例如:

$ ./navicat-keygen --text ./RegPrivateKey.pem

你会被要求选择Navicat产品类别、Navicat语言版本和填写主版本号。之后一个随机生成的 序列号 将会给出。

$ ./navicat-keygen --text ./RegPrivateKey.pem
**********************************************************
*       Navicat Keygen (Linux) by @DoubleLabyrinth       *
*                   Version: 1.0                         *
**********************************************************

[*] Select Navicat product:
0. DataModeler
1. Premium
2. MySQL
3. PostgreSQL
4. Oracle
5. SQLServer
6. SQLite
7. MariaDB
8. MongoDB
9. ReportViewer

(Input index)> 1

[*] Select product language:
0. English
1. Simplified Chinese
2. Traditional Chinese
3. Japanese
4. Polish
5. Spanish
6. French
7. German
8. Korean
9. Russian
10. Portuguese

(Input index)> 1

[*] Input major version number:
(range: 0 ~ 15, default: 12)> 15

[*] Serial number:
NAVM-RTVJ-EO42-IODD

[*] Your name:

你可以使用这个 序列号 来暂时激活Navicat。

之后你会被要求填写 用户名 和 组织名。你可以随意填写,但别太长。

[*] Your name: Hao
[*] Your organization: Hao

[*] Input request code in Base64: (Double press ENTER to end)

之后你会被要求填写请求码。注意不要关闭keygen。

断开网络. 找到注册窗口,填写keygen给你的 序列号,然后点击 激活。

通常在线激活会失败,所以在弹出的提示中选择 手动激活。

复制 请求码 到keygen,连按两次回车结束。

[*] Input request code in Base64: (Double press ENTER to end)
OaGPC3MNjJ/pINbajFzLRkrV2OaSXYLr2tNLDW0fIthPOJQFXr84OOroCY1XN8R2xl2j7epZ182PL6q+BRaSC6hnHev/cZwhq/4LFNcLu0T0D/QUhEEBJl4QzFr8TlFSYI1qhWGLIxkGZggA8vMLMb/sLHYn9QebBigvleP9dNCS4sO82bilFrKFUtq3ch8r7V3mbcbXJCfLhXgrHRvT2FV/s1BFuZzuWZUujxlp37U6Y2PFD8fQgsgBUwrxYbF0XxnXKbCmvtgh2yaB3w9YnQLoDiipKp7io1IxEFMYHCpjmfTGk4WU01mSbdi2OS/wm9pq2Y62xvwawsq1WQJoMg==

[*] Request Info:
{"K":"NAVMRTVJEO42IODD", "DI":"4A12F84C6A088104D23E", "P":"linux"}

[*] Response Info:
{"K":"NAVMRTVJEO42IODD","DI":"4A12F84C6A088104D23E","N":"DoubleLabyrinth","O":"DoubleLabyrinth","T":1575543648}

[*] Activation Code:
i45HIr7T1g69Cm9g3bN1DBpM/Zio8idBw3LOFGXFQjXj0nPfy9yRGuxaUBQkWXSOWa5EAv7S9Z1sljlkZP6cKdfDGYsBb/4N1W5Oj1qogzNtRo5LGwKe9Re3zPY3SO8RXACfpNaKjdjpoOQa9GjQ/igDVH8r1k+Oc7nEnRPZBm0w9aJIM9kS42lbjynVuOJMZIotZbk1NloCodNyRQw3vEEP7kq6bRZsQFp2qF/mr+hIPH8lo/WF3hh+2NivdrzmrKKhPnoqSgSsEttL9a6ueGOP7Io3j2lAFqb9hEj1uC3tPRpYcBpTZX7GAloAENSasFwMdBIdszifDrRW42wzXw==

最终你会得到一个base64编码的 激活码。

将之复制到 手动激活 的窗口,然后点击 激活。

如果没有什么意外,应该可以成功激活。

最后的清理:

$ rm ~/Desktop/navicat15-premium-cs.AppImage
$ rm -rf ~/Desktop/navicat15-premium-cs-patched
$ mv ~/Desktop/navicat15-premium-cs-patched.AppImage ~/Desktop/navicat15-premium-cs.AppImage
评论已关闭
  1. AAA

    icon_mrgreen.gif icon_mrgreen.gif icon_mrgreen.gif icon_mrgreen.gif icon_mrgreen.gif icon_mrgreen.gif icon_mrgreen.gif