simran_kaur
TRANSCRIPT
Sheridan College
Linux Server-Network Setup Linux/Unix System Administration
Simran Kaur
11-25-2015
Table of Contents
Part 1 Install New Server ................................................................................................................ 2
1. Manual partitioning to achieve following layout: ................................................................ 2
Part 2: Networking Configuration .................................................................................................. 4
1. Make a backup of interfaces file: ......................................................................................... 4
2. Statically assign the IP address to new server2 ................................................................... 5
3. Ping server2 to and from all of your other machines ........................................................... 5
4. Ensure each VM can communicate with the Internet .......................................................... 6
5. Create static host entries for each of the virtual machines. .................................................. 7
6. The VM should also have valid hostnames assigned in the operating system. ................... 8
Part3: - Configure Samba / SSH ................................................................................................... 11
PART4: CONFIGURE YOUR SRV1 TO BE A WEB SERVER ................................................ 17
1. Find and install the appropriate package for serving web pages ....................................... 17
2. Create a backup of the index.html file ............................................................................... 17
3. Create a new or modify the original with a simple webpage that has your information on it
– Full Name, etc. ....................................................................................................................... 17
4. Test your new webpage from your client .......................................................................... 18
Problems Encountered .................................................................................................................. 19
Part 1 Install New Server
1. Manual partitioning to achieve following layout:
A new virtual machine (ubuntu_file_server) that is Linux (Ubuntu) based created and the
default memory and hard disk requirement are used.
Figure 1.1
At the software selection prompt, leave everything unchecked.
Figure 1.2
Part 2: Networking Configuration
Server1 IP (eth0) Server2 IP (eth0) Ubuntu IP (eth0)
192.168.1.10 192.168.1.20 192.168.1.200
1. Make a backup of interfaces file:
cp interfaces interfaces_assign2
Figure 2.1 Server2 backup file
Figure 2.2 Server1 backup file
2. Statically assign the IP address to new server2
Figure 2.3
3. Ping server2 to and from all of your other machines
Figure 2.4
Figure 2.5
4. Ensure each VM can communicate with the Internet
Figure 2.6
Figure 2.7
5. Create static host entries for each of the virtual machines.
Figure 2.8 Server2
Figure 2.9 Server1
Figure 2.10 Ubuntu Client
6. The VM should also have valid hostnames assigned in the operating system.
Figure 2.11 Server1 valid host name
Figure 2.12 Server2 hostname
Figure 2.12 Client hostname
Part3: - Configure Samba / SSH
1. Install SSH Server
2. Verify SSH connectivity by connecting to this server using a terminal (putty or a Linux
terminal) from your client.
Figure 2.13 Server2 hostname
3. Install the package that offers samba (SMB / cifs) functionality.
Command : sudo apt-get install samba
Figure 2.14 Package installation
4. Make a backup of your samba configuration
Figure 2.15 Backup of smb.conf
5. Modify the samba configuration file and create three shares definitions – backups,
configs, and private. The paths for these shares should reside in /srv/data/backups,
/srv/data/configs, and /srv/data/private
Figure 2.16 Adding shares
6. Ensure you can (authenticate) access the shares from your windows/linux client. Once
connected, all three shares should be visible
Figure 2.17 Client view of shares
7. Ensure you can read and write to all of the shares.
Command: chgrp groupname
Figure 2.18 Ensures that a file can be created on backups
8. You are asked to make the private share hidden, so if someone stumbles on the server,
they won’t see this particular share
Figure 2.19 Private folder hidden
PART4: CONFIGURE YOUR SRV1 TO BE A WEB SERVER
1. Find and install the appropriate package for serving web pages
2. Create a backup of the index.html file
Command: sudo cp index.html backup.html
3. Create a new or modify the original with a simple webpage that has your information on
it – Full Name, etc.
4. Test your new webpage from your client
Figure 2.20 Testing webpage
Problems Encountered
I was unable to install ssh on my server2. I used the command:
Sudo apt-get install openssh
But still the problem occurred. The error stated that package was not found.
The problem was resolved by using sudo apt-get update
before installation and using sudo apt-get upgrade after installation.