Update deploy-from-windows.md (#1296)

This commit is contained in:
Selim Şumlu 2019-01-15 06:23:48 +03:00 committed by Jack Ivanov
parent 11ed8b8f30
commit 743628d602
5 changed files with 22 additions and 40 deletions

View file

@ -1,11 +1,8 @@
# Windows client prerequisites # Windows client prerequisite
Before run Algo, you have to have: * 64-bit Windows 10 (Anniversary update or later version)
* Windows 10 (Anniversary update or later version) Once you verify your system is 64-bit (32-bit is not supported) and up to date, you have to do a few manual steps to enable the 'Windows Subsystem for Linux':
* 64-bit installation (can't run on 32-bit systems)
Once you verify your system is 64-bit and up to date, you have to do a few manual steps to enable the 'Windows Subsystem for Linux':
1. Open 'Settings' 1. Open 'Settings'
2. Click 'Update & Security', then click the 'For developers' option on the left. 2. Click 'Update & Security', then click the 'For developers' option on the left.
@ -15,22 +12,16 @@ Wait a minute for Windows to install a few things in the background (it will eve
1. Click on 'Programs' 1. Click on 'Programs'
2. Click on 'Turn Windows features on or off' 2. Click on 'Turn Windows features on or off'
3. Scroll down and check 'Windows Subsystem for Linux (Beta)', and then click OK. 3. Scroll down and check 'Windows Subsystem for Linux', and then click OK.
4. The subsystem will be installed, then Windows will require a restart.
5. Restart Windows and then [install Ubuntu from the Windows Store](https://www.microsoft.com/p/ubuntu/9nblggh4msv6).
6. Run Ubuntu from the Start menu. It will take a few minutes to install. It will have you create a separate user account for the Linux subsystem. Once that's done, you will finally have Ubuntu running somewhat integrated with Windows.
The subsystem will be installed, then Windows will require a reboot. Reboot, then open up the start menu and enter 'bash' (to open up 'Bash' installation in a new command prompt). Fill out all the questions (it will have you create a separate user account for the Linux subsystem), and once that's all done (it takes a few minutes to install), you will finally have Ubuntu running on your Windows laptop, somewhat integrated with Windows.
Install additional packages: Install additional packages:
```shell ```shell
sudo apt-get update && sudo apt-get install \ sudo apt-get update && sudo apt-get install git build-essential libssl-dev libffi-dev python-dev python-pip python-setuptools python-virtualenv -y
git \
build-essential \
libssl-dev \
libffi-dev \
python-dev \
python-pip \
python-setuptools \
python-virtualenv -y
``` ```
Clone the Algo repository: Clone the Algo repository:

View file

@ -1,4 +1,10 @@
--- ---
- name: Gather facts
setup:
- name: Gather additional facts
import_tasks: facts.yml
- set_fact: - set_fact:
config_prefix: "/usr/local/" config_prefix: "/usr/local/"
strongswan_shell: /usr/sbin/nologin strongswan_shell: /usr/sbin/nologin
@ -23,17 +29,11 @@
value: 1 value: 1
- item: "{{ 'net.inet6.ip6.forwarding' if ipv6_support else none }}" - item: "{{ 'net.inet6.ip6.forwarding' if ipv6_support else none }}"
value: 1 value: 1
tags:
- always
- setup:
- name: Install tools - name: Install tools
package: name="{{ item }}" state=present package: name="{{ item }}" state=present
with_items: with_items:
- "{{ tools|default([]) }}" - "{{ tools|default([]) }}"
tags:
- always
- name: Loopback included into the rc config - name: Loopback included into the rc config
blockinfile: blockinfile:
@ -45,8 +45,6 @@
ifconfig_lo100_ipv6="inet6 FCAA::1/64" ifconfig_lo100_ipv6="inet6 FCAA::1/64"
notify: notify:
- restart loopback bsd - restart loopback bsd
tags:
- always
- name: Enable the gateway features - name: Enable the gateway features
lineinfile: dest=/etc/rc.conf regexp='^{{ item.param }}.*' line='{{ item.param }}={{ item.value }}' lineinfile: dest=/etc/rc.conf regexp='^{{ item.param }}.*' line='{{ item.param }}={{ item.value }}'
@ -59,8 +57,6 @@
- { param: natd_flags, value: '"-dynamic -m"' } - { param: natd_flags, value: '"-dynamic -m"' }
notify: notify:
- restart ipfw - restart ipfw
tags:
- always
- name: FreeBSD | Activate IPFW - name: FreeBSD | Activate IPFW
shell: > shell: >

View file

@ -6,12 +6,13 @@
- include_tasks: ubuntu.yml - include_tasks: ubuntu.yml
when: '"Ubuntu" in OS.stdout or "Linux" in OS.stdout' when: '"Ubuntu" in OS.stdout or "Linux" in OS.stdout'
tags:
- update-users
- include_tasks: freebsd.yml - include_tasks: freebsd.yml
when: '"FreeBSD" in OS.stdout' when: '"FreeBSD" in OS.stdout'
tags:
- name: Gather additional facts - update-users
import_tasks: facts.yml
- name: Sysctl tuning - name: Sysctl tuning
sysctl: name="{{ item.item }}" value="{{ item.value }}" sysctl: name="{{ item.item }}" value="{{ item.value }}"

View file

@ -71,8 +71,6 @@
dest: /etc/systemd/network/10-algo-lo100.network dest: /etc/systemd/network/10-algo-lo100.network
notify: notify:
- restart systemd-networkd - restart systemd-networkd
tags:
- always
- name: systemd services enabled and started - name: systemd services enabled and started
systemd: systemd:
@ -83,12 +81,8 @@
with_items: with_items:
- systemd-networkd - systemd-networkd
- systemd-resolved - systemd-resolved
tags:
- always
- meta: flush_handlers - meta: flush_handlers
tags:
- always
- name: Check apparmor support - name: Check apparmor support
shell: apparmor_status shell: apparmor_status
@ -99,6 +93,9 @@
apparmor_enabled: true apparmor_enabled: true
when: '"profiles are in enforce mode" in apparmor_status.stdout' when: '"profiles are in enforce mode" in apparmor_status.stdout'
- name: Gather additional facts
import_tasks: facts.yml
- set_fact: - set_fact:
tools: tools:
- git - git
@ -116,15 +113,11 @@
value: 1 value: 1
- item: "{{ 'net.ipv6.conf.all.forwarding' if ipv6_support else none }}" - item: "{{ 'net.ipv6.conf.all.forwarding' if ipv6_support else none }}"
value: 1 value: 1
tags:
- always
- name: Install tools - name: Install tools
package: name="{{ item }}" state=present package: name="{{ item }}" state=present
with_items: with_items:
- "{{ tools|default([]) }}" - "{{ tools|default([]) }}"
tags:
- always
- name: Install headers - name: Install headers
apt: apt:

View file

@ -62,6 +62,7 @@
- block: - block:
- name: Local pre-tasks - name: Local pre-tasks
import_tasks: playbooks/cloud-pre.yml import_tasks: playbooks/cloud-pre.yml
become: false
rescue: rescue:
- debug: var=fail_hint - debug: var=fail_hint
tags: always tags: always