Skip to content

Obviate.io

To anticipate and prevent

  • Home
  • About Us
  • History
  • Privacy Policy
  • Toggle search form

Truly non-interactive / unattended apt-get install

Posted on 2008-12-04 By Jon No Comments on Truly non-interactive / unattended apt-get install

I’ve recently begun tinkering with Amazon Web Services (specifically their EC2 service) and RightScale. The major difference between these “Cloud” computing platforms and others is that the “instance” (i.e A running virtual machine) is temporary. Once it is shut down, all the data is gone. Additionally, the RightScale (and fairly common) way about going things is to use a “clean” machine image and script the install of the specific packages you need on Launch. So you can use the same image for an Application server, or DB server, or mail server — just have their respective packages installed on boot.

For Debian/Ubuntu (I happen to be using Ubuntu 8.10 Intrepid Ibex), you have the joy of apt-get. If you run apt-get with -q -y, it will assume “yes” to everything (and do it quietly). Now the only major problem is that some packages ask post install questions using whiptail (The blue configuration screen). In my case it it was MySQL demanding a root password. But I was informed of an easy way around that, exporting a value before install.

Below is an example of what to run:

# export DEBIAN_FRONTEND=noninteractive

# apt-get -q -y install mysql-server-5.0

This will install and start MySQL without so much as a peep until it is all done. Of course you get a blank root password which is a security issue, but that is easy to fix later. Piece of cake, if you happen to know about these magical exports.

Cloud, Linux Tags:AWS, cloud, ec2, install, intrepid, rightscale, Ubuntu, ubuntu 8.10

Post navigation

Previous Post: Testing out Twitterfeed/Blog Plugin
Next Post: Recent Reading

More Related Articles

OpenDNS Umbrella – Safety or Zombies? Cloud
Hard to buy books via Brick & Mortar Anime
User Data for automated RancherOS instances Containers

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

December 2008
S M T W T F S
 123456
78910111213
14151617181920
21222324252627
28293031  
« Nov   Jan »

amazon Android anime apache apple arduino asus averatec AWS Bad Company 2 cloud DIY eee fanime fanimecon github google iPad iphone IPv6 javascript kindle linkedin linux macbook air mass effect nodejs openvpn osx php review San Francisco security tutorial Ubuntu urban garden usb video wifi windows 7 winter urban garden wordpress xbox xbox 360 XboxLIVE

Copyright © 2022 Obviate.io

Powered by PressBook Premium theme