X
Tap here to go to the mobile version of the site.

Support Forum

How to reset Firefox from the commandline (without a mouse) on Linux?

Posted

I use Firefox for automated screenshots in a xvfb-virtual desktop. There is no mouse. So I need to reset Firefox from the commandline. Uninstall an re-install leads to the "reset-Window" again. I use Ubuntu 13.04 Server-Edition.

I use Firefox for automated screenshots in a xvfb-virtual desktop. There is no mouse. So I need to reset Firefox from the commandline. Uninstall an re-install leads to the "reset-Window" again. I use Ubuntu 13.04 Server-Edition.

Chosen solution

Otherwise, without a keyboard and mouse, you can just reinstall and delete the ./mozilla folder.

Read this answer in context 2

Additional System Details

Application

  • User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/28.0.1500.71 Chrome/28.0.1500.71 Safari/537.36

More Information

Waka_Flocka_Flame 441 solutions 5048 answers

firefox -safemode or -safe-mode

then a new window should show to enter safe mode or Reset, hit the right keyboard key, and press enter on "Reset Firefox". No mouse needed.

firefox -safemode or -safe-mode then a new window should show to enter safe mode or Reset, hit the right keyboard key, and press enter on "Reset Firefox". No mouse needed.
mohammed.samad 17 solutions 233 answers

XP

   Open the Command Prompt:
       Windows Vista: Click on the Start Menu, click on All Programs, click on the Mozilla Firefox folder and click on Mozilla Firefox (Safe Mode).
       ff_vistastartmenu.png (+)
       Windows XP and Earlier: Click on the Start Menu, click on All Programs, click on the Mozilla Firefox folder and click on Mozilla Firefox (Safe Mode).
       ff_xpstartmenu.png (+)
   In the Firefox Safe Mode window, check the Reset all user preferences to Firefox defaults box and click on Make Changes and Restart.
   ff_safemode.png (+)
   Firefox will automatically restart and your settings will be reset to defaults.
XP Open the Command Prompt: Windows Vista: Click on the Start Menu, click on All Programs, click on the Mozilla Firefox folder and click on Mozilla Firefox (Safe Mode). ff_vistastartmenu.png (+) Windows XP and Earlier: Click on the Start Menu, click on All Programs, click on the Mozilla Firefox folder and click on Mozilla Firefox (Safe Mode). ff_xpstartmenu.png (+) In the Firefox Safe Mode window, check the Reset all user preferences to Firefox defaults box and click on Make Changes and Restart. ff_safemode.png (+) Firefox will automatically restart and your settings will be reset to defaults.

Question owner

Thanks @Waka_Flock_Flame, but I have no keyboard either. It's an server and xvfb is just a virtual X-Server.

Thanks @Mohammed.samad, but I use Linux.

Thanks @Waka_Flock_Flame, but I have no keyboard either. It's an server and xvfb is just a virtual X-Server. Thanks @Mohammed.samad, but I use Linux.
Waka_Flocka_Flame 441 solutions 5048 answers

Chosen Solution

Otherwise, without a keyboard and mouse, you can just reinstall and delete the ./mozilla folder.

Otherwise, without a keyboard and mouse, you can just reinstall and delete the ./mozilla folder.

Question owner

Thanks! Remove and install didn't help, but the trick is removing the ./mozilla folder. Thanks a lot!!!

Thanks! Remove and install didn't help, but the trick is removing the ./mozilla folder. Thanks a lot!!!
cor-el
  • Top 10 Contributor
  • Moderator
12501 solutions 115340 answers

You may have to check the ~/.cache/mozilla/firefox folder as well that current Firefox versions use for the disk cache.

You may have to check the ~/.cache/mozilla/firefox folder as well that current Firefox versions use for the disk cache.