2016-04-26 22:07:53 +00:00
|
|
|
# Firefox in Docker
|
|
|
|
|
|
|
|
## Launching the Firefox
|
2016-03-23 20:44:53 +00:00
|
|
|
|
2016-04-30 19:11:53 +00:00
|
|
|
You can use the following shortcut function and place it to your `~/.bash_aliases` file
|
|
|
|
|
2016-03-23 20:44:53 +00:00
|
|
|
```
|
2016-05-20 09:23:44 +00:00
|
|
|
alias docker="sudo -E docker"
|
|
|
|
alias docker-compose="sudo -E docker-compose"
|
|
|
|
|
|
|
|
function docker_helper() { { pushd ~/docker/$1; docker-compose rm -fa "$1"; docker-compose run -d --name "$1" "$@"; popd; } }
|
|
|
|
function firefox() { { docker_helper $FUNCNAME $@; } }
|
2016-03-23 20:44:53 +00:00
|
|
|
```
|
|
|
|
|
2016-04-30 19:11:53 +00:00
|
|
|
|
2016-04-26 22:07:53 +00:00
|
|
|
# Troubleshooting
|
|
|
|
|
|
|
|
## Audio
|
|
|
|
|
|
|
|
Following are some useful commands which you can use for testing the audio
|
2016-03-23 20:44:53 +00:00
|
|
|
|
|
|
|
```
|
2016-04-26 22:07:53 +00:00
|
|
|
docker-compose run --rm --entrypoint /bin/bash firefox
|
|
|
|
apt-get update && apt-get install -y alsa-utils
|
|
|
|
aplay -L
|
|
|
|
pactl list
|
|
|
|
cat /dev/urandom | aplay -
|
|
|
|
arecord -D pulse -f cd | aplay -D pulse -B 10000 -
|
|
|
|
|
|
|
|
WebRTC online test for Microphone, Camera, Network, Connectivity and Throughput
|
|
|
|
https://test.webrtc.org/
|
|
|
|
https://webaudiodemos.appspot.com/AudioRecorder/index.html
|
2016-03-23 20:44:53 +00:00
|
|
|
```
|
2016-03-23 23:29:55 +00:00
|
|
|
|
2016-04-26 22:07:53 +00:00
|
|
|
## Video
|
|
|
|
|
|
|
|
Go to `about:support` in the Firefox to see whether everything is OK or not.
|
|
|
|
|
|
|
|
|
|
|
|
## Codecs and the HW acceleration
|
2016-03-23 23:29:55 +00:00
|
|
|
|
|
|
|
You may want to disable Google's VP8 & VP9 video codecs: "MSE & WebM VP9" and "WebM VP8"
|
|
|
|
as there is no hardware decoding for them.
|
|
|
|
To do this, install h264ify extension from
|
|
|
|
```
|
|
|
|
https://addons.mozilla.org/en-us/firefox/addon/h264ify/
|
|
|
|
```
|
|
|
|
|
|
|
|
Check the codecs
|
2016-04-26 22:07:53 +00:00
|
|
|
|
2016-03-23 23:29:55 +00:00
|
|
|
```
|
|
|
|
https://www.youtube.com/html5
|
|
|
|
```
|
2016-04-02 19:47:58 +00:00
|
|
|
|
2016-04-26 22:50:28 +00:00
|
|
|
Be careful playing with the following settings!
|
|
|
|
|
|
|
|
http://www.sitepoint.com/firefox-enable-webgl-blacklisted-graphics-card/
|
|
|
|
|
|
|
|
```
|
|
|
|
about:config
|
|
|
|
layers.acceleration.force-enabled;true
|
|
|
|
gl.require-hardware;true
|
|
|
|
webgl.force-enabled;true
|
|
|
|
|
|
|
|
about:support
|
|
|
|
```
|
|
|
|
|
2016-04-02 19:47:58 +00:00
|
|
|
|
2016-04-26 22:07:53 +00:00
|
|
|
# Extra
|
2016-04-02 19:47:58 +00:00
|
|
|
|
2016-04-26 22:07:53 +00:00
|
|
|
## Extensions
|
2016-04-02 19:47:58 +00:00
|
|
|
|
2016-04-26 22:07:53 +00:00
|
|
|
Here is the list of Firefox's extensions I am using
|
2016-04-02 19:47:58 +00:00
|
|
|
|
2016-05-04 20:11:39 +00:00
|
|
|
- [Privacy Badger](https://www.eff.org/privacybadger)
|
|
|
|
|
|
|
|
- [uBlock Origin](https://github.com/gorhill/uBlock)
|