Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
90 views

Modul Training Ubuntu Server

This document provides instructions for setting up an Ubuntu Server virtual machine. It outlines downloading and installing Oracle VirtualBox and Putty. It then guides setting up the Ubuntu Server ISO image in VirtualBox. Following labs cover remotely accessing the server via SSH, basic Linux commands, adding user accounts, enabling the root user, configuring networking and time synchronization with NTP, transferring files with SSH and FTP, and sharing a folder with Samba.
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
90 views

Modul Training Ubuntu Server

This document provides instructions for setting up an Ubuntu Server virtual machine. It outlines downloading and installing Oracle VirtualBox and Putty. It then guides setting up the Ubuntu Server ISO image in VirtualBox. Following labs cover remotely accessing the server via SSH, basic Linux commands, adding user accounts, enabling the root user, configuring networking and time synchronization with NTP, transferring files with SSH and FTP, and sharing a folder with Samba.
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 17

Ubuntu Server

Agus Setiawan
Lab 01. Persiapan Software

1. Download dan install oracle virtualbox : https://www.virtualbox.org/wiki/Downloads


2. Download dan install putty : https://www.putty.org/
3. Download ISO Ubuntu Server :
https://releases.ubuntu.com/20.04/ubuntu-20.04.3-live-server-amd64.iso
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 :
https://i.redd.it/rl0fe7r6zku11.jpg

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/00-installer-config.yaml /etc/netplan/00-installer-config.yaml.org

root@nxt:~# vi /etc/netplan/01-netcfg.yaml

root@nxt:~# netplan apply

root@nxt:~# ip addr
Lab 05. Initial Settings : Network Settings

# create new # default gateway

network: gateway4: 10.0.0.1


ethernets:
nameservers:
# interface name
# name server to bind
enp1s0:
addresses: [10.0.0.10]
dhcp4: no
dhcp6: no
# IP address/subnet mask
version: 2
addresses: [10.0.0.30/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/ntp.conf

root@nxt:~# systemctl restart ntp

root@nxt:~# ntpq -p
Lab 07. Transfer File Using SSH

Download dan Install WinSCP : https://winscp.net/eng/download.php


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/vsftpd.conf

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/smb.conf
[Share]

path = /home/share

writable = yes

guest ok = yes

guest only = yes

force create mode = 777

force directory mode = 777

You might also like