Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Intel Galileo Networking Cookbook

You're reading from   Intel Galileo Networking Cookbook Over 50 recipes that will help you use the Intel Galileo board to build exciting network-connected projects

Arrow left icon
Product type Paperback
Published in Aug 2015
Publisher
ISBN-13 9781785281198
Length 174 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Marco Schwartz Marco Schwartz
Author Profile Icon Marco Schwartz
Marco Schwartz
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

Preface 1. Installing and Configuring Linux FREE CHAPTER 2. Connecting External Sensors 3. Controlling Hardware Devices 4. Creating a Web Server 5. Hosting Applications on the Galileo Board 6. Local Network Monitoring 7. Cloud Data Monitoring 8. Building a Home Automation System Index

Installing and updating modules

So far, we have learnt how to access the board remotely via SSH, from any machine on your local network. Now, we are going to see what we can actually do with that. As we are still in an introductory chapter, we will see how to perform a simple operation—update the Linux modules that are already installed on the board, and install new ones.

Getting ready

To follow this recipe, you need to have a Galileo board with a fully operational Linux image, on which you can access via SSH just as we did in the previous recipe. The Linux image you are using doesn't actually matter that much.

How to do it...

Once you are logged in to your Galileo board via SSH, you are able to type commands directly into the terminal. Every time you see a line starting with root@galileo, this means we will be using the terminal.

If you are using the IoT image, the first thing you can do is type the command:

opkg update

This will update the list of available packages and updates for your Galileo board. This is the result inside the console:

How to do it...

Note that this also requires the Galileo board to be connected to the Internet, for example, by plugging it into your Internet router.

Now, you can actually update the packages themselves by typing:

opkg upgrade

This will automatically update all packages that need to be updated. Make sure you run it regularly, as Intel comes up with new versions of these packages all the time.

You can also use the package manager to install new modules. To see which packages are available, type:

opkg list

This will list all the available packages, as shown in this screenshot:

How to do it...

To install a given package, just type the following command, replacing package_name with the name of the package you want to install:

opkg install package_name

How it works...

The opkg command installs the package manager (opkg) for the Intel Galileo Linux machine. It allows you to update your existing packages automatically and also install new packages on your Galileo board. In this way, you can always stay up-to-date and extend the functionalities of your board with new modules.

There's more...

We only covered the basics of what the opkg tool can do. To see all the possibilities offered by the tool, type this into the terminal:

opkg –h

This will list all the commands and options offered by this tool.

See also

Installing new packages and updating existing packages requires you to access your board remotely. So far we have done this via Ethernet, but you can check the next recipe to learn how to do it via Wi-Fi.

You have been reading a chapter from
Intel Galileo Networking Cookbook
Published in: Aug 2015
Publisher:
ISBN-13: 9781785281198
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image