Advertisement
Guest User

i2phighcap.sh

a guest
Feb 7th, 2013
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.18 KB | None | 0 0
  1. #!/bin/bash
  2. #
  3. # i2phighcap.sh
  4. #
  5. # i2p high cap installer script
  6. # for version 0.9.4
  7. #
  8.  
  9. set -e
  10.  
  11. # i2p install dir
  12. i2p_inst="$HOME/i2p"
  13. # i2p data dir
  14. i2p_dat="$HOME/.i2p"
  15. # router.config path
  16. router="$i2p_dat/router.config"
  17. # wrapper.config path
  18. wrapper="$i2p_inst/wrapper.config"
  19.  
  20.  
  21. # get i2p install jar
  22. wget -O /tmp/i2pinstall.jar http://mirror.i2p2.de/i2pinstall_0.9.4.jar
  23.  
  24. # install i2p
  25. echo -e -n "1\n$i2p_inst\n1\n" | java -jar /tmp/i2pinstall.jar -console
  26.  
  27. # make i2p dat dir if not there
  28. mkdir -p $i2p_dat
  29.  
  30. # tweak router.config
  31. cat <<-EOF >> $router
  32. i2np.bandwidth.inboundBurstKBytes=36000
  33. i2np.bandwidth.inboundBurstKBytesPerSecond=3300
  34. i2np.bandwidth.inboundKBytesPerSecond=3000
  35. i2np.bandwidth.outboundBurstKBytes=36000
  36. i2np.bandwidth.outboundBurstKBytesPerSecond=3300
  37. i2np.bandwidth.outboundKBytesPerSecond=3000
  38. i2np.laptopMode=false
  39. i2np.ntcp.maxConnections=600
  40. i2np.udp.maxConnections=600
  41. i2np.udp.enable=true
  42. EOF
  43.  
  44. # tweak wrapper.config
  45. echo "wrapper.java.maxmemory=512" >> $wrapper
  46.  
  47. echo "to run:"
  48. echo ""
  49. echo "add $i2p_inst to \$PATH"
  50. echo "then run"
  51. echo ""
  52. echo "i2prouter start"
  53. echo ""
  54. echo "you may need to increase max open files too"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement