结构设置脚本和结构实用程序库
fabsetup的Python项目详细描述
结构任务,以便设置和维护配置、软件 本地或远程Linux系统上的安装和其他内容(大多数 debian/ubuntu的功能)。
“dotfiles on steroids”
用法
fabsetup是一个`fabric<;http://www.fabfile.org/>;`\uu脚本。
# task infos ## list all tasks: '-l' fabsetup -l ## show details: '-d' fabsetup -d new_addon # run tasks fabsetup setup.regex_repl ## on your local host: fabsetup setup.pencil3 -H localhost ## remote host: fabsetup up -H example.com
`设置howtos<;/howtos>;`\uu:
- 自定义fabsetup:初始化git存储库 `` fabsetup_custom`<;/howtos/fabsetup custom.md>;`/li>
- Set up an environment without sudo access
- Webserver Certificates with Letsencrypt
- Host an Owncloud Service
- Host an own F-Droid Repository (Android应用程序存储库)
- Host a Selfoss Service(rss阅读器web 应用)
- Install latest Node.js via nvm
- Create or update a reveal.js presentation
- `如何创建和编写 fabsetup addon<;/howtos/fabsetup addon.md>;`\uuu
已知的fabsetup插件
请投稿:Create your own fabsetup-addon并制作一个pull request来添加 fabsetup加载项到fabsetup/addons.py中的known_pip_addons和 到这个README.md。
安装
作为pypi package的 命令pip2(推荐方式):
pip2 install fabsetup
# install addon, eg. fabsetup-theno-termdown
pip2 install fabsetup-theno-termdown
覆盆子皮
在新鲜的覆盆子(德宾)上,你至少需要 在安装fabsetup之前使用pip:
sudo apt install -y git python python-pip libffi-dev libssl-dev tree curl && sudo pip install fabsetup
整个安装过程将在Raspi 3上花费大约15分钟, 覆盆子伸展,这样你就可以给自己沏茶了。注意:你不需要 键入pip2作为pip默认为pip的python2变量。 如果您像正常的usr一样运行$ pip install fabsetup(没有sudo) pip将默认使用--user设置安装,因此fabsetup是 位于~/.local/bin下。在这种情况下,您需要添加 ~/.local/bin到$PATH,位于/etc/profile中。
更新:
pip2 install --upgrade fabsetup
# update addon (also updates fabsetup)
pip2 install --upgrade fabsetup-theno-termdown
无超级用户权限安装:
pip2 install --user fabsetup
使用--userpip运行时,将在以下位置安装命令fabsetup~/.local/bin。Assure那 ~/.local/bin在$PATH环境变量中设置。
卸载:
pip2 uninstall --yes fabsetup pip2 uninstall --yes fabsetup-addon-theno
您还可以克隆github repository而不是使用 pip2 install:
# install requirements sudo apt-get install git fabric pip2 install --user utlz git clone https://github.com/theno/fabsetup.git ~/.fabsetup # from ~/.fabsetup dir use `fab` instead of `fabsetup` cd ~/.fabsetup fab -l
开发
devel命令:
# save changes git commit -am 'I describe my changes'# upload to github git push origin master # update version number in fabsetup/_version.py # create and publish package at pypi fab -f fabfile-dev.py pypi # clean up fab -f fabfile-dev.py clean