Firefox Windows 10 Bash

If you are looking for a secure way to browse the internet on Windows 10, one way to do that is to use Firefox and Bash for Windows 10 which uses the Windows Subsystem for Linux.

To get started using Firefox with Bash for Windows 10 you need to turn on the Windows 10’s Developer Mode:

Settings > Update & Security > For Developers

Next, search for “Windows Features” and choose “Turn Windows features on or off” and enable Windows Subsystem for Linux (Beta). Your computer will need to restart.

Windows Features

Next, open the Windows Command Prompt and type “bash” and press the Enter key. Windows will download and install Ubuntu and Bash on your computer. The download is about 1 gig.

Once the download is complete, it will ask you enter in a username and a password for a new user. You will be using this password any time you are asked for a password when you use the sudo command below. You are now at the Bash shell.

Now it is time to update Ubuntu. You do that from the Bash shell by running the following commands:

$sudo apt-get update

$Sudo apt-get upgrade

Now you need to switch back to Windows 10 and install a Windows compatible Xserver. I recommend you install Xming.

Once you are done installing Xming, run it using the default multiple windows setting. Then you need to go back to the Bash shell window and tell it to use the Xming Xserver to display a graphical program like Firefox.

You can make it do this every time you run Firefox by entering the following command into the Bash shell:

$echo "export DISPLAY=:0" >> ~/.bashrc

We are almost done.  Time to install Firefox. You do that from the Bash shell by running the following command:

$sudo apt-get install firefox

To play mp4 and other media you need to install a few extras. You do that from the Bash shell by running the following command:

$sudo apt-get install ubuntu-restricted-extras

You are now ready to run Firefox.  You do that from the Bash shell by running the following command:

$firefox

It will open Firefox in a window for you to use.

When you wish to run Firefox in the future you can search for Bash and enter the above command in the Bash shell window.  You can even pin Bash to the Taskbar.

Each time you restart your computer you will need to run the XLaunch program from Xming so you have a Xserver running when you run Firefox. Use the default multiple windows setting when you run it. Firefox will not run without this.

One of the current problems with the Windows Subsystem for Linux is sound is not setup. I was not able to get sound to play from Firefox at this time.