OPNsense Forum

Archive => 16.7 Legacy Series => Topic started by: faisalusuf on May 03, 2016, 07:15:59 am

Title: [Solved][Question]Custom background on login page
Post by: faisalusuf on May 03, 2016, 07:15:59 am
Hello,
Is this possible to add a background image for login screen? Is this in accordance with the Licence terms?


Thanks
Faisal.
Title: Re: [Question]Custom background on login page
Post by: AdSchellevis on May 03, 2016, 10:22:42 am
Hi Faisal,

You should be able to do so with a custom theme css, I haven't tried it yet, but it should work.
For the licence it doesn't matter, the bsd license we use is pretty open, all license information is available here https://opnsense.org/about/legal-notices/ (https://opnsense.org/about/legal-notices/)

Best regards,

Ad
Title: Re: [Question]Custom background on login page
Post by: faisalusuf on May 03, 2016, 10:37:29 am
Hi Ad,
Thanks for your response. This is the beauty of OSS indeed. Can you please guide me a little further on theme path and files For login screen only? Please note i dont have programming background i know networks/sysadmin only :) .

Cheers
F.
Title: Re: [Question]Custom background on login page
Post by: AdSchellevis on May 04, 2016, 10:46:48 am
Hi Faisal,

I don't have a lot of time at hand to guide you trough the process, but I can provide you with some handles to dig into.

When you want to create your own theme, its probably easiest to first make a copy of ours and adjust that one.

The location of the themes is:
Code: [Select]
/usr/local/opnsense/www/themes/
Then you need to change the sass file to your needs and compile it into the main.css file, more information on sass is available no their site: http://sass-lang.com/documentation/ (http://sass-lang.com/documentation/)

(source) /usr/local/opnsense/www/themes/[your theme]/assets/stylesheets/main.scss
(target) /usr/local/opnsense/www/themes/[your theme]/build/css/main.css

For customers that need custom branding we offer professional services, which also include packaging for easy installation, but with some css skills you should be able to do the basics yourself.

Best regards,

Ad
Title: Re: [Question]Custom background on login page
Post by: faisalusuf on May 06, 2016, 01:15:10 pm
Thanks Ad. Let me try to experiment on theme :)
Title: Re: [Question]Custom background on login page
Post by: faisalusuf on May 09, 2016, 08:04:48 am
Hi Ad,
I tried but could not get where to start the CSS are just code while i want to change either background of login screen or add text "DEMO Firewall Deployment" and warning text in the login page footer.

Thanks
Title: Re: [Question]Custom background on login page
Post by: fabian on May 09, 2016, 06:06:41 pm
You may want to change "/usr/local/etc/inc/authgui.inc".
Keep in mind that this file will be rewritten when you install updates.
Title: Re: [Question]Custom background on login page
Post by: faisalusuf on May 10, 2016, 07:10:54 am
Thanks a lot Fabian