From 31cb5ad103a290e408b0e67b697e55d065df250c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bakai=20D=C3=A1niel?= <bakaid@kszk.bme.hu> Date: Sat, 19 Sep 2015 23:31:59 +0200 Subject: [PATCH] Console keymap support --- debian_vm_base.sh | 10 ++++++++++ debian_vm_settings.sh | 1 + 2 files changed, 11 insertions(+) diff --git a/debian_vm_base.sh b/debian_vm_base.sh index fdba218..c7f2733 100755 --- a/debian_vm_base.sh +++ b/debian_vm_base.sh @@ -75,6 +75,14 @@ do done +# /etc/rc.local +cat > $DEBIAN_BASEDIR/etc/rc.local << EOF +#!/bin/sh -e +loadkeys $CONSOLE_KEYMAP +exit 0 +EOF + + #### USER-DEFINED PART 1 BEGIN #### #### USER-DEFINED PART 1 END #### @@ -96,8 +104,10 @@ echo -e 'Package: systemd\nPin: origin ""\nPin-Priority: -1' > /etc/apt/preferen echo -e '\n\nPackage: *systemd*\nPin: origin ""\nPin-Priority: -1' >> /etc/apt/preferences.d/systemd # Installing necessary packages +export DEBIAN_FRONTEND=noninteractive apt-get -y install screen mc htop vim openssh-server openssh-client unzip wget sudo apt-get -y install linux-image-3.16.0-4-amd64 linux-headers-3.16.0-4-amd64 grub +apt-get -y install console-data apt-get -y install open-vm-tools # Adding user diff --git a/debian_vm_settings.sh b/debian_vm_settings.sh index 135fc17..f9897cb 100755 --- a/debian_vm_settings.sh +++ b/debian_vm_settings.sh @@ -43,6 +43,7 @@ DEBIAN_BASEDIR="chroot" INTERFACES="eth0" USERNAME="student" PUBLIC_KEY_FILE="../resources/id_rsa.pub" +CONSOLE_KEYMAP=hu # debian_vm_perhost NUM_HOST=16 -- GitLab