GithubHelp home page GithubHelp logo

neu_ipgw's Introduction

NEU_IPGW

东北大学校园网登录脚本

概述

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

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

安装

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

二进制文件安装

  1. release 页面获取最新版本压缩文件
  2. 解压缩,并赋予执行权限
  3. 部署至/usr/local/bin目录
## example for ubuntu
# download
wget https://github.com/DoraTiger/NEU_IPGW/releases/download/v0.1.0/NEU_IPGW-linux-amd64.tar.gz
# unzip and grant
tar -zxf ./ipgw-linux-amd64.zip
chmod +x ./NEU_IPGW
# move
sudo cp ./NEU_IPGW  /usr/local/bin/

源码安装

  1. 准备 go 语言环境,可参考该博客的 2.3 节。
  2. 编译项目(考虑到服务器本身无网络的情况,提供了vendor目录,支持离线编译,如不需要,请删除makefile中的-mod=vendor)
  3. 部署至/usr/local/bin目录
## example for ubuntu
# download
git clone https://github.com/DoraTiger/NEU_IPGW.git
cd NEU_IPGW
# build
make all
# grant
chmod +x ./build/linux-amd64/NEU_IPGW
# move
sudo cp ./build/linux-amd64/NEU_IPGW /usr/local/bin/

使用

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

参考

存在问题

neu_ipgw's People

Contributors

doratiger avatar

Stargazers

 avatar Xinhui Lin avatar Venus avatar  avatar

Watchers

 avatar

Forkers

asimok

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.