We can tell curl to follow these redirections with the -location option.īy default, the curl command will output the download to standard out.
This is a re-direction, that is commonly used to have a single URI, that is redirected to different final URIs, so that when the software updates, the same URI always returns the latest version. However, when you try to curl this URI, you only get the following: > curl "" The URI to download the latest Firefox is As always, you can find a detailed description of the curl command and its options in the curl man page. We will only discuss the few options that we require for our task here. The curl command is very complex and has many options. You can use the curl command to download data in the command line. This breaks the workflow into smaller pieces, that we will now tackle individually. # copy Firefox application to /Applications # downloads and installs the latest version of Firefox copy Firefox application to /Applicationsįrom this list of steps, we can build the first ‘frame’ of our script: #!/bin/zsh.
When we want to automate the task ‘Download and Install Firefox,’ we have the following steps: Finally, they need to copy the Firefox application from the virtual disk to the Applications folder. Then the user needs locate the dmg in the ~/Downloads folder and open it to mount the virtual disk image. To download and install the latest version of Firefox a user has to go to the Firefox website and download the latest version, which will come as a disk image (dmg) file. To further illustrate the progress from the idea of a workflow to a working script, let us look at another, more involved example. Enjoy!įollow this blog or the Twitter account for updates on the book’s progress! Download and Install Firefox
Whether it’s for web development purposes or you just prefer it over Chrome, you can still have all the benefits of a Chromebook and use Mozilla’s browser as well.This series is an excerpt from the first chapter of my upcoming book “Scripting macOS” which will teach you to use and create shell scripts on macOS. Whichever method you choose, you will now have a fully functioning version of Firefox installed on your Chromebook. It may take a minute the first time, so don’t panic. Now you can launch Firefox from the app drawer like any other app on your Chromebook. Tap the install button and wait for it to complete. You’ll see a number of different versions of Firefox, but the one you probably want is the one just called ‘Firefox’. Open the ‘Google Play Store’ and search for Firefox.
If you don’t want to deal with Linux or you’re using a tablet running Chrome OS then the Firefox Android app might be for you.
How to install Firefox for Android on your Chromebook The first launch might take a while, so don’t worry, just leave it to do its thing and pretty soon you’ll be looking at a fresh install of the Firefox browser. Once the installation has finished you will be able to launch Firefox from the ‘Linux apps’ folder in your app drawer or by typing ‘firefox-esr’ in the terminal. Still in the terminal, enter the following command: sudo apt install firefox-esr Download and install Firefox on your Chromebook
It’s a good idea to make sure all packages are up to date using the following commands before going any further: sudo apt update Once it’s complete the terminal will open. When you’re happy, hit ‘Install’ and wait for your Chromebook to finish the installation of the Linux container. You’ll have to give your Linux container a name and decide how much storage you want to hand over to it. Click ‘Turn on’ and follow the on-screen instructions. Open up the ‘Settings’ app on your Chromebook and find the ‘Linux’ option in the sidebar. If you don't, the first step is to get it turned on. If you already have Linux enabled on your Chromebook then you can skip ahead to the next step. And it works just fine on ARM Chromebooks. It doesn’t have the latest features, but its security and stability patches are up to date. It involves using the ESR (Extended Support Release) of Firefox, more commonly deployed in enterprise or education. Mozilla says that Firefox only officially supports x86 Chromebooks, but there is still a way to install the full-fat Firefox on ARM-powered laptops. If you’re using an ARM-powered Chromebook like the Lenovo IdeaPad Chromebook Duet, the method above won’t yield much success.
(Image credit: TechRadar) How to install Firefox on an ARM Chromebook