Getting Started with Bash on Windows 10 Anniversary Update

Play Getting Started with Bash on Windows 10 Anniversary Update
Sign in to queue

Description

In this session we will cover some new features in Windows 10 and, more specifically, the addition of Bash on Ubuntu to the Windows offering. We will cover what it is and how it works on Windows, and ultimately how to get Bash up and running on Windows 10. We will also show some cool things you can do with it like setup SSH access to your Bash instance, play with colors and graphical interaction, and even setup an x11 server to run x11 apps. We will also touch on how to use Visual Studio Code with a bash shell integrated terminal right from your Windows 10 desktop, which will allow you to edit and test your shell scripts right without ever leaving the open source text editor.

Github repo for this project / demo: https://github.com/jldeen/SVCC-BashW10

  • Deck
  • Outline of commands run during demo
  • Settings.json files for VS Code for Windows, Linux, and Mac

Blog: Learn more about Azure, Cloud, OSS, Linux, PowerShell, etc. http://jessicadeen.com

Visual Studio Code Download: https://code.visualstudio.com/

Don't forget to rate, comment and subscribe!

Embed

Download

Right click to download this episode

The Discussion

  • User profile image
    CarlD

    Can the unix filesystem be placed somewhere other than AppData?

  • User profile image
    jldeen

    @CarlD:No, the Linux Subsystem for Windows installs and runs from your local app data folder.

  • User profile image
    CarlD

    Pitty - makes is unusable for me and many others. e.g. with a laptop with a small C: (SSD) and a large D: (HDD). I don't want to move AppData in general, I just want to place LARGE things elsewhere.

  • User profile image
    jldeen

    @CarlD: You can place large things in your /mnt/D if that works? I.E You can run lxss from %localappdata% but then create a symlink to your /mnt/D path for your LARGE things. Note: I haven't tested this, but the theory should work. 

  • User profile image
    CarlD

    Yes, I could place large things that I create in my /mnt/d, but that doesn't get the /lxss folder off my C: drive, which is what I was looking for. I see from the GitHub comments on LSW that this is not an uncommon issue.

  • User profile image
    mariole

    what's about the file permissions and ownership?
    what's about line ending?
    ssh X forwarding?

    Cheers

  • User profile image
    Jeremy Black

    There is an easier way to copy your key to a remote system to enabled password-less SSH that doesn't require manually creating key files and setting permissions like you show here. Here's what I do.

    ssh-keygen
    ssh-copy-id user@host -p 2021

    You will get prompted for your password the first time, but after that no more prompts. This site shows what the output looks like.

    https://linuxconfig.org/passwordless-ssh

  • User profile image
    Jeremy Black

    FYI, when changing back to your home folder, you don't need to specify any sort of path. Just type cd and nothing else and it will take you back home. cd ~ is not necessary.

Add Your 2 Cents