Created
December 26, 2015 10:41
-
-
Save nledez/0e5addd0f297b42007da to your computer and use it in GitHub Desktop.
New Cozy Cloud Raspberry π image (2.0.0)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you have any comment on this image:
IRC -> #cozycloud on freenode
http://forum.cozy.io/