AWS EC2 Tips for Beginner 1. Setting timezone
I started making apps as side projects.
I'm about to write down some tips for struggling beginners like me.
First, Setting timezone.
If you googled like this,
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyD5FT2A_WeKj5P2ODkkD1ld15PnLwBtyJa8XIWKOdA7hW8lnimz2lofBNcFVomfNZlpuiMioMi3n3PfUNkG7AS2Wlca0h-V1BpRt5-nV4Zp2-W11t8PPcX5AR_AXyFEFspoxmqoKb-x8/s640/Screenshot+2019-07-17+at+11.19.07+PM.png)
many blogs or sites were telling me like this.
2. Show All Available timezone
From the 2, I can see nothing.
Because I had no timezones. Even I didn't have '/usr/share/zoneinfo' directory.
I struggled few days, and finally I found something out.
This
sudo apt install tzdata
After I installed it, all of problems were solved.
You can setting time that you want while installing.
If you have something in '/usr/share/zoneinfo' directory, you should follow other blogs.
I'm about to write down some tips for struggling beginners like me.
First, Setting timezone.
If you googled like this,
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyD5FT2A_WeKj5P2ODkkD1ld15PnLwBtyJa8XIWKOdA7hW8lnimz2lofBNcFVomfNZlpuiMioMi3n3PfUNkG7AS2Wlca0h-V1BpRt5-nV4Zp2-W11t8PPcX5AR_AXyFEFspoxmqoKb-x8/s640/Screenshot+2019-07-17+at+11.19.07+PM.png)
many blogs or sites were telling me like this.
1. Check your Current Timezone Setting.
$ timedatectl
$ ls -l /usr/share/zoneinfo
2. Show All Available timezone
$ timedatectl list-timezones.....
From the 2, I can see nothing.
Because I had no timezones. Even I didn't have '/usr/share/zoneinfo' directory.
I struggled few days, and finally I found something out.
This
sudo apt install tzdata
After I installed it, all of problems were solved.
You can setting time that you want while installing.
If you have something in '/usr/share/zoneinfo' directory, you should follow other blogs.
Comments
Post a Comment