Sunspot Home

more notes for backup and a bad memory - - -

Raspberry Pi Zero setup
....some notes for next time

For ethernet I had two USB Ethernet converters in my workshop :-


Various eBay/Amazon sell these for about £1.50 from China

root@raspberrypi:~# lsusb
Bus 001 Device 009: ID 0a46:9000 Davicom Semiconductor, Inc. DM9000E Fast Ethernet Adapter


Trendnet TU-ET 100C
This has quality but all on UK eBay are from the USA - beware eBay postage charges

root@raspberrypi:~# lsusb
Bus 001 Device 007: ID 07a6:8511 ADMtek, Inc. ADM8511 Pegasus II Ethernet


Both installed themselves without new drivers - some say the cheap one can fail but mine is OK
(but the box pops open . . . )

lsmod to see if modules load - for the cheap one I see
dm9601 6941 0

I had not realised that the Rasbian for the Pi Zero is now Jessie - and it has a new security default that seems not to be published . . .
I did sudo passwd root in the Pi Zero terminal as usual.
But I could not use Cyberduck on my Mac as root or use Terminal as root - I got some very odd error messages!
But I found this :-

Set PermitRootLogin yes in /etc/ssh/sshd_config

and then root was allowed in as I like it.

Fixed IP on the LAN

The new /etc/network/interfaces contains some odd warnings but I replaced its contents with my usual file

# The loopback network interface - always needed here
auto lo
iface lo inet loopback

# The primary network interface - use this for ethernet cable if WIFI above not used
# in that case disable the WIFI above with # before each line
allow-hotplug eth0
iface eth0 inet static

# set these for the LAN address
address 192.168.0.xx <- - - - - - - - your choice

# set this for the Internet modem gateway to the LAN
gateway <- - - - - - - - your choice

# my gateway acts as a local dns-nameserver
dns-nameservers <- - - - - - - - same as gateway

It works.

The USB hub is like this :-

about £2.50 on eBay - it seems to be OK

I also needed this :-

Mine was £2.99

So for about £11 (and some items from table top sales and an old TV) you have a computer.
But mine will be headless in an IOT application - about £8
Then add an Arduino nano for £2 as an i2c slave and you can tackle anything for £10

Or just an ESP8266 for £2 ????


The NOOBs that you download for the Zero loads Linux Jessie - there is a new bootloader and SD cards for Wheezy will not run in the new Pi.
I tried to run a cgi script in /usr/lib/cgi-bin but Apache would not let me - Have I got to hunt down a mass of new security defaults again !!??

So move back to Wheezy
I had an SD card running on a Raspi B as downloaded for a 3.5" LCD screen
I discovered this back door -
apt-get install raspberrypi-bootloader

It stopped running the small LCD - but when placed in the Zero it ran Wheezy on my SVGA screen (with adapter) with all my security modifications.
These let me run cgi scripts from a web page and work as root in a Mac Terminal and Cyberduck FTP.
You can then do all edits in TextWrangler and feel you have got control back again !!

I have yet to find a way to run Wheezy on a Pi Zero with the 3.5" LCD screen
Please email me if you can do that

Sunspot Home