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
Intel Galileo Networking Cookbook
Intel Galileo Networking Cookbook

Intel Galileo Networking Cookbook: Over 50 recipes that will help you use the Intel Galileo board to build exciting network-connected projects

eBook
€8.99 €29.99
Paperback
€36.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Table of content icon View table of contents Preview book icon Preview Book

Intel Galileo Networking Cookbook

Chapter 1. Installing and Configuring Linux

In this chapter, we will cover the following recipes:

  • Configuring your Galileo for the first time
  • Using a simple Linux image
  • Using the IoT Linux image
  • Accessing the Galileo board remotely
  • Installing and updating modules
  • Accessing Galileo via Wi-Fi
  • Troubleshooting Linux installation issues

Introduction

This first chapter of the book is focused on getting you started with Linux on your Intel Galileo board. You will learn how to set up your board out of the box. You will also learn how to install the different Linux images that you can install on the Galileo board. We will also learn how to install Linux on an external SD card that can be inserted into the Galileo board.

We are also going to see how to access a Galileo board remotely, and how to install new modules on it. Finally, we will see how to get rid of the Ethernet cable and use Wi-Fi to access the Galileo board.

Note

Note that all of the projects in this chapter and this book use the second generation Intel Galileo board. Several projects might work with a first generation type, but this is not guaranteed.

Configuring your Galileo for the first time

The first step when you receive your Galileo board is to set it up. This is relatively easy but is a bit more complex than it is with other boards such as the Arduino. Therefore, we need to make sure that it is perfectly configured and set up before we move on to the other recipes in this chapter.

Inside the box, you will find the board itself and a power adapter that you can use to power up the board. You will also find a short manual about the board and the Intel Galileo platform.

Getting ready

The first thing you will need is, of course, a Galileo board, which is shown here:

Getting ready

Note that you will need a Galileo Gen 2 board for the rest of this book. You might be able to follow along just fine with a Gen 1, but there might be some differences.

You can find a Galileo board on SparkFun:

https://www.sparkfun.com/products/13096

You also need an external power supply for your board, which is shown here:

Getting ready

This power supply is usually provided with the Galileo board but, if this is not the case, or you got your Galileo board separately, you will need to use the 12V DC power supply found in the box, or any other DC power supply in the 7V to 15V range.

Finally, you will also need a micro SD card, as shown here, which we will use in some projects in this chapter:

Getting ready

This SD card will be used to install the different Linux images, and also to store measurement data. I recommend an SD card with more than 2 GB of storage.

How to do it...

Let's now assemble our Galileo board. These are the steps to follow to set up your Galileo board:

  1. Insert the micro SD card into the corresponding slot on the Galileo board.
  2. Insert an Ethernet cable from your router into the Galileo board.
  3. Connect the Galileo board to your power supply by connecting the DC jack.

This should be the result:

How to do it...

You will see that some LEDs light up when this is done.

How it works...

The Galileo board basically needs three things to work correctly:

  • The correct power supply
  • A connection to your local network via Ethernet or Wi-Fi
  • A micro SD card inserted into the board (this is not required for the basic operation of the board, but to install Linux images)

Having done this, we are then able to use our board for all the projects in this book.

See also

This is really the foundation of the whole book, so make sure that you complete this recipe correctly. To go further, follow one of the two upcoming recipes to install Linux on your Galileo board.

Using a simple Linux image

To really make use of the board and create exciting projects, we need to install a Linux image on our Galileo board. We will see that we have two options. The first one is the one we are going to see in this recipe—it is a simple Linux image, which is also simple to install. We will see how to install it in this guide.

Getting ready

First, you have to make sure that you have followed the recipe at the beginning of this chapter, so you should have your board ready to be use.

Then you can get the Linux image from the following location:

https://communities.intel.com/docs/DOC-22226

You will be redirected to a page that contains a table with all the available downloads for the Galileo board:

Getting ready

Simply click on the first link and wait until the image is downloaded onto your computer.

How to do it...

You are now ready to install the Linux image on your Galileo board. To do so, simply follow these steps:

  1. Unzip the contents of the file you just downloaded.
  2. Remove the micro SD card from the Galileo board.
  3. Insert the micro SD card into your computer.
  4. Format the SD card, if necessary, in the FAT32 format (if there are files on it already).
  5. Copy the contents of the Linux image to the SD card.
  6. Power down your Galileo board. You can also connect your board to your local network with the Ethernet cable at this point.
  7. Insert the SD card into your Galileo board again.
  8. Power the Galileo board up again.

The simple Linux image is now installed and running on your Galileo board.

How it works...

The Galileo board will now boot every time on this Linux image, allowing you to access all the functions and modules that we listed earlier.

There's more...

The Linux image that you just installed comes with many extras. This is a non-exhaustive list of all the features and modules that come with the Linux image:

  • Wi-Fi drivers
  • A Python interpreter
  • SSH (to access your board via Ethernet)
  • OpenCV (for image and video processing)
  • Video4Linux2 (to record videos)
  • Advanced Linux Sound Architecture (ALSA) drivers (to play sounds)
  • Node.js (to run servers and applications based on JavaScript)

See also

If you need an even more advanced image installed on your Galileo board, look at the following recipes to see how to install the Internet of Things (IoT) image.

Using the IoT Linux image

Using the simple Linux image that we described in the previous recipe is great, but it can be quite difficult to use. You need to manually login to your board, and then use command lines to install new modules and run your applications. For example, you would have to use terminal software (such as PuTTY) to access the board.

Luckily for us, Intel has come up with a whole suite of software to allow you to code your application directly with a graphical interface, without typing a single line of code into a terminal. In this recipe, we are going to see how to install this software suite.

Getting ready

This software suite comes in two parts— a new image, called the IoT image, that you need to install on the SD card, and also some software called (Cross-Platform Development Kit) XDK that needs to be installed on your computer.

The first step is to download this IoT image from the Intel website:

https://software.intel.com/en-us/iot/downloads

This is the page you will see when going to this web address:

Getting ready

Download the image from the web page. Then, go to the following address to download the Intel XDK software:

https://software.intel.com/en-us/html5/xdk-iot

You will be redirected to the page where you can download the Intel XDK software for your operating system:

Getting ready

How to do it...

Installing the Intel IoT image is a bit more complex than it is with the simple Linux image. It varies depending on your operating system. Luckily for us, Intel has written guides to help install this image, depending on your operating system:

https://software.intel.com/en-us/iot/downloads

Simply follow the corresponding guide before continuing this recipe.

Installing the Intel XDK software is actually much easier. You simply need to execute the installer and just let yourself be guided by the instructions. When you first launch the software, you will be asked to create an account on the Intel website.

This is what the software looks like:

How to do it...

Congratulations, you are now completely ready to use the Intel IoT development suite on your computer!

How it works...

The Intel IoT image and Intel XDK work together to make development on your Galileo board much simpler. XDK is able to locate your Galileo board automatically on your network, develop applications in Node.js inside the software, and then automatically upload and run these applications on your Galileo board!

There's more...

You will see that the Intel XDK software offers much more than what we are going to use in this book. You can actually develop mobile applications that work on your phone and communicate directly with your Galileo board, right from Intel XDK!

You have other options to program your board at this point. The first option is to use Eclipse, which also lets you program the board, but by using C/C++ instead of Node.js. The next option is to use the special version of the Arduino IDE for the Galileo board, which lets you program the board with the well-known Arduino language.

See also

Using this recipe will allow you to make nearly all the recipes in the subsequent chapters of this book. Look at the remaining recipes in this chapter to see how to access your board once the IoT image is installed.

Accessing the Galileo board remotely

If you have followed one of the two previous recipes in this chapter, you now have a fully operational Linux image running on your Intel Galileo. Now, we are going to see what you can do with it. The first step is to verify that the installation was actually successful and that you can access your board remotely. To do that, we are going to use Secure Shell (SSH) to log in to your Galileo board remotely.

Getting ready

You will need to have a Linux image installed on your Galileo board. I recommend using the IoT image for this, as this is the image we will be using in the rest of the book.

For the rest of this recipe, we will assume that the IoT image is installed and running on your Galileo board.

How to do it...

The first step is to get the IP address of your board. This is important, as we will always use this IP to access your board. For your board to get a relevant IP address, it needs to be connected to the same local network as your computer.

To do so, the simplest way is to open the Intel XDK software. Log in, and then you will see, at the bottom part of the window, that you have a Select a Device menu. You should see your Galileo board in this menu, along with the IP address next to it, as shown in this screenshot:

How to do it...

For this to work correctly, you also need to have Bonjour installed on your computer.

Now, go to a terminal to login to your board via SSH. If you are using Linux or OS X, you already have a terminal that you can use.

If you are using Windows, I recommend using PuTTY:

http://www.putty.org/

PuTTY is a basic type of terminal software for Windows that allows you to use the board remotely.

Now, go to a terminal and type in the following command by putting in the IP address of your board:

ssh root@192.168.1.102

You should see that you are logged in to your Galileo board:

How to do it...

If you can see these messages, it means you can successfully access your board via SSH!

How it works...

SSH is a protocol to securely login to a remote Linux machine, such as the Galileo board, running a small Linux distribution. It allows you to control your board from any machine in your network, and install updates and new modules.

There's more...

This is just the first step in using your Galileo board remotely. In the next recipes, we will use it for much more than just logging in, for example to install new modules and to run applications.

See also

You should now go to the next recipe to learn how to install modules and install updates on your Galileo board.

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.

Accessing Galileo via Wi-Fi

Using the onboard Ethernet port is great for accessing your Galileo board remotely. However, this is not always convenient. Most of our devices nowadays are connected wirelessly, and it can be strange sometimes to still use Ethernet cables.

This is why we are going to find out how to easily install a Wi-Fi board on the Galileo and then access the board remotely. You will then be able to complete all the projects in this book without ever connecting an Ethernet cable again.

Getting ready

For this recipe to work, you will need to have followed most of the previous recipes in this chapter. You need a working Galileo board, with either the simple Linux image or the IoT image installed. You should also have checked that you can access the board via Ethernet first, to make sure that everything is working.

Then, you need a Wi-Fi board. I recommend using the Intel N-135 Wi-Fi board, which is very easy to install and will work out of the box. This is a picture of this board:

Getting ready

You can easily find it online, for example on Amazon, here:

http://goo.gl/70UXFw

It might be possible to use other Wi-Fi boards, but they could be more difficult to use or require the use of drivers to work. You can also use a Wi-Fi dongle that is compatible with the Galileo board.

How to do it...

You can simply install the board by following all the steps in this section:

  1. First, power down the Galileo board and remove all the connection cables.
  2. Then, turn the board over and locate the mini PCI express port, as shown here:
    How to do it...
  3. Insert the Wi-Fi card into the port at a small angle.
  4. After that, press it down until you hear a click, meaning the board was successfully installed.
  5. Connect all the cables to the Galileo board again and power it up.

Now that the Wi-Fi module is correctly installed, you will have some simple steps to follow to set up your Wi-Fi connection. Let's assume here that you have a WPA-secured Wi-Fi network, which is the case for most Wi-Fi networks, then follow these steps:

  1. Log on to your Galileo as root, just as you learned in the previous recipes in this chapter.
  2. Create the file that will contain your network's configuration by typing the following command, replacing MySSID with your Wi-Fi network name:
    # wpa_passphrase MySSID << EOF > /etc/wpa_supplicant.conf
    
  3. Then, type the following command, replacing MyPassPhrase with your Wi-Fi network password:
    > MyPassPhrase
    
  4. Finally, type:
    > EOF
    

This will connect your board to your Wi-Fi network. You can then follow these steps to connect it to your network automatically:

  1. Edit the /etc/network/interfaces file with vi.
  2. Add the line auto wlan0.
  3. Save, using the :w command followed by the :q command.
  4. Restart the wireless interface by typing:
    /etc/init.d/networking restart
    ifdown wlan0
    ifup wlan0
    

From now on, your Galileo board will automatically connect to your network using Wi-Fi. You need to take these steps again if you modify your Wi-Fi network name and/or password.

You can now remove the Ethernet cable and login to your Galileo board again via Wi-Fi.

How it works...

The Galileo board mini PCI express port was made specifically to support extensions such as this Wi-Fi board. This port can be used to extend the possibilities offered by the Intel Galileo board.

There's more...

You can use the mini PCI express slot that we used in this recipe for many extensions other than Wi-Fi. For example, there are specific extensions for Bluetooth 4.0, and for more SD card slots for additional storage.

Troubleshooting Linux installation issues

In this last section of the chapter, we are going to see what can go wrong when configuring your board and installing Linux on it. Indeed, some of the steps involved here are quite complex and many things can work out differently than expected.

How to do it...

Some of the most commonly faced issues working with the Intel Galileo board are as follows:

  • The board doesn't boot: The first thing that can happen is that the board doesn't actually boot. If no LEDs light up at all, you have some serious problems. First, make sure that the power adapter you are using is working. Then, if the problem persists, it probably means your Galileo board has a problem, and needs to be replaced.
  • Installing the Linux image failed: If you can't install the simple Linux image on an SD card, format the SD card first using your computer. It can be the case that there are files on the SD card or it was formatted using the wrong file format.
  • Installing the IoT image failed: If, for any reason, the installation of the IoT image fails, the first thing to do is repeat the procedure. Also, make sure to follow step-by-step the instructions from the Intel website, as only missing a single step can lead to a problem with the SD card.

    You can also try to reformat the SD card before following the steps from the Intel website.

  • The board cannot be accessed remotely: If you cannot log on to your board via SSH, first make sure that you are trying to access the correct IP address. Use the Intel XDK software for that. You can also try to ping the board from a terminal to make sure that it is answering network requests. Also, make sure that Bonjour is installed on your computer.
  • The package manager doesn't work: The main reason for the package manager not working is that you are not connected to the Internet. Make sure that your Internet router is configured to share Internet access across all devices connected to it.

    Also, I noticed that the Galileo board sometimes just loses Internet connectivity. To solve this problem, simply push the Reboot button on the board.

  • New packages can't be installed: If you are sure that your Internet connectivity is working, it could simply be that you are trying to install a module that is not available for the Galileo. Not all Linux packages are available, so make sure first that the desired package is available for the Intel Galileo board.
  • The board cannot be accessed via Wi-Fi: If the Wi-Fi connection doesn't work, first make sure that the Wi-Fi extension board is correctly connected to the board. If the board doesn't show up on the Galileo board interface (as wlan0), there might be a hardware problem with the extension board.
Left arrow icon Right arrow icon

Description

Arduino is an electronic prototyping platform used by millions of people around the world. Intel Galileo is fully Arduino compatible; hence it combines the high performance of Intel with the simplicity of Arduino Software Development Environment. This makes it the ideal platform to build exciting projects, especially in the field of web-based connected applications and the Internet of Things. The book features several recipes all based on the Intel Galileo board, and that exploit the powerful features of the board. Each chapter explores a given field using the Galileo board. The book is mainly divided in three parts. The first part is all about learning the basics of the Intel Galileo board, but it uses some of the powerful features of the board such as connecting external sensors and complex hardware devices, compared with more basic Arduino boards. Then, the book dives into the topics related to networking and the Internet of Things. You will learn how to run a web server on the board and log data using a cloud-based service. Finally, the book ends with a chapter that aims to build a complete home automation hub using the Galileo board. This chapter uses everything that was learned in the book to make a home automation system using the Galileo board and Arduino.

Who is this book for?

If you have already worked on ARM boards like Arduino, but now want to learn Intel Galileo, then this book is for you. Knowledge of C programming language is required.

What you will learn

  • Set up your Galileo board for the Internet of Things
  • Connect external sensors to the Intel Galileo
  • Create and run a web server on the Galileo board
  • Control hardware devices from the Galileo
  • Host webbased applications on the Intel Galileo
  • Monitor data from the cloud using the Galileo
  • Build a complete home automation hub using the Galileo board
Estimated delivery fee Deliver to Bulgaria

Premium delivery 7 - 10 business days

€25.95
(Includes tracking information)

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Aug 26, 2015
Length: 174 pages
Edition : 1st
Language : English
ISBN-13 : 9781785281198
Vendor :
Intel
Languages :
Concepts :
Tools :

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Estimated delivery fee Deliver to Bulgaria

Premium delivery 7 - 10 business days

€25.95
(Includes tracking information)

Product Details

Publication date : Aug 26, 2015
Length: 174 pages
Edition : 1st
Language : English
ISBN-13 : 9781785281198
Vendor :
Intel
Languages :
Concepts :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 98.97
Internet of things with Intel Galileo
€24.99
Intel Galileo Networking Cookbook
€36.99
Intel Galileo Blueprints
€36.99
Total 98.97 Stars icon
Banner background image

Table of Contents

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

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Full star icon Full star icon 5
(1 Ratings)
5 star 100%
4 star 0%
3 star 0%
2 star 0%
1 star 0%
ruben Sep 12, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This is a great book, it is divided in three parts the fisrt one explains everything about the board the main things about the configuration of the board, I congratulate the author because He explains very straight.In the second part it covers all the practices about networking with the boardit helps me how to configure the Galileo Arduino board like a web server, how to control the galileo from a remote place, how to connect sensors to the analig inputs, it is a great chapter because it has all the necesary to work in a network environment this information is very important because this board has the powerful of working as a networking device to control and monitor a real process.in the third part is a great section because explains how to make a home automation system using this galileo board. I like this information it has explained everything together, this chapter includes all the sections that the books has with all the information I can make the project.I want to congratulate Marco Schwartz because of his book it has helped a lot in my classes, applying this in projects, sharing this information with my students. Thanks.I want to recommend this fantastic book.Wrote: Ruben Oliva Ramos
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is the delivery time and cost of print book? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela
What is custom duty/charge? Chevron down icon Chevron up icon

Customs duty are charges levied on goods when they cross international borders. It is a tax that is imposed on imported goods. These duties are charged by special authorities and bodies created by local governments and are meant to protect local industries, economies, and businesses.

Do I have to pay customs charges for the print book order? Chevron down icon Chevron up icon

The orders shipped to the countries that are listed under EU27 will not bear custom charges. They are paid by Packt as part of the order.

List of EU27 countries: www.gov.uk/eu-eea:

A custom duty or localized taxes may be applicable on the shipment and would be charged by the recipient country outside of the EU27 which should be paid by the customer and these duties are not included in the shipping charges been charged on the order.

How do I know my custom duty charges? Chevron down icon Chevron up icon

The amount of duty payable varies greatly depending on the imported goods, the country of origin and several other factors like the total invoice amount or dimensions like weight, and other such criteria applicable in your country.

For example:

  • If you live in Mexico, and the declared value of your ordered items is over $ 50, for you to receive a package, you will have to pay additional import tax of 19% which will be $ 9.50 to the courier service.
  • Whereas if you live in Turkey, and the declared value of your ordered items is over € 22, for you to receive a package, you will have to pay additional import tax of 18% which will be € 3.96 to the courier service.
How can I cancel my order? Chevron down icon Chevron up icon

Cancellation Policy for Published Printed Books:

You can cancel any order within 1 hour of placing the order. Simply contact customercare@packt.com with your order details or payment transaction id. If your order has already started the shipment process, we will do our best to stop it. However, if it is already on the way to you then when you receive it, you can contact us at customercare@packt.com using the returns and refund process.

Please understand that Packt Publishing cannot provide refunds or cancel any order except for the cases described in our Return Policy (i.e. Packt Publishing agrees to replace your printed book because it arrives damaged or material defect in book), Packt Publishing will not accept returns.

What is your returns and refunds policy? Chevron down icon Chevron up icon

Return Policy:

We want you to be happy with your purchase from Packtpub.com. We will not hassle you with returning print books to us. If the print book you receive from us is incorrect, damaged, doesn't work or is unacceptably late, please contact Customer Relations Team on customercare@packt.com with the order number and issue details as explained below:

  1. If you ordered (eBook, Video or Print Book) incorrectly or accidentally, please contact Customer Relations Team on customercare@packt.com within one hour of placing the order and we will replace/refund you the item cost.
  2. Sadly, if your eBook or Video file is faulty or a fault occurs during the eBook or Video being made available to you, i.e. during download then you should contact Customer Relations Team within 14 days of purchase on customercare@packt.com who will be able to resolve this issue for you.
  3. You will have a choice of replacement or refund of the problem items.(damaged, defective or incorrect)
  4. Once Customer Care Team confirms that you will be refunded, you should receive the refund within 10 to 12 working days.
  5. If you are only requesting a refund of one book from a multiple order, then we will refund you the appropriate single item.
  6. Where the items were shipped under a free shipping offer, there will be no shipping costs to refund.

On the off chance your printed book arrives damaged, with book material defect, contact our Customer Relation Team on customercare@packt.com within 14 days of receipt of the book with appropriate evidence of damage and we will work with you to secure a replacement copy, if necessary. Please note that each printed book you order from us is individually made by Packt's professional book-printing partner which is on a print-on-demand basis.

What tax is charged? Chevron down icon Chevron up icon

Currently, no tax is charged on the purchase of any print book (subject to change based on the laws and regulations). A localized VAT fee is charged only to our European and UK customers on eBooks, Video and subscriptions that they buy. GST is charged to Indian customers for eBooks and video purchases.

What payment methods can I use? Chevron down icon Chevron up icon

You can pay with the following card types:

  1. Visa Debit
  2. Visa Credit
  3. MasterCard
  4. PayPal
What is the delivery time and cost of print books? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela