You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Install hyper.is Hyper was pretty slow even in typing responsiveness. I switched to just using the out-of-the-box Debian WSL terminal and tmux for tabs (see tmux section below)
Run the following:
sudo apt update && sudo apt upgrade
sudo apt-get install zsh
sudo apt-get install git
# setup zsh
zsh
# ensure it's the default $SHELL before installing oh my zsh by using change shell command
# it will prompt you and then enter /bin/zsh
chsh
# install curl
sudo apt-get install curl
# install oh my zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
Add this to .zshrc for making making vi mode default
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update
Ign:1 http://deb.debian.org/debian stretch InRelease
Get:2 http://security.debian.org/debian-security stretch/updates InRelease [94.3 kB]
Get:3 http://deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Get:4 http://prerelease.keybase.io/deb stable InRelease [2,407 B]
Hit:5 http://deb.debian.org/debian stretch Release
Get:6 http://prerelease.keybase.io/deb stable/main amd64 Packages [381 B]
Get:7 https://packages.microsoft.com/repos/azure-cli stretch InRelease [2,812 B]
Hit:8 https://deb.nodesource.com/node_9.x stretch InRelease
Get:9 http://deb.debian.org/debian stretch-updates/main amd64 Packages.diff/Index [4,180 B]
Get:10 http://deb.debian.org/debian stretch-updates/main amd64 Packages 2018-05-05-2031.58.pdiff [329 B]
Get:10 http://deb.debian.org/debian stretch-updates/main amd64 Packages 2018-05-05-2031.58.pdiff [329 B]
Get:11 http://security.debian.org/debian-security stretch/updates/main amd64 Packages [353 kB]
Get:12 http://security.debian.org/debian-security stretch/updates/main Translation-en [165 kB]
Err:7 https://packages.microsoft.com/repos/azure-cli stretch InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 123
Fetched 713 kB in 17s (40.8 kB/s)
Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packages.microsoft.com/repos/azure-cli stretch InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 123
W: Failed to fetch https://packages.microsoft.com/repos/azure-cli/dists/stretch/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EB3E94ADBE1229CF
W: Some index files failed to download. They have been ignored, or old ones used instead.
This post told me to run the following and it worked:
I had apparently installed the Debian stretch Linux distro instead of the Ubuntu one so I had to use these commands instead (I got E: Failed to fetch https://download.docker.com/linux/ubuntu/dists/stretch/stable/binary-amd64/Packages 404 Not Found when I ran the command from the post):
➜ ~ sudo apt-get update
# ... stuff installing this:
Setting up packagekit (1.1.5-2+deb9u1) ...
invoke-rc.d: could not determine current runlevel
[....] Reloading system message bus config...Failed to open connection to "system" message bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
invoke-rc.d: initscript dbus, action "force-reload" failed.
Failed to open connection to "system" message bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
Googling the error I found this closed issue and this open issue. Gonna try to just do the rest of the steps.
➜ ~ sudo apt-get install \
> apt-transport-https \
> ca-certificates \
> curl \
> gnupg2 \
> software-properties-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
apt-transport-https is already the newest version (1.4.8).
ca-certificates is already the newest version (20161130+nmu1+deb9u1).
curl is already the newest version (7.52.1-5+deb9u8).
gnupg2 is already the newest version (2.1.18-8~deb9u3).
software-properties-common is already the newest version (0.96.20.2-1).
0 upgraded, 0 newly installed, 0 to remove and 37 not upgraded.
Windows Key and then typed "about". Under "Windows specifications" I see "Version 1803" which means I have Windows 18.03 (Spring 2018) version which means I can configure WSL to change the mount path to be compatible with docker volumes.
~ docker info
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
~ docker -H $DOCKER_HOST info
Containers: 2
Running: 0
Paused: 0
Stopped: 2
Images: 0
Server Version: 18.09.1
...
Not sure why. It's like it's not picking up the environment variable when I do docker info without explicitly specifying the hose.
I found this other blog post and everything looked pretty much the same. I decided to try
~ docker run -i -t -v $(pwd):/app/ -w /app/ hashicorp/terraform:light init
... image pulling output and then...
docker: image operating system "linux" cannot be used on this platform.
I found this forum post and tried this in PS console: