View Full Version : Shell scripting help
spyke01
February 4th, 2006, 06:44 PM
hi guys, im new to shell scripting, and i was wanting to know if someone can show me how to make a script to automated doing some apt-get installs
i want to make a script that will automatticly install apache, php, ftp, and mysql
and automatticly anser the "do you really want to unpack and install this program?" question
jerome bettis
February 4th, 2006, 06:51 PM
sudo apt-get -y install apache ftp php4 mysql-server .. should be all the script you need
spyke01
February 4th, 2006, 07:40 PM
how can i make a shell script usiong this but doing multiple ine ones at a time
sudo apt-get -y install apache ftp php4 mysql-server
sudo apt-get -y install phplib
diebels
February 4th, 2006, 08:31 PM
how can i make a shell script usiong this but doing multiple ine ones at a time
sudo apt-get -y install apache ftp php4 mysql-server
sudo apt-get -y install phplib
I don't think apt cares how many lines you use.
But you can do it just like that, when the first line is finished execution of the next starts..
spyke01
February 4th, 2006, 09:22 PM
ok, but what im asking is how do i make a shell script ^^
i have no clue
Jessehk
February 4th, 2006, 11:48 PM
gedit webtoolsinstall.bash
webtoolsinstall.bash
#!/bin/bash
sudo apt-get install -y stuff to install
make executable...
chmod +x webtoolsinstall.bash
run...
./webtoolsinstall.bash
99.99% sure :)
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.