Skip to content
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

Ship a topical terminal banner #609

Closed
castrojo opened this issue Oct 23, 2023 · 5 comments · Fixed by #840
Closed

Ship a topical terminal banner #609

castrojo opened this issue Oct 23, 2023 · 5 comments · Fixed by #840
Assignees
Labels
help wanted Keep Bluefin alive, dive in!

Comments

@castrojo
Copy link
Member

Right now by default when you open a terminal by default this script runs:

It'd be nice if we could instead display something that makes sense for Bluefin, point out where to file bugs, that sort of thing. I think we should just glow /somedir/blah.md as a default or perhaps investigate dynamic motd or something.

@rothgar
Copy link
Contributor

rothgar commented Oct 26, 2023

Where does this banner show up? I've never seen it when opening blackbox or entering an ubuntu distrobox container.

@castrojo
Copy link
Member Author

It shows up on a clean install on the host terminal. I'm not sure how it runs. However I found the console-login set of packages, which appears to be the tools used for CoreOS:

https://github.com/coreos/console-login-helper-messages/blob/main/doc/manual.md

This looks like it might be the way to generate a dynamic motd.

@castrojo castrojo added the help wanted Keep Bluefin alive, dive in! label Oct 30, 2023
@castrojo
Copy link
Member Author

Ok the colors need adjusting but this could work:

image

@castrojo
Copy link
Member Author

castrojo commented Nov 12, 2023

Alright here go. The glow dracula.json and some updates to the starship config:

image

Here are the files:

And then do a glow -s dracula.json bluefin.md in your bashrc.

@castrojo
Copy link
Member Author

castrojo commented Jan 2, 2024

image

This is from a discussion in discord which I failed to capture, moving here:

  • The first command will just set up the distroboxes (we'll have a common generic name)
  • just banner should toggle it on and off (bluefin-banner doesn't make sense, ignore that part). Once a user turns it off we should never bother them again.
  • We spit out the image name, major version, kernel, and date.

Then for tips I think what we should do is keep a tips.txt or something in the repo. Then we add some common FAQs in there and then just randomly pick one during the build process to put in the markdown file. And then if we have major announcements or something we can hardcode an important message if we need to.

For implementation we were thinking just tack the glow command at the end of the user's /etc/skel.d/basrc so it's there during user creation. We'll also likely need to know if we're in a container so that we know the context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Keep Bluefin alive, dive in!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants