simran_kaur

20
Sheridan College Linux Server- Network Setup Linux/Unix System Administration Simran Kaur 11-25-2015

Upload: simran-kaur

Post on 14-Jan-2017

120 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Simran_Kaur

Sheridan College

Linux Server-Network Setup Linux/Unix System Administration

Simran Kaur

11-25-2015

Page 2: Simran_Kaur

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

Page 3: Simran_Kaur

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

Page 4: Simran_Kaur

At the software selection prompt, leave everything unchecked.

Figure 1.2

Page 5: Simran_Kaur

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

Page 6: Simran_Kaur

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

Page 7: Simran_Kaur

4. Ensure each VM can communicate with the Internet

Figure 2.6

Figure 2.7

Page 8: Simran_Kaur

5. Create static host entries for each of the virtual machines.

Figure 2.8 Server2

Figure 2.9 Server1

Page 9: Simran_Kaur

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

Page 10: Simran_Kaur

Figure 2.12 Server2 hostname

Page 11: Simran_Kaur

Figure 2.12 Client hostname

Page 12: Simran_Kaur

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

Page 13: Simran_Kaur

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

Page 14: Simran_Kaur

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

Page 15: Simran_Kaur

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

Page 16: Simran_Kaur

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

Page 17: Simran_Kaur

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

Page 18: Simran_Kaur

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.

Page 19: Simran_Kaur

4. Test your new webpage from your client

Figure 2.20 Testing webpage

Page 20: Simran_Kaur

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.