You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

29 lines
885B

  1. #!/bin/sh
  2. # This script is run by debian installer using preseed/late_command
  3. # directive, see preseed.cfg
  4. # Setup console, remove timeout on boot.
  5. sed -i 's/GRUB_CMDLINE_LINUX_DEFAULT=.*/GRUB_CMDLINE_LINUX_DEFAULT="console=ttyS0"/g; s/TIMEOUT=5/TIMEOUT=0/g' /etc/default/grub
  6. update-grub
  7. # Members of `sudo` group are not asked for password.
  8. sed -i 's/%sudo\tALL=(ALL:ALL) ALL/%sudo\tALL=(ALL:ALL) NOPASSWD:ALL/g' /etc/sudoers
  9. # Empty message of the day.
  10. echo -n > /etc/motd
  11. # Install collectd and config.
  12. #apt-get install -y collectd-core
  13. #cp /tmp/postinst/collectd.conf /etc/collectd/
  14. export DEBIAN_FRONTEND=noninteractive
  15. apt install -y vim
  16. # Set domain name in hosts file
  17. sed -i 's/127.0.1.1\t\([a-z]*\).*/127.0.1.1\tvm\t\1/' /etc/hosts
  18. # Avoid using DHCP-server provided domain name.
  19. #sed -i 's/#supersede.*/supersede domain-name "dp-net.com";/' /etc/dhcp/dhclient.conf