Skip to content

Instantly share code, notes, and snippets.

@nledez
Created December 26, 2015 10:41
Show Gist options
  • Save nledez/0e5addd0f297b42007da to your computer and use it in GitHub Desktop.
Save nledez/0e5addd0f297b42007da to your computer and use it in GitHub Desktop.
New Cozy Cloud Raspberry π image (2.0.0)
wget https://files.cozycloud.cc/cozy-raspberrypi-2.0.0-rc1.zip
unzip cozy-raspberrypi-2.0.0-rc1.zip
sudo dd bs=bs=1M if=cozy-raspberrypi-2.0.0.img of=/dev/sdX # Put your sd card device here
# On first boot:
ssh pi@<ip>
# password: raspberry
sudo -s
# Reset CouchDB tokens:
supervisorctl stop cozy-controller
admin_user="$(sed -n '1,1p' /etc/cozy/couchdb.login)";admin_pass="$(sed -n '2,1p' /etc/cozy/couchdb.login)";curl http://${admin_user}:${admin_pass}@127.0.0.1:5984/cozy
admin_user="$(sed -n '1,1p' /etc/cozy/couchdb.login)";admin_pass="$(sed -n '2,1p' /etc/cozy/couchdb.login)";curl -X DELETE http://${admin_user}:${admin_pass}@127.0.0.1:5984/_config/admins/${admin_user}
# Check if user realy deleted
curl http://127.0.0.1:5984/_config/admins/
# {}
rm /etc/cozy/couchdb.login
# Reconfigure cozy to regenerate token & certificate
dpkg-reconfigure cozy
/usr/bin/raspi-config --expand-rootfs
systemctl reboot
@nledez
Copy link
Author

nledez commented Dec 26, 2015

If you have any comment on this image:
IRC -> #cozycloud on freenode
http://forum.cozy.io/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment