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


Book Description

A practical handbook that will help you bridge the gap between Windows and Linux to develop apps that leverage the best features across both ecosystems with seamless interoperability Key FeaturesConfigure and control WSL to suit your needs and preferencesDiscover tips for working seamlessly between Windows and WSL Linux distrosLearn how to work effectively with containers in WSL, as well as how to containerize your development environments with Visual Studio Code to isolate your dependenciesBook 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. What you will learnInstall and configure Windows Subsystem for Linux and Linux distrosAccess web applications running in Linux from WindowsInvoke Windows applications, file systems, and environment variables from bash in WSLCustomize the appearance and behavior of the Windows Terminal to suit your preferences and workflowsExplore various tips for enhancing the Visual Studio Code experience with WSLInstall and work with Docker and Kubernetes within Windows Subsystem for LinuxDiscover various productivity tips for working with Command-line tools in WSLWho this book is 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.




Windows Terminal Tips, Tricks, and Productivity Hacks


Book Description

Become an efficient command-line expert by harnessing the power of the new Microsoft Windows Terminal, and learn time-saving tricks for PowerShell, WSL2, and more Key FeaturesCustomize and optimize your Windows Terminal and its shellsWork effectively on the command line with split panes, hotkeys, and automationUse PowerShell and WSL2 efficiently to build, test, and deploy applicationsBook Description Windows Terminal is a new and open-source command-line application for Windows 10, built for the Command Prompt, PowerShell, Windows Subsystem for Linux, and more. It's fast, modern, and configurable thanks to its GPU-accelerated rendering, excellent UTF-8 support, and JSON-based configurability, and this book can help you learn how to leverage these features. You’ll start by learning the benefits of Windows Terminal and its open-source development, as well as how to use the built-in tabs, panes, and key bindings to build your own efficient terminal workflows. After you’ve mastered Windows Terminal, this book shows how to use and configure PowerShell Core and the Windows Subsystem for Linux within Windows Terminal. You’ll maximize your productivity using powerful tools such as PSReadLine for PowerShell and ZSH on Linux, and discover useful tips and tricks for common developer tools like Git and SSH. Finally, you’ll see how Windows Terminal can be used in common development and DevOps tasks, such as developing frontend JavaScript applications and backend REST APIs, and managing cloud-based systems like Amazon Web Services (AWS), Microsoft Azure, and Google Cloud. By the end of this book, you'll not only be well-versed with Windows Terminal, but also have learned how to effectively use shells like PowerShell Core and ZSH to become proficient at the command line. What you will learnInstall, update, and use Windows Terminal and its preview versionCustomize your Windows Terminal to be both visually appealing and functionalEnable and effectively use the latest versions of PowerShell Core and Windows Subsystem for LinuxInstall and configure time-saving tools for the command lineWork efficiently with common developer tools such as Git and SSHBuild, deploy, and manage apps in the cloud using Windows TerminalUse Linux tools from Windows with easeWho this book is for This book is for developers, DevOps engineers, and sysadmins who want to become advanced command-line power users. Whether you're new to the command line or you already use Windows PowerShell every day, this book will have something for you.




Extending and Modifying LAMMPS Writing Your Own Source Code


Book Description

Understand the LAMMPS source code and modify it to meet your research needs, and run simulations for bespoke applications involving forces, thermostats, pair potentials and more with ease Key FeaturesUnderstand the structure of the LAMMPS source codeImplement custom features in the LAMMPS source code to meet your research needsRun example simulations involving forces, thermostats, and pair potentials based on implemented featuresBook Description LAMMPS is one of the most widely used tools for running simulations for research in molecular dynamics. While the tool itself is fairly easy to use, more often than not you'll need to customize it to meet your specific simulation requirements. Extending and Modifying LAMMPS bridges this learning gap and helps you achieve this by writing custom code to add new features to LAMMPS source code. Written by ardent supporters of LAMMPS, this practical guide will enable you to extend the capabilities of LAMMPS with the help of step-by-step explanations of essential concepts, practical examples, and self-assessment questions. This LAMMPS book provides a hands-on approach to implementing associated methodologies that will get you up and running and productive in no time. You'll begin with a short introduction to the internal mechanisms of LAMMPS, and gradually transition to an overview of the source code along with a tutorial on modifying it. As you advance, you'll understand the structure, syntax, and organization of LAMMPS source code, and be able to write your own source code extensions to LAMMPS that implement features beyond the ones available in standard downloadable versions. By the end of this book, you'll have learned how to add your own extensions and modifications to the LAMMPS source code that can implement features that suit your simulation requirements. What you will learnIdentify how LAMMPS input script commands are parsed within the source codeUnderstand the architecture of the source codeRelate source code elements to simulated quantitiesLearn how stored quantities are accessed within the source codeExplore the mechanisms controlling pair styles, computes, and fixesModify the source code to implement custom features in LAMMPSWho this book is for This book is for students, faculty members, and researchers who are currently using LAMMPS or considering switching to LAMMPS, have a basic knowledge of how to use LAMMPS, and are looking to extend LAMMPS source code for research purposes. This book is not a tutorial on using LAMMPS or writing LAMMPS scripts, and it is assumed that the reader is comfortable with the basic LAMMPS syntax. The book is geared toward users with little to no experience in source code editing. Familiarity with C++ programming is helpful but not necessary.




Pro Windows Subsystem for Linux (WSL)


Book Description

Everything a developer needs to know in order to hit the ground running with Windows Subsystem for Linux (WSL)! Since its release, Windows Subsystem for Linux (WSL) has seen great gains in popularity, moving from curious early adopters to wide scale interest from teams at large enterprises. This authoritative guide to WSL covers the gamut, introducing developers to architecture, installation, and the command line, all the way to advanced configurations. Practical use cases are sprinkled throughout to reinforce understanding. This book is design to efficiently and effectively get developers comfortable using this exciting set of open source tools- tools that are uniquely suited to cloud-based development and management workflows on Windows, including Azure. Windows developers will begin with the basics of installation and then be introduced to a vast library of open source tools that they can integrate into their own workflows, using their existing development tools, like Code, Visual Studio, and JetBrains IDEs, or they can explore new ones like GNOME Builder or KDevelop. This book also covers the topic of cross-platform development of Windows and Linux applications, with tools built into Visual Studio and cross-platform libraries from WSL distros. Expert author Hayden Barnes firmly believes that much of what WSL is, is what developers make of it, a guiding mantra that is reinforced throughout this valuable cross platform learning journey. Developers will get excited about the many new opportunities at their fingertips and be astounded at what they can do and achieve with WSL. What You Will Learn How to install and configure WSL, a unique and novel configuration process Understand the Linux command line, including utilities such as the file system, a text editor, shell scripting, and installing packages Receive an unbiased overview of WSL, its architecture, installation, the command line, practical use cases, and advanced configuration. Create a development workstation using WSL. Compare and contrast the differences between WSL 1 and WSL 2 Explore, in depth, some of the more popular workflows in WSL Consider and plan key factors for a large scale deployment of WSL This book is for developers who need to know learn WSL and how to build a development stack, integrating it with their preferred code editor or IDE if they so choose. Existing Windows and Linux system administrators will learn how to install, deploy, and manage WSL. Power users who are comfortable in a command line, but may be new to Linux or WSL, may also find this book useful.




Learn Windows Subsystem for Linux


Book Description

Become productive with seamless interoperability between Windows and the Linux subsystem, and understand the problems that Windows Subsystem for Linux (WSL) solves. Microsoft has pushed the boundaries of open source research with WSL and you don't want to miss this ride. You will learn keywords, definitions, new features, setup, and use cases around WSL, starting from downloading to setup to interoperability between Windows and Linux subsystems. You will understand the architecture of WSL and all the new features in WSL 2. This book includes wonderful use cases, including a dedicated chapter to how to start programming and web development on WSL, and the ability to use containerization solutions like Docker and Kubernetes. WSL is a great solution to work natively in a Linux environment from your Windows 10 machines. Modern applications demand integration of cross-platform tools, services and technologies. WSL makes life for developers and system administrators easy because it allows Linux applications to run on Windows without worrying about installing a Linux distribution on a traditional Virtual Machine. It is remarkable product with powerful functionality – get started with it using this book today. What You'll Learn Review the workings and internals of WSL and WSL2 Run Linux-based applications natively on Windows Establish your development environment in WSL Build mixed experiences (Windows-Linux) Set up and manage WSL and supported distribution packages. Who This Book Is For Programmers, web developers and system administrators working on Windows and Linux environments who want to bridge the gap between operating systems by running a Linux as a subsystem on Windows to boost their overall productivity, performance and delivery.




Adopting .NET 5


Book Description

A practical guide to building and upgrading new and legacy applications on cloud-native platforms using architectural best practices with .NET 5, C# 9, microservices, and ML.NET Key FeaturesGet up to speed with .NET 5's new improvements and featuresDiscover how to improve existing code design and enhance software maintainabilityExplore explanations and techniques for making programs easier to understand and changeBook Description .NET 5 is the unification of all .NET technologies in a single framework that can run on all platforms and provide a consistent experience to developers, regardless of the device, operating system (OS), or cloud platform they choose. By updating to .NET 5, you can build software that can quickly adapt to the rapidly changing demands of modern consumers and stay up to date on the latest technology trends in .NET. This book provides a comprehensive overview of all the technologies that will form the future landscape of .NET using practical examples based on real-world scenarios, along with best practices to help you migrate from legacy platforms. You’ll start by learning about Microsoft’s vision and rationale for the unification of the platforms. Then, you’ll cover all the new language enhancements in C# 9. As you advance, you’ll find out how you can align yourself with modern technology trends, focusing on everything from microservices to orchestrated containerized deployments. Finally, you’ll learn how to effectively integrate machine learning in .NET code. By the end of this .NET book, you’ll have gained a thorough understanding of the .NET 5 platform, together with a readiness to adapt to future .NET release cycles, and you’ll be able to make architectural decisions about porting legacy systems and code bases to a newer platform. What you will learnExplore the key performance improvement areas when migrating to modern architecturesUnderstand app design and development using .NET 5Discover how to shift from legacy to modern application design using microservices and cloud-native architectureExplore common migration pitfalls and make the right decisions in situations where multiple options are availableUnderstand the process of deploying .NET 5 code on serverless and containerized hosts, along with its benefitsFind out what ML.NET has to offer and build .NET apps that use machine learning servicesWho this book is for This book is for experienced developers as well as software architects who are looking to gain knowledge of the new features and capabilities of .NET 5, along with guidance on modern architectural patterns. If you’re a developer who has previously worked on .NET, WPF, ASP.NET, Entity Framework, or other popular .NET libraries, this book will help you understand the migration process for their modern counterparts. Although experience with .NET Core is not required, working knowledge of the C# language and .NET framework is assumed.




IntelliJ IDEA Essentials


Book Description

This book is for developers who want to work smarter so they can focus their efforts on the details that will give them the advantage. This book is tailor-made for developers who want to move from NetBeans and Eclipse to experience the power and functionality of IntelliJ IDEA.




Kafka: The Definitive Guide


Book Description

Every enterprise application creates data, whether it’s log messages, metrics, user activity, outgoing messages, or something else. And how to move all of this data becomes nearly as important as the data itself. If you’re an application architect, developer, or production engineer new to Apache Kafka, this practical guide shows you how to use this open source streaming platform to handle real-time data feeds. Engineers from Confluent and LinkedIn who are responsible for developing Kafka explain how to deploy production Kafka clusters, write reliable event-driven microservices, and build scalable stream-processing applications with this platform. Through detailed examples, you’ll learn Kafka’s design principles, reliability guarantees, key APIs, and architecture details, including the replication protocol, the controller, and the storage layer. Understand publish-subscribe messaging and how it fits in the big data ecosystem. Explore Kafka producers and consumers for writing and reading messages Understand Kafka patterns and use-case requirements to ensure reliable data delivery Get best practices for building data pipelines and applications with Kafka Manage Kafka in production, and learn to perform monitoring, tuning, and maintenance tasks Learn the most critical metrics among Kafka’s operational measurements Explore how Kafka’s stream delivery capabilities make it a perfect source for stream processing systems




Windows 10 Inside Out (includes Current Book Service)


Book Description

This is the eBook of the printed book and may not include any media, website access codes, or print supplements that may come packaged with the bound book. Conquer today’s Windows 10—from the inside out! Dive into Windows 10—and really put your Windows expertise to work. Focusing on the most powerful and innovative features of Windows 10, this supremely organized reference packs hundreds of timesaving solutions, tips, and workarounds—all fully reflecting the major Windows 10 Anniversary Update. From new Cortana and Microsoft Edge enhancements to the latest security and virtualization features, you’ll discover how experts tackle today’s essential tasks—and challenge yourself to new levels of mastery. Install, configure, and personalize the newest versions of Windows 10 Understand Microsoft’s revamped activation and upgrade processes Discover major Microsoft Edge enhancements, including new support for extensions Use today’s improved Cortana services to perform tasks, set reminders, and retrieve information Make the most of the improved ink, voice, touch, and gesture support in Windows 10 Help secure Windows 10 in business with Windows Hello and Azure AD Deploy, use, and manage new Universal Windows Platform (UWP) apps Take advantage of new entertainment options, including Groove Music Pass subscriptions and connections to your Xbox One console Manage files in the cloud with Microsoft OneDrive and OneDrive for Business Use the improved Windows 10 Mail and Calendar apps and the new Skype app Fine-tune performance and troubleshoot crashes Master high-efficiency tools for managing Windows 10 in the enterprise Leverage advanced Hyper-V features, including Secure Boot, TPMs, nested virtualization, and containers In addition, this book is part of the Current Book Service from Microsoft Press. Books in this program will receive periodic updates to address significant software changes for 12 to 18 months following the original publication date via a free Web Edition. Learn more at https://www.microsoftpressstore.com/cbs.




Windows 10 Anniversary Update Bible


Book Description

Your all-inclusive guide to Windows 10 Anniversary Edition Windows 10 Bible, Anniversary Update presents the ultimate reference for enterprise and professional Windows 10 Anniversary Update users. From setup and settings to networking and the daily workflow, this book provides expert guidance on all aspects of the OS. Read from beginning to end for a comprehensive tour of all of the nooks and crannies, or dip in as needed to find quick answers to your most pressing issues—formatted as a reference divided into mini-tutorials, this guide delves deep into the Windows 10 Anniversary Update to walk you through every inch of functionality. Personalize your settings, desktop, and security to augment the way you work; configure Windows 10 for enterprise with remote access, groups, and Hyper-V; set up a private network for two or 20 computers, and manage security to keep your content safe—everything you need to know is explained here. This book provides clear, authoritative guidance toward every aspect of the old and new to help you take advantage of everything Windows 10 Anniversary Update has to offer. Customize your Windows 10 Anniversary Update experience Install and remove hardware and software Set up your network and configure security Manage content, connect to printers, and troubleshoot issues Clear your to-do list faster than ever with Cortana voice commands, Windows Ink, Windows Hello, and a cross-platform capability that allows you to integrate a range of platforms including tablets, phones, Raspberry Pi, and even Xbox. Even if you're an experienced user, you're probably missing out on some very cool features—let the Windows 10 Bible, Anniversary Update fill the gaps and take your Windows 10 experience to the next level.