Advertisement
Sweetening

Enable I2P on Macbook

Jan 9th, 2024 (edited)
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # Check if Homebrew is installed, if not, install it
  4. if ! command -v brew &> /dev/null; then
  5. echo "Homebrew not found. Installing Homebrew..."
  6. /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  7. fi
  8.  
  9. # Install I2P using Homebrew
  10. echo "Installing I2P via Homebrew..."
  11. brew install i2p
  12.  
  13. # Start I2P service
  14. echo "Starting I2P..."
  15. sudo brew services start i2p
  16.  
  17. # Configure I2P settings (Sample configuration, adjust based on your requirements)
  18. echo "Configuring I2P settings..."
  19. # Example: Configure Firefox to use I2P proxy settings
  20. # Modify the path to Firefox's preferences file accordingly
  21. # This example assumes that you are using Firefox as your browser
  22. defaults write org.mozilla.firefox network.proxy.type -int 1
  23. defaults write org.mozilla.firefox network.proxy.socks -string "127.0.0.1"
  24. defaults write org.mozilla.firefox network.proxy.socks_port -int 4444
  25.  
  26. # Open I2P router interface in default browser
  27. echo "Opening I2P router interface..."
  28. # Replace the placeholder URL with the actual URL for the I2P router interface
  29. open http://127.0.0.1:7657
  30.  
  31. echo "I2P setup completed. Check your browser settings and I2P router interface."
  32.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement