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
- See time
date
- See timezone
ls /usr/share/zoneinfo/
- See timezone Asia
ls /usr/share/zoneinfo/Asia
- When you see timezone you want to change, you can change by command:
cp /usr/share/zoneinfo/Asia/Ho_Chi_Minh /etc/localtime
- Check again by command
date
- Sync time with internet by btpdate
- Install ntp:
yum install -y ntp
- Sync time by:
ntpdate vn.pool.ntp.org
service ntpd start
- Install ntp: