ssh at the root to start ssh for the next bootwpa_supplicant.conf at the root to set wifi password with the following contents: (Note: the pi zero w does not support 5ghz)
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=<Insert country code here, i.e. us>
network={
ssid="<Name of your WiFi>"
psk="<Password for your WiFi>"
}sudo raspi-config to enable ssh permanently, under the "Interfacing options".Note: Placing a new wpa_supplicant.conf will allow resetting the wifi to a new network. Still will need to assign a permanent ip address, and update below.
router reserved ip address: 192.168.1.70
user: pi
password: raspberry
Mostly taken from This post
sudo apt-get updatesudo apt-get upgradesudo apt-get install vimsudo apt-get install cupssudo rebootsudo vim /etc/cups/cupsd.conf edit to read as follows by adding Allow @Local
# Restrict access to the server…
<Location />
Order allow,deny
Allow @Local
</Location>
# Restrict access to the admin pages…
<Location /admin>
Order allow,deny
Allow @Local
</Location>
# Restrict access to configuration files...
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
Order allow,deny
Allow @Local
</Location>sudo usermod -a -G lpadmin pisudo cupsctl --remote-anysudo /etc/init.d/cups restartsudo apt-get install sambasudo vim /etc/samba/smb.conf
guest ok = yesread only = nosudo /etc/init.d/samba restarthttp://192.168.0.10:631, see post for details, remember printer name for next step. (Note: If the printer does not show in the list, drivers may be needed.)
sudo apt-get install printer-driver-hpijshttps://www.openprinting.org/printer/Brother/Brother-HL-2240lpadmin -p <printer name> -o usb-no-reattach-default=truesudo rebootNow, the printer should show up in add printer lists on various platforms! On windows, it had to be added in system preferences. On mac, it just showed up in the printer list.