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
Free Learning
Arrow right icon
Windows Subsystem for Linux 2 (WSL 2) Tips, Tricks, and Techniques
Windows Subsystem for Linux 2 (WSL 2) Tips, Tricks, and Techniques

Windows Subsystem for Linux 2 (WSL 2) Tips, Tricks, and Techniques: Maximise productivity of your Windows 10 development machine with custom workflows and configurations

eBook
€15.99 €23.99
Paperback
€29.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
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
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

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

Windows Subsystem for Linux 2 (WSL 2) Tips, Tricks, and Techniques

Chapter 1: Introduction to the Windows Subsystem for Linux

In this chapter, you will learn some of the use cases for the Windows Subsystem for Linux (WSL) and start to get an idea of what WSL actually is, and how it compares to just running a Linux virtual machine. This will aid us in our understanding of the rest of the book, where we will learn all about WSL and how to install and configure it, as well as picking up tips for getting the most from it for your developer workflows.

With WSL, you can run Linux utilities on Windows to help get your work done. You can build Linux applications using native Linux tooling such as debuggers, opening up a world of projects that only have Linux-based build systems. Many of these projects also produce Windows binaries as an output but are otherwise hard for Windows developers to access and contribute to. But because WSL gives you the combined power of Windows and Linux, you can do all of this and still use your favorite Windows utilities as part of your flow.

This book focuses on version 2 of WSL, which is a major reworking of the feature and this chapter will give you an overview of how this version works as well as how it compares to version 1.

In this chapter, we will cover the following topics in particular:

  • What is WSL?
  • Exploring the differences between WSL 1 and 2

So, let's begin by defining WSL!

What is WSL?

At a high level, WSL provides the ability to run Linux binaries on Windows. The desire to run Linux binaries has been around for many years, at least if the existence of projects such as Cygwin (https://cygwin.com ) is anything to go by. According to its homepage, Cygwin is 'a large collection of GNU and Open Source tools which provide functionality similar to a Linux distribution on Windows'. To run Linux application on Cygwin, it needs to be rebuilt from source. WSL provides the ability to run Linux binaries on Windows without modification. This means that you can grab the latest release of your favorite application and work with it immediately.

The reasons for wanting to run Linux applications on Windows are many and varied and include the following:

  • You are currently using Windows but have experience and familiarity with Linux applications and utilities.
  • You are developing on Windows but targeting Linux for the deployment of your application (either directly or in containers).
  • You are using developer stacks where the ecosystem has a stronger presence on Linux, for example, Python, where some libraries are specific to Linux.

Whatever your reason for wanting to run Linux applications on Windows, WSL brings you this capability and does so in a new and productive way. Whilst it has been possible to run a Linux virtual machine (VM) in Hyper-V for a long time, running a VM introduces some barriers to your workflow.

For example, starting a VM takes enough time for you to lose your flow of thought and requires a dedicated amount of memory from the host machine. Additionally, the file system in a VM is dedicated to that VM and isolated from the host. This means that accessing files between the Windows host and Linux VM requires setting up Hyper-V features for Guest Integration Services or setting up traditional network file sharing. The isolation of the VM also means that processes inside and outside the VM have no easy way to communicate with each other. Essentially, at any point in time, you are either working in the VM or outside of it.

When you first launch a terminal using WSL, you have a terminal application in Windows running a Linux shell. In contrast to the VM experience, this seemingly simple difference already integrates better into workflows as it is easier to switch between windows on the same machine than between applications on Windows and those in a VM session.

However, the work in WSL to integrate the Windows and Linux environments goes further. Whereas the file systems are isolated by design in a VM, with the WSL file system access is configured for you by default. From Windows, you can access a new \\wsl$\ networked file share that is automatically available for you when the WSL is running and provides access to your Linux file systems. From Linux, your local Windows drives are automatically mounted for you by default. For example, the Windows C: drive is mounted as /mnt/c.

Even more impressively, you can invoke processes in Linux from Windows and vice versa. As an example, as part of a Bash script in the WSL, you can invoke a Windows application and process the output from that application in Linux by piping it to another command, just as you would with a native Linux application.

This integration goes beyond what can be achieved with traditional VMs and creates some amazing opportunities for integrating the capabilities of Windows and Linux into a single, productive environment that gives you the best of both worlds!

The integration that has been achieved between the Windows host and the Linux VM environments with WSL is impressive. However, if you have used WSL 1 or are familiar with how it works, you may have read the previous paragraphs and wondered why WSL 2 moved away from the previous architecture, which didn't use a VM. In the next section, we'll take a brief look at the different architectures between WSL 1 and WSL 2 and what the use of a VM unlocks despite the extra challenges the WSL team faced to create the level of integration that we have just seen.

Exploring the differences between WSL 1 and 2

While this book discusses version 2 of the Windows Subsystem for Linux (WSL 2), it is helpful to briefly look at how version one (WSL 1) works. This will help you to understand the limitations of WSL 1 and provide context for the change in architecture in WSL 2 and the new capabilities that this unlocks. This is what will be covered in this section, after which the remainder of the book will focus on WSL 2.

Overview of WSL 1

In the first version of WSL, the WSL team created a translation layer between Linux and Windows. This layer implements Linux syscalls on top of the Windows kernel and is what enables Linux binaries to run without modification; when a Linux binary runs and makes syscalls, it is the WSL translation layer that it is invoking and that makes the conversion into calls to the Windows kernel. This is shown in the following figure:

Figure 1.1 – Outline showing the WSL 1 translation layer

Figure 1.1 – Outline showing the WSL 1 translation layer

In addition to the translation layer, there was also investments made to enable other capabilities such as file access between Windows and WSL and the ability to invoke binaries between the two systems (including capturing the output). These capabilities help to build the overall richness of the feature.

The creation of the translation layer in WSL 1 was a bold move and opened up new possibilities on Windows, however, not all of the Linux syscalls are implemented and Linux binaries can only run if all the syscalls they require are implemented. Fortunately, the syscalls that are implemented allow a wide range of applications to run, such as Python and Node.js.

The translation layer was responsible for bridging the gap between the Linux and Windows kernels and this posed some challenges. In some cases, bridging these differences added performance overhead. Applications that performed a lot of file access ran noticeably slower on WSL 1; for example, due to the overhead of translating between the Linux and Windows worlds.

In other cases, the differences between Linux and Windows run deeper and it is harder to see how to reconcile them. As an example, on Windows attempting to rename a directory when a file contained within it has been opened results in an error, whereas on Linux the rename can be successfully performed. In cases such as this, it is harder to see how the translation layer could have resolved the difference. This led to some syscalls not being implemented, resulting in some Linux applications that just couldn't be run on WSL 1. The next section looks at the changes made in WSL 2 and how they address this challenge.

Overview of WSL 2

As impressive a feat as the WSL 1 translation layer was, it was always going to have performance challenges and syscalls that were hard or impossible to implement correctly. With WSL 2, the WSL team went back to the drawing board and came up with a new solution: a virtual machine! This approach avoids the translation layer from WSL 1 by running the Linux kernel:

Figure 1.2 – Outline showing the WSL 2 architecture

Figure 1.2 – Outline showing the WSL 2 architecture

When you think of a virtual machine, you probably think of something that is slow to start (at least compared to starting a shell prompt), takes a big chunk of memory when it starts up, and runs in isolation from the host machine. On the face of it, using virtualization for WSL 2 might seem unexpected after the work put in to bring the two environments together in WSL 1. In fact, the capability to run a Linux VM has long existed on Windows. So, what makes WSL 2 different from running a virtual machine?

The big differences come with the use of what the documentation refers to as a Lightweight utility virtual machine (see https://docs.microsoft.com/en-us/windows/wsl/wsl2-about). This virtual machine has a rapid startup that only consumes a small amount of memory. As you run processes that require memory, the virtual machine dynamically grows its memory usage. Better still, as that memory is freed within the virtual machine, it is returned to the host!

Running a virtual machine for WSL 2 means that it is now running the Linux kernel (the source code for it is available at https://github.com/microsoft/WSL2-Linux-Kernel). This in turn means that the challenges faced by the WSL 1 translation layer are removed: performance and syscall compatibility are both massively improved in WSL 2.

Coupled with the work to preserve the overall experience of WSL 1 (interoperability between Windows and Linux), WSL 2 presents a positive step forward for most scenarios.

For most use cases, WSL 2 will be the preferred version due to compatibility and performance, but there are a couple of things worth noting. One of these is that (at the time of writing) the generally available version of WSL 2 doesn't support GPU or USB access (full details at https://docs.microsoft.com/en-us/windows/wsl/wsl2-faq#can-i-access-the-gpu-in-wsl-2-are-there-plans-to-increase-hardware-support). GPU support was announced at the Build conference in May 2020, and at the time of writing is available through the Windows Insiders Program (https://insider.windows.com/en-us/).

Another consideration is that because WSL 2 uses a virtual machine, applications running in WSL 2 will connect to the network via a separate network adapter from the host (which has a separate IP address). As we will see in Chapter 5, Linux to Windows Interoperability, the WSL team has made investments in network interoperability to help reduce the impact of this.

Fortunately, WSL 1 and WSL 2 can be run side by side so if you have a particular scenario where WSL 1 is needed, you can use it for that and still use WSL 2 for the rest.

Summary

In this chapter, you saw what WSL is and how it differs from the experience of a traditional VM by allowing integration between file systems and processes across the Windows and Linux environments. You also saw an overview of the differences between WSL 1 and WSL 2 and why, for most cases, the improved performance and compatibility make WSL 2 the preferred option.

In the next chapter, you will learn how to install and configure WSL and Linux distributions.

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Configure and control WSL to suit your needs and preferences
  • Discover tips for working seamlessly between Windows and WSL Linux distros
  • Learn how to work effectively with containers in WSL, as well as how to containerize your development environments with Visual Studio Code to isolate your dependencies

Description

Windows Subsystem for Linux (WSL) allows you to run native Linux tools alongside traditional Windows applications. Whether you’re developing applications across multiple operating systems or looking to add more tools to your Windows environment, WSL offers endless possibilities. You’ll start by understanding what WSL is and learn how to install and configure WSL along with different Linux distros. Next, you'll learn techniques that allow you to work across both Windows and Linux environments. You’ll discover how to install and customize the new Windows Terminal. We'll also show you how to work with code in WSL using Visual Studio Code (VS Code). In addition to this, you’ll explore how to work with containers with Docker and Kubernetes, and how to containerize a development environment using VS Code. While Microsoft has announced support for GPU and GUI applications in an upcoming release of WSL, at the time of writing these features are either not available or only in early preview releases. This book focuses on the stable, released features of WSL and giving you a solid understanding of the amazing techniques that you can use with WSL today. By the end of this book, you’ll be able to configure WSL and Windows Terminal to suit your preferences, and productively use Visual Studio Code for developing applications with WSL.

Who is this book for?

This book is for developers who want to use Linux tools on Windows, including Windows-native programmers looking to ease into a Linux environment based on project requirements or Linux developers who've recently switched to Windows. This book is also for web developers working on open source projects with Linux-first tools such as Ruby or Python, or developers looking to switch between containers and development machines for testing apps. Prior programming or development experience and a basic understanding of running tasks in bash, PowerShell, or the Windows Command Prompt will be required.

What you will learn

  • Install and configure Windows Subsystem for Linux and Linux distros
  • Access web applications running in Linux from Windows
  • Invoke Windows applications, file systems, and environment variables from bash in WSL
  • Customize the appearance and behavior of the Windows Terminal to suit your preferences and workflows
  • Explore various tips for enhancing the Visual Studio Code experience with WSL
  • Install and work with Docker and Kubernetes within Windows Subsystem for Linux
  • Discover various productivity tips for working with Command-line tools in WSL

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Oct 23, 2020
Length: 246 pages
Edition : 1st
Language : English
ISBN-13 : 9781800563520
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
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
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Oct 23, 2020
Length: 246 pages
Edition : 1st
Language : English
ISBN-13 : 9781800563520
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 109.97
Mastering Windows Security and Hardening
€41.99
Windows Subsystem for Linux 2 (WSL 2) Tips, Tricks, and Techniques
€29.99
40 Algorithms Every Programmer Should Know
€37.99
Total 109.97 Stars icon
Banner background image

Table of Contents

15 Chapters
Section 1: Introduction, Installation, and Configuration Chevron down icon Chevron up icon
Chapter 1: Introduction to the Windows Subsystem for Linux Chevron down icon Chevron up icon
Chapter 2: Installing and Configuring the Windows Subsystem for Linux Chevron down icon Chevron up icon
Chapter 3: Getting Started with Windows Terminal Chevron down icon Chevron up icon
Section 2:Windows and Linux – A Winning Combination Chevron down icon Chevron up icon
Chapter 4: Windows to Linux Interoperability Chevron down icon Chevron up icon
Chapter 5: Linux to Windows Interoperability Chevron down icon Chevron up icon
Chapter 6: Getting More from Windows Terminal Chevron down icon Chevron up icon
Chapter 7: Working with Containers in WSL Chevron down icon Chevron up icon
Chapter 8: Working with WSL Distros Chevron down icon Chevron up icon
Section 3: Developing with the Windows Subsystem for Linux Chevron down icon Chevron up icon
Chapter 9: Visual Studio Code and WSL Chevron down icon Chevron up icon
Chapter 10: Visual Studio Code and Containers Chevron down icon Chevron up icon
Chapter 11: Productivity Tips with Command-Line Tools Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.6
(8 Ratings)
5 star 62.5%
4 star 37.5%
3 star 0%
2 star 0%
1 star 0%
Filter icon Filter
Top Reviews

Filter reviews by




Healthy Shopper Dec 30, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Well written.
Amazon Verified review Amazon
Lirp Dec 29, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Straight forward, make a BACKUP of your entire system before ATTEMPTING anything, and experimenting/playing with you OS. Lesson learned the hard way. I was Very Very fortunate it did a complete system backup to a stand alone HD, & Gold high GB, DVD R/RW. If your system does not have a OPTIC, built in, buy a stand alone one, I only buy CD/DVD, ORIGINAL SYSTEM add on programs, saved my life thousands of times. Stay AWAY from online download program instead purchases. I WOULD NOT RECOMMEND a FLASH or USB device for a full emergency backup as things can get messy with interfacing, talking to each other, if you screw up bad.
Amazon Verified review Amazon
Fernando Rolnik Nov 01, 2020
Full star icon Full star icon Full star icon Full star icon Full star icon 5
As a DevOps professional, I used to work with Linux and Windows in dual boot. Since Microsoft has launched WSL2, I completely switched over to Windows. WSL 2 Tips, Tricks, and Techniques book offers the perfect knowledge. I was unaware of some superpowers it offers. This book provides PRO tips for experienced users and guidance for new users.Experienced users will find WSL insights to increase productivity and be able to take advantage of new things such as pipe Linux command output on Windows commands and vice versa, hence improving DevOps workflows.New users will quickly learn how to set up a fancy environment to work with Linux and Windows altogether, without having to reboot the computer, while it gives historical context for everyone. Furthermore, it has tips on how to customize your terminal and seamlessly use Docker.In summary, this book will turn you into a WSL superhero, and it will encourage IT professionals that use Linux or Mac users to switch to Windows 10 with WSL2 to enjoy the best of the two worlds.
Amazon Verified review Amazon
Mike Loux Feb 03, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Disclaimer: I was asked to review this book by the publishers, and received an electronic copy. I am always brutally honest in my reviews, and will not be otherwise here.The Preface says: "This book is for developers who want to use Linux tools on Windows," and they follow-through on their promise. It was written for people who are familiar with Windows and/or Linux and software development in general, but is still done so in an accessible manner, in case you are (like me) a bit rusty on either environment.I am a software developer by trade, and have been so for over 25 years, but I have not done a lot in Linux in recent memory (It's all been Windows and .NET, with a focus on PowerShell in the past year when I switched jobs). I had no problem following the book. I found the conventions and formatting to be excellent - code is clearly denoted as such, and the instructions were very easy to follow.I had already set up a WSL2 environment late this past year, but it was nice to be able to go through the chapters and see what I did right or wrong (more of the former, less of the latter, thankfully). And I definitely learned quite a bit during the read - I didn't know about the drive or command mappings between the two environments, so this has been a learning experience.At the time of this review, I am only about halfway through the book - I am fiddling around with the Docker examples, and those will prove very useful to me as we use Docker at my place of employment. Looking forward to finishing the book and leveraging the rest of the information.I really don't have much bad to say at all about what I have read so far. There were a few errata, but that sort of thing is to be expected in a book of this size, and I imagine someone has already reported those. And given that Windows Terminal is still in active development (and the preferences file has already undergone a big change), I expect that section of the book will become obsolete fairly quickly.Also, when attempting to convert my Linux distros from WSL1 to WSL2 last fall, I did encounter some errors, and it would have been nice to see more troubleshooting tips in the book on what happens if you encounter this sort of thing (in my case, it seems to have stemmed from an incompatibility with Cisco AnyConnect VPN software - at any rate, it seems to have resolved itself after a couple of Windows updates).That being said, I don't see any of the above detractors as being enough to ding the review any stars - this is an excellent book, and I would have no problem recommending it to anyone who wants to do a deep-dive on WSL2.
Amazon Verified review Amazon
Brady Gaster Dec 08, 2020
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Full disclaimer: I was asked by the publisher and author to review this book, but was excited to do so as I am a Mac user who uses Windows in a VM for developing and who has longed for a deeper understanding of how to use WSL in a development environment.Overview: This book is for anyone who develops on Windows, but who prefers a bash and/or Linux terminal environment for deeper interfacing during development time. I am primarily a Mac and Linux user, but I do a lot of work inside of a VM using Visual Studio, and as such, also need to use the terminal for working with .NET CLI, Azure CLI, and Docker. So whilst I prefer the idea of a Linux terminal, I'd not yet had the time to "go deep" with WSL. This book offers that - and far more - to anyone who wants the Linux experience on Windows.Written with PersonalityThe author is honest and engaging, and having seen him at conferences, his voice comes through in the text. There are numerous historical items and interesting side-notes, like the naming format for Windows versions and other little anecdotes early on. Web developers will pick up on some of the easter egg jokes in the text as well, and it keeps the book's pace right on point.Deep with DetailsThe book covers a wide swath of topics you'd imagine someone using WSL on Windows would need to know how to do - pathing both directions, interacting with PowerShell (and back again) from the host OS, and so on. At interesting points there are small tidbits of information that are utilitarian but ubiquitous; right at the end of Chapter 4, the author provides a small demo of how to "hit localhost" from within a WSL environment. The timing was perfect - as a web developer myself, I'd begun just prior to this segment to become concerned about the "virtualness" of the WSL 2.0 environment and wondered if it'd impact my own web development efforts, so it was a welcome aside, and right-on-time. This book is *crucial* library material for someone who would be developing on Windows but who needs to "swap back and forth" between their traditional PowerShell environment and the WSL environment.HUGE Developer Productivity TipsThe chapters that cover productivity tips for developing using WSL are fantastic, as are those on getting Docker containers and Kubernetes set up. The book takes a very deliberate approach to guiding you through the process of getting not only the container-execution and hosting environment up and running, but also through the process of configuring Visual Studio Code to work seamlessly with those containers and orchestration environments. I was specifically excited to see the book call out how to use jq, as that's one of the terminal tools I can't live without, so seeing it in the book was a nice addition.Ideas for ImprovementThe book would benefit from having a "setup" phase in which the reader is walked through emulating the exact UI experience as the screen shots. I found myself wanting to emulate that *to the letter* as I am a ZSH user who adopted a similar terminal style some years ago. As such, it would be great if one of the chapters in the accompanying download represented "how to make your experience look just like the book's experience." I may have missed it, too, but I don't think I saw any mention of how to use the Visual Studio Code tools for Kubernetes in the book - that's a great extension that I think would serve the book (or a second edition) rather well.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.