Skip to content

Instantly share code, notes, and snippets.

@imccie
Forked from eldondev/cmd
Created August 13, 2020 08:57
Show Gist options
  • Select an option

  • Save imccie/411b2dc2ddeffd43a9ed82b27eb5c957 to your computer and use it in GitHub Desktop.

Select an option

Save imccie/411b2dc2ddeffd43a9ed82b27eb5c957 to your computer and use it in GitHub Desktop.

Revisions

  1. @eldondev eldondev revised this gist Jan 27, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion debian-preseed.txt
    Original file line number Diff line number Diff line change
    @@ -42,7 +42,7 @@ d-i partman/choose_partition select finish
    d-i partman/confirm boolean true
    d-i partman/confirm_nooverwrite boolean true
    tasksel tasksel/first multiselect
    d-i pkgsel/include string openssh-server vim build-essential git net-tools
    d-i pkgsel/include string wget openssh-server vim build-essential git net-tools
    curl strace htop lsof rsync
    d-i preseed/late_command string \
    in-target sh -c "mkdir -m 700 /root/.ssh ; wget --no-proxy -O /root/.ssh/authorized_keys 10.0.2.10:8080/id_rsa.pub ; wget --no-proxy -O /etc/sysctl.d/local.conf 10.0.2.10:8080/local.conf; chmod 600 /root/.ssh/authorized_keys; echo GRUB_TERMINAL=console >>/etc/default/grub; update-grub"
  2. @eldondev eldondev revised this gist Nov 21, 2017. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion debian-preseed.txt
    Original file line number Diff line number Diff line change
    @@ -42,7 +42,8 @@ d-i partman/choose_partition select finish
    d-i partman/confirm boolean true
    d-i partman/confirm_nooverwrite boolean true
    tasksel tasksel/first multiselect
    d-i pkgsel/include string openssh-server vim build-essential git net-tools curl strace htop lsof
    d-i pkgsel/include string openssh-server vim build-essential git net-tools
    curl strace htop lsof rsync
    d-i preseed/late_command string \
    in-target sh -c "mkdir -m 700 /root/.ssh ; wget --no-proxy -O /root/.ssh/authorized_keys 10.0.2.10:8080/id_rsa.pub ; wget --no-proxy -O /etc/sysctl.d/local.conf 10.0.2.10:8080/local.conf; chmod 600 /root/.ssh/authorized_keys; echo GRUB_TERMINAL=console >>/etc/default/grub; update-grub"
    popularity-contest popularity-contest/participate boolean false
  3. @eldondev eldondev revised this gist Nov 15, 2017. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions debian-preseed.txt
    Original file line number Diff line number Diff line change
    @@ -42,8 +42,7 @@ d-i partman/choose_partition select finish
    d-i partman/confirm boolean true
    d-i partman/confirm_nooverwrite boolean true
    tasksel tasksel/first multiselect
    d-i pkgsel/include string openssh-server vim build-essential git net-tools
    curl strace
    d-i pkgsel/include string openssh-server vim build-essential git net-tools curl strace htop lsof
    d-i preseed/late_command string \
    in-target sh -c "mkdir -m 700 /root/.ssh ; wget --no-proxy -O /root/.ssh/authorized_keys 10.0.2.10:8080/id_rsa.pub ; wget --no-proxy -O /etc/sysctl.d/local.conf 10.0.2.10:8080/local.conf; chmod 600 /root/.ssh/authorized_keys; echo GRUB_TERMINAL=console >>/etc/default/grub; update-grub"
    popularity-contest popularity-contest/participate boolean false
  4. @eldondev eldondev revised this gist Nov 15, 2017. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion debian-preseed.txt
    Original file line number Diff line number Diff line change
    @@ -42,7 +42,8 @@ d-i partman/choose_partition select finish
    d-i partman/confirm boolean true
    d-i partman/confirm_nooverwrite boolean true
    tasksel tasksel/first multiselect
    d-i pkgsel/include string openssh-server vim build-essential git net-tools curl
    d-i pkgsel/include string openssh-server vim build-essential git net-tools
    curl strace
    d-i preseed/late_command string \
    in-target sh -c "mkdir -m 700 /root/.ssh ; wget --no-proxy -O /root/.ssh/authorized_keys 10.0.2.10:8080/id_rsa.pub ; wget --no-proxy -O /etc/sysctl.d/local.conf 10.0.2.10:8080/local.conf; chmod 600 /root/.ssh/authorized_keys; echo GRUB_TERMINAL=console >>/etc/default/grub; update-grub"
    popularity-contest popularity-contest/participate boolean false
  5. @eldondev eldondev revised this gist Nov 15, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion deb-testing-cmd
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    wget -nc https://d-i.debian.org/daily-images/amd64/daily/netboot/debian-installer/amd64/linux
    wget -nc https://d-i.debian.org/daily-images/amd64/daily/netboot/debian-installer/amd64/initrd.gz
    cp -nv ~/.ssh/id_rsa.pub .
    time qemu-system-x86_64 -machine accel=kvm -kernel linux -initrd initrd.gz -m 1G -smp 2 -append "blacklist=vga16fb fb=false video=false vga=normal auto=true url=http://10.0.2.10:8080/debian-preseed.txt hostname=otto domain=" -net user,guestfwd=:10.0.2.10:8080-cmd:"/bin/busybox httpd -i" -hda /dev/shm/deb.img -net nic -display curses
    time qemu-system-x86_64 -machine accel=kvm -kernel linux -initrd initrd.gz -m 1G -smp 2 -append "blacklist=mac80211 fb=false video=false vga=normal auto=true url=http://10.0.2.10:8080/debian-preseed.txt hostname=otto domain=" -net user,guestfwd=:10.0.2.10:8080-cmd:"/bin/busybox httpd -i" -hda /dev/shm/deb.img -net nic -display curses
  6. @eldondev eldondev revised this gist Nov 9, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion debian-preseed.txt
    Original file line number Diff line number Diff line change
    @@ -42,7 +42,7 @@ d-i partman/choose_partition select finish
    d-i partman/confirm boolean true
    d-i partman/confirm_nooverwrite boolean true
    tasksel tasksel/first multiselect
    d-i pkgsel/include string openssh-server vim build-essential git net-tools
    d-i pkgsel/include string openssh-server vim build-essential git net-tools curl
    d-i preseed/late_command string \
    in-target sh -c "mkdir -m 700 /root/.ssh ; wget --no-proxy -O /root/.ssh/authorized_keys 10.0.2.10:8080/id_rsa.pub ; wget --no-proxy -O /etc/sysctl.d/local.conf 10.0.2.10:8080/local.conf; chmod 600 /root/.ssh/authorized_keys; echo GRUB_TERMINAL=console >>/etc/default/grub; update-grub"
    popularity-contest popularity-contest/participate boolean false
  7. @eldondev eldondev revised this gist Nov 8, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion debian-preseed.txt
    Original file line number Diff line number Diff line change
    @@ -42,7 +42,7 @@ d-i partman/choose_partition select finish
    d-i partman/confirm boolean true
    d-i partman/confirm_nooverwrite boolean true
    tasksel tasksel/first multiselect
    d-i pkgsel/include string openssh-server vim build-essential git
    d-i pkgsel/include string openssh-server vim build-essential git net-tools
    d-i preseed/late_command string \
    in-target sh -c "mkdir -m 700 /root/.ssh ; wget --no-proxy -O /root/.ssh/authorized_keys 10.0.2.10:8080/id_rsa.pub ; wget --no-proxy -O /etc/sysctl.d/local.conf 10.0.2.10:8080/local.conf; chmod 600 /root/.ssh/authorized_keys; echo GRUB_TERMINAL=console >>/etc/default/grub; update-grub"
    popularity-contest popularity-contest/participate boolean false
  8. @eldondev eldondev revised this gist Aug 13, 2017. 1 changed file with 31 additions and 0 deletions.
    31 changes: 31 additions & 0 deletions qconf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,31 @@
    # qemu config file

    [drive]
    media = "disk"
    index = "0"
    file = "news.img"

    [chardev "compat_monitor1"]
    backend = "stdio"

    [net]
    type = "user"
    hostfwd = "::2200-:22"

    [net]
    type = "nic"

    [mon "compat_monitor2"]
    mode = "readline"
    chardev = "compat_monitor1"
    pretty = "off"

    [machine]
    accel = "kvm"

    [memory]
    size = "1G"

    [smp-opts]
    cpus = "2"

  9. @eldondev eldondev revised this gist Jul 21, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion debian-preseed.txt
    Original file line number Diff line number Diff line change
    @@ -44,7 +44,7 @@ d-i partman/confirm_nooverwrite boolean true
    tasksel tasksel/first multiselect
    d-i pkgsel/include string openssh-server vim build-essential git
    d-i preseed/late_command string \
    in-target sh -c "mkdir -m 700 /root/.ssh ; wget --no-proxy -O /root/.ssh/authorized_keys 10.0.2.10:8080/id_rsa.pub ; wget --no-proxy -O /etc/sysctl.d/local.conf 10.0.2.10:8080/local.conf; chmod 600 /root/.ssh/authorized_keys"
    in-target sh -c "mkdir -m 700 /root/.ssh ; wget --no-proxy -O /root/.ssh/authorized_keys 10.0.2.10:8080/id_rsa.pub ; wget --no-proxy -O /etc/sysctl.d/local.conf 10.0.2.10:8080/local.conf; chmod 600 /root/.ssh/authorized_keys; echo GRUB_TERMINAL=console >>/etc/default/grub; update-grub"
    popularity-contest popularity-contest/participate boolean false
    d-i grub-installer/only_debian boolean true
    d-i grub-installer/with_other_os boolean true
  10. @eldondev eldondev revised this gist Jan 5, 2017. 2 changed files with 12 additions and 3 deletions.
    2 changes: 1 addition & 1 deletion deb-testing-cmd
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    wget -nc https://d-i.debian.org/daily-images/amd64/daily/netboot/debian-installer/amd64/linux
    wget -nc https://d-i.debian.org/daily-images/amd64/daily/netboot/debian-installer/amd64/initrd.gz
    cp -nv ~/.ssh/id_rsa.pub .
    time qemu-system-x86_64 -machine accel=kvm -kernel linux -initrd initrd.gz -m 1G -smp 2 -append "blacklist=vga16fb fb=false video=false vga=normal auto=true url=http://10.0.2.10:8080/debian-preseed.txt hostname=otto domain=" -net user,guestfwd=:10.0.2.10:8080-cmd:"/bin/busybox httpd -i" -hda /dev/shm/deb.img -net nic -display none
    time qemu-system-x86_64 -machine accel=kvm -kernel linux -initrd initrd.gz -m 1G -smp 2 -append "blacklist=vga16fb fb=false video=false vga=normal auto=true url=http://10.0.2.10:8080/debian-preseed.txt hostname=otto domain=" -net user,guestfwd=:10.0.2.10:8080-cmd:"/bin/busybox httpd -i" -hda /dev/shm/deb.img -net nic -display curses
    13 changes: 11 additions & 2 deletions debian-preseed.txt
    Original file line number Diff line number Diff line change
    @@ -16,15 +16,24 @@ d-i passwd/make-user false
    d-i clock-setup/utc boolean true
    d-i time/zone string US/Eastern
    d-i clock-setup/ntp boolean true
    d-i partman-auto/method string lvm
    d-i partman-auto/method string regular
    d-i partman-lvm/device_remove_lvm boolean true

    d-i partman-md/device_remove_md boolean true
    d-i partman-lvm/confirm boolean true
    d-i partman-lvm/confirm_nooverwrite boolean true
    d-i partman-auto/choose_recipe select atomic
    d-i partman-auto/expert_recipe string \
    root :: \
    40 300 100000000 btrfs \
    $primary{ } \
    $bootable{ } \
    method{ format } format{ } \
    use_filesystem{ } filesystem{ btrfs } \
    mountpoint{ / } \
    . \
    d-i partman-partitioning/confirm_write_new_label boolean true
    d-i partman/choose_partition select finish
    d-i partman-basicfilesystems/no_swap boolean false
    d-i partman/confirm boolean true
    d-i partman/confirm_nooverwrite boolean true
    d-i partman-md/confirm boolean true
  11. @eldondev eldondev revised this gist Dec 4, 2016. 4 changed files with 4 additions and 4 deletions.
    2 changes: 1 addition & 1 deletion deb-testing-cmd
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    wget -nc https://d-i.debian.org/daily-images/amd64/daily/netboot/debian-installer/amd64/linux
    wget -nc https://d-i.debian.org/daily-images/amd64/daily/netboot/debian-installer/amd64/initrd.gz
    cp -nv ~/.ssh/id_rsa.pub .
    qemu-system-x86_64 -machine accel=kvm -kernel linux -initrd initrd.gz -m 1G -smp 2 -append "blacklist=vga16fb fb=false video=false vga=normal auto=true url=http://10.0.2.10:8080/debian-preseed.txt hostname=otto domain=" -net user,guestfwd=:10.0.2.10:8080-cmd:"/bin/busybox httpd -i" -hda /dev/shm/deb.img -net nic -display none
    time qemu-system-x86_64 -machine accel=kvm -kernel linux -initrd initrd.gz -m 1G -smp 2 -append "blacklist=vga16fb fb=false video=false vga=normal auto=true url=http://10.0.2.10:8080/debian-preseed.txt hostname=otto domain=" -net user,guestfwd=:10.0.2.10:8080-cmd:"/bin/busybox httpd -i" -hda /dev/shm/deb.img -net nic -display none
    2 changes: 1 addition & 1 deletion debian-preseed.txt
    Original file line number Diff line number Diff line change
    @@ -33,7 +33,7 @@ d-i partman/choose_partition select finish
    d-i partman/confirm boolean true
    d-i partman/confirm_nooverwrite boolean true
    tasksel tasksel/first multiselect
    d-i pkgsel/include string openssh-server
    d-i pkgsel/include string openssh-server vim build-essential git
    d-i preseed/late_command string \
    in-target sh -c "mkdir -m 700 /root/.ssh ; wget --no-proxy -O /root/.ssh/authorized_keys 10.0.2.10:8080/id_rsa.pub ; wget --no-proxy -O /etc/sysctl.d/local.conf 10.0.2.10:8080/local.conf; chmod 600 /root/.ssh/authorized_keys"
    popularity-contest popularity-contest/participate boolean false
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    qemu-system-x86_64 -machine accel=kvm -m 4G -smp 2 -kernel linux -initrd initrd.gz -net nic -net user,tftp=. -hda /mnt/out/preseed-min.img -append "blacklist=vga16fb fb=false video=false vga=normal auto=true priority=high locale=en_US.UTF-8 kdb-chooser/method=us netcfg/choose_interface=auto hostname=otto domain=example.com url=tftp://10.0.2.2/preseed.cfg" -curses
    time qemu-system-x86_64 -machine accel=kvm -m 4G -smp 2 -kernel ubuntu/linux -initrd ubuntu/initrd.gz -net nic -net user,tftp=. -hda /dev/shm/preseed-min.img -append "blacklist=vga16fb fb=false video=false vga=normal auto=true priority=high locale=en_US.UTF-8 kdb-chooser/method=us netcfg/choose_interface=auto hostname=otto domain= url=tftp://10.0.2.2/preseed.cfg" -curses
    2 changes: 1 addition & 1 deletion preseed.cfg
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,7 @@ d-i netcfg/wireless_wep string
    d-i mirror/country string manual
    d-i mirror/http/hostname string archive.ubuntu.com
    d-i mirror/http/directory string /ubuntu
    d-i mirror/http/proxy string http://10.0.2.2:3142/
    d-i mirror/http/proxy string http://172.19.1.1:3142/
    d-i clock-setup/utc boolean true
    d-i time/zone string US/Eastern
    d-i clock-setup/ntp boolean true
  12. @eldondev eldondev revised this gist Nov 28, 2016. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions local.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    net.ipv6.conf.all.disable_ipv6 = 1
    net.ipv6.conf.default.disable_ipv6 = 1
    net.ipv6.conf.lo.disable_ipv6 = 1
    net.ipv6.conf.ens3.disable_ipv6 = 1
  13. @eldondev eldondev revised this gist Nov 28, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion debian-preseed.txt
    Original file line number Diff line number Diff line change
    @@ -35,7 +35,7 @@ d-i partman/confirm_nooverwrite boolean true
    tasksel tasksel/first multiselect
    d-i pkgsel/include string openssh-server
    d-i preseed/late_command string \
    in-target sh -c "mkdir -m 700 /root/.ssh ; wget --no-proxy -O /root/.ssh/authorized_keys 10.0.2.10:8080/id_rsa.pub; chmod 600 /root/.ssh/authorized_keys"
    in-target sh -c "mkdir -m 700 /root/.ssh ; wget --no-proxy -O /root/.ssh/authorized_keys 10.0.2.10:8080/id_rsa.pub ; wget --no-proxy -O /etc/sysctl.d/local.conf 10.0.2.10:8080/local.conf; chmod 600 /root/.ssh/authorized_keys"
    popularity-contest popularity-contest/participate boolean false
    d-i grub-installer/only_debian boolean true
    d-i grub-installer/with_other_os boolean true
  14. @eldondev eldondev revised this gist Nov 28, 2016. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions deb-testing-cmd
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    wget -nc https://d-i.debian.org/daily-images/amd64/daily/netboot/debian-installer/amd64/linux
    wget -nc https://d-i.debian.org/daily-images/amd64/daily/netboot/debian-installer/amd64/initrd.gz
    cp -nv ~/.ssh/id_rsa.pub .
    qemu-system-x86_64 -machine accel=kvm -kernel linux -initrd initrd.gz -m 1G -smp 2 -append "blacklist=vga16fb fb=false video=false vga=normal auto=true url=http://10.0.2.10:8080/debian-preseed.txt hostname=otto domain=" -net user,guestfwd=:10.0.2.10:8080-cmd:"/bin/busybox httpd -i" -hda /dev/shm/deb.img -net nic -display none
  15. @eldondev eldondev revised this gist Nov 28, 2016. 3 changed files with 10 additions and 6 deletions.
    5 changes: 4 additions & 1 deletion cmd
    Original file line number Diff line number Diff line change
    @@ -1 +1,4 @@
    qemu-system-x86_64 -machine accel=kvm -kernel linux -initrd initrd.gz -m 1G -smp 2 -append "auto=true url=http://10.0.2.10:8080/example-preseed.txt hostname=otto domain=" -net user,guestfwd=:10.0.2.10:8080-cmd:"/bin/busybox httpd -i" -hda /dev/shm/deb.img -net nic
    wget -nc http://ftp.debian.org/debian/dists/jessie/main/installer-amd64/current/images/netboot/debian-installer/amd64/linux
    wget -nc http://ftp.debian.org/debian/dists/jessie/main/installer-amd64/current/images/netboot/debian-installer/amd64/initrd.gz
    cp -nv ~/.ssh/id_rsa.pub .
    qemu-system-x86_64 -machine accel=kvm -kernel linux -initrd initrd.gz -m 1G -smp 2 -append "blacklist=vga16fb fb=false video=false vga=normal auto=true url=http://10.0.2.10:8080/debian-preseed.txt hostname=otto domain=" -net user,guestfwd=:10.0.2.10:8080-cmd:"/bin/busybox httpd -i" -hda /dev/shm/deb.img -net nic -display none
    10 changes: 5 additions & 5 deletions debian-preseed.txt
    Original file line number Diff line number Diff line change
    @@ -10,11 +10,9 @@ d-i mirror/country string manual
    d-i mirror/http/hostname string http.us.debian.org
    d-i mirror/http/directory string /debian
    d-i mirror/http/proxy string http://172.19.1.1:3142
    d-i passwd/root-login boolean false
    d-i passwd/user-fullname string Debian User
    d-i passwd/username string debian
    d-i passwd/user-password password insecure
    d-i passwd/user-password-again password insecure
    d-i passwd/root-login boolean true
    d-i passwd/root-password-crypted password !00000000000000000000000000000000
    d-i passwd/make-user false
    d-i clock-setup/utc boolean true
    d-i time/zone string US/Eastern
    d-i clock-setup/ntp boolean true
    @@ -36,6 +34,8 @@ d-i partman/confirm boolean true
    d-i partman/confirm_nooverwrite boolean true
    tasksel tasksel/first multiselect
    d-i pkgsel/include string openssh-server
    d-i preseed/late_command string \
    in-target sh -c "mkdir -m 700 /root/.ssh ; wget --no-proxy -O /root/.ssh/authorized_keys 10.0.2.10:8080/id_rsa.pub; chmod 600 /root/.ssh/authorized_keys"
    popularity-contest popularity-contest/participate boolean false
    d-i grub-installer/only_debian boolean true
    d-i grub-installer/with_other_os boolean true
    1 change: 1 addition & 0 deletions debian-run
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    qemu-system-x86_64 -machine accel=kvm -m 1G -smp 2 -hda /dev/shm/deb.img -net user,hostfwd=::2200-:22 -display none -net nic -monitor stdio
  16. @eldondev eldondev revised this gist Nov 20, 2016. 2 changed files with 45 additions and 0 deletions.
    1 change: 1 addition & 0 deletions cmd
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    qemu-system-x86_64 -machine accel=kvm -kernel linux -initrd initrd.gz -m 1G -smp 2 -append "auto=true url=http://10.0.2.10:8080/example-preseed.txt hostname=otto domain=" -net user,guestfwd=:10.0.2.10:8080-cmd:"/bin/busybox httpd -i" -hda /dev/shm/deb.img -net nic
    44 changes: 44 additions & 0 deletions debian-preseed.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,44 @@
    # Derived from https://www.debian.org/releases/stable/example-preseed.txt
    d-i debian-installer/locale string en_US
    d-i keyboard-configuration/xkb-keymap select us
    d-i netcfg/choose_interface select auto
    d-i netcfg/get_hostname string unassigned-hostname
    d-i netcfg/get_domain string unassigned-domain
    d-i netcfg/hostname string hostname
    d-i netcfg/wireless_wep string
    d-i mirror/country string manual
    d-i mirror/http/hostname string http.us.debian.org
    d-i mirror/http/directory string /debian
    d-i mirror/http/proxy string http://172.19.1.1:3142
    d-i passwd/root-login boolean false
    d-i passwd/user-fullname string Debian User
    d-i passwd/username string debian
    d-i passwd/user-password password insecure
    d-i passwd/user-password-again password insecure
    d-i clock-setup/utc boolean true
    d-i time/zone string US/Eastern
    d-i clock-setup/ntp boolean true
    d-i partman-auto/method string lvm
    d-i partman-lvm/device_remove_lvm boolean true

    d-i partman-md/device_remove_md boolean true
    d-i partman-lvm/confirm boolean true
    d-i partman-lvm/confirm_nooverwrite boolean true
    d-i partman-auto/choose_recipe select atomic
    d-i partman-partitioning/confirm_write_new_label boolean true
    d-i partman/choose_partition select finish
    d-i partman/confirm boolean true
    d-i partman/confirm_nooverwrite boolean true
    d-i partman-md/confirm boolean true
    d-i partman-partitioning/confirm_write_new_label boolean true
    d-i partman/choose_partition select finish
    d-i partman/confirm boolean true
    d-i partman/confirm_nooverwrite boolean true
    tasksel tasksel/first multiselect
    d-i pkgsel/include string openssh-server
    popularity-contest popularity-contest/participate boolean false
    d-i grub-installer/only_debian boolean true
    d-i grub-installer/with_other_os boolean true
    d-i grub-installer/bootdev string default
    d-i finish-install/reboot_in_progress note
    d-i debian-installer/exit/poweroff boolean true
  17. @eldondev eldondev revised this gist Oct 20, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion preseed.cfg
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    -i debian-installer/locale string en_US
    d-i debian-installer/locale string en_US
    d-i console-setup/ask_detect boolean false
    d-i keyboard-configuration/layoutcode string us
    d-i netcfg/choose_interface select auto
  18. @eldondev eldondev revised this gist Oct 20, 2015. 2 changed files with 69 additions and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    qemu-system-x86_64 -machine accel=kvm -m 4G -smp 2 -kernel linux -initrd initrd.gz -net nic -net user,tftp=preseed -hda /mnt/out/preseed-min.img -append "blacklist=vga16fb fb=false video=false vga=normal auto=true priority=high locale=en_US.UTF-8 kdb-chooser/method=us netcfg/choose_interface=auto hostname=otto domain=example.com url=tftp://10.0.2.2/preseed.cfg" -curses
    qemu-system-x86_64 -machine accel=kvm -m 4G -smp 2 -kernel linux -initrd initrd.gz -net nic -net user,tftp=. -hda /mnt/out/preseed-min.img -append "blacklist=vga16fb fb=false video=false vga=normal auto=true priority=high locale=en_US.UTF-8 kdb-chooser/method=us netcfg/choose_interface=auto hostname=otto domain=example.com url=tftp://10.0.2.2/preseed.cfg" -curses
    68 changes: 68 additions & 0 deletions preseed-lvm.cfg
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,68 @@
    d-i debian-installer/locale string en_US
    d-i console-setup/ask_detect boolean false
    d-i keyboard-configuration/layoutcode string us
    d-i netcfg/choose_interface select auto
    d-i netcfg/get_hostname string otto
    d-i netcfg/get_domain string example.pvt
    d-i netcfg/wireless_wep string
    d-i mirror/country string manual
    d-i mirror/http/hostname string archive.ubuntu.com
    d-i mirror/http/directory string /ubuntu
    d-i mirror/http/proxy string http://10.0.2.2:3142/
    d-i clock-setup/utc boolean true
    d-i time/zone string US/Eastern
    d-i clock-setup/ntp boolean true

    d-i partman-auto/disk string /dev/sda
    d-i partman-auto/method string lvm
    d-i partman-lvm/device_remove_lvm boolean true
    d-i partman-lvm/device_remove_lvm_span boolean true
    d-i partman-auto/purge_lvm_from_device boolean true
    d-i partman-auto-lvm/new_vg_name string system
    d-i partman-lvm/confirm_nooverwrite boolean true
    d-i partman-auto/purge_lvm_from_device boolean true
    d-i partman-auto-lvm/guided_size string max
    d-i partman-lvm/confirm boolean true
    d-i partman/confirm_write_new_label boolean true
    d-i partman-auto/expert_recipe string \
    boot-root :: \
    40 300 300 ext4 \
    $primary{ } \
    $bootable{ } \
    method{ format } format{ } \
    use_filesystem{ } filesystem{ ext4 } \
    mountpoint{ /boot } \
    . \
    2000 10000 10000 ext4 \
    $lvmok{ } \
    method{ format } format{ } \
    use_filesystem{ } filesystem{ ext4 } \
    mountpoint{ / } \
    .\
    2000 10000 100000000 ext4 \
    $lvmok{ } \
    method{ format } format{ } \
    use_filesystem{ } filesystem{ ext4 } \
    mountpoint{ /srv } \
    . \
    d-i partman-lvm/confirm boolean true
    d-i partman/confirm_write_new_label boolean true
    d-i partman/confirm_nooverwrite boolean true
    d-i partman/choose_partition select Finish partitioning and write changes to disk
    d-i partman/confirm boolean true
    d-i partman-basicfilesystems/no_swap boolean false
    d-i passwd/root-login boolean true
    d-i passwd/make-user boolean false
    d-i passwd/root-password password r00tme
    d-i passwd/root-password-again password r00tme
    d-i user-setup/allow-password-weak boolean true
    d-i grub-installer/only_debian boolean true
    d-i grub-installer/with_other_os boolean true
    d-i pkgsel/update-policy select none
    tasksel tasksel/first multiselect openssh-server
    d-i preseed/late_command string \
    in-target sed -i 's/PermitRootLogin .*/PermitRootLogin yes/' /etc/ssh/sshd_config ; \
    in-target sh -c "echo GRUB_TERMINAL=console | tee -a /etc/default/grub" ; \
    in-target sh -c "grub-install /dev/sda && grub-mkconfig >/boot/grub/grub.cfg"
    d-i finish-install/reboot_in_progress note

  19. @eldondev eldondev created this gist Sep 26, 2015.
    1 change: 1 addition & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    qemu-system-x86_64 -machine accel=kvm -m 4G -smp 2 -kernel linux -initrd initrd.gz -net nic -net user,tftp=preseed -hda /mnt/out/preseed-min.img -append "blacklist=vga16fb fb=false video=false vga=normal auto=true priority=high locale=en_US.UTF-8 kdb-chooser/method=us netcfg/choose_interface=auto hostname=otto domain=example.com url=tftp://10.0.2.2/preseed.cfg" -curses
    33 changes: 33 additions & 0 deletions preseed.cfg
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,33 @@
    -i debian-installer/locale string en_US
    d-i console-setup/ask_detect boolean false
    d-i keyboard-configuration/layoutcode string us
    d-i netcfg/choose_interface select auto
    d-i netcfg/get_hostname string ubuntu
    d-i netcfg/get_domain string example.com
    d-i netcfg/wireless_wep string
    d-i mirror/country string manual
    d-i mirror/http/hostname string archive.ubuntu.com
    d-i mirror/http/directory string /ubuntu
    d-i mirror/http/proxy string http://10.0.2.2:3142/
    d-i clock-setup/utc boolean true
    d-i time/zone string US/Eastern
    d-i clock-setup/ntp boolean true
    d-i partman-auto/method string regular
    d-i partman-auto/choose_recipe select atomic
    d-i partman-partitioning/confirm_write_new_label boolean true
    d-i partman/confirm_nooverwrite boolean true
    d-i partman/choose_partition select Finish partitioning and write changes to disk
    d-i partman/confirm boolean true
    d-i passwd/root-login boolean true
    d-i passwd/make-user boolean false
    d-i passwd/root-password password r00tme
    d-i passwd/root-password-again password r00tme
    d-i user-setup/allow-password-weak boolean true
    d-i grub-installer/only_debian boolean true
    d-i grub-installer/with_other_os boolean true
    d-i pkgsel/update-policy select none
    tasksel tasksel/first multiselect openssh-server
    d-i preseed/late_command string \
    in-target sed -i 's/PermitRootLogin .*/PermitRootLogin yes/' /etc/ssh/sshd_config
    d-i finish-install/reboot_in_progress note
    d-i debian-installer/exit/poweroff boolean true
    1 change: 1 addition & 0 deletions qemu-run.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    qemu-system-x86_64 -machine accel=kvm -m 4G -smp 2 -redir :8024::22 -hda /mnt/out/preseed.img -curses