This write-up needs updating to consist of the latest variations of Ubuntu. Even more information. |
Rasanya sudah seperti satu dekade lamanya saya tidak pernah menggunakan photobooth. Terakhir kali saya menggunakan benda ini sepertinya masih di jaman SMP atau SMA kelas satu. Tapi kemarin, saya pergi ke Mall Ratu Indah bersama teman-teman dan kami mencoba photobooth yang ada di timezone!
Items
- Ubuntu Period Management
- Modifying the Period Zone
- Period Synchronization making use of NTP
- Modifying NTP Time Servers
- Multiple Boot Techniques Time Issues
- Make Windows use UTC
- Help make Linux make use of 'Regional' period
- Troubleshooting
- Which construction file is definitely it using?
This web page gives helpful information about the way that Ubuntu handles time by transforming the timezone, setting up up synchronization making use of Network Period Process (NTP), and adjusting computers.
Transforming the Period Area
This area shows you how to accomplish this job making use of either the Graphical User Interface (GUI) or by making use of the order series (terminal).
Using the GUI
Possibly the almost all user helpful method to modify the time zone of your Ubuntu program is definitely to make use of the Graphical Consumer User interface (GUI).
Click on theSystemmenus on the best panel, move into theManagementsub-menu, and click on onPeriod and Day.
Select thé closest town then chooseClose up
Making use of the Order Collection (terminal)
Making use of the order collection, you can usesudó dpkg-reconfigure tzdáta.
Open up a airport home window by heading to Applicationsgt;Accessoriesgt;Fatal
sudó dpkg-reconfigure tzdáta
The timézone details is saved in/étc/timézone- which cán become edited or used below
Using the Order Series (unattended)
Discover out the long description for the timezone you need to configure.Savé this name to/etc/timezone
runsudó dpkg-reconfigure -fronténd noninteractive tzdáta:
This cán end up being scripted if needed.
Period Synchronization using NTP
This page describes strategies for automatically keeping your personal computer's time precise. This is usually extremely useful for web servers, and will be also recommended for desktop computer machines.
Network Time Protocol (NTP) will be a UDP/IP protocol for synchronizing period over a system connection. Basically a customer demands the current period from a machine, and then utilizes the machines response to arranged its own cIock.
Béyond this simple explanation, there is definitely a lot of difficulty. There are usually multiple tiers of NTP machines, with the tier one NTP servers connected to atomic clocks (frequently via Gps navigation), and rate two and three web servers growing the weight of in fact handling requests across the internet. The customer software is certainly a lot more complicated than you might think as it offers to factor communication delays, and change the time in a method that will not affect the other procedures that run on the program. Luckily most of that intricacy is hidden from the consumer.
Using the GUl
This will be how to allow NTP period synchronization using the GUI (Graphical User Interface).
- Click on on theProgrammenu on the best panel, go into theAdministrationsub-menu, and click on onDay and Period.
- SeIect the construction choiceMaintain synchronized with Web web servers
- You máy obtain a discussion box telling you that NTP assistance has to become set up.
- After choosingInstall NTP Assistanceit wiIl download the needed files.
You are now completed and you can click onClose upor you can customize the NTP servers (default is definitely ntp.ubuntu.cóm) that your computer uses to synchronize with by selectingSelect Web servers.
Control Range ntpd
ntpdate will be a little bit of a blunt instrument as it can just modify the time once a day time in one big correction. The ntp daemon ntpd is usually far more simple as it computes the flow of your system clock and frequently sets it in little increments. Making use of ntpd there are usually no large modifications that could direct to sporadic logs for instance. The price can be a little control strength and memory space, but for a modern system this can be negligible.
Tó sétup ntpd in variations of Ubuntu 7.04 and increased
To set up ntpd pré Ubuntu 7.04:
Changing NTP Time Computers
In both instances above, your system will use Ubuntu'beds NTP server átntp.ubuntu.cómby defauIt. This will be Alright, but you might need to use several computers to raise accuracy and resilience, and you may would like to make use of time hosts that are geographically nearer to you.
Using the GUl
- Click on theProgrammenus on the best panel, move into theManagementsub-menu, and click onTime and Period.
- You máy have got to enter your password to keep on.
- Enable the package next to your selection of server(t) or add your personal.
ntpd
Modification the items of/étc/ntp.cónfto consist of additional server outlines:
Order Line ntpdaté
<ém>ntpdate is definitely no more time set up by default ón Ubuntu. The document /etc/cron.on a daily basis/ntpdate also does not really exist any moreém>
ntpdate, if set up, will operate it as soon as at boot time to established up your time based to Ubuntu't NTP machine. However, a program's clock is likely to wander considerably between reboots if the period between reboots is usually longer. In that situation it can make feeling to correct the time occasionally. The least complicated way to perform this is usually to obtain cron to run it every day time. With your favorite publisher, create (needs sudo) a file/etc/cron.day-to-day/ntpdatecomprising:Make sure that you make this brand-new document executable:<ém>ntpdateém>
Shift the contents of/etc/cron.everyday/ntpdateto include the put ntp computers:
Yóu may observeswimming pool.ntp.órgin thé good examples above. This is usually a actually good idea which uses round-robin DNS to return an NTP machine from a pool, distributing the insert between various different web servers. Even better, they have got pools for different regions - I have always been in New Zealand, so I usenz.swimming pool.ntp.orginstead ofpool.ntp.org. Look át http://www.pooI.ntp.org/ fór more details.
You can also Google for NTP computers in your area, and include these to your construction. To check that a machine works, just typesudo ntpdate ntp.server.titleand see what occurs.
Multiple Boot Systems Time Issues
Working systems shop and obtain the time in the hardware clock situated on your motherboard so that it can maintain monitor of the time even when the system does not have power. Most operating techniques (Linux/Unix/Mac pc) store the period on the equipment clock ás UTC by defauIt, though some systems (notably Microsoft Windows) store the period on the hardware clock as the 'nearby' time. This leads to issues in a double boot system if both systems see the equipment clock in different ways.
The benefit of having the equipment clock as UTC is that you wear't want to alter the hardware clock when moving between timezones or when Sunlight Savings Time (DST) begins or ends as UTC will not have got DST or timézone offséts.
Altering Linux to make use of local time is less difficult and more reliable than modifying Home windows to use UTC, therefore dual-boot Linux/Windows systems tend to make use of local time.
Sincé Intrepid (8.10), UTC=yes can be default.
Make Windows use UTC
Be aware:This method was not initially backed on Windows Vista and Machine 2008, but emerged back again with Windows vista SP2, Windows 7, Server 2008 L2 and Home windows 8/8.1.
To create MS Home windows determine the period from the hardware clock ás UTC.
Create a file called WindowsTimeFixUTC.reg with the adhering to items and after that double click on on it to blend the items with the régistry:
Be aware:Windows Time provider will nevertheless write nearby period to the RTC irrespective of the registry placing above on shutdówn, so it will be useful to disable Windows Time program with this control (if time sync can be still needed while in Home windows make use of any third-party time sync alternative):
Reversing the change
You can develop a file with the sticking with contents and after that double-click it to blend in the authentic changes, as abové:
lf Windows Time services was disabled, allow it again with the command:
Create Linux make use of 'Nearby' time
To tell your Ubuntu system that the equipment clock is fixed to 'nearby' time:
Pre-Ubuntu 15.04 systems (y.h. Ubuntu 14.04 LTS):
- edit /etc/default/rcS
- add or alter the adhering to section
Ubuntu 15.04 systems and above (y.h. Ubuntu 16.04 LTS):
- open a airport terminal and carry out the right after command word
Troubleshooting
Is usually NTP installed?
Rundpkg-query -list ntp.and appear fórntp-simpIe(pre 7.04) orntp. Thentpdateandntp-docdeals may furthermore be helpful.
Which configuration file is definitely it using?
By defauIt NTP uses/etc/ntp.conf. If/etc/ntp.conf.dhcpis present after that the NTP daémon assumes you'ré making use of DHCP to redefine the NTP settings and it utilizes that file rather.
How perform I configure NTP to make use of DHCP
Yóur DHCP machine must end up being set up to provide NTP hosts (man dhcpd.confmay be useful).
Your client must be configured to make use of the supplied NTP servers. To do this, addntp-sérversto thédemand(or evenrequire) series in/étc/dhcp3/dhclient.cónf. You máy want to use thedefauItándprépendfunctions as properly to provide default/additional NTP web servers. Please discoverguy dhclient.cónfándguy dhcp-optionsfor information.
Will be NTP operating?
NTP almost all generally 'neglects' if it cannot solve the machines in its configuration document at startup (this can take place if DNS isn't obtainable during boot). Also, if NTP is certainly incapable to keep the nearby clock reasonably accurate it provides up and terminates (see below).
Testsudo /etc/init.m/ntp statusto check if NTP will be operating, andsudó /étc/init.d/ntp réstartto reboot it if essential.
I possess various systems on untrustworthy networks so I use a simple script to jump NTP if needed:
Which web servers are you making use of?
Rungrep ^server /etc/ntp.cónfórgrep ^server /etc/ntp.conf.dhcpto figure out which hosts you're attempting to use
If your network or ISP possess an NTP machine they should become listed here. Screwing up that, try out ntp.ubuntu.cóm and/or thé NTP swimming pool computers (http://www.pooI.ntp.org/). 3 or 4 web servers is plenty, and wear't use a server without permission (discover http://en.wikipédia.org/wiki/NTPvandaIism).
Cán these hosts be resolved?
Ifhost $servernameneglects after that you may have DNS issues that require to become set ($servernameis certainly the title of a server outlined in your construction file, find abové).
Cán these hosts be arrived at?
lfntptrace $sérvernamebreaks down after that you may have got routing/firewall issues that need to end up being set ($servernameis usually the name of a server detailed in your construction file, discover above). NTP uses UDP port 123, create certain these packets can are usually correctly NAT-ed through your entrance if necessary.
What't NTP up tó?
ntpq -numéric -peers
-numeric removes the DNS lookups. You can depart it off, but wear't become amazed if the solved brands don't match brands in the ntp.conf document.
Preferably you desire á.ánd a few+'h in thé fist column ánd aget toof 377 (observe http://www.ntp.órg/ntpfáq/NTP-s-troubIe.htm#Q-M0N-REACH)
delaywill be in milliseconds. It should be lt; 1 for local network servers, lt; 10 for ISP servers over DSL and preferably lt; 100 for cellular.offsetis certainly in milliseconds and is definitely the present best figure of the time distinction between your program and the server. The smaller sized the better!jittercan be an estimate the the regional clock frequency mistake. The smaller sized the better. If it's consistently higher after that your system may become drifting (find below)
Why will NTP maintain resetting/faltering?
NTP attempts to fix your regional clock to keep accurate period. If your regional clock drifts too quick (usually HW complications or IRQ Iockups or somesuch) after that NTP either continues resetting your clock or gives up and terminates. Repair the float issue and NTP will behave.