Slackware Linux 14.1 comes with Firefox as the default browser. If you’re like me and been enthralled with Google Chrome for some time, then no doubt you’d like it to be on your Slackware system. Installing anything on Slackware used to be a real drag, especially for new users. You would have to download the source and compile and then resolve dependencies and more. While this method can be very advantageous at times, it’s not at all what we’re looking for in installing the Chrome web browser. I’ve created this post to help you get Google Chrome up and running on Slackware 14.1 in a smooth and quick fashion. As a little bonus, we’ll look at how to add Chrome to the Fluxbox menu as it is not done automatically and many users have had a difficult time finding the installation directory and binary files.

Getting Google Chrome Package for Slackware 14.1

The first step is obtaining the right files. To do this, goto the official Google Chrome download page. Here you will click the download button and choose either the 32 or 64 bit .deb package according to your computer and linux installation architecture. I personally went with the 64bit package, however, your installation should essentially be the same either way at this point in time. You will want to choose either the 32 bit or 64 bit Debian/Ubuntu version for installation in Slackware.

You will also need to download additional files from a Slackware mirror. Please use one of the official Slackware mirrors to ensure you download safe files. Here is a direct link to the /extra/google-chrome directory you will want to download. You need to download both the google-chrome.SlackBuild and slack-desc files. Place these files along with the Google Chrome debian package you downloaded into the same folder. Creating a /tmp/google-chrome folder for this process is the simplest way to go.

Installing Chrome in Slackware 14.1

You should now have all of your files ready to go.

Open a terminal window and login as root: su

Change into your temporary directory: cd /tmp/google-chrome

Run the google-chrome.SlackBuild script as root: sh google-chrome.SlackBuild

Once the SlackBuild finishes execution, you should see a message similar to the following: “Slackware package /tmp/google-chrome-21.0.1180.81-i386-1.txz created.”

If you’ve received a similar message, congratulations, you’ve done great so far. If not, check your dependencies for any issues. I personally experienced some issues with PAM. Simply use mkdir and create the directory that is causing the issue. The process should then move along smoothly.

The final step to the installation is to run the command: upgradepkg –install-new /tmp/google-chrome-21.0.1180.83-i386-1.txz or whatever your current version is. Just use the tab key after you’ve typed in the first part of google-chrome and let it auto-complete the rest of the file name.

Chrome should now be installed and added to several of your X menus, including KDE. I personally prefer the minimalism of Fluxbox. Since Chrome is not added to the Fluxbox menu, I will show you how to accomplish this as well.

Adding Google Chrome to the Fluxbox Menu

 The first thing you need to know is where Chrome has been installed to. This one seems to stump many people. The location for Google Chrome on Slackware 14.1 is: /opt/google/chrome/chrome

Now that we have this piece of information, adding Chrome to our menu is a breeze!

Use your favorite command line editor to open the file ~/.fluxbox/menu in your user directory.

You will have to choose where you want to place Chrome in the menu. You can easily add another entry in the net→browsers submenu or in the main menu. Wherever you wish to place the Chrome menu item, the format will be the same.

Here is how the fluxbox menu format plays out to run a program:  [exec] (Name of Menu Item) {path to executable}

So, for our particular interests of adding Google Chrome to the menu, you may wish to do that following: [exec] (Chrome) {/opt/google/chrome/chrome}

Simply add that line in to where you want Chrome to show up in the menu and save the file. Then refresh the Fluxbox menu to see the menu item added.