LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 06-23-2012, 04:52 PM   #1
irajjs
Member
 
Registered: Jan 2010
Location: Karaj , Iran
Distribution: Mandriva 2012
Posts: 204
Blog Entries: 1

Rep: Reputation: 15
Question How to fix! Garbled time?


When installing Mandriva 2011 i could not connect to the Internet to be able to use NTP server for time adjustment,also i made a mistake by not checking daylight saving....anyway the time was not adjusted correctly and manual adjusting was useful only for that session! then i copied a "drakclock" into my bin folder and adjusted the time! this worked but whenever i type "at" the output is : Garbled time!
the time is correct now but trying to connect NTP fails due to some errors(i thought that may be NTP sever can fix this problem)...and i want to use "at" command.How do i fix that? please help.
 
Old 06-23-2012, 10:38 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,307
Blog Entries: 28

Rep: Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136
Please provide more information. What errors are you getting in response to what commands? Also, what happens when you use the date command? (See man date for the arguments.)
 
Old 06-24-2012, 12:16 PM   #3
irajjs
Member
 
Registered: Jan 2010
Location: Karaj , Iran
Distribution: Mandriva 2012
Posts: 204

Original Poster
Blog Entries: 1

Rep: Reputation: 15
Smile more information

Quote:
Originally Posted by frankbell View Post
Please provide more information. What errors are you getting in response to what commands? Also, what happens when you use the date command? (See man date for the arguments.)
Hi
[iraj@localhost ~]$ date
Sun Jun 24 21:22:40 IRDT 2012
which is correct..no problem!
[iraj@localhost ~]$ at
Garbled time
..........
when i try to adjust time and date by ntp using a clock widget's date and time adjustment interface This is the error:
Unable to authenticate/execute the action: 7, DBus Backend error: could not contact the helper. Connection error: . Message error: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

Last edited by irajjs; 06-24-2012 at 12:34 PM. Reason: removing php border
 
Old 06-24-2012, 02:50 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,670

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
This is normal since you are not actually providing any time as an argument. Any NTP or adjtime errors are unrelated.

http://www.brunolinux.com/02-The_Ter...t_Command.html
http://www.computerhope.com/unix/uat.htm
 
1 members found this post helpful.
Old 06-24-2012, 06:32 PM   #5
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
A few things.

This is how to use the at command:
Code:
echo "/path/to/your/script" | at 23:00
at must have a time or a date-time parameter.

As an ordinary user you cannot adjust the time. Your widget is running on the desktop, hence with your own credentials, not root, and cannot adjust time. You have to be root for that.

If you don't have ntp installed, install it. Configure correct servers in /etc/ntp.conf.

If you want to make a large adjustment to the time, stop the ntp service, run ntpdate <time server name>, and restart ntp.

jlinkels
 
1 members found this post helpful.
Old 06-25-2012, 05:18 AM   #6
irajjs
Member
 
Registered: Jan 2010
Location: Karaj , Iran
Distribution: Mandriva 2012
Posts: 204

Original Poster
Blog Entries: 1

Rep: Reputation: 15
Smile some explanations

Quote:
Originally Posted by jlinkels View Post
A few things.

This is how to use the at command:
Code:
echo "/path/to/your/script" | at 23:00
at must have a time or a date-time parameter.

As an ordinary user you cannot adjust the time. Your widget is running on the desktop, hence with your own credentials, not root, and cannot adjust time. You have to be root for that.

If you don't have ntp installed, install it. Configure correct servers in /etc/ntp.conf.

If you want to make a large adjustment to the time, stop the ntp service, run ntpdate <time server name>, and restart ntp.

jlinkels
Hi
I have a weak memory but i think that in previous version(Mandriva2010)i used the command "at" to make some alarms ,reminders...etc..and i think by typing "at" a graphical user interface appeared enabling me to do all these.
.....................
in case of ntp :
[iraj@localhost etc]$ ntp.conf
bash: ntp.conf: command not found
[iraj@localhost etc]$ su
Password:
[root@localhost etc]# ntp.conf
bash: ntp.conf: command not found
[root@localhost etc]# /etc/ntp.conf
bash: /etc/ntp.conf: Permission denied
....................
Here i have another question:
Who denies the permission to root?!
 
Old 06-25-2012, 07:52 PM   #7
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,307
Blog Entries: 28

Rep: Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136
/etc/ntp.conf is not a command; it's just a path statement. That's why you got the permission denied. See this example:

Code:
tuna:~$ /etc/network/interfaces
bash: /etc/network/interfaces: Permission denied
tuna:~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
(snip file contents)
Try ls /etc/ntp.conf or cat /etc/ntp.conf.

Last edited by frankbell; 06-25-2012 at 07:55 PM.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ntpd gives me non-local time, how can I fix it? inbayarea2010 Linux - Server 2 02-10-2011 03:57 AM
2 files different time format (need to fix it) jcardoza Linux - Newbie 5 12-09-2010 11:55 AM
Puppy starts xwin in garbled 640x480 mode with CD boot. How to fix? LinuxTexan Puppy 2 11-03-2008 09:46 AM
Garbled Screen EVERY TIME, please help? dannyboy374 Fedora 8 05-26-2006 12:26 PM
Garbled Screen EVERY TIME, please help? dannyboy374 Ubuntu 1 05-25-2006 06:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 12:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration