一、准备
下载客户端:中山大学网络与技术服务中心
二、安装
- 解压下载的压缩包,右键点击Extract Here。
- 修改install.sh
自带的install.sh复制少了几个动态链接库(libpangox*、libpng*等),而且将/usr/lib/x86_64-linux-gnu/libjpeg.so.8.0.2链接为libjpeg.so.62,正确的做法是链接/usr/lib/x86_64-linux-gnu/libjpeg.so.8.1.2,install.sh的代码太长,放在文末。 - 安装
如果还是提示缺少某些库请自行百度安装方法.sudo -s cp iNodeClient_Linux64/iNodeClient /usr/local/ -r cd /usr/local/iNodeClient ./install.sh ./iNodeClient.sh #如果出现iNode窗口说明成功了
三、设置开机启动
install.h中把开机启动的代码写到了/etc/rc.local文件里面,但是Ubuntu 18.04开机已经不再执行这个文件了,甚至在默认情况下/etc目录都没有这个文件!需要更改**/etc/rc.local和/lib/systemd/system/rc.local.service**文件,内容如下:
(1)/etc/rc.local:
在第一行加上 #! /bin/bash
,没加之前rc.local文件是没法被执行的!!!
#! /bin/bash
/etc/init.d/iNodeAuthService start
exit 0
(2)/lib/systemd/system/rc.local.service:
# SPDX-License-Identifier: LGPL-2.1+
#
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
# This unit gets pulled automatically into multi-user.target by
# systemd-rc-local-generator if /etc/rc.local is executable.
# 上一行解释了第一步为什么要加上 #! /bin/bash
[Unit]
Description=/etc/rc.local Compatibility
Documentation