[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

Diferències

Ací es mostren les diferències entre dos versions de la pàgina.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ca-valencia:howtos:hardware:syncing_hardware_clock_and_system_local_time [2015/01/08 15:03 (UTC)] – [How To Sync Your System Time to Hardware Clock Consistently] Title translation el_pinux_penatca-valencia:howtos:hardware:syncing_hardware_clock_and_system_local_time [2015/01/09 13:06 (UTC)] (Actual) el_pinux_penat
Llínea 1: Llínea 1:
-<note>Work in progess by Jordi Garcia Soler</note> 
  
 <!-- Reviewed 20130111 by hazel --> <!-- Reviewed 20130111 by hazel -->
Llínea 5: Llínea 4:
 ====== Com sincronitzar l'hora del teu sistema de manera consistent amb el rellotge del maquinari ====== ====== Com sincronitzar l'hora del teu sistema de manera consistent amb el rellotge del maquinari ======
  
-===== Overview =====+===== Perspectiva General =====
  
-If you are booting multiple Linux distributions on the same machineyou might face the problem of inconsistent time zone settings across distributionsFor exampleassume you are dual-booting two Linux distributionsDistro and Distro Y. You have set your BIOS hardware clock to show the local time+Si estas iniciant múltiples distribucions de Linux en la mateixa màquinapots enfrontar-te a un problema d'inconsistència de configuració de la zona horària entre les distribucionsPer exempleassumint que tens un arranc dual amb dos distribucions de Linux, Distribució i Distribució i que has fixat el teu rellotge de maquinari de la BIOS per a que mostre l'hora local. 
  
-If Distro is configured to read the hardware clock as local timeit will show the time correctlybut if Distro is configured to read  the hardware clock as set to UTC, then it will show an incorrect time+Si la Distribució està configurada per a llegir el rellotge de maquinari com a hora local, mostrarà l'hora correctamentperò si la Distribució està configurada per a llegir el rellotge de maquinari com a UTC, mostrarà una hora incorrecta
  
-This HOWTO attempts to provide a simple and cross-distribution one-time solution to the issuemaking sure all your distributions know that your hardware clock is set to the local time (or UTC if you prefer it). +Este COM tracta de proporcionar un solució al problema simple, única i vàlida per a totes les distribucions, assegurant-te de que totes les teues distribucions saben que al teu rellotge de maquinari està fixada l'hora local (UTC si així ho prefereixes). 
  
-<note tip>The other solution to time management on system is to synchronize your computer's clock with an NTP (Network Time Protocol) server.</note>+<note tip>L'altra solució la gestió de l'hora a un sistema és sincronitzar el rellotge del teu ordinador  amb un servidor NTP (Network Time Protocol, Protocol d'Hora de Xarxa).</note>
  
-===== Procedure to Synchronize the System Time to Hardware Clock =====+===== Procediment per a Sincronitzar l'Hora del Sistema amb el Rellotge del Maquinari =====
  
-This is one-time procedure to ensure that your hardware clock's time zone is correctly and consistently recognized by all the Linux installations you multiboot on single machine.+Aquest és un procediment que es fa una vegada per assegurar que la zona horària del rellotge del teu maquinari està reconeguda de manera correcta i consistent per totes les instal·lacions de Linux que arranques en una mateixa màquina.
  
-Assuming you are dual-booting Distro and Y, first boot into Distribution X. First check the hardware clock with the following command.+Assumint que tens un arranc dual amb la Distribució i la Distribució Y, comença arrancant la distribució X. Aleshores, comprova el rellotge del teu maquinari amb la següent ordre.
    hwclock --show        hwclock --show    
-If your hardware clock is not set to your local timethen you must set the system time to local timeAs root,+Si el rellotge del teu maquinari no està definit a la teua hora local, aleshores has de d'establir l'hora del sistema amb l'hora local. Com root,
  
-**Update via NTP:** If you installed the ntp package you can: \\+**Actualització via NTP:** Si vas instal·lar el paquet ntp, pots fer: \\
      ntpdate pool.ntp.org      ntpdate pool.ntp.org
--or- \\ +-o- \\ 
-**Manual update:** \\+**Actualització manual:** \\
      date --set "5 Aug 2012 12:54 IST"      date --set "5 Aug 2012 12:54 IST"
-Obviously in the above command you must set your datetime and time zone correctly.+Òbviament a l'ordre de dalt has d'establir la teua datahora i zona horària correctament.
  
-Now as root, synchronize the hardware clock to the current system time as local time.+Ara com root, sincronitza el rellotge del teu maquinari a l'hora del sistema com a hora local.
    hwclock --systohc --localtime    hwclock --systohc --localtime
-Now the hardware clock is readjusted to the system time and both now point to the local time.+Ara el rellotge del maquinari està reajustat a l'hora del sistema i ambdós apunten a l'hora local.
  
-<note>Obviously there are other ways to achieve the same effectbut this process is least likely to confuse as you set initial time inside the Operating System and then adjust the BIOS clock accordingly.</note> +<note>Òbviament hi ha altres maneres d'aconseguir el mateix efecteperò este procés és el que porta a menys confusió, al establir l'hora inicial dins del Sistema Operatiu i ajustant aleshores en conseqüència el rellotge de la BIOS.</note> 
  
-Now boot into Distro and follow the same steps as aboveIt doesn't matter that the hardware clock is now set correctlyyou can still reset the clock once to make sure that every distribution you multi-boot recognizes the hardware clock as set to the local time+Entra ara en la Distribució i segueix els mateixos passos que daltNo importa que el rellotge del maquinari estiga establert correctamentencara pots restablir-lo una altra vegada per a assegurar-te de que cada distribució del teu multi-arranc reconeix que el rellotge del maquinari està configurat amb l'hora local. 
  
-===== Syncing to UTC instead of Local Time =====+===== Sincronitzant a UTC enlloc d'a l'Hora Local =====
  
-Some people prefer setting their hardware clock to UTC (Universal Coordinated Time) instead of local timeIf you want to set your hardware clock to UTC and adjust the date/time accordinglyuse the above steps but simply change the ''hwclock'' command to +Hi ha gent que prefereix establir el seu rellotge de maquinari a UTC (Universal Coordinated Time) enlloc d'a l'hora local. Si vols fixar el teu rellotge de maquinari a UTC i ajustar la data/hora en conseqüènciautilitza el passos de més amunt, però simplement canvia l'ordre ''hwclock'' 
    hwclock --systohc --utc    hwclock --systohc --utc
-while setting the hardware clock from your system time.+al establir el rellotge de maquinari amb l'hora del teu sistema.
  
-<note important>Be consistent in time settings across Operating Systems when you dual bootIf you use different settings in different Operating Systemsyour local time will be messed up.</note>+<note important>Sigues consistent en la configuració de l'hora entre Sistemes Operatius quan tens una arranc dual. Si tens diferents configuracions en distints Sistemes Operatiusla teua hora local serà un desastre.</note>
  
-====== Sources ======+====== Fonts ======
 <!-- If you are copying information from another source, then specify that source --> <!-- If you are copying information from another source, then specify that source -->
-  * Originally written by [[wiki:user:vharishankar|Harishankar]] for the SlackDocs Wiki Project +  * Escrit originalment per [[wiki:user:vharishankar|Harishankar]] per a l'SlackDocs Wiki Project 
-  * Based on Harishankar's blog article [[http://harishankar.org/blog/entry.php/how-to-set-your-computer-039-s-hardware-clock-to-local-time-and-make-linux-recognize-it|here ]]+  * Basat en l'article del blog de Harishankar [[http://harishankar.org/blog/entry.php/how-to-set-your-computer-039-s-hardware-clock-to-local-time-and-make-linux-recognize-it|ací ]]
 <!-- Authors are allowed to give credit to themselves! --> <!-- Authors are allowed to give credit to themselves! -->
 <!-- * Originally written by [[wiki:user:xxx | User X]] --> <!-- * Originally written by [[wiki:user:xxx | User X]] -->
 ca-valencia:howtos:hardware:syncing_hardware_clock_and_system_local_time ()