itiligent/Easy-Guacamole-Installer

Itiligent name is kept in customized branding.jar

Closed this issue · 7 comments

pdtit commented

Describe the issue:

  • I updated the branding.jar from /etc/guacamole/extensions with custom settings (new logo png, updated info in en.json translations,...).
  • Issue 1: New logo is visible, although 3x (size = 602 x 244 - where to adapt the correct size?
  • Issue 2: the Itiligent name remains visible on the logon screen - where to change this in the settings files? (couldn't find any trace in the branding.jar)

Logs / screenshots / error outputs etc
image

Troubleshooting steps already taken?:
I also tried removing the branding.jar, and restarting guacd - this resulted in reverting back to the default white layout and guacamole logo, but that also still has Itiligent as name. So this makes me feel that name is not stored as part of the branding.jar settings files

When you delete the branding .jar there should be no company name leftover - I just double checked again. Refresh browser cache perhaps? There is zero thats hard coded in relation to that.

Take a look inside baranding.jar under /translations/en.json for the company name change. (You can also set the fonts for the company name text in the custom-theme. css file too I think I recall - look for font-family: arial black, sans-serif in the css.

In terms of getting your logo to display right, this is where a little css knowledge comes in handy (of which I dont have!) It also depends on the size and pixel dimensions of your image.

The area in the css that adjusts the logo is here:

.login-ui .login-dialog .logo {
    background-image: url('app/ext/custom-namespace/images/logo.png');
    width: 7em;
    height:	7em;
    -webkit-background-size: 7em auto;

}

.login-ui .login-dialog {
    background-color: #000000;
    color: #ececec;
}

.login-ui .login-dialog .version .app-name {
    font-weight: 300;
    text-transform: none;
    text-align: center;
    font-size: 2.25em;
    color: #ececec;
    font-family: arial black, sans-serif;
}

Pay close attention to the width: 7em and hight 7em. These conrtol the x & y sizing. Google on these "em" figures for more detail theres so many options on how to set up css.. easiest to just expermient changing values say 7 to 5 to 3 and see what happens to you your logo. Do this for for hight and width. You can also make the logon box larger by adding to the below section:

.login-ui .login-dialog
max-width: 4in;

try messing about with these settings until you arrive at what you want. Let me know how you get on with the remaining company name, I cant see how that could/should be happening.

just had another thought. Your logo is wrapping and scaling. The value for webkit-background-size: 7em auto may also have a bearing on this, also try that max-with as suggested above (I dont know if there is max height value also) Sorry but I'm not a web dev so some of these things I'm sure are simple for the initiated. You could also try chatgpt for some tips

pdtit commented

Hi, continued testing this, and it's getting more weird... so tried once more to delete the branding.jar, restart guac, upload my custom.jar, which I renamed to branding.jar, restart guac -> still seeing itiligent, but using the guac default logo this time.

After that, I deleted branding.jar from the /etc/guacamole/extensions folder, restart guac... still the same logon page showing... where I would assume it would be 'forced' to go back to the real guacamole defaults :/

tried clearing cache across all browsers I used, checked local browser app storage and clear everything there... no clue

pdtit commented

Another quick update... seems like the guacd restart isn't enough to "reset" it, maybe there's some caching in nginx too? I did a full machine shutdown, which after the restart showed me the default guacamole logon screen.

Now trying to upload my custom branding.jar and see what happens... will keep you posted

I just added this below to the readme. Please test if you can coz a reboot seems a bit drastic.
To revert to the Guacamole default theme, simply delete the branding.jar file from /etc/guacamole/extensions then sudo systemctl restart tomcat[version] && sudo systemctl restart guacd && sudo restart nginx and clear your web browser cache.

I can confirm that the branding is done in the branding.jar only
Everything can be changed there, restarting tomcat and guacd is necessary

Screenshot_20231106_093857

great and thanks for that info.