Some Tips For Ubuntu (Linux)

Some Tips For Ubuntu (Linux)

2020, Jul 10    

Use command with user

Change to account admin (if your account have permission admin)

sudo su

Change password root

sudo passwd root

Install nano edit

yum install nano zip unzip -y

Enable root login over SSH:

nano /etc/ssh/sshd_config Add a line in the Authentication section of the file that says PermitRootLogin yes and delete #

Restart the SSH server

service sshd restart

Change Timezone in Ubuntu

  1. See time


  2. See timezone

    ls /usr/share/zoneinfo/

  3. See timezone Asia

    ls /usr/share/zoneinfo/Asia

  4. When you see timezone you want to change, you can change by command:

    cp /usr/share/zoneinfo/Asia/Ho_Chi_Minh /etc/localtime

  5. Check again by command


  6. Sync time with internet by btpdate
    • Install ntp:

      yum install -y ntp

    • Sync time by:

      service ntpd start