Skip to content

Instantly share code, notes, and snippets.

# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
version: 2
renderer: networkd
ethernets:
enp0s3:
dhcp4: no
addresses: [192.168.99.2/24]
gateway4: 192.168.99.1
interface=enp0s3
dhcp-range=tag:enp0s3,192.168.99.101,192.168.99.199,255.255.255.0,24h
dhcp-option=tag:enp0s3,option:router,192.168.99.1
dhcp-boot=linux/pxelinux.0
enable-tftp
tftp-root=/srv/tftp
@hytdsh
hytdsh / sources.list
Created December 6, 2017 11:13
sources.list
deb http://linux.yz.yamagata-u.ac.jp/pub/linux/ubuntu-archive/ 00TARGET main restricted universe multiverse
deb-src http://linux.yz.yamagata-u.ac.jp/pub/linux/ubuntu-archive/ 00TARGET main restricted universe multiverse
deb http://linux.yz.yamagata-u.ac.jp/pub/linux/ubuntu-archive/ 00TARGET-security main restricted universe multiverse
deb http://linux.yz.yamagata-u.ac.jp/pub/linux/ubuntu-archive/ 00TARGET-updates main restricted universe multiverse
deb http://linux.yz.yamagata-u.ac.jp/pub/linux/ubuntu-archive/ 00TARGET-proposed main restricted universe multiverse
deb http://linux.yz.yamagata-u.ac.jp/pub/linux/ubuntu-archive/ 00TARGET-backports main restricted universe multiverse
deb-src http://linux.yz.yamagata-u.ac.jp/pub/linux/ubuntu-archive/ 00TARGET-security main restricted universe multiverse
deb-src http://linux.yz.yamagata-u.ac.jp/pub/linux/ubuntu-archive/ 00TARGET-updates main restricted universe multiverse
deb-src http://linux.yz.yamagata-u.ac.jp/pub/linux/ubuntu-archive/ 00TARGET-proposed main rest
default autoinstall
# 10.0.2.4: Virtualbox NAT (not NAT Network) TFTP service as default
label autoinstall
# kernel debian-installer/amd64/linux
# append load initrd=debian-installer/amd64/initrd.gz auto=true priority=critical url=tftp://10.0.2.4/debian-preseed.cfg
# kernel ubuntu-installer/amd64/linux
# append load initrd=ubuntu-installer/amd64/initrd.gz auto=true priority=critical url=tftp://10.0.2.4/ubuntu-preseed.cfg
@hytdsh
hytdsh / natnetwork
Last active December 20, 2017 06:36
VirtualBox NAT Network
C:\Program Files\Oracle\VirtualBox> .\VBoxManage list natnets
NetworkName: incubator
IP: 192.168.99.1
Network: 192.168.99.0/24
IPv6 Enabled: No
IPv6 Prefix: fd17:625c:f037:2::/64
DHCP Enabled: No
Enabled: Yes
loopback mappings (ipv4)
127.0.0.1=2
@hytdsh
hytdsh / preseed.cfg
Last active December 24, 2017 02:12
preseed.cfg
###
### Localization
###
d-i debian-installer/locale string en_US.UTF-8
#d-i debian-installer/language string en
#d-i debian-installer/country string JP
d-i console-setup/ask_detect boolean false
d-i keyboard-configuration/xkb-keymap select jp
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
@hytdsh
hytdsh / packertest.json
Last active December 20, 2017 22:38
packertest.json
> type .\packertest.json
{
"builders": [
{
"type": "virtualbox-iso",
"guest_os_type": "Ubuntu_64",
"vboxmanage": [
["modifyvm", "{{.Name}}", "--memory", "512"],
["modifyvm", "{{.Name}}", "--boot4", "net"]
],
cat >~/.inputrc <<[EOF]
set bell-style none
[EOF]
cat >~/.vimrc <<[EOF]
set belloff=all
[EOF]