Skip to content

korosuke613/miyadai-sso-auto-login

Repository files navigation

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