๐Ÿ“š Agora node [[@flancian/install]] (empty) โ˜†
This Agora node is empty. Be the first to ๐ŸŒฑ Write a contribution, ๐Ÿงญ Wander to a connected node, or ๐ŸŽฎ play a minigame.
๐Ÿ“š Agora node [[after it install]] (pulled by the Agora)
๐Ÿ“œ File after-it-install.md by @ankostis โ˜† ๐Ÿ“Ž

After ITR Installยง

:original-url: https://docs.google.com/document/d/1ooMIQVOEQq6QzegE2QzsFadvYhRnto4eCaAQpz02Wj0/edit

JRC Tasksยง

  1. +Phone external access (8-, 0-)
  2. +domain-email
  3. +coffe (not from DR)
  4. +INSTALL: VirtualBox + Extensions Pack
  5. +INSTALL: Adobe Reader updated
  6. +INSTALL: greek lang
  7. TerminalServers
  8. ChromeEarthPlugin
  9. +Intranet password
  10. +Entrance Permit
  11. +Update Notepad++
  12. INSTALL: Google-earth
  13. INSTALL: d:\Downloads\SharePointFoundation.exe
  14. INSTALL: http://visualhg.codeplex.com/
  15. INSTALL: GIMP
  16. INSTALL: 7z
  17. +GPG: http://www.gpg4win.org/

After WIN installยง

  1. TotalCmmander (enable operations-logging)
  2. WinCDEmu
  3. Notepad++ (& config TotalCommaner)
  4. Dropbox
  5. TotroiseHg (/Svn)
  6. putty/puttySFTP
  7. UnxUtils: http://unxutils.sourceforge.net/ & http://sourceforge.net/projects/unxutils/files/1. latest/download
  8. WinSCP
  9. WinPython (32 | 64) bit, Python3 or 2
  10. LiClipse
  11. python-cmd-prompt: pip install distribute

After LINUX installยง

EC2ยง

sudo apt-get install colordiff traceroute mc multitail htop apt-file

Download and install browsh (instead of lynx): https://www.brow.sh/docs/introduction/

Dropbox:ยง

https://www.dropbox.com/install?os=lnx http://ubuntuserverguide.com/2012/06/how-to-install-and-configure-dropbox-on-ubuntu-server-12-04.html

LINUXยง

sudo: /etc/group:sudo | wheel)

Not in UBUNTUยง

apt-get install apache2 vim screen apt-file aptitude htop mc mercurial arp-scan gpm hping3 finger build-essential colordiff debsums p7zip distcc distcc-pump dlocate nmap traceroute iodine etherape kismet ethtool festival fuse-utils gawk git gnome-tweak-tool imagemagick lynx multitail coffeescript mumble nodejs openssh-server php5 powertop remmina samba synaptic tftpd tidy unetbootin unrar user-setup vinagre vlan vlc wakeonlan wine winetricks wireshark gnome-shell gimp dconf-tools alacarte gbrainy gftp gir1.2-gtop gparted hplip-gui chromium-browser

Headless UBUNTU (JRC)ยง

java-7-headless python php5 lynx colordiff mc htop traceroute screen apt-file mercurial  multitail hping3 finger debsums p7zip dlocate gawk git tidy unrar user-setup

NO: imagemagick

Lubuntu in VBoxยง

sudo apt-get install virtualbox-ose-guest-utils

sudo apt-get install apache2 apt-file aptitude arp-scan build-essential  coffeescript colordiff  debsums distcc distcc-pump dlocate etherape ethtool festival finger fuse-utils gawk  gftp gimp  git gpm hping3  htop imagemagick iodine kismet lynx mc mercurial multitail mumble nmap nodejs openssh-server p7zip php5  samba screen  synapse tftpd tidy traceroute unetbootin unrar  vim vinagre vlan vlc wakeonlan wine winetricks

Not in APTOSIDยง

apt-get install update-manager-gnome update-notifier software-properties-gtk dnsutils bootlogd lightdm multitail volumeicon-alsa flashplugin-nonfree pm-utils

SID(LXFCE) in VBoxยง

apt-get install gpm vim bash-completion chromium screen apt-file htop mc mercurial arp-scan gpm hping3 finger build-essential colordiff debsums p7zip dlocate mlocate nmap iodine etherape kismet festival gawk wakeonlan imagemagick debian-keyring byobu xfce4-settings zenmap

VBoxยง

sudo apt-get  dkms virtualbox-ose-guest-x11

Ubuntuยง

apt-get install libmtp-runtime ## Stops minor boot log error

COMMERCIALยง

apt-get install dropbox google-talkplugin skype grive

echo "MANUAL INSTALL: teamviewer7 heimdal"

echo "Gnome-shell-exts: disable corners, alt-tab, sys-mon, shellshape"

echo "Add greek-lang pack, flag, xcb options"
XKBLAYOUT="us,gr"
XKBVARIANT="euro"
XKBOPTIONS="terminate:ctrl_alt_bksp,grp:shift_caps_toggle,grp_led:scroll"
sudo dpkg-reconfigure console-setup ## Greek, trerminus 14
echo "Remove xorg drivers"

echo "SSD optimazations, swappiness"

echo "Setup vim autosave position /etc/vim/*"

# Openbox menu for reboot/Shutfdown & sudoers
# Openbox volumeicon-xxx

Gnome-Shellยง

Session timeoutยง

gpg-key koyote cp

~/bashrcsยง

# 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'

.inputrc fullerยง

"\e[A": history-search-backward
"\e[B": history-search-forward

"\e[1;5C": forward-word
"\e[1;5D": backward-word
"\e[1;5C": forward-word
"\e[1;5D": backward-word
"\e\e[C": forward-word
"\e\e[D": backward-word
"\C-x\C-r": re-read-init-file

.inputrc fulยง

$include /etc/inputrc
"\e[A": history-search-backward
"\e[B": history-search-forward

MyServices README example:ยง

#########################
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 node [[agora install]] (pulled by the Agora)
๐Ÿ“œ File Agora install.md by @agora โ˜† ๐Ÿ“Ž
  • #pull If you’re interested in learning what’s coming next, please refer to [[Agora plan]].
๐Ÿ“œ File agora install.md by @flancian โ˜† ๐Ÿ“Ž ๏ธ๐Ÿ”— โœ๏ธ

Agora Installยง

Before you get startedยง

As of the time of writing the [[Agora]] consists of three distinct repositories:

  • The Agora proper, which contains the root of a tree plus instructions on how to grow it. This is defined by its configuration and its [[contract]].
  • The [[Agora Server]], a web interface to the Agora, mostly [[read only]]. It is the interface you’re reading this in if you’re in anagora.org.
  • [[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:

$ adduser agora  # follow prompts
$ sudo su - agora

To get all repositories:

$ git clone https://github.com/flancian/agora.git
$ git clone https://github.com/flancian/agora-server.git
$ git clone https://github.com/flancian/agora-bridge.git

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.

Agoraยง

  • gardens.yaml contains the list of sources for this Agora.
    • may be renamed sources.yaml
    • (if the agora is a filesystem, this is the [[fstab]])
    • [[gardens yaml]]
  • 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.

[[Agora Server]]ยง

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 then ./run-dev.sh (for development) or ./run-prod.sh (if you want to serve to the outside world). If you do the latter, you may want to set up [[uwsgi]] in [[nginx]] and make it stick as a [[systemd service]] using agora-server.service as an example. Please refer to https://github.com/flancian/agora-server#to-develop for details.

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;
    }   

Agora Bridgeยง

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.

You can also optionally run a number of bots that will interact with people in supported platforms. See the bots directory and https://github.com/flancian/agora-bridge#install for more.

And now?ยง

Now that you have a functioning Agora, consider what you will do with it.

Please consider [[agora protocol]], [[contract]] and [[goals]]. Reach out if you are interested in establishing other protocols for [[collaboration]].

A note on Docker supportยง

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! :)