Advertisement
Guest User

Untitled

a guest
Dec 3rd, 2016
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. this assumes you can already compile, aka have all the deps installed
  2.  
  3. git clone https://github.com/nochowderforyou/clam
  4. cd clams
  5. ./autogen.sh
  6. ./configure
  7. make
  8.  
  9. mv src/clamd ~/clamd-somenametotellapart
  10. cd ~
  11. mkdir .syncing/
  12. mkdir .synced/
  13.  
  14. ** ideally you have a synced copy of clam here and can do this
  15. ** if you don't you'll need to get a bootstrap and sync a client first
  16. ./clamd stop ** if its running
  17. cp ~/.clam/* ~/.synced
  18.  
  19.  
  20.  
  21. ** make sure to change the ports else you'll get port in use errors
  22. vi ~/.synced/clam.conf
  23.  
  24. rpcuser=awef
  25. rpcpassword=awef
  26. port=36453
  27. rpcport=33623
  28. daemon=1
  29. server=1
  30.  
  31. cp ~/.synced/clam.conf ~/.syncing/clam.conf
  32. vi ~/.syncing/clam.conf
  33.  
  34. rpcuser=awef
  35. rpcpassword=awef
  36. port=36444
  37. rpcport=33647
  38. daemon=1
  39. server=1
  40. maxconnection=1
  41.  
  42. ** datadir doesn't use ~ so you have to give it the full path and replace username with your username of cousre!
  43.  
  44. ./clamd-somenametotellapart -datadir=/home/username/.synced -debug=net
  45. ./clamd-somenametotellapart -datadir=/home/username/.syncing -debug=net -connect=127.0.0.1:36453
  46.  
  47. and that is it.
  48.  
  49. You can watch the log files with tail ala
  50.  
  51. tail ~/.syncing/debug.log
  52. tail ~/.synced/debug.log
  53.  
  54. in two different consoles
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement