3

I know I can make my own .deb files of an installation. However, during a normal mysql-server install, the root password gets asked for and we need to do a 1-click rollout without ANY interaction.
It needs to install AND set the root password.

Can I "roll-my-own" mysql-server.deb AND have the package that I roll set the root password?

Articles I am reviewing are:

http://www.debian-administration.org/articles/336
http://www.debian-administration.org/articles/20

For now, I just need to know if this is possible.

Thank you for your time.

7

As explained well on http://www.rndguy.ca/2010/02/24/fully-automated-ubuntu-server-setups-using-preseed/ you don't need to create your own packages of mysql, as it uses debconf to ask the root password question. The answers to these questions can be preseeded as part of a scripted installation process.

  • 2
    serverfault.com/questions/19367/… has a similar method of doing it with debconf – ajmitch Dec 7 '10 at 0:30
  • Options! We love options. Thank you. You Rock! – Habitual Dec 7 '10 at 1:15
  • While reviewing this process today, I notice that the preseed works IF the mysql-server has already been installed and removed. Unless I am missing somthing at rndguy.ca/2010/02/24/… – Habitual Dec 8 '10 at 1:34
  • While reviewing this process today, I notice that the preseed works IF the mysql-server has already been installed and/or removed? Unless I am missing somthing at rndguy.ca/2010/02/24/… Even he has sudo apt-get install going there. How can I completely clean the debconf db from any/all mysql-server entries? – Habitual Dec 8 '10 at 1:40
  • dis-regard my last comment, I am an idiot. 'sudo apt-get purge mysql*' does the job. – Habitual Dec 8 '10 at 2:27

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.