Raspberry Zero + Raspbian Stretch Lite + I2C

Setup

Write new image to SD-Card (replace ‘?’ with actual drive) and configure WLAN and SSH:

cp 2018-11-13-raspbian-stretch-lite.img /dev/sd?
mount dev/sd?1 /mnt
touch /mnt/ssh # starts ssh without further ado
echo "country=DE
ctrl_interface=/var/run/wpa_supplicant
update_config=1
network={
       ssid=\"your_ssid_here\"
       psk=\"password\"
}" > /mnt/wpa_supplicant.conf
umount /mnt

Put the card now into the Raspberry Pi and boot it up. It should appear now in your DHCP-Server leases where you can get the IP address of it.

Configuration

Log into it and change its hostname to something suitable, reboot afterwards.

ssh pi@<ip-address> # default password is 'raspberry'
sudo vi /etc/hostname
sudo reboot

Add the following lines to the respective files to enable i2c:

/etc/modules:
  i2c-bcm2708
  i2c-dev

/boot/config.txt
  dtparam=i2c_arm=on

Afterwards install necessary tools to check if i2c is working

sudo apt-get install i2c-tools

.

Running i2cdetect -y 0 shows that a device on address 0x76 was detected (in this case a BME280 sensor):

pi@raspberry0-0:~ $ sudo i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- 76 --