Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tom Pillot
pi-gen-thymio
Commits
9603d5df
Commit
9603d5df
authored
Jun 24, 2020
by
Tom Pillot
Browse files
Add ssh key to known hosts and setup avahi daemon
parent
0333be25
Changes
1
Hide whitespace changes
Inline
Side-by-side
stage4/06-meshcentral/00-run.sh
0 → 100644
View file @
9603d5df
#!/bin/bash -e
# Add an authorized ssh key for MeshCentral deployment
mkdir
-p
"
${
ROOTFS_DIR
}
/home/
${
FIRST_USER_NAME
}
/.ssh"
echo
'ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBJZ1g3+sGOgRyd55VLYYGsnFYUJ1B/1c2gUUhzT2tRnfZ8MdsvdWwM/XVnlG3uhrm62ZgER0YqKf0xK163mvjNM= thymio'
>
"
${
ROOTFS_DIR
}
/home/
${
FIRST_USER_NAME
}
/.ssh/authorized_keys"
# Setup avahi daemon so the pi can be found with avahi-browse on the network
sed
-i
's/^publish-workstation=no/publish-workstation=yes/'
"
${
ROOTFS_DIR
}
/etc/avahi/avahi-daemon.conf"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment