Code Monkey home page Code Monkey logo

miyadai-sso-auto-login's Introduction

miyadai-sso-auto-login

Auto login system in University of Miyazaki.

install

Please install Python3.6.6 in advance. Don't work Python3.7 for Windows.

Windows

  1. Open PowerShell with Administrator.
  2. Run pip install pipenv
  3. Run git clone --depth=1 https://github.com/korosuke613/miyadai-sso-auto-login.git
  4. Run cd miyadai-sso-auto-login
  5. Run pipenv install
  6. Run pipenv run python ./save_pass.py
  7. Run pipenv run python ./miyadai_login.py
  8. Perform clone setting.(参照: Windowsで定期自動ログインする )

Linux

  1. Open terminal.
  2. Run sudo pip install secretstorage
  3. Run sudo pip install pipenv
  4. Run git clone --depth=1 https://github.com/korosuke613/miyadai-sso-auto-login.git
  5. Run cd miyadai-sso-auto-login
  6. Run pipenv install
  7. Run pipenv run python ./save_pass.py
  8. Run pipenv run python ./miyadai_login.py
  9. Perform clone setting.(参照: Ubuntuで定期自動ログインする )

Raspbian

If you want to run headless, install Xvfb (Run sudo apt install xvfb)

  1. Open terminal
  2. Run sudo apt install libffi-dev
  3. Run sudo pip install cffi
  4. Run sudo pip install secretstorage
  5. Run sudo pip install pipenv
  6. Install chromedriver
    1. Run sudo apt install chromium-chromedriver
    2. If the above is OK, next 7
    3. Else, run wget https://github.com/electron/electron/releases/download/v1.6.0/chromedriver-v2.21-linux-armv7l.zip
    4. Run unzip chromedriver-v2.21-linux-armv7l.zip -d /open/your/path/chromedriver
  7. Run git clone --depth=1 https://github.com/korosuke613/miyadai-sso-auto-login.git
  8. Run cd miyadai-sso-auto-login
  9. Edit 17 line to driver_path = "/path/in/your/chromedriver/chromedriver" in miyadai_login_in_raspbian.py
  10. Run pipenv --python 3.6.6 install
    1. If the above is TIMEOUT, run export PIPENV_TIMEOUT=500 and rerun the above command
  11. Run pipenv --python 3.6.6 install
  12. Run pipenv install selenium
  13. Run pipenv run python ./save_pass_in_raspbian.py
  14. Run pipenv run python ./miyadai_login_in_raspbian.py
    1. If you want to run headless, run xvfb-run pipenv run python ./miyadai_login_in_raspbian.py
  15. Perform clone setting.(参照: Ubuntuで定期自動ログインする )
    1. You should edit pipenv run python ./miyadai_login.py >>./cron_log.txt 2>>./error-log.txt to pipenv run python ./miyadai_login_in_raspbian.py >>./cron_log.txt 2>>./error-log.txt or xvfb-run pipenv run python ./miyadai_login_in_raspbian.py >>./cron_log.txt 2>>./error-log.txt in croning.sh

miyadai-sso-auto-login's People

Contributors

dependabot[bot] avatar imgbotapp avatar korosuke613 avatar morichan avatar

Stargazers

 avatar

Watchers

 avatar  avatar

miyadai-sso-auto-login's Issues

#3 の実機確認

#3 でRaspbianによる自動ログインが達成できましたが、実機確認が不十分です。
なので、Raspbianによる自動ログインの実機確認を行いましょう

Chrome Webdriverのヘッドレスモード起動

現在、ログイン時はChrome Webdriverがフォアグラウンドで起動します。
なので、Webdriverのヘッドレスモードを使って、バックグラウンド起動をしたいです。

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.