-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add desktop UI and clone Peggy project, set to user. #12
base: main
Are you sure you want to change the base?
Conversation
@@ -68,5 +68,8 @@ runcmd: | |||
# Pickup the hostname changes | |||
- 'systemctl restart avahi-daemon' | |||
|
|||
# Give ownership of scripts | |||
- 'chown publiclab.publiclab /home/publiclab/Peggy -R' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 Projects
Download 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/########/builds
Jobs
tab, next toPipeline
Passed
buttonDownload
in the right-hand sidebarartifacts.zip
file, and also thehypriotos-rpi-camera_web.img.zip
within 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!