Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Шукати в статтях підтримки

Остерігайтеся нападів зловмисників. Mozilla ніколи не просить вас зателефонувати, надіслати номер телефону у повідомленні або поділитися з кимось особистими даними. Будь ласка, повідомте про підозрілі дії за допомогою меню “Повідомити про зловживання”

Докладніше

Ця тема перенесена в архів. Якщо вам потрібна допомога, запитайте.

How can I update bookmarks.html and prefs.js after installing Firefox on Linux?

  • 2 відповіді
  • 2 мають цю проблему
  • 5 переглядів
  • Остання відповідь від cor-el

more options

Hello! I work for a non-profit organization that wipes donated computers clean, loads Edubuntu, and gives them to underprivileged kids. As part of the install process, we run a script that sets the homepage and adds lots of bookmarks (e.g. a link to an online encyclopedia) to Firefox. The script broke a few weeks ago with the 3.6.8 update.

I've modified the script but I am still having lots of trouble. It seems I need to replace bookmarks.html and prefs.js in the /home/user/.mozilla/firefox/*.default/ directory. However, the script runs immediately after the installation of Edubuntu and before the computer is used for the first time and the directory does not seem to come into existence until Firefox is run.

I've tried "firefox -CreateProfile user" and this causes the directory to be created but then the terminal says I do not have permission to access it and Firefox never finishes loading. It appears in the bottom taskbar briefly and then disappears.

Is there a way I can force the /home/user/.mozilla/firefox/*.default directory and related files to be created without actually launching Firefox? Why are these files and folders not created when it is installed? Is there another way to go about accomplishing what I need: changing the homepage and adding the bookmarks before the computer is used?

Thank you in advance for any help!!

Hello! I work for a non-profit organization that wipes donated computers clean, loads Edubuntu, and gives them to underprivileged kids. As part of the install process, we run a script that sets the homepage and adds lots of bookmarks (e.g. a link to an online encyclopedia) to Firefox. The script broke a few weeks ago with the 3.6.8 update. I've modified the script but I am still having lots of trouble. It seems I need to replace bookmarks.html and prefs.js in the /home/user/.mozilla/firefox/*.default/ directory. However, the script runs immediately after the installation of Edubuntu and before the computer is used for the first time and the directory does not seem to come into existence until Firefox is run. I've tried "firefox -CreateProfile user" and this causes the directory to be created but then the terminal says I do not have permission to access it and Firefox never finishes loading. It appears in the bottom taskbar briefly and then disappears. Is there a way I can force the /home/user/.mozilla/firefox/*.default directory and related files to be created without actually launching Firefox? Why are these files and folders not created when it is installed? Is there another way to go about accomplishing what I need: changing the homepage and adding the bookmarks before the computer is used? Thank you in advance for any help!!

Усі відповіді (2)

more options

What I would do is set up Firefox as you want it - with all the bookmarks and preference and whatever.

Then on every new machine just copy the entire profile folder ~/.mozilla/firefox and all its subdirectories onto the new machine before running Firefox.

You can delete or empty the cache directory.

I can't think of a reason why that won't work - though there may be one ;-)

The bookmarks are actually in places.sqlite:

http://kb.mozillazine.org/Profile_folder_-_Firefox

http://kb.mozillazine.org/Bookmarks

Змінено DaveRo

more options

You can set prefs for a new via a file user.js in the default template folder ("C:\Program Files\Mozilla Firefox\defaults\profile\ ") You can also place a file bookmarks.html in that same folder.
This will only work for to initialize new profiles.

It is possible to lock prefs and make it impossible to change them via the about:config page.
See http://kb.mozillazine.org/Locking_preferences