You can try the official Meraki Configuring Client VPN in Linux article for GUI based setup. For terminal based configuration, see below.
Install the following packages:
- strongswan
- xl2tpd
| { | |
| "AuthParameters" : { | |
| "USERNAME" : "alice@example.com", | |
| "PASSWORD" : "mysecret" | |
| }, | |
| "AuthFlow" : "USER_PASSWORD_AUTH", | |
| "ClientId" : "9..............." | |
| } |
| #!/bin/sh | |
| node=${1} | |
| if [ -n "${node}" ]; then | |
| shift | |
| nodeName=$(kubectl get node ${node} -o template --template='{{index .metadata.labels "kubernetes.io/hostname"}}') || exit 1 | |
| nodeSelector='"nodeSelector": { "kubernetes.io/hostname": "'${nodeName:?}'" },' | |
| podName=${USER+${USER}-}sudo-${node} | |
| else | |
| nodeSelector="" | |
| podName=${USER+${USER}-}sudo |
| provisioner "remote-exec" { | |
| inline = [ | |
| "while [ ! -f /var/lib/cloud/instance/boot-finished ]; do echo 'Waiting for cloud-init...'; sleep 1; done" | |
| ] | |
| } |
You can try the official Meraki Configuring Client VPN in Linux article for GUI based setup. For terminal based configuration, see below.
Install the following packages:
| $ grep 'node\[:network\]\[:interfaces\].' \#chef.log | |
| 10:15 < mkent_> node[:network][:interfaces][:eth1][:addresses] | |
| 22:24 <+Damm> msf, just pulling in the node[:network][:interfaces] attributes | |
| 20:44 < randybias> node[:network][:interfaces][:eth0][:addresses] | |
| 09:13 < sinBot> so fujin if I wanted to use that in an erb template, it'd be <%= @node[:network][:interfaces]["en1"]["addresses"].select{address}.flatten.to_str %> ? | |
| 12:27 < cwj> if i have an ipv4 ip address set on eth0, will it always be in @node[:network][:interfaces][:eth0][1] ? | |
| 02:19 < pluesch0r> however, i don't seem to be able to access @node[:network][:interfaces]... from inside the attributes file. | |
| 19:52 <@jtimberman> or node[:network][:interfaces][:eth0][:addresses][0] | |
| 20:09 < seryl> well, it's searchable. I'm trying the @node[:network][:interfaces][:eth0][:addresses][0] route, but getting blanks right now, playing around with it in chef solo | |
| 20:29 < kallistec> pp node[:network][:interfaces].current_attribute |
| ## Configure eth0 | |
| # | |
| # vi /etc/sysconfig/network-scripts/ifcfg-eth0 | |
| DEVICE="eth0" | |
| NM_CONTROLLED="yes" | |
| ONBOOT=yes | |
| HWADDR=A4:BA:DB:37:F1:04 | |
| TYPE=Ethernet | |
| BOOTPROTO=static |
If you want to check whether a node run_list includes a specific role (upon
expansion), then you could use role? method on the Node object:
node.role?('name')
Alternatively, you can see whether either would work for you:
node.roles.include?('name')
node.run_list?('role[name]')
If you want to check whether a node run_list includes a specific role (upon
expansion), then you could use role? method on the Node object:
node.role?('name')
Alternatively, you can see whether either would work for you:
node.roles.include?('name')
node.run_list?('role[name]')
| #! /usr/bin/env bash | |
| # Install any build dependencies needed for curl | |
| sudo apt-get build-dep curl | |
| # Get latest (as of Feb 25, 2016) libcurl | |
| mkdir ~/curl | |
| cd ~/curl | |
| wget http://curl.haxx.se/download/curl-7.50.2.tar.bz2 | |
| tar -xvjf curl-7.50.2.tar.bz2 |
Copy, with line wrapping!
If you've been trying to copy/paste text from a multi-pane tmux session with the mouse, you've probably been pretty pissed at the blissful ignorance a terminal application has of the rodent in your hand.
The alternative, which is quote-unqoute native copy/pasting using copy-mode takes a bit to get used to. So this is one solution for copying and pasting lines from a session with correct line wrapping behaviour, albeit keyboard only.
Disclaimer
Since copy-mode has similar concepts of marks, regions, and temp buffers to Emacs .. you'll probably find it straight forward if you're familar with Emacsen. For people using vi-mode in tmux, the same still applies but obviously the default key bindings will differ alot from what I show below.