Follow an Agora bot in the platforms of your choice and use [[wikilinks]] or (optionally) #hashtags to interact.
For example: if you include [[@flancian/install]] in a post or message, it will be linked here.
๐ Join the Agora with your self-hosted writing and media.
You can integrate your digital garden, blog or wiki into the Agora Commons by publishing it and telling us about it.
After that, contributions titled '@flancian/install' or similar will show up in this node.
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# Prompt
LightBlue='\[\e[01;38;5;74m\]'
Grey='\[\e[0;37m\]'
White='\[\e[0;97m\]'
PS1="$LightBlue\u@\h $Grey\w $LightBlue\$ $White"
# History search
bind '"\e[A":history-search-backward'
bind '"\e[B":history-search-forward'
### History append rather than overwrite
# don't put duplicate lines or lines starting with space in the history.
HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it
shopt -s histappend
PROMPT_COMMAND="history -a;$PROMPT_COMMAND"
# attempt to save all lines of a multiple-line command in the same history entry
shopt -s cmdhist
# save multi-line commands to the history with embedded newlines
shopt -s lithist
# Store always & everything.
# From http://jesrui.sdf-eu.org/remember-all-your-bash-history-forever.html
#HISTSIZE=10000
#HISTFILESIZE=20000
HISTSIZE=-1
HISTFILESIZE="no truncation (if not numeric)"
#Ignore 1-char cmds
HISTIGNORE=?:?
### Color manpages (Arch style)
export LESS_TERMCAP_mb=$'\E[01;31m'
export LESS_TERMCAP_md=$'\E[01;38;5;74m'
export LESS_TERMCAP_me=$'\E[0m'
export LESS_TERMCAP_se=$'\E[0m'
export LESS_TERMCAP_so=$'\E[38;5;246m'
export LESS_TERMCAP_ue=$'\E[0m'
export LESS_TERMCAP_us=$'\E[04;38;5;146m'
### Color common commands
alias ls='ls --color=auto'
alias grep='grep --color=auto'
#########################
Root dir for PyPi server.
#########################
:maintainer: konstantinos.anagnostopoulos@ext.jrc.ec.europa.eu (ankostis@gmail.com)
:created: 2014-Sept
This is a PyPI compatible package index server :https://pypi.python.org/pypi/pypiserver
Folder contents
===============
There should be these in the ``pypi-server``'s home-dir::
+--packages/ ## Uploaded/mirrored python-packages stored there.
+--venv-3/ ## Virtual-environement that the pypi-server runs under.
+--lib/python3.4/site-packages/pypiserver/_app.py ## Has the Welcome message.
+--pypy-server.sh ## Server start-up shell-script invoked by `/etc/init/pypiserver.conf` upstart-service.
+--.htaccess ## Upload user/password.
[[Agora Bridge]], a repository that contains various means of writing to the Agora and more generally interfacing with it. This includes the process that interacts with the Agora’s configuration (in the first repository in the list) and runs fetch/update tasks; and a set of platform-specific bots.
The following instructions assume you clone all repositories and run all services under the same user in a Unix-like system (anagora.org runs on Debian GNU/Linux). We suggest agora:
You need to clone all three to run a fully functioning Agora. Because the first is configuration only, and the third encapsulates all mutating code, you technically only need to run [[agora server]] as a service to run an immutable Agora. These instructions assume you set up all three in order.
CONTRACT.md contains the Agora system account’s public commitment to the ecosystem.
You need to edit gardens.yaml if you want to carry a different set of sources. The Agora comes with defaults.
If you edit the [[CONTRACT]], your Agora might become incompatible with the Agora you forked from. Conflict resolution is part of [[agora protocol]] but currently not specified.
If you installed in non-standard paths (i.e. your repos are not in /home/<user>/<repo>), edit app/config.py.
You need to create a Python virtual environment, install packages from requirements.txt. run ./setup.sh and it’ll at least try to point you in the right direction :)
You can add an nginx virtual host with [[certbot]]: certbot --nginx -d example.anagora.org. Then use the following as an example to forward traffic in that virtual host to Agora Server over UWSGI:
location / {
include uwsgi_params;
# /home/agora/agora-server/run-prod.sh to run.
uwsgi_pass unix:/tmp/agora-uwsgi.sock;
}
[[typescript]]
You need to create a Python virtual environment, install packages from requirements.txt. run ./setup.sh and it’ll at least try to point you in the right direction :)
Then run ./run-prod.sh either on a shell or as a [[systemd service]]. This will pull from all sources in the root repository’s gardens.yaml in a loop.
There is currently no [[docker]] support, but it seems like it could be a great fit. We have this in our plan, but if you’re handy with Docker, this would be a great contribution for you! :)