mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
46 lines
1.5 KiB
Bash
46 lines
1.5 KiB
Bash
# Licensed to the Apache Software Foundation (ASF) under one
|
|
# or more contributor license agreements. See the NOTICE file
|
|
# distributed with this work for additional information
|
|
# regarding copyright ownership. The ASF licenses this file
|
|
# to you under the Apache License, Version 2.0 (the
|
|
# "License"); you may not use this file except in compliance
|
|
# with the License. You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing,
|
|
# software distributed under the License is distributed on an
|
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
# KIND, either express or implied. See the License for the
|
|
# specific language governing permissions and limitations
|
|
# under the License.
|
|
|
|
|
|
# Update the box
|
|
apt-get -y update
|
|
#below are needed for ruby perhaps
|
|
#apt-get -y install linux-headers-$(uname -r) build-essential
|
|
#apt-get -y install zlib1g-dev libssl-dev libreadline-gplv2-dev
|
|
apt-get -y install curl unzip
|
|
apt-get clean
|
|
|
|
# Set up sudo
|
|
echo 'vagrant ALL=NOPASSWD:ALL' > /etc/sudoers.d/vagrant
|
|
|
|
# Tweak sshd to prevent DNS resolution (speed up logins)
|
|
echo 'UseDNS no' >> /etc/ssh/sshd_config
|
|
|
|
# Remove 5s grub timeout to speed up booting
|
|
echo <<EOF > /etc/default/grub
|
|
# If you change this file, run 'update-grub' afterwards to update
|
|
# /boot/grub/grub.cfg.
|
|
|
|
GRUB_DEFAULT=0
|
|
GRUB_TIMEOUT=0
|
|
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
|
|
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
|
|
GRUB_CMDLINE_LINUX="debian-installer=en_US"
|
|
EOF
|
|
|
|
update-grub
|