|
|
|
|
Peer Installation
From OrganicDesign Wiki
| Legacy: This article describes a concept that has been superseded in the course of ongoing development on the Organic Design wiki. Please do not develop this any further or base work on this concept, this is only useful for a historic record of work done. You may find a link to the currently used concept or function in this article, if not you can contact the author to find out what has taken the place of this legacy item.
|
|
Pre Notes
Post Wiki Install
- Create a linux user/identity for your peer
- Create a MySQL user with your peer's login/passwd and give it SELECT and LOCK TABLES privileges for the wiki database:
- GRANT SELECT,LOCK TABLES ON your-wiki-db.* TO yourPeer@localhost
- # CHECKING PRIVILEGES
- SELECT Host,User,Db,Grant_priv,Lock_tables_priv FROM db WHERE User='yourPeer';
|
- (I usually just make the db-user to the peers login/passwd during MediaWiki setup)
- Create a user in your local wiki for your peer as well
- Create a file called pwd1 in your peer's home directory which is only readable by root (600) and contains your peers password
- Create pwd2 the same way which contains your local router's admin password (pwd2 and pwd3 are only used with dynamic DNS)
- Create pwd3 - this is the namecheap peerix dynamicDNS account password, copy or scp from another peer in the peerix domain
- Create pwd4 if you want your peer to check a POP box
- Create pwd5 [USAGE?]
- All passwords need to be created
- Download the current peer directory content from http://www.organicdesign.co.nz/wiki/peer.tgz
- Unpack it into a directory called peer in your peers home directory (the home dir itself is used for pwds, logs and db backups)
- Install and start your peer into init.d with;
- /home/yourPeer/peer/wikid yourPeer --install --start --dir=peer-cache-directory
|
- If your peer is running correctly, it will have logged its startup in the recent-changes of its local wiki.
- If it has not started, check the log in /home/peer-name/peer-name.log
Post peer install
Notes
- The current version of the peer is WikiD and is functioning but not for public use. peerd will be the first publically released peer.
- Using the Win32::Daemon module from www.roth.net, peers can run as a proper service on Win32 platforms.
- Using the PERL2EXE utility we can now package the peer into a small executable (about 1MB) for Windows users which requires no prior install of PERL or any of its modules.
- We will also use PERL2EXE for making peer-binaries for cut-down Linux environments like Peerix which are missing some of the peer-dependencies.
|
|
|
|
|
|