INSTALL 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. * The installation process has changed starting at version 1.0.11.
  2. * The build currently requires a static TCL 8.0 or newer library. (TCL will be stripped soon)
  3. * All commands and directories/ are assumed to be located/ran in the wraith root dir. (TCL excluded)
  4. 1. TCL
  5. 2. Pack settings
  6. 3. Compiling
  7. 4. Making bots
  8. Step 1: TCL
  9. If you have already made a static TCL build proceed to Step 2. If you are unsure then keep reading...
  10. The download website is at:
  11. http://www.tcl.tk/software/tcltk/download84.html
  12. A nice direct link for the tarball is:
  13. http://aleron.dl.sourceforge.net/sourceforge/tcl/tcl8.4.4-src.tar.gz
  14. Once you have it, untar -zxf tcl8.4.4-src.tar.gz
  15. Then, cd tcl8.4.4/unix
  16. ./configure --disable-shared --prefix=/path/to/your/home --exec-prefix=/path/to/your/home
  17. Then: make; make install
  18. Make sure you edit pack/conf.h and change the path to TCL. (See Pack settings)
  19. Step 2: Pack settings
  20. The files listed here are all located in pack/, and will need to be saved for future compiles.
  21. If you have pack.cfg, conf.h, or salt.h, place them in pack/
  22. NOTE: settings.c and conf.h (pack.conf) from versions previous to 1.0.11 are NOT compatable with 1.0.11 and higher.
  23. conf.h:
  24. This file contains pack compile-time options and the path to TCL
  25. If you have an older pack.conf, print it out and edit the template pack/conf.h and change accordingly.
  26. salt.h:
  27. This file is generated automatically, if you do not already have one, during compilation.
  28. pack.cfg(.sample):
  29. This is the new and improved version of settings.c
  30. Simply edit it and change accordingly
  31. Rename to pack.cfg when completed
  32. Step 3: Compiling
  33. cd root/
  34. For leaf build: ./build leaf
  35. For hub build: ./build hub
  36. To build both: ./build all
  37. To compile a debug version of the pack, add -d in as a option before the type.
  38. ie, ./build -d leaf
  39. During the compile process many warnings may appear on screen, ignore them. Only report ERRORS please.
  40. After the compile process is finished, the binaries will be placed in wraith.OS.version.tgz.
  41. The OS and version are dynamic depending on the pack build, type 'ls' to find exact name.
  42. Step 4: Making bots
  43. NOTE: conf files from versions older than 1.0.11 still work, but improvements have been made.
  44. read over doc/conf.example.
  45. This file can be made by the bot binary with ./binary -g filename
  46. Edit the conf (conf.example or the generated one, doesnt matter)
  47. For leaf bots, encrypt the conf as '.known_hosts'
  48. For hub bots, encrypt the conf as 'conf'
  49. Thie is done by: ./binary -e infile outfile
  50. tar -czvf somebot.tgz .known_hosts binary
  51. (or for hub): tar -czvf somehub.tgz conf binary
  52. then upload somebot.tgz to whatever shell..
  53. LEAF:
  54. untar, mkdir ~/.ssh;mv .known_hosts ~/.ssh/.known_hosts
  55. then just run the leaf binary, it will move itself to: ~/.sshrc
  56. HUB:
  57. untar, ./binary
  58. This is assuming the conf is already encrypted as 'conf', if not, move it to 'conf'.
  59. The binary can be named ANYTHING, just as long as the encrypted conf is known as 'conf' in the same dir