diff --git a/debian_vm_base.sh b/debian_vm_base.sh index fdba2189895854574f03b852c3929515a122af09..c7f27335b44f763a862d105a92aa9203ed10ac9c 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 135fc176f7f60e448e4f667439bf80c3a87f889c..f9897cb4682a1bee39c40e8771346d4d78f61b8f 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