Ubuntu18 安装navicat15

2020-12-14 17:24
126
0

准备工作

  1. 编译文件连接Github地址
  2. 也可以使用我已经编译好的下载地址 提取码:3iht

安装

  1. 先将AppImage文件解析到目录
mkdir ~/Desktop/navicat15-premium-cs
sudo mount -o loop ~/Desktop/navicat15-premium-cs.AppImage ~/Desktop/navicat15-premium-cs
cp -r ~/Desktop/navicat15-premium-cs ~/Desktop/navicat15-premium-cs-patched
sudo umount ~/Desktop/navicat15-premium-cs
rm -rf ~/Desktop/navicat15-premium-cs

记得从~/Desktop/navicat15-premium-cs-patched目录中把navicat-icon.png拷贝出来,后续创建桌面图标使用 2. 替换官方公钥

./navicat-patcher ~/Desktop/navicat15-premium-cs-patched
	//大概输出内容
	**********************************************************
	*       Navicat Patcher (Linux) by @DoubleLabyrinth      *
	*                  Version: 1.0                          *
	**********************************************************

	Press ENTER to continue or Ctrl + C to abort.

	[+] Try to open libcc.so ... Ok!

	[+] PatchSolution0 ...... Ready to apply
		 RefSegment      =  1
		 MachineCodeRva  =  0x0000000001413e10
		 PatchMarkOffset = +0x00000000029ecf40

	[*] Generating new RSA private key, it may take a long time...
	[*] Your RSA private key:
		 -----BEGIN RSA PRIVATE KEY-----
		 MIIEowIBAAKCAQEArRsg1+6JZxZNMhGyuM8d+Ue/ky9LSv/XyKh+wppQMS5wx7QE
		 XFcdDgaByNZeLMenh8sgungahWbPo/5jmkDuuHHrVMU748q2JLL1E3nFraPZqoRD
		 ...
		 ...
		 B1Z5AoGBAK8cWMvNYf1pfQ9w6nD4gc3NgRVYLctxFLmkGylqrzs8faoLLBkFq3iI
		 s2vdYwF//wuN2aq8JHldGriyb6xkDjdqiEk+0c98LmyKNmEVt8XghjrZuUrn8dA0
		 0hfInLdRpaB7b+UeIQavw9yLH0ilijAcMkGzzom7vdqDPizoLpXQ
		 -----END RSA PRIVATE KEY-----
	[*] Your RSA public key:
		 -----BEGIN PUBLIC KEY-----
		 MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArRsg1+6JZxZNMhGyuM8d
		 +Ue/ky9LSv/XyKh+wppQMS5wx7QEXFcdDgaByNZeLMenh8sgungahWbPo/5jmkDu
		 ...
		 ...
		 GrVJ3o8aDm35EzGymp4ON+A0fdAkweqKV6FqxEJqLWIDRYh+Z01JXUZIrKmnCkgf
		 QQIDAQAB
		 -----END PUBLIC KEY-----

	*******************************************************
	*                   PatchSolution0                    *
	*******************************************************
	[*] Previous:
	+0x0000000000000070                          01 00 00 00 05 00 00 00          ........
	+0x0000000000000080  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
	+0x0000000000000090  00 00 00 00 00 00 00 00 40 cf 9e 02 00 00 00 00  ........@.......
	+0x00000000000000a0  40 cf 9e 02 00 00 00 00 00 10 00 00 00 00 00 00  @...............
	[*] After:
	+0x0000000000000070                          01 00 00 00 05 00 00 00          ........
	+0x0000000000000080  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
	+0x0000000000000090  00 00 00 00 00 00 00 00 d0 d0 9e 02 00 00 00 00  ................
	+0x00000000000000a0  d0 d0 9e 02 00 00 00 00 00 10 00 00 00 00 00 00  ................

	[*] Previous:
	+0x00000000029ecf40  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
	+0x00000000029ecf50  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
	+0x00000000029ecf60  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
	...
	...
	+0x00000000029ed0c0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
	[*] After:
	+0x00000000029ecf40  ef be ad de 4d 49 49 42 49 6a 41 4e 42 67 6b 71  ....MIIBIjANBgkq
	+0x00000000029ecf50  68 6b 69 47 39 77 30 42 41 51 45 46 41 41 4f 43  hkiG9w0BAQEFAAOC
	+0x00000000029ecf60  41 51 38 41 4d 49 49 42 43 67 4b 43 41 51 45 41  AQ8AMIIBCgKCAQEA
	...
	...
	...
	+0x00000000029ed0c0  43 6b 67 66 51 51 49 44 41 51 41 42 ad de ef be  CkgfQQIDAQAB....

	[*] Previous:
	+0x0000000001413e10  44 0f b6 24 18 48 8b 44 24 28 8b 50 f8 85 d2 79  D..$.H.D$(.P...y
	+0x0000000001413e20  6f                                               o               
	[*] After:
	+0x0000000001413e10  45 31 e4 48 8d 05 2a 91 5d 01 90 90 90 90 90 90  E1.H..*.].......
	+0x0000000001413e20  90                                               .               

	[*] New RSA-2048 private key has been saved to
		 /home/doublesine/github.com/navicat-keygen/RegPrivateKey.pem

	*******************************************************
	*           PATCH HAS BEEN DONE SUCCESSFULLY!         *
	*                  HAVE FUN AND ENJOY~                *
	*******************************************************
	
	**最后会在navicat-patcher目录中生成RegPrivateKey.pem文件**
  1. 重新打包
chmod +x appimagetool-x86_64.AppImage
./appimagetool-x86_64.AppImage ~/Desktop/navicat15-premium-cs-patched ~/Desktop/navicat15-premium-cs-patched.AppImage
  1. 运行刚生成的AppImage
chmod +x ~/Desktop/navicat15-premium-cs-patched.AppImage
~/Desktop/navicat15-premium-cs-patched.AppImage
  1. 生成序列号激活码
./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: xu
	[*] Your organization: xu

	[*] 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":"xu","O":"xu","T":1575543648}

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

最终你会得到一个base64编码的 激活码 将之复制到 手动激活 的窗口,然后点击 激活 如果没有什么意外,应该可以成功激活 6. 清理

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. 创建桌面图标 新建navicat.desktop文件
[Desktop Entry]
Encoding=UTF-8
Name=navicat
Comment=The Smarter Way to manage dadabase
Exec=/opt/navicat15/navicat15-premium-cs.AppImage  //路径根据实际情况来
Icon=/opt/navicat15/navicat-icon.png
Categories=Application;Database;MySQL;navicat
Version=1.0
Type=Application
Terminal=0

最后将文件拷贝到/usr/share/applications

cp ~/Desktop/navicat.desktop /usr/share/applications/

全部评论