{"id":20060257,"url":"https://github.com/bboymega/dlut-eda-shell-login","last_synced_at":"2025-03-02T10:13:45.972Z","repository":{"id":45930189,"uuid":"347612175","full_name":"bboymega/dlut-eda-shell-login","owner":"bboymega","description":"DLUT-EDA Shell Login. Applicable to headless devices.","archived":false,"fork":false,"pushed_at":"2021-12-03T03:08:48.000Z","size":1064,"stargazers_count":8,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-12T22:12:42.852Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"AppleScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bboymega.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-14T11:00:45.000Z","updated_at":"2024-01-10T04:30:12.000Z","dependencies_parsed_at":"2022-08-28T19:51:50.125Z","dependency_job_id":null,"html_url":"https://github.com/bboymega/dlut-eda-shell-login","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bboymega%2Fdlut-eda-shell-login","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bboymega%2Fdlut-eda-shell-login/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bboymega%2Fdlut-eda-shell-login/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bboymega%2Fdlut-eda-shell-login/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bboymega","download_url":"https://codeload.github.com/bboymega/dlut-eda-shell-login/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241488204,"owners_count":19970829,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T13:13:45.168Z","updated_at":"2025-03-02T10:13:45.950Z","avatar_url":"https://github.com/bboymega.png","language":"AppleScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DLUT-EDA-shell-login\nDLUT-EDA Shell Login. Applicable to headless devices.\n\nDLUT_EDA 的shell命令行客户端，适合树莓派/OPENWRT等嵌入式设备，也可以在电脑上使用简化登录过程。\n\n![ScreenShot.png](./image/ScreenShot.png)\n\n![Screenshot_20210315-140314_Settings.jpg](./image/Screenshot_20210315-140314_Settings.jpg)\n\n## Shell Usage 脚本使用方法: \n/PATH_TO_THE_SCRIPT/dlut_eda_login.sh [-u username] [-p password] [-o]\n\n登录方法：/PATH_TO_THE_SCRIPT/dlut_eda_login.sh -u \"用户名\" -p \"密码\"\n\n登出方法：/PATH_TO_THE_SCRIPT/dlut_eda_login.sh -o\n\n## 自动检测网络连接并实现断线重连\n\n将 check_internet.sh 和 dlut_eda_login.sh 放在同一目录下\n\n填写好 check_internet.sh 中的 -u 和 -p 参数\n\ncrontab 添加定时任务\n\n`*/1 * * * * bash /etc/check_internet.sh`\n\n就可以实现断线重连（每一分钟检测一次）。\n\n## AppleScript 自动切换至 DLUT-EDA 并登录\n\n\u003e beta version 0.4\n\n通过 switch 脚本可以一键完成切换 DLUT-EDA 网络及登录校园网功能\n\n### 使用方法\n\n1. 下载脚本\n2. 将 script 脚本中的 user_name 和 pass_word 修改为自己的登录信息\n3. 编译并运行脚本\n\n\u003e 网络报错提示的图标可以自己进行选择，修改 `icon_local_path` 的值即可\n\n### 自动化运行方案\n\n![automator](./image/auto_mator.png)\n\n1. 打开 Automator，新建文档并选择 Quick Action（用于添加系统快捷键，快捷更换网络）\n2. 左侧搜索 Run AppleScript，将脚本内容替换为 [switch.scpt](https://github.com/Augists/dlut-eda-shell-login/blob/main/switch.scpt) 脚本中的内容，编译检查\n3. 保存退出，Automator 会自动保存在 `~/Library/Services` 路径下\n4. 打开系统偏好设置 System Preference，在键盘中选择 Shortcut，脚本快捷键可以在 Services 中自定义\n\n**本脚本不会保存任何密码，请放心使用。请遵守法律法规，不要滥用脚本，否则后果自负！！！**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbboymega%2Fdlut-eda-shell-login","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbboymega%2Fdlut-eda-shell-login","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbboymega%2Fdlut-eda-shell-login/lists"}