System Administration Lab Manual
System Administration Lab Manual
System Administration Lab Manual
1
Aim: Installation of Ubuntu 20.4 using Virtual Box
Theory:
Ubuntu: Ubuntu is a Linux distribution based on Debian and composed mostly of free and open-source
software. Ubuntu is officially released in three editions: Desktop, Server, and Core for Internet of things
devices and robots. All the editions can run on the computer alone, or in a virtual machine.
Virtual Box: Oracle VM VirtualBox is a type-2 hypervisor for x86 virtualization developed by Oracle
Corporation. VirtualBox was originally created by Innotek GmbH, which was acquired by Sun Microsystems
in 2008, which was in turn acquired by Oracle in 2010. VirtualBox may be installed on Microsoft Windows,
macOS, Linux, Solaris and OpenSolaris. There are also ports to FreeBSD and Genode. It supports the
creation and management of guest virtual machines running Windows, Linux, BSD, OS/2, Solaris, Haiku,
and OSx86, as well as limited virtualization of macOS guests on Apple hardware.
Screenshots:
Click create.
Click next.
Click next.
Click Start
Now a window will open with ubuntu file checking
Click continue
Select your time zone
Restart the VM
Now login using your password which was specified before
Screenshots:
Open Virtual Box and click on new.
Click create.
Click next.
Click next.
Assign the amount of disk space and click create.
Now the Debian VM will be created and then go to settings and then in storage section.
Select the Debian ISO
Click Start
A window will appear for Debian installation. Here click Graphical Install.
Click create.
Click next.
Click next.
Assign the amount of disk space and click create.
Select Root password form the summary and specify Root password
Similarly specify the username and user password
Now we can use the CentOS just like a normal OS but inside Virtual Box
Press boot menu key to get the boot menu and select the bootable usb of ubuntu
Click continue
Select your location
Use sudo apt install openssh-client command to install the ssh client on ubuntu and Use sudo apt install
openssh-server command to install the ssh server on ubuntu
Here, Sudo service ssh status is used to check if the ssh server is active or not
Finally we can login into our system remotely using the ssh command as shown above by providing the
username and ip address of the remote system.
Screenshots:
Using the sudo apt install telnetd -y command we installed the telnet server on our system
In this step we viewed the status of our telnet server using sudo systmectl status inetd command
Finally we have used telnet command and provided the IP address of our remote system to login into it and
the “ls” command is used to list the files on the remote machine and we have created a new file named
746.txt using the touch command.
Theory:
The File Transfer Protocol (FTP) is a standard communication protocol used for the transfer of computer
files from a server to a client on a computer network. FTP is built on a client–server model architecture
using separate control and data connections between the client and the server. FTP users may
authenticate themselves with a clear-text sign-in protocol, normally in the form of a username and
password, but can connect anonymously if the server is configured to allow it. For secure transmission that
protects the username and password, and encrypts the content, FTP is often secured with SSL/TLS (FTPS)
or replaced with SSH File Transfer Protocol (SFTP).
Screenshots:
In this step we used the sudo apt install vsftpd command to install ftp server on our system, then we used
useradd and passwd command to create a new user. After creating the user we made 2 firewall rules for
the tcp port 20 and 21 to allow traffic through it.
Finally, we have used the ftp command and provided the IP address of our remote system and logged in.
Then we used put and get command to upload and download a file using FTP
Conclusion: Thus, we have successfully installed FTP Server on Ubuntu
Practical No. 8
Aim: FTP Server Command Based Upload & Download
Theory:
The File Transfer Protocol (FTP) is a standard communication protocol used for the transfer of computer
files from a server to a client on a computer network. FTP is built on a client–server model architecture
using separate control and data connections between the client and the server. FTP users may
authenticate themselves with a clear-text sign-in protocol, normally in the form of a username and
password, but can connect anonymously if the server is configured to allow it. For secure transmission that
protects the username and password, and encrypts the content, FTP is often secured with SSL/TLS (FTPS)
or replaced with SSH File Transfer Protocol (SFTP).
Screenshots:
In this step we used the sudo apt install vsftpd command to install ftp server on our system, then we used
useradd and passwd command to create a new user. After creating the user we made 2 firewall rules for
the tcp port 20 and 21 to allow traffic through it.
Finally, we have used the ftp command and provided the IP address of our remote system and logged in.
Then we used put and get command to upload and download a file using FTP
Conclusion: Thus, we have successfully performed FTP Server Command Based Upload & Download on
Ubuntu
Practical No. 9
Aim: HTTP server installation on ubuntu
Theory:
Hypertext Transfer Protocol (HTTP) is an application-layer protocol for transmitting hypermedia documents,
such as HTML. It was designed for communication between web browsers and web servers, but it can also
be used for other purposes.
Apache is the most used Web server on Linux systems. Web servers are used to serve Web pages
requested by client computers. Clients typically request and view Web pages using Web browser
applications such as Firefox, Opera, Chromium, or Internet Explorer.
Screenshots:
Here, sudo apt update command is used to update the packages and the we installed
apache2 using sudo apt install apache2 command
Here, sudo ufw app list is used to browse packages using the firewall and we have enabled firewall using
sudo ufw enable command. The we checked the status of apache2 server using sudo systemctl status
apache2 command.
Now, we went to /var/www/html and created 2 html files (index.html and page2.html)
To view the html files/website we can now use the IP address of our system on which http server is installed
to view the site on a browser.
Conclusion: Thus, we have successfully installed HTTP Server on Ubuntu
Practical No. 10
Aim: Proxy server installation on ubuntu
Theory:
A proxy server is a computer system or router that functions as a relay between client and server. It helps
prevent an attacker from invading a private network and is one of several tools used to build a firewall.
The word proxy means "to act on behalf of another," and a proxy server acts on behalf of the user. All
requests to the Internet go to the proxy server first, which evaluates the request and forwards it to the
Internet.
Screenshots:
To install a proxy server we require to install squid using the command sudo apt install squid
Now, we can edit the configuration of our proxy server using the sudo nano /etc/squid/squid.conf command
After configuration we viewed the status of the squid service
Now we can use the IP address of our proxy server in another system as a manual proxy server.
Samba runs on most Unix-like systems, such as Linux, Solaris, AIX and the BSD variants, including Apple's
macOS Server, and macOS client (Mac OS X 10.2 and greater). Samba also runs on a number of other
operating systems such as OpenVMS and IBM i. Samba is standard on nearly all distributions of Linux and
is commonly included as a basic system service on other Unix-based operating systems as well. Samba is
released under the terms of the GNU General Public License. The name Samba comes from SMB (Server
Message Block), the name of the proprietary protocol used by the Microsoft Windows network file system.
Screenshots:
In this step we updated our package repository using sudo apt update command
Now, we can use sudo apt install samba to install the samba server on our system
Now, using mkdir /home/aditya/sambashare command we have created a new directory with the name
sambashare and then we used sudo nano /etc/samba/smb.conf to edit the configuration files of samba
Here we have to specify the path i.e. the directory we have created before and “guest ok = yes” is used to
allow anonymous logins to the smaba server.
In this step we restarted the samba server using sudo service smbd restart command and the added
firewall rule to allow the transfer of samba traffic.
Finally, we restarted the samba server to apply all the changes and viewed its status. Then we made a text
file inside the previously made folder using touch 746.txt command.
Now, using the file manager we and the IP address of our samba server we can login in into it
Since, we have allowed guest to login into the samba server in configuration file, we can select anonymous
as an option to connect.
Now, we can see the file we have created before on our server which is 746.txt.