HOWTO: Custom login background image

Hi.

This is a little howto to change the frontend login to seta custom background image.

In our case, we setup a Finisterrae image in full background.

of course we change too the logo (but thats so easy)

the steps.

in default install the file is in: /usr/lib/one/sunstone/views

We need to modify the file login.erb and find the quote body

and set the custom css style:

    <body style="
  background: url(https://cloud.cesga.es/images/CESGA_BG.jpg) no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
    ">

The possible problem is when update the sunstone packet… maybe if there are any changes by Opennebula staff the file will be change.

2 Likes

that is kinda cool - thanks for sharing this !

now my test-environment looks awesome :smiley:

1 Like

It’s easier to edit /usr/lib/one/sunstone/public/css/login.css to change the login page.