lester Posted August 28, 2012 Share Posted August 28, 2012 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! Quote Link to comment Share on other sites More sharing options...
sickduck Posted August 28, 2012 Share Posted August 28, 2012 I never had a problem getting the time. Are you sure it has a working internet connection? You will also have to edit the TZ file to set your correct time zone. I think it is in /etc/TZ but I'm going by memory and not 100% sure. Quote Link to comment Share on other sites More sharing options...
lester Posted August 28, 2012 Author Share Posted August 28, 2012 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? Quote Link to comment Share on other sites More sharing options...
PineDominator Posted August 28, 2012 Share Posted August 28, 2012 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 Quote Link to comment Share on other sites More sharing options...
lester Posted August 28, 2012 Author Share Posted August 28, 2012 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? Quote Link to comment Share on other sites More sharing options...
PineDominator Posted August 29, 2012 Share Posted August 29, 2012 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 Quote Link to comment Share on other sites More sharing options...
lester Posted August 29, 2012 Author Share Posted August 29, 2012 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? Quote Link to comment Share on other sites More sharing options...
Sebkinne Posted August 29, 2012 Share Posted August 29, 2012 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 Quote Link to comment Share on other sites More sharing options...
lester Posted August 29, 2012 Author Share Posted August 29, 2012 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. Quote Link to comment Share on other sites More sharing options...
sickduck Posted August 31, 2012 Share Posted August 31, 2012 I upgraded to 2.6.1. I always got the time via 3g. Tonight I connected it to the internet with the lan port and was unable to get the time. I didn't have time to troubleshoot it. Quote Link to comment Share on other sites More sharing options...
lester Posted August 31, 2012 Author Share Posted August 31, 2012 Well it's good to know I'm not the only one. For a minute there I was starting to think I was crazy. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.