Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
16.7 Legacy Series
»
[Solved][Question]Custom background on login page
« previous
next »
Print
Pages: [
1
]
Author
Topic: [Solved][Question]Custom background on login page (Read 13100 times)
faisalusuf
Newbie
Posts: 18
Karma: 0
[Solved][Question]Custom background on login page
«
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.
«
Last Edit: May 11, 2016, 08:58:42 am by faisalusuf
»
Logged
AdSchellevis
Administrator
Hero Member
Posts: 907
Karma: 184
Re: [Question]Custom background on login page
«
Reply #1 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/
Best regards,
Ad
Logged
faisalusuf
Newbie
Posts: 18
Karma: 0
Re: [Question]Custom background on login page
«
Reply #2 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.
«
Last Edit: May 03, 2016, 10:43:36 am by faisalusuf
»
Logged
AdSchellevis
Administrator
Hero Member
Posts: 907
Karma: 184
Re: [Question]Custom background on login page
«
Reply #3 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/
(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
Logged
faisalusuf
Newbie
Posts: 18
Karma: 0
Re: [Question]Custom background on login page
«
Reply #4 on:
May 06, 2016, 01:15:10 pm »
Thanks Ad. Let me try to experiment on theme
Logged
faisalusuf
Newbie
Posts: 18
Karma: 0
Re: [Question]Custom background on login page
«
Reply #5 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
Logged
fabian
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: [Question]Custom background on login page
«
Reply #6 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.
Logged
faisalusuf
Newbie
Posts: 18
Karma: 0
Re: [Question]Custom background on login page
«
Reply #7 on:
May 10, 2016, 07:10:54 am »
Thanks a lot Fabian
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
16.7 Legacy Series
»
[Solved][Question]Custom background on login page