Franco Martelli wrote:
> I installed both ntpdate and rdate packages but automatic date and
> time update of KDE digital clock on the desktop doesn't work.
> Do I need package like kdesudo in order to make things working?

No.  Your choice of packages is unfortunate.  A mistake.  Instead
install 'ntp'.

  # apt-get purge ntpdate rdate

Then install the ntp package.

  # apt-get install ntp

More information about NTP can be found on the wiki.

  http://wiki.debian.org/NTP

The above must be done as root as indicated by the '#' prompt.  Use
either 'su' or 'sudo'.

  $ su
  # apt-get install ntp

Or if you have sudo installed and configured then you can use sudo in
one step.

  $ sudo apt-get install ntp

I always recommend configuring sudo.  You can do it this way:

  # apt-get install sudo
  # adduser yourusername sudo

Then log out and log back in again so that your group will be set at
login time to the sudo group.  More information about sudo is
available on the wiki.

  http://wiki.debian.org/sudo

> Trying with rdate I got:
> 
> $ rdate europe.pool.ntp.org
> rdate: Could not connect socket: Connection refused

Your prompt indicates that you are not root.  Therefore it cannot
function.

> $ rdate -ncv europe.pool.ntp.org
> rdate: Could not set time of day: Operation not permitted

Same thing.  You were not root and therefore it cannot function.

> Please, any hint that help me to solve this situation would be really
> appreciated, thanks in advance.

Using ntp is the better solution over using rdate.  You don't want to
step the clock all of the time.  In the random hit cases where the
stepping happens at a bad moment then it will cause problems.  Cron
tasks may run twice or not at all.  Better to use a tool like ntp that
adjusts the clock so that every second is seen and never skipped.

Bob

Attachment: signature.asc
Description: Digital signature

Reply via email to