Ställa klockan vid boot i arch linux

Allt om t.ex. *BSD och OpenSolaris
Användarvisningsbild
xtr3m3
Inlägg: 2108
Blev medlem: 23 feb 2009, 05:16
OS: Ubuntu
Utgåva: 24.04 Noble Numbat LTS
Ort: Mora

Ställa klockan vid boot i arch linux

Inlägg av xtr3m3 »

Nu var det ett tag sen jag var in här.

Undrar hur man får klockan att ställa in sig riktigt om man inte har ett batteri som funkar till bios?
Får lov att ändra manuellt varje gång jag startat om.

Har sökt men inte hittat nått. Kan vara jag som är blind ;D
Bild
gusnan
Inlägg: 348
Blev medlem: 17 jan 2007, 08:20
OS: Debian
Utgåva: Vet inte/ingen utgåva passar

Re: Ställa klockan vid boot i arch linux

Inlägg av gusnan »

Är det nåt typ NTPD du söker? Se

http://www.cyberciti.biz/faq/debian-ubu ... tall-ntpd/

(Debian/Ubuntu-specifik info iofs, men det borde ju vara någorlunda likt...)
Användarvisningsbild
xtr3m3
Inlägg: 2108
Blev medlem: 23 feb 2009, 05:16
OS: Ubuntu
Utgåva: 24.04 Noble Numbat LTS
Ort: Mora

Re: Ställa klockan vid boot i arch linux

Inlägg av xtr3m3 »

cowboy skrev:Är det nåt typ NTPD du söker? Se

http://www.cyberciti.biz/faq/debian-ubu ... tall-ntpd/

(Debian/Ubuntu-specifik info iofs, men det borde ju vara någorlunda likt...)
Sökte efter ntpd och hittade denna: https://wiki.archlinux.org/index.php/Ne ... col_daemon

Följde den men det hjälpte inte :/

ntp.conf

Kod: Markera allt

# NOTES:
#  - you should only have to update the server line below
#  - if you start getting lines like 'restrict' and 'fudge'
#    and you didnt add them, AND you run dhcpcd on your
#    network interfaces, be sure to add '-Y -N' to the
#    dhcpcd_ethX variables in /etc/conf.d/net

# Name of the servers ntpd should sync with
# Please respect the access policy as stated by the responsible person.
#server		ntp.example.tld		iburst

server 0.pool.ntp.org iburst
server 1.pool.ntp.org iburst
server 2.pool.ntp.org iburst
server 3.pool.ntp.org iburst

server 127.127.1.0
fudge  127.127.1.0 stratum 10

restrict default kod nomodify notrap nopeer noquery
restrict -6 default kod nomodify notrap nopeer noquery

##
# A list of available servers can be found here:
# http://www.pool.ntp.org/
# http://www.pool.ntp.org/#use
# A good way to get servers for your machine is:
# netselect -s 3 pool.ntp.org
##

#server ntplocal.example.com prefer 
#server timeserver.example.org 

# Warning: Using default NTP settings will leave your NTP
# server accessible to all hosts on the Internet.

# A default deny all (including localhost) policy
# To use this define restrictions for all servers and clients
#restrict default ignore
#restrict -6 default ignore

# A more open policy, allow access but deny changing the configuration
restrict default nomodify nopeer
#restrict -6 default nomodify nopeer

# Allow localhost
restrict 127.0.0.1
restrict -6 ::1


# To allow machines within your network to synchronize
# their clocks with your server, but ensure they are
# not allowed to configure the server or used as peers
# to synchronize against, uncomment this line.
#
#restrict 192.168.0.0 mask 255.255.255.0 nomodify nopeer notrap


# you should not need to modify the following paths
driftfile	/var/lib/ntp/ntp.drift
logfile         /var/log/ntp.log

rc.conf

Kod: Markera allt

# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
#   - prefix a daemon with a ! to disable it
#   - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng dbus network netfs crond !hwclock ntpd)
Bild
Skriv svar

Återgå till "Andra öppna och fria operativsystem"