Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
debian-vm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Bakai Dániel
debian-vm
Commits
31cb5ad1
Commit
31cb5ad1
authored
Sep 19, 2015
by
Bakai Dániel
Browse files
Options
Downloads
Patches
Plain Diff
Console keymap support
parent
95c83c35
Branches
master
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
debian_vm_base.sh
+10
-0
10 additions, 0 deletions
debian_vm_base.sh
debian_vm_settings.sh
+1
-0
1 addition, 0 deletions
debian_vm_settings.sh
with
11 additions
and
0 deletions
debian_vm_base.sh
+
10
−
0
View file @
31cb5ad1
...
@@ -75,6 +75,14 @@ do
...
@@ -75,6 +75,14 @@ do
done
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 BEGIN ####
#### USER-DEFINED PART 1 END ####
#### USER-DEFINED PART 1 END ####
...
@@ -96,8 +104,10 @@ echo -e 'Package: systemd\nPin: origin ""\nPin-Priority: -1' > /etc/apt/preferen
...
@@ -96,8 +104,10 @@ echo -e 'Package: systemd\nPin: origin ""\nPin-Priority: -1' > /etc/apt/preferen
echo -e '
\n\n
Package: *systemd*
\n
Pin: origin ""
\n
Pin-Priority: -1' >> /etc/apt/preferences.d/systemd
echo -e '
\n\n
Package: *systemd*
\n
Pin: origin ""
\n
Pin-Priority: -1' >> /etc/apt/preferences.d/systemd
# Installing necessary packages
# 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 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 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
apt-get -y install open-vm-tools
# Adding user
# Adding user
...
...
This diff is collapsed.
Click to expand it.
debian_vm_settings.sh
+
1
−
0
View file @
31cb5ad1
...
@@ -43,6 +43,7 @@ DEBIAN_BASEDIR="chroot"
...
@@ -43,6 +43,7 @@ DEBIAN_BASEDIR="chroot"
INTERFACES
=
"eth0"
INTERFACES
=
"eth0"
USERNAME
=
"student"
USERNAME
=
"student"
PUBLIC_KEY_FILE
=
"../resources/id_rsa.pub"
PUBLIC_KEY_FILE
=
"../resources/id_rsa.pub"
CONSOLE_KEYMAP
=
hu
# debian_vm_perhost
# debian_vm_perhost
NUM_HOST
=
16
NUM_HOST
=
16
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment