LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: mingfal

时间总是走快

[复制链接]
 楼主| 发表于 2009-10-17 00:59:44 | 显示全部楼层
Post by fjfb;2037214
解决方法:
安装openntpd:sudo pacman -S openntpd
配置文件不用改
添加服务:
DAEMONS=(syslog-ng network @mpd netfs crond @openntpd @hal  ...)


谢谢,一直都是这样的,也不行
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-10-17 01:01:50 | 显示全部楼层
我的/etc/rc.conf


  1. #
  2. # /etc/rc.conf - Main Configuration for Arch Linux
  3. #

  4. # -----------------------------------------------------------------------
  5. # LOCALIZATION
  6. # -----------------------------------------------------------------------
  7. #
  8. # LOCALE: available languages can be listed with the 'locale -a' command
  9. # HARDWARECLOCK: set to "UTC" or "localtime"
  10. # USEDIRECTISA: use direct I/O requests instead of /dev/rtc for hwclock
  11. # TIMEZONE: timezones are found in /usr/share/zoneinfo
  12. # KEYMAP: keymaps are found in /usr/share/kbd/keymaps
  13. # CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
  14. # CONSOLEMAP: found in /usr/share/kbd/consoletrans
  15. # USECOLOR: use ANSI color sequences in startup messages
  16. #
  17. LOCALE="en_US.utf8"
  18. HARDWARECLOCK="localtime"
  19. USEDIRECTISA="no"
  20. TIMEZONE="Asia/Shanghai"
  21. KEYMAP="us"
  22. CONSOLEFONT=
  23. CONSOLEMAP=
  24. USEcolor="yes"

  25. # -----------------------------------------------------------------------
  26. # HARDWARE
  27. # -----------------------------------------------------------------------
  28. #
  29. # MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
  30. # MOD_BLACKLIST: Prevent udev from loading these modules
  31. # MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
  32. #
  33. # NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
  34. #
  35. MOD_AUTOLOAD="yes"
  36. #MOD_BLACKLIST=() #deprecated
  37. MODULES=()

  38. # Scan for LVM volume groups at startup, required if you use LVM
  39. USELVM="no"

  40. # -----------------------------------------------------------------------
  41. # NETWORKING
  42. # -----------------------------------------------------------------------
  43. #
  44. # HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
  45. #
  46. HOSTNAME="Arch"

  47. # Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
  48. #
  49. # Interfaces to start at boot-up (in this order)
  50. # Declare each interface then list in INTERFACES
  51. #   - prefix an entry in INTERFACES with a ! to disable it
  52. #   - no hyphens in your interface names - Bash doesn't like it
  53. #
  54. # DHCP:     Set your interface to "dhcp" (eth0="dhcp")
  55. # Wireless: See network profiles below
  56. #
  57. eth0="eth0 192.168.0.100 netmask 255.255.255.0 broadcast 192.168.0.255"
  58. INTERFACES=(eth0)

  59. # Routes to start at boot-up (in this order)
  60. # Declare each route then list in ROUTES
  61. #   - prefix an entry in ROUTES with a ! to disable it
  62. #
  63. gateway="default gw 192.168.0.1"
  64. ROUTES=(gateway)

  65. # Enable these network profiles at boot-up.  These are only useful
  66. # if you happen to need multiple network configurations (ie, laptop users)
  67. #   - set to 'menu' to present a menu during boot-up (dialog package required)
  68. #   - prefix an entry with a ! to disable it
  69. #
  70. # Network profiles are found in /etc/network.d
  71. #
  72. # This now requires the netcfg package
  73. #
  74. #NETWORKS=(main)

  75. # -----------------------------------------------------------------------
  76. # DAEMONS
  77. # -----------------------------------------------------------------------
  78. #
  79. # Daemons to start at boot-up (in this order)
  80. #   - prefix a daemon with a ! to disable it
  81. #   - prefix a daemon with a @ to start it up in the background
  82. #
  83. DAEMONS=(syslog-ng hal alsa network tor privoxy netfs crond kdm openntpd)
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-10-19 19:15:52 | 显示全部楼层
顶一下顶一下
回复 支持 反对

使用道具 举报

发表于 2009-10-19 19:18:53 | 显示全部楼层
超频的?
您输入的信息太短。至少要有 6 个英文字符或汉字。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-10-21 13:53:49 | 显示全部楼层
Post by Havanna;2038107
超频的?
您输入的信息太短。至少要有 6 个英文字符或汉字。


没超频……
您输入的信息太短。至少要有 6 个英文字符或汉字。
回复 支持 反对

使用道具 举报

发表于 2009-10-21 14:41:52 | 显示全部楼层
不是在虚拟机里面跑吧?

网上一般对时间不准的解决方法,如果不是ntp同步,就是kernel加参数clock=pmtmr或者notsc。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-1-10 01:49:28 | 显示全部楼层
终于搞定了。是修改的kernel的参数clocksource

/sys/devices/system/clocksource/clocksource0/available_clocksource 里是可用参数值

/sys/devices/system/clocksource/clocksource0/current_clocksource 里是当前参数值

把每个值都试一下找找就行了(可以先直接修改/sys/devices/system/clocksource/clocksource0/current_clocksource里面的值来测试,找到了再改menu.lst)
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表