1] How to set an program to auto-start:
update-rc.d mysql start 99 3 5 . stop 0 1 2 4 6 .
2] How to remove a program:
apt-get remove apache2
3] How to disable the service in all the run levels:
update-rc.d -f apache2 remove
4] How to change root password in a script:
echo root:asd12qniqsdq | chpasswd