Skip to content

Instantly share code, notes, and snippets.

@pablogomez93
Last active March 21, 2026 19:50
Show Gist options
  • Select an option

  • Save pablogomez93/4e986cf83390fffc9d930b8814b74e4b to your computer and use it in GitHub Desktop.

Select an option

Save pablogomez93/4e986cf83390fffc9d930b8814b74e4b to your computer and use it in GitHub Desktop.
#cloud-config
autoinstall:
version: 1
# 1. System language in ENGLISH and keyboard in SPANISH
locale: en_US.UTF-8
timezone: America/Argentina/Buenos_Aires
keyboard:
layout: es
# 2. User identity
identity:
hostname: lenovo-thinkpad
username: lemague
password: "$6$6UwkBAqK1xj2kAGS$kHYnH/xlzoVreXKuyynCL3xcb9vxxlEegXfMcYYGR8HUI9EtCzSt.IXbxxWchJ2M5AvG0x.mhXe3E3pr9V4sx1" # SHA-512 hashed password generated with: openssl passwd -6 <password>
realname: "lemague"
# 3. Hard disk configuration
storage:
config:
# Main disk
- id: disk-toshiba
type: disk
ptable: gpt
match:
# The model was obtained by running:
# udevadm info --query=property --name=/dev/sda | grep ID_MODEL=
# and checking that it contained "TOSHIBA"
# Wildcards are used to make matching easier
model: "*TOSHIBA*"
wipe: superblock-recursive
grub_device: true
# BIOS GRUB partition (1MB)
- id: part-bios
type: partition
device: disk-toshiba
size: 1MB
flag: bios_grub
# SWAP partition (20GB)
- id: part-swap
type: partition
device: disk-toshiba
size: 20GB
- id: format-swap
type: format
volume: part-swap
fstype: swap
- id: mount-swap
type: mount
device: format-swap
path: none
# /boot partition (4GB)
- id: part-boot
type: partition
device: disk-toshiba
size: 4GB
- id: format-boot
type: format
volume: part-boot
fstype: ext4
- id: mount-boot
type: mount
device: format-boot
path: /boot
# / (Root filesystem) partition (120GB)
- id: part-root
type: partition
device: disk-toshiba
size: 120GB
- id: format-root
type: format
volume: part-root
fstype: ext4
- id: mount-root
type: mount
device: format-root
path: /
# /home partition (remaining space ~350GB)
- id: part-home
type: partition
device: disk-toshiba
size: -1 # use all remaining space
- id: format-home
type: format
volume: part-home
fstype: ext4
- id: mount-home
type: mount
device: format-home
path: /home
# 4. Software, Drivers y Codecs
drivers:
install: true # automatically install proprietary drivers (NVIDIA, Wi-Fi, etc).
packages:
# Basic packages
- build-essential
- git
- htop
- vim
- curl
# Terminal and shell
- terminator
#late-commands:
# Timezone and date format to Argentina's standard
#- curtin in-target -- locale-gen es_AR.UTF-8
#- curtin in-target -- update-locale LC_TIME=es_AR.UTF-8
#- curtin in-target -- apt install -y xubuntu-desktop
#- curtin in-target -- DEBIAN_FRONTEND=noninteractive apt install -y xubuntu-restricted-extras
# 5. Security
user-data:
disable_root: true # disable direct root login
# 6. Final system configuration
updates: all # install all available updates during installation
shutdown: reboot # automatically reboot when installation finishes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment