apt-get install apache2 php5 libapache2-mod-php5
2. Installing MySQL Database Server
apt-get install mysql-server mysql-client php5-mysql
--
apt-get install apache2 php5 libapache2-mod-php5
2. Installing MySQL Database Server
apt-get install mysql-server mysql-client php5-mysql
--
--
#!/bin/sh
echo "this is a script tp install postfix fro virtual domains "
apt-get install -y postfix-mysql
or you can also try
#!/bin/sh echo "this is a script tp install postfix fro virtual domains " #apt-get install -y postfix-mysqlapt-get install postfix-mysql <<>
y
END
if you wan to install many packages ( put in loop )
#!/bin/sh
echo "this is a script tp install postfix fro virtual domains "
for package in package1 package2 package3
do apt-get install $package <<>
y
END
done
hope this helps you!!!!
$TTL 86400
$ORIGIN test-server.com.
@ IN SOA ns1.test-server.com. admin.test-server.com. (
2004042601 ; serial
21600 ; refresh
3600 ; retry
604800 ; expires
86400 ) ; minimum
IN NS ns1.test-server.com.
IN MX 10 mail.test-server.com.
IN A 192.168.0.242
ns1 IN A 192.168.0.242
www IN A 192.168.0.247
ftp IN A 192.168.0.247
mail IN A 192.168.0.244
aggi IN A 192.168.0.247
The inputrc file handles keyboard mapping for specific situations. This file is the startup file used by Readline — the input-related library — used by Bash and most other shells.
Setting a particular parameter is as simple as typing VARIABLE=value . This would set a parameter by the name VARIABLE with the value that you provide.
To see a list of the environment variables that are already set on your machine, type the following
$ env
Many prompts do not include the return code of the last command. Although such information is not completely necessary, it might help you see whether a previous command succeeded or failed. So, a simple, informative prompt that is easy to read can be set as follows (in the bash shell):
export PS1="-$?-(\u@\h) \w --> "
$? : this willgive you the return code wheather the previous command executed successfully
\w: This special sequence expands to your full current working directory. \n : can add this to the PS1 vairable ..... this takes you to the next line .
[ note: the export command sets a enviroment virable ]
you can also check inthe home dir of root ( ~ ) .bashrc file and make changes to the PS1 vairables there
--Now on the remote machine
mkdir ~/.ssh
chmod 700 ~/.ssh
cp /tmp/id_rsa.pub ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys