Wiki

Clone wiki

devoops / Windows Subsystem For Linux

Links:

Current version:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.5 LTS
Release:        14.04
Codename:       trusty

Update Ubuntu software:

#!bash
# sync package index
sudo apt update
# list all upgradable packages
apt list --upgradable
# install the newest versions of the installed packages
sudo apt upgrade
# remove unused dependency packages
sudo apt-get autoremove

Set locale:

#!bash
sudo update-locale LANG=en_US.UTF8

tmux

Use tmux in bash console.

Configuration

$ cat .tmux.conf
set-option -g prefix C-z
unbind-key C-b
bind-key C-z send-prefix

Keybindings

  • key bindings: C-z ?
  • new window: C-z c
  • delete panel: C-z b
  • exit: C-z x

SSH Keys

Generate new SSH key for this account.

Python

TODO: Install latest pip and virtualenv.

  1. how to install pip
  2. how to install virtualenv

Java 8

OpenJDK 8 Java is not available in 14.04 LTS repositories. Use Oracle Java 8 instead from webupd8

#!bash
# add the repo (only once)
sudo add-apt-repository -y ppa:webupd8team/java
sudo apt update
# install the latest Oracle Java 8 as default
sudo apt install oracle-java8-set-default
# enjoy your Java
$ java -version
java version "1.8.0_111"
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)

Updated