Ubuntu Server
Agus Setiawan
Lab 01. Persiapan Software
1. Download dan install oracle virtualbox : [Link]
2. Download dan install putty : [Link]
3. Download ISO Ubuntu Server :
[Link]
Lab 02. Instalasi Ubuntu Server
Hands On Lab
Lab 03. Remote SSH
One essential tool to master as a system administrator is SSH.
SSH, or Secure Shell, is a protocol used to securely log onto remote systems. It is the most common way
to access remote Linux servers.
Open Putty , input IP Address of Linux Server & Connect to port 22 (default)
Lab 04. Basic Linux Command
References :
[Link]
Structure Command :
Command -Option Argument
Lab 05. Initial Settings : Add User Accounts
ubuntu@nxt:~$ sudo adduser focal
ubuntu@nxt:~$ sudo usermod -G sudo focal
ubuntu@nxt:~$ su - focal
ubuntu@nxt:~$ sudo deluser focal
ubuntu@nxt:~$ sudo deluser focal --remove-home
Lab 05. Initial Settings : Enable root User Account
ubuntu@nxt:~$ sudo -s
ubuntu@nxt:~$ sudo passwd root
ubuntu@nxt:~$ su -
Lab 05. Initial Settings : Enable root User Account
root@nxt:~# vi /etc/pam.d/su
auth required pam_wheel.so group=adm
root@nxt:~# usermod -G adm ubuntu
Lab 05. Initial Settings : Network Settings
root@nxt:~# mv /etc/netplan/[Link] /etc/netplan/[Link]
root@nxt:~# vi /etc/netplan/[Link]
root@nxt:~# netplan apply
root@nxt:~# ip addr
Lab 05. Initial Settings : Network Settings
# create new # default gateway
network: gateway4: [Link]
ethernets:
nameservers:
# interface name
# name server to bind
enp1s0:
addresses: [[Link]]
dhcp4: no
dhcp6: no
# IP address/subnet mask
version: 2
addresses: [[Link]/24]
Lab 05. Initial Settings : Update System
root@nxt:~# apt update
root@nxt:~# apt upgrade
Lab 06. NTP
Install NTPd and Configure NTP server for time adjustment. NTP uses 123/UDP.
root@nxt:~# apt -y install ntp
root@nxt:~# vi /etc/[Link]
root@nxt:~# systemctl restart ntp
root@nxt:~# ntpq -p
Lab 07. Transfer File Using SSH
Download dan Install WinSCP : [Link]
root@nxt:~# apt -y install openssh-server
root@nxt:~# vi /etc/ssh/sshd_config
PermitRootLogin no
root@nxt:~# systemctl restart ssh
Lab 08. FTP
root@nxt:~# apt -y install vsftpd
root@nxt:~# vi /etc/[Link]
root@nxt:~# vi /etc/vsftpd.chroot_list
Ubuntu
root@nxt:~# systemctl restart vsftpd
write_enable=YES
ascii_upload_enable=YES
ascii_download_enable=YES
chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list
ls_recurse_enable=YES
local_root=public_html
seccomp_sandbox=NO
Lab 09. SAMBA
root@nxt:~# apt -y install samba
root@nxt:~# mkdir /home/share
root@nxt:~# chmod 777 /home/share
root@nxt:~# vi /etc/samba/[Link]
[Share]
path = /home/share
writable = yes
guest ok = yes
guest only = yes
force create mode = 777
force directory mode = 777