Add desktop UI and clone Peggy project, set to user.#12
Add desktop UI and clone Peggy project, set to user.#12
Conversation
| - 'systemctl restart avahi-daemon' | ||
|
|
||
| # Give ownership of scripts | ||
| - 'chown publiclab.publiclab /home/publiclab/Peggy -R' |
There was a problem hiding this comment.
Cool, will this often be necessary? Does chroot-script run as root, and could this in theory be put there? Thinking about how to learn from this example. Thanks!
There was a problem hiding this comment.
I predict it is necessary because at the time of git cloning (image build time), it is running as root.
Commands in user-data run on first boot (including user creation!). This is my understanding from seeing cloud-init documentation.
We'll see!
|
We seem to be running into some sort of file size limit with Gitlab. I'll make a fallback with our own Jenkins instance. |
|
Trying to trigger Jenkins, please excuse the noise. |
|
Jenkins pls build! |
|
Hi! I managed to get Gitlab to build this image! It provides:
It lacks:
Please try it and confirm the process works! Thanks for your hard work! |
|
It also provides the captive portal and wifi hotspot of course. |
|
@MargaretAN9 want to try this out and see if it boots your code? |
|
I was able to unzip and create a img file. I used WinDiskImager to create a microSD. The Raspberry Pi with micro sd does boot up but I can't get pass the password screen. What is the user name and password? Also note two errors but not sure if they mean anything: |
|
Password listed on readme does not work https://github.com/publiclab/image-builder-rpi/blob/master/README.md |
|
Hi @MargaretAN9 Thanks for your tests! |
|
@icarito Thx I tried username:publiclab and password: publiclab. The system accepts the enter, turns the screen black (about 2 sec) and then redisplays request for password.... |
|
Thanks @MargaretAN9 for your feedback! That means I've missed packages necessary for the graphical session. You would be able to login if you switch to the text console with Ctrl-Alt-F1 or Ctrl-Alt-F2. |
|
@icarito Thx for loading my programs! |
|
This would be great. I'd love to work towards this together if possible! Regarding the camera set ups, you're free to hold on to those, @MargaretAN9 -- you certainly earned them! |
|
Oh cool, this is booting now? 👍 |
This adds to the internal script the package for a desktop environment and then clones Peggy repository into /home/publiclab/Peggy:
https://github.com/MargaretAN9/Peggy -
Computer Vision enhancements for Raspberry Pi based Public Lab Science ProjectsDownload instructions
Generating the image will take a few minutes. Once the image is prepared, and if it succeeded, you'll see a green checkmark at the bottom of the pull request. To download the image:
https://gitlab.com/publiclab/image-builder-rpi/pipelines/########/buildsJobstab, next toPipelinePassedbuttonDownloadin the right-hand sidebarartifacts.zipfile, and also thehypriotos-rpi-camera_web.img.zipwithin itYou'll also be able to read the output of the image generation in this window.
We hope to create a bot to report back the completed image URL in each pull request. If you can help create such a bot, please contact us at:
#16
Thanks!