Ubuntu 18.04 64位安装校园网客户端(完美解决)

本文详细介绍了在Ubuntu 18.04 64位系统上安装校园网客户端的步骤,包括下载客户端、安装过程(解决动态链接库问题)、以及如何设置开机启动,确保在Ubuntu 18.04中能够顺利使用校园网服务。
摘要由CSDN通过智能技术生成

一、准备

下载客户端:中山大学网络与技术服务中心

二、安装

  1. 解压下载的压缩包,右键点击Extract Here。
  2. 修改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的代码太长,放在文末
  3. 安装
    如果还是提示缺少某些库请自行百度安装方法.
    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
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值