OPNsense Forum

English Forums => General Discussion => Topic started by: Jhonraushan on August 02, 2025, 01:17:40 PM

Title: How to Include AdvancedTomato Theme in OPNsense Source and ISO Build
Post by: Jhonraushan on August 02, 2025, 01:17:40 PM
Hi OPNsense Team,

Can you please tell me the correct process to add the AdvancedTomato theme (from misc/theme-advanced) into the OPNsense source code and Set advanced Theme as Default in OPNsense, so it gets included when I build the ISO?

I want to make sure the theme is properly built, installed, and visible in the web interface after installation.

Thank you.

Best regards,
Raushan Patel
Title: Re: How to Include AdvancedTomato Theme in OPNsense Source and ISO Build
Post by: Maurice on August 02, 2025, 04:31:29 PM
See https://github.com/opnsense/tools for how you can use the build option ADDITIONS to include additional packages.
As for making the theme default, you can edit src/etc/config.xml.sample (in opnsense/core) before building core.

Cheers
Maurice
Title: Re: How to Include AdvancedTomato Theme in OPNsense Source and ISO Build
Post by: Jhonraushan on August 03, 2025, 11:44:03 AM
This is the config.xml.sample file. Now tell me what i can add on this theme section example I choose Advanced themes so what i can edit and add here text, because opnsense by default add only 2 themse opnsense opnsense-dark in path .if any other step to do by default this please tell me know about

<?xml version="1.0"?>
<opnsense>
  <trigger_initial_wizard/>
  <theme>opnsense</theme>
  <sysctl/>
  <system>
    <optimization>normal</optimization>
    <hostname>OPNsense</hostname>
    <domain>internal</domain>
    <dnsallowoverride>1</dnsallowoverride>
    <dnsallowoverride_exclude/>
    <group>
      <name>admins</name>
      <description><![CDATA[System Administrators]]></description>
      <scope>system</scope>
      <gid>1999</gid>
      <member>0</member>
      <priv>page-all</priv>
    </group>
Title: Re: How to Include AdvancedTomato Theme in OPNsense Source and ISO Build
Post by: Maurice on August 03, 2025, 12:20:38 PM
Simply set the desired theme on a running OPNsense system and check what is added to the config.xml.
Title: Re: How to Include AdvancedTomato Theme in OPNsense Source and ISO Build
Post by: Jhonraushan on August 03, 2025, 09:02:21 PM
I'm not understand what you talking the process i follow, i ask you tell me the steps and how can i add set by default advanced themes because by default set themes opnsense
Title: Re: How to Include AdvancedTomato Theme in OPNsense Source and ISO Build
Post by: franco on August 04, 2025, 05:50:33 PM
extras.conf modifies the default configuration if you need to

https://github.com/opnsense/tools/blob/master/config/25.7/extras.conf

You could also modify the ports package you're building to include the right config.xml.sample.

More than one way to get to Rome.  ;)


Cheers,
Franco