NEU_IPGW

module
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2026 License: MIT

README

NEU_IPGW

东北大学校园网登录脚本

概述

服务器需要在命令行中进行登录,在 github 中找到 neucn/ipgw 这个项目,但是多次尝试总是无法登录,故而基于该项目自行构建了一个简易版本。

学习 go 工程开发,在v0.2.0中,将项目基于cobra命令行工具进行了重构。

安装

以下安装过程以 Ubuntu 为例,其他系统请使用对应版本。

二进制文件安装
  1. release 页面获取最新版本压缩文件
  2. 验证文件完整性 (optional)
  3. 解压缩,并赋予执行权限
  4. 部署至/usr/local/bin目录 (optional)
## example for linux(x86_64)
# download
wget https://github.com/DoraTiger/NEU_IPGW/releases/latest/NEU_IPGW-linux-amd64.tar.gz

# check (optional)
wget https://github.com/DoraTiger/NEU_IPGW/releases/latest/NEU_IPGW-linux-amd64.tar.gz.sha256
sha256sum -c NEU_IPGW-linux-amd64.tar.gz.sha256

# unzip and grant
tar -zxf ./NEU_IPGW-linux-amd64.tar.gz
chmod +x ./NEU_IPGW

# move (optional)
sudo cp ./NEU_IPGW  /usr/local/bin/
源码安装

源码安装方式自适应系统架构

  1. 准备 go 语言环境,可参考该博客的 2.3 节
  2. 获取源码并编译
  3. 部署至/usr/local/bin目录 (optional)
# download
git clone https://github.com/DoraTiger/NEU_IPGW.git
cd NEU_IPGW
# build
make build
# grant
chmod +x ./build/NEU_IPGW
# move (optional)
sudo cp ./build/NEU_IPGW /usr/local/bin/

使用

  1. 登录校园网
NEU_IPGW login -u username -p password
  1. 退出登录
NEU_IPGW logout

参考

存在问题

Directories

Path Synopsis
cmd
app command
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL