ServerInstall
Size: 5407
Comment:
|
Size: 6094
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 136: | Line 136: |
[[Anchor(postgresql-server)]] === Mail server === 1. Boot CD and run the CD self-check (then reboot) 1. Select '''Install to hard disk''' 1. Choose your language, country and keyboard layout 1. Set hostname: default - ubuntu 1. Partition disks: Guided use entire disk 1. Select your time zone and set the system clock to UTC 1. User account: enter username and password 1. Software selection: '''PostgreSQL Database''' 1. Reboot and login. 1. Create a database user: {{{sudo -u postgres createuser -A -D -A ${USER} }}} 1. Create a database: {{{sudo -u postgres createdb -O ${USER} ${USER}_db}}} 1. Connect to the database: {{{psql ${USER}_db}}} |
ContentsBRTableOfContents(3) |
Summary
Server installs.
Procedure
Default installation
- Boot CD and run the CD self-check (then reboot)
Select Install to hard disk
- Choose your language, country and keyboard layout
- Set hostname: default - ubuntu
Partition disks: Guided use entire disk
- Select your time zone and set the system clock to UTC
- User account: enter username and password
- No software selection.
- Reboot and login.
Default installation: LVM partitioning
- Boot CD and run the CD self-check (then reboot)
Select Install to hard disk
- Choose your language, country and keyboard layout
- Set hostname: default - ubuntu
Partition disks: Guided use entire disk and LVM
- Select your time zone and set the system clock to UTC
- User account: enter username and password
- No software selection.
- Reboot and login.
- Make sure that the root file system is mounted from /dev/mapper/ubuntu-root:
sudo mount
Bind9
- Boot CD and run the CD self-check (then reboot)
Select Install to hard disk
- Choose your language, country and keyboard layout
- Set hostname: default - ubuntu
- Partition disks: Guided use entire disk
- Select your time zone and set the system clock to UTC
- User account: enter username and password
Software selection: DNS Server
- Reboot and login.
- Confirm that bind is running:
pgrep named should return the pid of named.
LAMP
- Boot CD and run the CD self-check (then reboot)
Select Install to hard disk
- Choose your language, country and keyboard layout
- Set hostname: default - ubuntu
- Partition disks: Guided use entire disk
- Select your time zone and set the system clock to UTC
- User account: enter username and password
Software selection: LAMP
- Reboot and login.
Test Apache:
Execute wget http://127.0.0.1/apache2-default/index.html in a terminal and verify that it is the same as /var/www/apache2-default/index.html (i.e. 'diff index.html /var/www/apache2-default/index.html').
Test MySQL
Execute mysql -u root in a terminal. You should then be presented with a mysql prompt mysql> where you can enter mysql commands. Some commands you can use to verify the installation are show databases;, connect mysql;, show tables;, and select * from user;.
Print server
- Boot CD and run the CD self-check (then reboot)
Select Install to hard disk
- Choose your language, country and keyboard layout
- Set hostname: default - ubuntu
- Partition disks: Guided use entire disk
- Select your time zone and set the system clock to UTC
- User account: enter username and password
Software selection: Print Server
- Reboot and login.
Test cupsys:
sudo /etc/init.d/cupsys status should state the cupsd is running.
Openssh server
- Boot CD and run the CD self-check (then reboot)
Select Install to hard disk
- Choose your language, country and keyboard layout
- Set hostname: default - ubuntu
- Partition disks: Guided use entire disk
- Select your time zone and set the system clock to UTC
- User account: enter username and password
Software selection: Openssh Server
- Reboot and login.
- Confirm that sshd is running:
pgrep sshd should return the pid of sshd.
- If you can, try to connect to the server from a remote client.
Samba server
- Boot CD and run the CD self-check (then reboot)
Select Install to hard disk
- Choose your language, country and keyboard layout
- Set hostname: default - ubuntu
- Partition disks: Guided use entire disk
- Select your time zone and set the system clock to UTC
- User account: enter username and password
Software selection: Samba Server
- Reboot and login.
- Confirm that sshd is running:
pgrep smbd, pgrep nmbd, pgrep winbindd should return the pid of the different processes.
Mail server
- Boot CD and run the CD self-check (then reboot)
Select Install to hard disk
- Choose your language, country and keyboard layout
- Set hostname: default - ubuntu
- Partition disks: Guided use entire disk
- Select your time zone and set the system clock to UTC
- User account: enter username and password
Software selection: Mail Server
- Reboot and login.
- Confirm that postfix is running:
telnet 127.0.0.1 25 should connect to postfix.
- Confirm that dovecot pop3 and imap servers are running:
sudo netstat -ltnp | grep dovecot should list 4 dovecot instances (port 110, 143, 993 and 995).
- Send a test email:
mail -s 'test' ${USER}
Start mutt - the test email should be in the inbox.
Mail server
- Boot CD and run the CD self-check (then reboot)
Select Install to hard disk
- Choose your language, country and keyboard layout
- Set hostname: default - ubuntu
- Partition disks: Guided use entire disk
- Select your time zone and set the system clock to UTC
- User account: enter username and password
Software selection: PostgreSQL Database
- Reboot and login.
- Create a database user:
sudo -u postgres createuser -A -D -A ${USER}
- Create a database:
sudo -u postgres createdb -O ${USER} ${USER}_db
- Connect to the database:
psql ${USER}_db
Testing/Cases/ServerInstall (last edited 2009-02-05 16:24:43 by port-213-160-23-156)