1. Install RaspBian (using New-Out-Of-Box package)
2. get wireless to work on my Pi
2a. get my Pi to connect to Mac via Ethernet
2b. get Mac to share internet to my Pi via Internet Sharing
3. Configure to reserve the IP address for my Pi
4. Update access port for SSH
5. Configure NAT / Firewall in my LAN router to allow SSH to PI
6. Install lynx, mail, ssmtp => write script to auto capture router’s IP and email to my email acct every 1 hours . This can be used to SSH to my Pi in case the ISP changes router’s IP.
7. Install pyload (for direct file download)
8. Install Deluge (for Torrent)
9. Configure NAT / Firewall in my LAN router to allow public access to pyLoad+Deluge Web interface
While I want Pi is connectable to my Mac via Ethernet, I also want to ensure my Mac can still connect to my home wireless network normally.
Hence, I set my Mac <-> Pi connection under a separate network segment that the home wifi.
Home wifi : 192.168.1.xxx
Ethernet connection : 192.168.2.xxx
>> fix my Mac to 192.168.2.1, DNS 184.108.40.206
>> fix my Pi to 192.168.2.104, gateway 192.168.2.1 (same as Mac fixed IP)
There are several tutorials online saying a simple Internet sharing ( Preferences -> Sharing -> Internet Sharing, Share your connection from Wifi, To computers using Ethernet) would get your Mac to share its Wireless Internet access to Pi.
I tried. Doesn’t work, not as simple.
Finally found this article which explains that the internet connection is indeed provided by my ROUTER, not my Mac. Hence, I need an additional step on Pi to add my router ip to Pi’s /etc/resolv.conf
Once that’s done, reload network service :
sudo /etc/init.d/networking reload
And … tada, ping www.google.com returns the sweet response.