mellowtigger: (tech support)
[personal profile] mellowtigger
sciencefair.projectkit.75in1Experimenting with a Raspberry Pi reminds me of bygone days playing with a Science Fair project kit from Radio Shack. They're cheap, and they're fun. They only cost about $35 for the base Pi, but you'll need 2X or 3X that amount to actually get it working.

These prerequisites are the hard part; actually doing the setup is very quick and easy! 

This post explains all of the prerequisites that you need to prepare your Pi with minimal accessories, assuming you are working from an existing Windows computer with an empty USB port. I will explain in a subsequent post how to actually perform the setup. 

You start by budgeting an extra $40 for this mandatory hardware and free software:

ItemPriceDescription
SD memory cardabout $64GB or larger preferred.
micro-USB to USB cableabout $10Buy micro-USB not mini-USB!  It powers your Pi from your other computer's USB port, so buy appropriate cord length for where you will be placing your Pi.
ethernet cableabout $8I use cat-5e, but I think cat-5 and cat-6 are also fine.  Make sure it too is an appropriate cord length for your Pi's location.
plastic caseabout $10I don't care for the one I bought, so I have no recommendation here.
operating systemfreeI use the recommended Raspbian linux image.
Win32DiskImagerfreeI use this recommended program to write the Raspbian image file to the SD memory card.
secure shell telnetfreeI use this Putty.exe.

Right-click the Win32DiskImager.zip file and choose to Extract All to some directory of your choosing.  If you don't see an Extract All option, then your computer also needs a program that will allow it to UnZip that file.  I recommend the free program 7zip.

You're almost ready to begin working.  Unfortunately, you may need some additional hardware.  This configuration is where you may run into more expenses, depending on the setup you already have for your home computer.  You may need two additional items if you don't already own them.

ItemPriceDescription
 SD card reader about $20It's mandatory that you be able to access the SD memory card on your Windows computer.  If your computer lacks a card reader, then you must purchase one (internal or external).

You'll need the card reader only once during setup, though, so it's an extravagant expense unless you also use the card reader to transfer photographs from a camera.  It's nice to have one available.
1 small router
1 ethernet cable
about $35
about $8
It's mandatory that you have a free ethernet port on your cablemodem (or router) near your computer.  If your original router has no spare ethernet port, then you must purchase 1 small router (a switch or hub with 4 or 5 ports) and 1 extra ethernet cable.

It will act as a small "junction box" for your network, allowing both your main computer and your Pi to use the same network connection.  You'll disconnect your main computer's ethernet cable, then put the new router there.  You'll connect both your main computer and your Pi to that new router, effectively putting a Y-junction in your network link.

You also need to know the ip address for your Raspberry Pi.  You have two options.

The automatic solution is to let the network assign the address for you.  Unfortunately, this method also means that you have to inquire for the address when you want to connect to your Pi.

To query network addresses, you need to install free internet scanner software on your computer.  I recommend the free program Advanced IP Scanner.  You will need to run the scan whenever your Pi gets a new temporary ip address, so you know the address to which you connect.

It will take a minute (or 2 or 3) for it to scan your local network.  Sort the results by Manufacturer name, and look for the one labeled "Raspberry Pi Foundation".  That's the computer address that you'll need to know later.
The manual solution is to assign a permanent network address to your Pi before you even start.  I prefer this solution, and I used it in my setup.

You can easily "guess" a useful ip address by looking at the address used by your current computer. Use the Start button (or Start / Run on older Windows computers) to get the empty box where you can type in a program name. Type in "cmd" and press Enter. You will get an old MS-DOS black box on your window. Enter this command "ipconfig" and press Enter. You're looking for 3 sets of numbers. Write them down.
  1. IPv4 Address
  2. Subnet Mask
  3. Default Gateway
Your computer's IPv4 address is probably something like "192.168.0.100". Pick a new number for the last segment, such as "192.168.0.200". The number must be less than 256, but it can be anything that your network doesn't already need. You can test it out now by using that same black box to type in this command: "ping 192.168.0.200". It should say "Destination host unreachable". If it shows you something about bytes and time or "Request timed out" instead, then pick a different number. You need a network address that is unused. Type "exit" and Enter to close the MS-DOS box.

Now you have all of the hardware and software you need to setup your Raspberry Pi "headless", which means without its own attached monitor, keyboard, or mouse.  You'll be doing it from your existing Windows computer instead.  Stay tuned for the next blog post.

Date: 2013-Jan-15, Tuesday 05:17 pm (UTC)
furr_a_bruin: (CyberBear)
From: [personal profile] furr_a_bruin
One other approach you can take - if you don't mind fiddling with your internet router - is to use the IP Scanner to get the Raspberry Pi's "MAC" address, and configure the router to always issue the same IP address to that device. Many routers offer this feature, and it's really handy - and once one is comfortable with it, it can save a ton of time over directly configuring devices to use static IP addresses.

Date: 2013-Jan-16, Wednesday 03:46 am (UTC)
furr_a_bruin: (CyberBear)
From: [personal profile] furr_a_bruin
It's not related to the feature to filter by MAC address - though frankly, that feature is pretty much useless to prevent unauthorized access to a WiFi system, since MAC addresses are broadcast in the clear. All it takes is someone sniffing for a while and a device with a settable MAC address to get past it. Much better to have a somewhat long but easily typed WPA2 passphrase like "W1ggly Bunny N0ses M4ke Me Squee!!" (One dictionary word - even with number substitutions - is no match for a lookup table - but a sentence is a completely different story.)

As for your laptop - you may already have that software. ;) If you're using Windows, go to Device Manager, find your network adapter and open the Properties, then go to the Advanced tab. On my current PC, the relevant item is "Locally Administered Address" - different adapters may call it something else, but it allows you to enter what you want the adapter to use as its MAC address. This doesn't change the address in the firmware, but does allow you to override it. I have a feeling you can do the same thing under Linux, but I don't know how to do it there.

Pseudo-static IP assignment is indeed a part of the DHCP system on many routers; I usually divide my IP space into a pool to be assigned to specific machines and a pool to be dynamically assigned in cases where I don't care what address that device gets.

Date: 2013-Mar-13, Wednesday 01:42 am (UTC)
furr_a_bruin: (CyberBear)
From: [personal profile] furr_a_bruin
That's peculiar - the advanced properties for the Intel ethernet interface on my server (under XP) and desktop (Win7) both offer the "Locally Administered Address" feature; maybe there's a difference with laptop-specific models somehow. I've been laboring under the presumption that you're using ethernet - but if you're using wifi on the laptop, it seems (from a quick net search) that wifi adapters are more difficult to deal with in this area. Someone who wrote a script to randomize his MAC said "Seems that if it is a wireless interface, the 2nd nibble has to be a 2, 6, A or an E on Windows Vista and newer." If that's the case and your ethernet MAC doesn't fit that criterion, that might explain the problem.

As for the registry approach - for something like that that, I suspect you (or a utility) would have to create the key to change the MAC address, because the default is to use the one assigned at the factory and for that, Windows doesn't need to set anything.

Profile

mellowtigger: (Default)
mellowtigger

About

March 2026

S M T W T F S
12 34 567
8 91011 121314
15 161718192021
22232425262728
293031    

Most Popular Tags

Powered by Dreamwidth Studios
Page generated 2026-Mar-17, Tuesday 07:01 pm