This file contains 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
virt-install \ | |
--name template \ | |
--ram 4096 \ | |
--disk path=/var/lib/libvirt/ubuntu1604.img,size=30 \ | |
--vcpus 2 \ | |
--os-type linux \ | |
--os-variant ubuntu16.04 \ | |
--network bridge=virbr0 \ | |
--graphics none \ | |
--console pty,target_type=serial \ |
This file contains 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
# Tips&trics for ChromeOS shell | |
echo 'cd $HOME' >> ~/.bashrc | |
# enable Ubuntu crouton stuff | |
echo "alias ubuntu='sudo enter-chroot -n ubuntu'" >> ~/.bashrc | |
echo "alias debian='sudo enter-chroot -n debian'" >> ~/.bashrc | |
echo "alias gnome='sudo startgnome -X xorg -b -n debian'" >> ~/.bashrc | |
echo "alias xubuntu='sudo startxfce4 -X xorg -b -n ubuntu'" >> ~/.bashrc | |
echo "alias unity='sudo startunity -X xorg -b -n ubuntu'" >> ~/.bashrc | |
echo "alias xfce4='sudo startxfce4 -X xorg -b -n ubuntu'" >> ~/.bashrc |
This file contains 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
#!/bin/sh -e | |
trap '' 2 | |
# Stop shill and restart it with a nicer attitude towards tun0 | |
sudo stop shill | |
sudo start shill BLACKLISTED_DEVICES=tun0 | |
# Sleep 10 seconds to allow chromebook to reconnect to the network | |
sudo sleep 10 | |
sudo openvpn --mktun --dev tun0 | |
sudo sleep 3 | |
# Add google DNS on top of current ones, since openvpn command does not do it |
This file contains 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
#/bin/bash | |
# Environmental variables for installing the Docker-based multi-node environment | |
# Master node IP address; for the local environment put "127.0.0.1" | |
export MASTER_IP="127.0.0.1" | |
# Desired Kubernetes version | |
# to set a variable to the latest released version (inc. alpha & beta), uncomment the following line: | |
# export K8S_VERSION=$(curl -sS https://storage.googleapis.com/kubernetes-release/release/stable.txt) |
This file contains 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
[[local|localrc]] | |
# Minimal config | |
ADMIN_PASSWORD=admin | |
DEST=/opt/stack | |
DATABASE_PASSWORD=$ADMIN_PASSWORD | |
RABBIT_PASSWORD=$ADMIN_PASSWORD | |
MYSQL_PASSWORD=$ADMIN_PASSWORD | |
SERVICE_PASSWORD=$ADMIN_PASSWORD | |
SERVICE_TOKEN=a682f596-76f3-11e3-b3b2-e716f9080d50 |
This file contains 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
# This file describes the network interfaces available on your system | |
# and how to activate them. For more information, see interfaces(5). | |
# The loopback network interface | |
auto lo | |
iface lo inet loopback | |
# The primary network interface | |
auto em1 | |
iface em1 inet dhcp |
This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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
# Deploy an Ubuntu 14.04 host; | |
# Setup host: | |
# Set up NAT forwarding: | |
sudo iptables -t nat -I POSTROUTING -o eth0 -j MASQUERADE | |
# Install git package | |
apt-get install git | |
# Clone and prepare the DevStack repo | |
git clone https://git.openstack.org/openstack-dev/devstack | |
cd devstack && git checkout stable/kilo | |
# Install Murano: |
This file contains 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
[[local|localrc]] | |
FLOATING_RANGE=192.168.1.224/27 | |
FIXED_RANGE=10.11.12.0/24 | |
FIXED_NETWORK_SIZE=256 | |
FLAT_INTERFACE=eth0 | |
ADMIN_PASSWORD=admin | |
MYSQL_PASSWORD=admin | |
RABBIT_PASSWORD=admin | |
SERVICE_PASSWORD=admin | |
SERVICE_TOKEN=admin |
This file contains 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
= Arch Linux step-by-step installation = | |
= http://blog.fabio.mancinelli.me/2012/12/28/Arch_Linux_on_BTRFS.html = | |
== Boot the installation CD == | |
== Create partition == | |
cfdisk /dev/sda | |
* Create a partition with code 8300 (Linux) |