#
Installing Firefox
By
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