Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #
- # i2phighcap.sh
- #
- # i2p high cap installer script
- # for version 0.9.4
- #
- set -e
- # i2p install dir
- i2p_inst="$HOME/i2p"
- # i2p data dir
- i2p_dat="$HOME/.i2p"
- # router.config path
- router="$i2p_dat/router.config"
- # wrapper.config path
- wrapper="$i2p_inst/wrapper.config"
- # get i2p install jar
- wget -O /tmp/i2pinstall.jar http://mirror.i2p2.de/i2pinstall_0.9.4.jar
- # install i2p
- echo -e -n "1\n$i2p_inst\n1\n" | java -jar /tmp/i2pinstall.jar -console
- # make i2p dat dir if not there
- mkdir -p $i2p_dat
- # tweak router.config
- cat <<-EOF >> $router
- i2np.bandwidth.inboundBurstKBytes=36000
- i2np.bandwidth.inboundBurstKBytesPerSecond=3300
- i2np.bandwidth.inboundKBytesPerSecond=3000
- i2np.bandwidth.outboundBurstKBytes=36000
- i2np.bandwidth.outboundBurstKBytesPerSecond=3300
- i2np.bandwidth.outboundKBytesPerSecond=3000
- i2np.laptopMode=false
- i2np.ntcp.maxConnections=600
- i2np.udp.maxConnections=600
- i2np.udp.enable=true
- EOF
- # tweak wrapper.config
- echo "wrapper.java.maxmemory=512" >> $wrapper
- echo "to run:"
- echo ""
- echo "add $i2p_inst to \$PATH"
- echo "then run"
- echo ""
- echo "i2prouter start"
- echo ""
- echo "you may need to increase max open files too"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement