Click here for "Safe Air Conditioner Repair and Proper Freon Recovery".

Ubuntu Server 18.04 ; FTP Serve , NTP Server

1.Install the FTP server vsftpd

① Install

# apt install vsftpd

② Allow PORT21 to be used by FTP in UFW(firewall)

#ufw allow ftp
# ufw reload

③ Edit the configuration file (vsftpd.conf)

# vi /etc/vsftpd.conf

# Do not allow anonymous users to log in

# Allow login by local user account

# Allow the use of FTP commands to make changes to files

# Set the permission values to be applied to new files.

# Change the user’s login directory to the user’s root directory.

# Users will not be able to access outside of the login directory.

# Users listed in the “vsftpd.chroot_list” are exempt from the above restrictions.

# Allow uploads by ASCII

# Allow downloading by ASCII

# Line 131: uncomment( Enables bulk transfer of entire directories. )

④ Create an authorized user list file

# vi /etc/vsftpd.chroot_list


⑤ Enable vsftpd

# systemctl restart vsftpd

⑥ Configuring the FTP client
Open FFFTP and select Connect from the menu bar.

A window called “Host List” will open. Select a new host.

A window called “Host Settings” will open. Special clic and Enter the following and press OK.

  1. Profile Names(Any name)
  2. Host Names/Address(IP address of Ubuntu)
  3. Usename(hoge)<General User Name>
  4. Password/Phrase<General user password>

You are now back at the Host List window. Please press Connect.

A window called “Save Encryption Status” will open. Select Yes.

If you can see the Windows directory on the left and the Ubuntu directory on the right, the connection is successful.
If you can’t get through, turn Passive mode on and off.

2.Install NTP server and adjust time

2.1 time adjustment

① Enable timedatectl
Use the set-ntp option to enable or disable it.

# timedatectl set-ntp true

② Check current system time

# timedatectl status

Local time: 日 2015-06-28 00:19:26 JST

  Universal time: 土 2015-06-27 15:19:26 UTC

        RTC time: 土 2015-06-27 15:19:26

       Time zone: Asia/Tokyo (JST, +0900)

      NTP enabled: yes             ← NTP time synchronization enabled state

NTP synchronized: yes             ← NTP time synchronized

 RTC in local TZ: no

      DST active: n/a

③”/usr/lib/systemd/systemd-timesyncd” daemon process status check

# systemctl status systemd-timesyncd.service

●systemd-timesyncd.service – Network Time Synchronization   Loaded:loaded(/usr/lib/systemd/system/system-timesyncd.service; enabled; vendor preset: enabled)   Active: active (running) since 土 2015-06-27 19:29:29 JST; 4h 57min ago     Docs: man:systemd-timesyncd.service(8) Main PID: 8787 (systemd-timesyn)   Status: “Using Time Server (”   CGroup: /system.slice/systemd-timesyncd.service           └─8787 /usr/lib/systemd/systemd-timesyncd June 27 19:29:29 mimi systemd[1]: Starting Network Time Synchronization… June 27 19:29:29 mimi systemd[1]: Started Network Time Synchronization. June 27 20:45:20 mimi systemd-timesyncd[8787]: Timed out waiting for reply from ( June 27 20:45:30 mimi systemd-timesyncd[8787]: Timed out waiting for reply from (

Change time zone

Asia/Tokyo  Specifying the time zone

View available zones

# timedatectl list-timezones



Specifying the time zone、The /etc/localtime link will change.

# timedatectl set-timezone Asia/Tokyo

Check your time zone

# timedatectl status

      Local time: Sunday 2015-06-28 17:57:04 JST

  Universal time: Sunday 2015-06-28 08:57:04 UTC

        RTC time: Sunday 2015-06-28 08:57:04

       Time zone: Asia/Tokyo (JST, +0900)

      NTP enabled: yes

NTP synchronized: yes

 RTC in local TZ: no

DST active: n/a

2.2 NTP server: Configure NTPd

① NTP server installation

apt -y install ntp

② Edit configuration file

# vi /etc/ntp.conf

# Line 21.:Comment the default settings and add the NTP server for your own time zone.

#pool iburst
#pool iburst
#pool iburst
#pool ibursr

# Use Ubuntu’s ntp server as a fallback.
server iburst
server iburst
server iburst

# Line 53.:Add the range to allow time synchronization.
restrict mask nomodify notrap

# restart
# systemctl restart ntp

# operation check
# ntpq -p

       remote         refid               st t        when poll reach    delay     offset      jitter
ntp-a3.nict.go. .NICT.                 1 u           1    64      1    29.497     12.191    0.000
ntp1.jst.mfeed.  2 u           2    64      1    19.361     13.572    0.000
ntp2.jst.mfeed.  2 u           2    64      1    19.172     13.462    0.201