30 Tips and Tricks for Managing and Running Ubuntu/Bash/Windows Subsystem for Linux WIN321B Orin Thomas.

Slides:



Advertisements
Similar presentations
Andrew Hennessy Automating Server Application migrations to the Cloud – Goodbye Server INF21 3.
Advertisements

Kevin Francis Developing on Windows Devices ARC33 2.
Chris Hewitt Adding magic to your business with Perceptual Intelligence ARC323 B.
Matt McSpirit Software-defined Networking in Windows Server 2016 INF32 4.
Alessandro Cardoso, Microsoft MVP Creating your own “Private Cloud” with Windows 10 Hyper- V WIN443.
Jeff Alexander & Andrew McMurray Runtime Provisioning in Windows 10 WIN327.
Jessica Payne Microsoft Global Incident Response and Recovery
Dr Greg Low Working with SQL Server Spatial Data DAT33 3.
Mike James Building a cross-platform pedometer app with Xamarin & Azure MOB334.
James Bannan Freddy vs JSON: Azure Resource Manager CLD44 3.
Nick Application Development for the Universal Windows Platform MOB225.
Orin Thomas 30 Bad Habits of Server Administrators INF32 3.
Orin EDP, EFS, BitLocker, RMS, DAC, and IPsec: Protect your files at rest and in transit. WIN341 A.
Building a Microservices solution using Docker,
Kevin Francis Big Building Blocks – a tour of Dynamics ARC323 A.
James Bannan The Cloud That Chuck Norris Built: Resilient Architecture in Azure ARC44 3.
A deep dive into Azure AD B2C
3 Ways to Integrate Business Systems to Partners
Azure ARM Templates CLD321 Aaron Saikovski
Serverless in Office 365 Build services with Azure Functions
Microsoft Ignite /5/ :32 AM
Making of the Ignite Bot
What's New in System Center Configuration Manager, Current Branch and Intune INF324a Steven Hosking.
Introduction to ASP.NET Core
The Zen of Package Management
Power BI for the Enterprise
Microsoft Virtual Academy
Conversation As a Platform - Part 1
Customizing Windows 10: Image Creation Tips and Tricks
Accelerate Windows 10 deployments through telemetry driven insights using Upgrade Analytics WIN321a Zach Dvorak.
Now, let’s implement/trial Windows Defender Advanced Threat Protection
Deploying Linux on Microsoft Public and Private cloud
Building Business Application with Office 365 and Other Line Business Systems
Using Azure Key Vault for Encrypting and Securing your Cloud Workloads
Techniques and Practices for Testing Angular
Upgrade, upgrade, upgrade! Say goodbye to clean installs of Windows 10
Microsoft Ignite /19/2018 2:35 AM
Need for Speed: Why Applications With No Database and No Services are Fast ARC334 Nick Randolph – Built to Roam.
Mastering Connectivity to O365
Building a Continuous Delivery Pipeline for ASP.NET Core Apps
Jenkins and Azure OPEN322 Michael Friedrich.
Microservices, Docker, .NET, Windows, Linux, Azure. Oh, My!
Microsoft Connect /23/2018 5:27 PM
ASP.NET in Linux and Windows containers
Microsoft Ignite /8/2018 6:39 PM
Troubleshooting Windows 10 Deployment: Top 10 Tips and Tricks
Darren Neimke and Jonathan Ruckert
Ewan MacKellar & Mario Tevanian
Build vNext in VSO and TFS 2015
What’s new in Visual Studio in 2015?
Microsoft Edge for Developers
Rob Farley, LobsterPot Solutions
Run Bash scripts from Windows 10
Application Insights:
Modern cloud PaaS for mobile apps, web sites, API's and business logic apps
Bare Metal Development for the Universal Windows Platform
Microsoft Ignite /2/2019 1:15 AM Power Up Your Cross Platform Mobile Code with Platform Specific Features using Xamarin Alec Tucker MOB331 © 2015.
Microsoft Connect /17/2019 9:55 PM
The Power of a Great API Damian Brady
What is Visual Studio Code?
Deep Dive into Azure API Apps and Logic Apps
Jonathan Ruckert & Darren Neimke
UI test automation of MVC apps with Microsoft Edge WebDriver
Chris Henley & Ben DiQual
Empower your users with Azure Active Directory Premium
5/30/2019 1:59 PM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION.
Securing ASP.NET in an Azure Environment
Microsoft Virtual Academy
Presentation transcript:

30 Tips and Tricks for Managing and Running Ubuntu/Bash/Windows Subsystem for Linux WIN321B Orin Thomas

The Basics Of Windows Subsystem for Linux 4/15/2018 9:48 AM The Basics Of Windows Subsystem for Linux WSL – Allows Linux environment above the Linux kernel to run on Windows 10 Standard Ubuntu environment available by default Can be switched with other Linux distributions Still evolving and a beta feature (not everything works) © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Why Windows Subsystem for Linux 4/15/2018 9:48 AM Why Windows Subsystem for Linux Many developers chose OSX because Gave them access to open source tools that ran natively on their computer with commercial closed source applications Tools available on Windows for interacting with some open source technologies were often unavailable or lacked functionality WSL provides almost all tools available an Ubuntu distro © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Deployment Requirements Installing WSL Removing WSL Backing up WSL 4/15/2018 9:48 AM Deployment Requirements Installing WSL Removing WSL Backing up WSL © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Navigating Windows File System 4/15/2018 9:48 AM Navigating Windows File System Accessing Windows file system from WSL /mnt/c/Users/orin/Desktop /mnt/e Where WSL lives in the Windows file system C:\Users\mtrinidad\AppData\Local\lxss C:\Users\mtrinidad\AppData\Local\lxss\home\”Linux_UserName” C:\Users\mtrinidad\AppData\Local\lxssootfs\usr\local\bin C:\Users\mtrinidad\AppData\Local\lxss\home\”Linux_Username”\PowerShell © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Updating Apt-Get: Linux Package Manager 4/15/2018 9:48 AM Updating Apt-Get: Linux Package Manager Sudo apt-get update: Refresh package availability Sudo apt-get upgrade: Upgrade current packages Sudo apt-get autoremove: Remove application and dependencies Sudo apt-get clean: Clean up apt cache © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Linux Userland Editors 4/15/2018 9:48 AM Linux Userland Editors Apt-Get Install Utility VIM PICO EMACS © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Task Management TOP HTOP PS PSTREE PGREP KILL KILLALL 4/15/2018 9:48 AM Task Management TOP HTOP PS PSTREE PGREP KILL KILLALL © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

4/15/2018 9:48 AM Shell tools TMUX © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Running Compiz on Windows 4/15/2018 9:48 AM Running Compiz on Windows Compositing Windows Manager Used by Ubuntu Requires X-Windows server that supports OpenGL © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Preparing to run Compiz 4/15/2018 9:48 AM Preparing to run Compiz Download and install VCXSRV Configure to use Fullscreen/One large Window Display number set to 0 Prepare dbus (once only) sudo sed -i's/<listen>.*<\/listen>/<listen>tcp:host=localhost,port=0<\/listen>/'/etc/dbus-1/session.conf Prepare display Export DISPLAY=localhost:0.0 Can set as an environment variable © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Configure Compiz Apt install ubuntu-desktop 4/15/2018 9:48 AM Configure Compiz Apt install ubuntu-desktop Apt install compizconfig-settings manager ccsm © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Configure Compiz (cont) 4/15/2018 9:48 AM Configure Compiz (cont) © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Run Compiz Compiz & 4/15/2018 9:48 AM © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Ubuntu Desktop and Windows: Side-by-Side 4/15/2018 9:48 AM Ubuntu Desktop and Windows: Side-by-Side Create a virtual desktop Shift between Windows and Linux by shifting virtual desktops © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Synaptic to manage packages 4/15/2018 9:48 AM Synaptic to manage packages © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Other options Can install other Linux Distros: SUSE 4/15/2018 9:48 AM Other options Can install other Linux Distros: SUSE Run other distros in a VM on Hyper-V © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Demo Orin Thomas Microsoft Ignite 2016 4/15/2018 9:48 AM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Continue your Ignite learning path 4/15/2018 9:48 AM Continue your Ignite learning path Visit Channel 9 to access a wide range of Microsoft training and event recordings https://channel9.msdn.com/ Head to the TechNet Eval Centre to download trials of the latest Microsoft products http://Microsoft.com/en-us/evalcenter/ Visit Microsoft Virtual Academy for free online training visit https://www.microsoftvirtualacademy.com © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Win a Spark After Dark drone pilot pass by completing your session evaluation ASAP  #MSAUIGNITE

Thank you Chat with me in the Speaker Lounge 4/15/2018 9:48 AM Thank you Chat with me in the Speaker Lounge © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.