cockpit hacking / customzing for newbies not exactly working well #20131
Replies: 1 comment 1 reply
-
Note that the toolbox isn't for running Cockpit, but for building it and running tests. Running needs to happen in a VM indeed, either our test system (what you get with
That probably just means that it detected that you changed the source file, and got more than one inotify event for it. It should still rebuild, and tell you "Build finished", does it? Sorry, this is indeed not an ideal message.
The login cannot be taken from a home dir -- at that point cockpit doesn't yet know which user 😁 See https://github.com/cockpit-project/cockpit/blob/main/HACKING.md#working-on-your-local-machine-web-server how to test that on your local machine, or use I'm afraid I don't know about the "static" position CSS question. |
Beta Was this translation helpful? Give feedback.
-
Hey everyone,
I'm struggeling with some things, when trying to customize cockpit.
The bigger picture here is, that I'm trying to migrate a configuration (branding.css) for cockpit from Debian 10 to Debian 12, which isn't working out as it should. Debian 10 looks good, but on 12 with the new version the branding.css settings are not applied as intended.
I have tried to start as described in hacking.md, just without a toolbox container as I use a VM anyway, so have cockpit installed on the machine per apt-get from the debian repos, which offers version 287-1 (should be fine, no need for the latest and greatest version).
So a few things I'd like to ask...
I set up:
ln -s $(pwd)/dist ~/.local/share/cockpit
to have cockpit use my new code from build.js, but login.html is still taken from /usr/share/cockpit?
"Development"-package (with playground and such) for example is taken from ~/.local/share and shown after a login with my normal user (not root), but changing login.html does not reflect on reloading localhost:9090. (build.js -w notices changes and starts a rebuild)
As a very specific issue of mine, I'm trying to position the login div at the bottom of the site, which doesn't work.
When inspecting the page I see that container cannot be positioned, because it's position-property is "static".
I searched through the code of login.html, login.scss and login.js without any luck to find, where this comes from?
So the setting from my custom branding.css is ignored and I can't get it working.
Target design:
Current result:
Many thanks for taking time to look into this!
Frank
Beta Was this translation helpful? Give feedback.
All reactions