navicat Linux版
相关工具
提取码: 6zx5
操作步骤
创建一个文件夹
mkdir ~/navicat
将相关工具都放在该文件夹下
cd navicat
安装libcapstone-dev
sudo apt-get install libcapstone-dev
安装 rapidjson
sudo apt-get install rapidjson-dev
安装keystone
sudo apt-get install -y build-essential
sudo apt-get install cmake
git clone https://github.com/keystone-engine/keystone.git
cd keystone
mkdir build
cd build
../make-share.sh
sudo make install
sudo ldconfig
赋权
cd ~/navicat
chmod +x appimagetool-x86_64.AppImage
chmod +x navicat-patcher
chmod +x navicat-keygen
解包官方软件
mkdir navicat15
mount -o loop navicat15-premium-cs.AppImage navicat15
cp -r navicat15 navicat15-patched
运行补丁
./navicat-patcher navicat15-patched
打包成独立运行软件
./appimagetool-x86_64.AppImage navicat15-patched navicat15-premium-cs-pathed.AppImage
运行补丁后软件包
chmod +x navicat15-premium-cs-pathed.AppImage
./navicat15-premium-cs-pathed.AppImage
这里会弹出一个navicat的图形化界面,点击注册
运行注册机
再打开一个窗口
cd ~/navicat
> ./navicat-keygen --text ./RegPrivateKey.pem
选择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:
NAVE-B3QW-MFYR-7SGE
填写注册码
-
关闭电脑网络链接
-
在navicat图形化界面填写注册码
-
页面跳转得到一串request code
获得Activation Code
返回命令行,填写Your name和Your organization,这两个根据喜好随意填写即可
[*] Your name: abc
[*] Your organization: abc
接下来会提示输入request code
[*] Input request code in Base64: (Double press ENTER to end)
讲navicat图形化界面的request code粘贴到命令行中,按两下ENTER,得到Activation Code
[*] Request Info:
{"K":"NAVEB3QWMFYR7SGE", "DI":"C21D2C5FC1C6B0387FFD", "P":"linux"}
[*] Response Info:
{"K":"NAVEB3QWMFYR7SGE","DI":"C21D2C5FC1C6B0387FFD","N":"xujp","O":"xujp","T":1591521843}
[*] Activation Code:
PQ...==
完成注册
将Activation Code复制到navicat图形化界面中,点击完成
给navicat增加快捷启动
找一张心仪的图片
注意图片不要太大,不然无法加载
博主比较懒,直接在管网扒下来一张图标
https://www.navicat.com.cn/images/02.Product_00_AllProducts_Premium.png
文件存储
博主将文件存在了 /usr/local/share/navicat.png 下
创建启动文件
sudo vi /usr/share/applications/navicat15.desktop
在文件中填写以下内容
[Desktop Entry]
Name=Navicat
Comment=this is my Navicat
Exec=/home/XXX/XXX/navicat/navicat15-premium-cs-pathed.AppImage
Icon=/usr/local/share/navicat.png
Terminal=false
Type=Application
Categories=Application;
- Exec 填写 navicat15-premium-cs-pathed.AppImage 的绝对路径
- Icon 填写 navicat.png 的绝对路径
保存文件以后,再看启动
仅供学习参考
本文参考:https://blog.csdn.net/u014585456/article/details/104464269
学习这件事,请不要停下来。