Note: this isn't an official solution.
## install scl-rh repo
yum install centos-release-scl-rh添加用户到 root group
## for example: user dev
usermod -g root dev # -g means change the dev's primiry group to group root
## you can add the dev to other group by option -aG
## for example, you can add the user dev to group plugdev by:
## usermod -aG plugdev dev
| #!/usr/bin/env bash | |
| #################################### README #################################### | |
| # This script follows the guidance of FFMPEG(https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu). | |
| # It works will on Ubuntu22.04. It may works on other version of Ubuntu because that I didn't check it. | |
| # This script mods some parameters of building command,(for example the vmaf's bindir). So you may pay | |
| # attention to VMAF. | |
| ################################################################################ | |
| #!/usr/bin/env bash | |
| ## 检查 trojan更新,并强制更新 | |
| ## 安装 trojan | |
| ## 卸载 trojan | |
| MACHINE='amd64' | |
| RELEASE_VERSION="v0.10.6" |
| #! /bin/bash | |
| set -Eeuo pipefail | |
| trap cleanup SIGINT SIGTERM ERR EXIT | |
| cleanup() { | |
| trap - SIGINT SIGTERM ERR EXIT | |
| # script cleanup here | |
| } | |
| # jdk version is jdk-1.8 |
| #!/usr/bin/env bash | |
| # modifed from https://github.com/v2fly/fhs-install-v2ray/blob/master/install-release.sh | |
| # https://github.com/HyNetwork/hysteria/blob/master/install_server.sh | |
| # You can set this variable whatever you want in shell session right before running this script by issuing: | |
| # export JSON_PATH='/usr/local/etc/tuic' | |
| JSON_PATH=${JSON_PATH:-/etc/tuic} | |
| curl() { | |
| $(type -P curl) -L -q --retry 5 --retry-delay 10 --retry-max-time 60 "$@" | |
| } |
| ## Current powershell will check the VisualStudio installion and Windows SDK version | |
| ## If they are OK, the VC environment variable will set to current process of command line | |
| ### this Script allow you set the vcvarsall environment variable into your current terminal process. | |
| class VSInfo { | |
| [string]$version | |
| [string]$installPath | |
| [string]$edition | |
| } |
| //www.lsauer.com 2012 | |
| //author: Microsoft Inc. | |
| //Type: tab-separated flatfile / datatable | |
| Variable Type Description | |
| %ALLUSERSPROFILE% Local Returns the location of the All Users Profile. | |
| %APPDATA% Local Returns the location where applications store data by default. | |
| %CD% Local Returns the current directory string. | |
| %CMDCMDLINE% Local Returns the exact command line used to start the current Cmd.exe. | |
| %CMDEXTVERSION% System Returns the version number of the current Command Processor Extensions. |