apt-get install ubuntu-desktop
Ubuntu 10.4 installation
Step 0
During installation, select apache-php-mysql server + openssh server
Change networking from auto to manual
Input ip address, network mask, gateway, dns server
Step 1 vi /etc/ssh/sshd_config
add
AllowUsers root viroteb
to #Authentication
restart with
/etc/init.d/ssh restart
Improve vi by install vim-nox
aptitude install vim-nox
Step 2 if you want to change IP later,
vi /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.0.100
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
/etc/init.d/networking restart
Step 3 vi /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.0.100 server1.example.com server1
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
echo server1.example.com > /etc/hostname
... and reboot the server:
reboot
Afterwards, run
hostname
hostname -f
Both should show server1.example.com now.
Step 4 Edit /etc/apt/sources.list. Comment out or remove the installation CD from the file and make sure that the universe and multiverse repositories are enabled. It should look like this:
vi /etc/apt/sources.list
aptitude update
to update the apt package database and
aptitude safe-upgrade
to install the latest updates (if there are any). If you see that a new kernel gets installed as part of the updates, you should reboot the system afterwards:
reboot
Step 5 aptitude install ntp ntpdate
Step 6 Install postfix
aptitude install postfix
Step 7 Install phpmyadmin
apt-get install phpmyadmin
To set up under Apache all you need to do is include the following line in /etc/apache2/apache2.conf, first type the following command to open up this file:
vi /etc/apache2/apache2.conf
Add the following line of code inside apache2.conf:
Include /etc/phpmyadmin/apache.conf
Now restart Apache:
sudo /etc/init.d/apache2 restart
Step 8 Install webmin
http://viroteb.blogspot.com/2010/06/how-to-install-webmin.html
Step 8 Install syslog-ng
apt-get install syslog-ng
change the path to syslog-ng in System configuration in webmin
to /etc/syslog-ng/syslog-ng.conf so that webmin can view the syslog-ng
Step 9 Install denyhosts
apt-get install denyhosts
ไม่มีความคิดเห็น:
แสดงความคิดเห็น