As configured in my dotfiles.
start new:
tmux
start new with session name:
As configured in my dotfiles.
start new:
tmux
start new with session name:
This is about documenting getting Linux running on the late 2016 and mid 2017 MPB's; the focus is mostly on the MacBookPro13,3 and MacBookPro14,3 (15inch models), but I try to make it relevant and provide information for MacBookPro13,1, MacBookPro13,2, MacBookPro14,1, and MacBookPro14,2 (13inch models) too. I'm currently using Fedora 27, but most the things should be valid for other recent distros even if the details differ. The kernel version is 4.14.x (after latest update).
The state of linux on the MBP (with particular focus on MacBookPro13,2) is also being tracked on https://github.com/Dunedan/mbp-2016-linux . And for Ubuntu users there are a couple tutorials (here and here) focused on that distro and the MacBook.
Note: For those who have followed these instructions ealier, and in particular for those who have had problems with the custom DSDT, modifying the DSDT is not necessary anymore - se
// This shows an example of how to generate a SSH RSA Private/Public key pair and save it locally | |
package main | |
import ( | |
"crypto/rand" | |
"crypto/rsa" | |
"crypto/x509" | |
"encoding/pem" | |
"golang.org/x/crypto/ssh" |
virt-install \ | |
--name=centos-compute-$i \ | |
--ram=32768 \ | |
--vcpus=16 \ | |
--cpu host-model-only \ | |
--os-type linux \ | |
--os-variant centos7.0 \ | |
--import \ | |
--disk path=/var/lib/libvirt/images/centos74-compute-$i.qcow2,bus=virtio,cache=none,format=qcow2,bus=virtio \ | |
--network type=direct,source=enp6s0f0,source_mode=bridge,model=virtio \ |
Once you have ordered DEV Admin Storage, ssh to bastion and run the following
oc set env deploymentconfigs.apps.openshift.io admin -n labguide -e DOWNLOAD_URL=https://raw.githubusercontent.com/openshift/openshift-cns-testdrive/ocp4-dev/labguide
Check status with
oc rollout status dc/admin -n labguide
# https://github.com/kubernetes-sigs/kustomize/blob/master/examples/transformerconfigs/README.md | |
commonLabels: | |
# set labels at metadata.labels for all types | |
- path: metadata/labels | |
# create metadata.labels if it doesn't exist | |
create: true | |
- path: spec/template/metadata/labels | |
kind: DeploymentConfig | |
create: true |
import goyaml "github.com/go-yaml/yaml" | |
func SplitYAML(resources []byte) ([][]byte, error) { | |
dec := goyaml.NewDecoder(bytes.NewReader(resources)) | |
var res [][]byte | |
for { | |
var value interface{} | |
err := dec.Decode(&value) |
#! /usr/bin/env/sh | |
# | |
# this script has not been tested nor validated, it is not, in any way | |
# supported by Red Hat or NetApp. use at your own risk. | |
# | |
# | |
# the purpose of this script is to create an OpenShift MachineConfig | |
# to apply the NetApp recommended OS configuration to RHCOS machines. |