This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #/bin/bash | |
| # Ubuntu20 桌面环境配置(arm兼容) | |
| # 2021 flyqie | |
| # 遇到错误马上退出,避免出现其他问题 | |
| set -e | |
| # ... | |
| set -x | |
| # Xrdp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json | |
| import os | |
| import time | |
| import yaml | |
| from requests_oauthlib import OAuth2Session | |
| # Azure SDK 必须这么做,因为Azure服务器可能不按顺序返回参数. | |
| os.environ['OAUTHLIB_RELAX_TOKEN_SCOPE'] = '1' | |
| os.environ['OAUTHLIB_IGNORE_SCOPE_CHANGE'] = '1' |