Jump to content

What's The Secret To Setting The Time?


lester
 Share

Recommended Posts

Read two posts on setting the time. For example, one here, states:

in /etc/config/system add the lines:

config 'timeserver'

list 'server' '0.openwrt.pool.ntp.org'

list 'server' '1.openwrt.pool.ntp.org'

list 'server' '2.openwrt.pool.ntp.org'

list 'server' '3.openwrt.pool.ntp.org'

You may also need/want to change line 2 to your local timezone.

option 'timezone' 'UTC'

Add the command 'date -k' to /etc/rc.local

Okay, great. Now are the apostrophes (') supposed to be included? One post shows it as part of the input, the other post excludes some of them. I tried both and still the date on the pineapple is Jan 1, 1970. A clear and concise way of setting the time should be included in this package, as far as I'm concerned. It does get frustrating trying to set so many basic features on the Pineapple. I can understand users giving up in despair. The manual only covers unboxing and then some -- please, guys, try to show us noobs how to get this thing up and running with the basics? It shouldn't be so difficult to try and set the date and time, and if there is some reason why it can't be set, please let us noobs know up front about that.

Time and date are critical for penetration testing, as I'm sure everyone is well aware. Thanks!

Link to comment
Share on other sites

When the pineapple boots up there is no connection to the internet until running, manually, the connection via a cable attached so how can it go out to the internet to grab the time at boot up time?

if you look at the log, you will see when it does, around 60 seconds. cron throughs a time mismatch error

Link to comment
Share on other sites

Don't understand what you mean:

if you look at the log, you will see when it does, around 60 seconds. cron throughs a time mismatch error

Do you mean at 60 seconds the cron runs and produces a time mismatch error? If it produces a time mismatch error how is that correcting the time?

Link to comment
Share on other sites

Don't understand what you mean:

if you look at the log, you will see when it does, around 60 seconds. cron throughs a time mismatch error

Do you mean at 60 seconds the cron runs and produces a time mismatch error? If it produces a time mismatch error how is that correcting the time?

in the pineapple UI there is a log tab

Link to comment
Share on other sites

Yes, I see the entry -- but how does one set the time so that it does not have to be set manually at each and every startup or has the Mark IV not gotten there quite yet?

It has. It has for a while now too. This is something that is built in an works for me and many others. I am not sure why it wouldn't work for you.

My pineapple always has the correct time.

Best Regards,

Sebkinne

Link to comment
Share on other sites

I'm using 2.6.1. What would be the best way to trouble shoot this? I have internet connectivity -- that is, after starting up the Mark IV and then running wp4.sh from the cable-connected pc - Mark IV. So indeed there is not immediate internet connectivity until that is done. Would that account for it or does a cron job run periodically that goes out and grabs the time?

Thank you.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...