Add homepage in Firefox

Questions about WAPT Packaging / Requests and help regarding Wapt packages.
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Dylan
Messages: 20
Registration: June 9, 2016 - 10:28

July 21, 2016 - 5:08 PM

Hello everyone,

I have recently started using Wapt in our company (approximately 120 workstations).
So far, I only deploy apps available on the WAPT store.

I have already deployed Firefox ESR on the workstations, now I would like to change the browser's home page.
In my private repository, I edited the relevant Firefox ESR package and added the following line to the "mozilla.cfg" file

Code: Select all

// Modifie la page d'accueil
defaultPref("browser.startup.homepage", "128.128.76.22");
When I redeploy Firefox I don't get any installation errors but Firefox still doesn't have the desired homepage.
I have the same problem with TightVNC, which I edited to change the default password and I can't manage it.

Any ideas?
Thanks in advance.

Dylan
User avatar
117DewTa
Messages: 4
Registration: June 28, 2016 - 3:58 PM

July 29, 2016 - 10:11

Hi,

did you find a solution?
Dylan
Messages: 20
Registration: June 9, 2016 - 10:28

August 3, 2016 - 10:39

Hi,

No, unfortunately not...
User avatar
Aguay
Messages: 27
Registration: May 22, 2015 - 4:20 p.m.

August 17, 2016 - 5:49 PM

Do you have a single mozilla.cfg file, or do you have other files that are deployed with Firefox?

You need at least two files:
  • The first mozilla.cfg file with your settings
  • The second file calls mozilla.cfg; I often call it local-setting.js and it's located at: %programfiles%\Mozilla Firefox\defaults\pref (adjust this according to your installation)
It contains:

Code: Select all

pref("general.config.obscure_value", 0); 
pref("general.config.filename", "mozilla.cfg");
Next, to set a page to start with Firefox, the parameter in mozilla.cfg is:

Code: Select all

// Modifie la page d'accueil
defaultPref("browser.startup.homepage", "http://home.example.com");
If you still have any problems, don't hesitate.
Dylan
Messages: 20
Registration: June 9, 2016 - 10:28

September 1, 2016 - 11:05 AM

Hello Aguay,

Thanks for your reply, I just got back from vacation and I just found your message.

Unfortunately, I do have these two files which I had modified to put my parameters in, but nothing works: when I deploy the package on the machines these two files are present but as in the original.
I'm writing down here what I did to check because I must have made a mistake somewhere.

1 - I downloaded Firefox from the TIS repository on my private repository
2 - I went to the directory \waptdev\xxxxxxxx-firefox-esr-xapt
3 - Here I modified the mozilla.cfg file by adding

Code: Select all

// Modifie la page d'accueil
defaultPref("browser.startup.homepage", "128.128.76.22");
4 - I checked the local-settins.js file

Code: Select all

/ Process mozilla.cfg in FireFox root directory.
pref("general.config.obscure_value", 0);
pref("general.config.filename","mozilla.cfg");
5 - then I deployed Firefox on several machines... the installation goes well but the mozilla.cfg file ends up as it was originally.

I don't see where the problem lies (for your information, I have the same issue with VNC; I think I'm doing something wrong, but I can't figure out where) ;)

Thank you for your help.
Dylan
Messages: 20
Registration: June 9, 2016 - 10:28

September 12, 2016 - 3:03 PM

Is there anyone who can help me? Could those who have modified Firefox settings point me in the right direction?

Thanks in advance. :)
Omahaddict
Messages: 15
Registration: Apr 20, 2016 - 3:15 p.m.

September 19, 2016 - 11:53

Hi,
you say you download and modify the package, but how do you re-upload it?
When you manually download the package from your repository and unzip it, is the mozilla.cfg file the same one you modified?
Dylan
Messages: 20
Registration: June 9, 2016 - 10:28

September 21, 2016 - 1:16 PM

Hello Omahaddict and thank you for your reply.

So, I've never tried downloading from a computer from the private repository, and now I realize I can't because it's asking for an account and password (I did try the WAPT console login, of course, without success).
On the WAPT server side, I duplicated the c:\waptdev\xxxx-firefox-xxx directory, then modified the files I needed and ran the following command: "wapt-get build-upload c:\waptdev\xxx-firefox-xxx".

I'm sure I'm missing something, but I can't figure out what. ;)

Dylan
Aedenth
Messages: 15
Registration: Sep 19, 2016 - 09:26

September 21, 2016 - 2:01 PM

Hello,

before running the command "wapt-get build-upload c:\waptdev\xxx-firefox-xxx", did you increment the version number (the value after the "-") in the package control file (located in the folder c:\waptdev\xxx-firefox-xxx/WAPT/)?

To install a package directly from a machine, you need to use an account with administrator privileges on that machine, I believe.
Dylan
Messages: 20
Registration: June 9, 2016 - 10:28

September 21, 2016 - 3:24 PM

Thank you, you've already pointed out my first mistake: no, I wasn't incrementing the version number, that's now been done. :D
Unfortunately, I have the impression that it's no better on the user side: I'm doing some more tests and I'll come back and tell you the result.
Locked