#
Firefox
title: Installing Firefox label: Installing Firefox order: 100 authors:
- name: Charl Cronje email: charl@webally.co.za link: https://blog.webally.co.za avatar: https://assets.webally.co.za/avatars/darker.jpg edit: repo: "https://github.com/charlpcronje/setup.docs.devserv.me/edit/" base: /src branch: main label: Edit on GitHub editor: enabled: false favicon: favicon.png links:
- text: Projects Portfolio link: https://webally.co.za/projects
- text: Wiki, Tips and Docs link: https://docs.webally.co.zao.za
- text: Resume link: https://cv.webally.co.za
- text: LinkedIn link: https://www.linkedin.com/in/charlpcronje
- text: GitHub link: https://github.com/charlpcronje
- text: Upwork Profile link: https://www.upwork.com/freelancers/~01ccb1439024ec9c50 footer: copyright: "webAlly © Copyright . All rights reserved."---
In the past I struggled to get this to work, I'm going to try again.
Try installing
yum install xorg-x11-server-Xorg xorg-x11-xauth xorg-x11-apps -y
If the repo is down try installing this way
wget http://mirror.centos.org/centos/7/updates/x86_64/Packages/xorg-x11-server-Xorg-1.20.4-16.el7_9.x86_64.rpm
mkdir /srv/tools
wget -O- "https://download.mozilla.org/?product=firefox-latest-ssl&os=linux64&lang=en-US" | tar -jx -C /srv/tools/
Create a symlink to a newly downloaded /srv/tools/firefox/firefox
executable.
ln -s /srv/tools/firefox/firefox /usr/bin/firefox
Start the latest Firefox browser from GUI menu or by executing the firefox
command.
firefox
If you get an error like this:
libgtk-3.so.0: cannot open shared object file: No such file or directory
Then you need to install GTK3
yum install gtk3-devel
# Run Firefox again
firefox
Getting this error?
Error: no DISPLAY environment variable specified
That means everything is working, now you just need to specify your local display for displaying the browser, for that you need to have X11 forwarding and an XServer. But no big deal, just two quick steps here