Lab-02_Installing-Debian-Linux-Applications.pdf - Server Security Architecture Lab Assignment 2 Part 1 Installing and setting up Debian Linux Part 2

Lab-02_Installing-Debian-Linux-Applications.pdf - Server...

This preview shows page 1 - 6 out of 75 pages.

Server Security Architecture Lab Assignment 2 Part 1 Installing and setting up Debian Linux Part 2 Linux server applications Page 1 of 75
Image of page 1
Lab Assignment 2 .......................................................................................................................... 1 Part 1 Installing and setting up Debian Linux. ............................................................... 4 Purpose ........................................................................................................................................ 5 Objectives .................................................................................................................................... 5 Requirements ............................................................................................................................. 5 Linux ............................................................................................................................................. 5 Installing Debian ........................................................................................................................ 7 Step 1 Create a new VM in Virtualbox ................................................................................. 7 Step 2 Install Debian ........................................................................................................... 12 Step 3 Verify Internet connectivity and update ................................................................ 26 Sudo and su .............................................................................................................................. 29 Add a secondary network interface ................................................................................... 29 Step 1 Adding a secondary interface in Virtualbox .......................................................... 30 Step 2 Boot and verify ........................................................................................................ 31 Users .......................................................................................................................................... 31 Adding a user ......................................................................................................................... 32 Removing a user .................................................................................................................... 34 Groups ....................................................................................................................................... 35 Adding a group ....................................................................................................................... 35 Adding a user to a group ....................................................................................................... 36 Removing a user from a group ............................................................................................. 36 Removing a group .................................................................................................................. 36 Permissions ............................................................................................................................. 37 Trying out permissions ......................................................................................................... 37 Remote access by SSH ........................................................................................................... 41 Installing a SSH server ........................................................................................................... 41 Generate keys ......................................................................................................................... 41 Try the SSH server ................................................................................................................. 42 Disable the SSH server (and re-enable) ............................................................................... 43 Samba Shared folders to a Windows machine ............................................................. 44 Installing and configuring Samba for a shared folder ......................................................... 44 Sharing a folder with password access ................................................................................ 48 Summary .................................................................................................................................. 52 Lessons learned ..................................................................................................................... 53 Lab Assignment 2 .................................................................................................................... 54 Part 2 Linux Server applications ...................................................................................... 54 Purpose ..................................................................................................................................... 55 Objectives ................................................................................................................................. 55 Requirements .......................................................................................................................... 55 Linux applications .................................................................................................................. 55 DHCP-server ............................................................................................................................ 57 Step 1 Disable Virtualbox DHCP-server ............................................................................ 57 Step 2 Download a DHCP-server application ................................................................... 58 Step 3 Set a static IP on the secondary network interface ............................................... 59 Step 4 Configure the DHCP-server application ................................................................. 60 Step 5 Test the DHCP-server from Kali ............................................................................. 62 HTTP server ............................................................................................................................. 63 Step 1 Download Apache web server ................................................................................ 63 Step 2 Verify that apache is running ................................................................................. 63 MySQL-server .......................................................................................................................... 64 Step 1 Download and install MySQL-server ..................................................................... 64 Step 2 Verify that MySQL is running ................................................................................. 65 PHP ............................................................................................................................................ 66 Step 1 Install php ................................................................................................................ 66 Step 2 Verify that php has been enabled and is working ................................................. 67 phpMyAdmin ........................................................................................................................... 68 Page 2 of 75
Image of page 2
Step 1 Install phpMyAdmin ................................................................................................ 69 Step 2 Verify that phpMyAdmin is working ...................................................................... 70 FTP-server ............................................................................................................................... 71 Step 1 Download and install vsftpd ................................................................................... 71 Step 2 Configure vsftpd ...................................................................................................... 72 Step 3 Verify that vsftpd is working .................................................................................. 73 Summary .................................................................................................................................. 74 Lessons learned ..................................................................................................................... 75 Page 3 of 75
Image of page 3
Part 1 Installing and setting up Debian Linux. Page 4 of 75
Image of page 4