afterspencer / macfixdate Goto Github PK
View Code? Open in Web Editor NEWFix the date on a Mac with a bad battery so it will connect to wireless and set the date from a timeserver
Fix the date on a Mac with a bad battery so it will connect to wireless and set the date from a timeserver
This project was developed to deal with an issue I was seeing on some of the older Macbooks in our environment not being able to connect to wireless after their battery died. The root of the problem is that the cmos battery (or whatever the Apple equivalent is) had died and so when the battery died the clock got set back to sometime in 2001. It seems that wireless networks are particular when it comes to how out of date the clients clocks are before they will allow them to connect and update time from and NTP server. The clock can be a little out of date, just not too much. I expect that this script will work as written for a good number of years and will be able ot be updated by modifying line 14 to give it a new year when it stops working. Useage There are two files included, fixdate.sh and crontab. While crontab is depricated in OSX it still works. Put the crontab file in /etc/. If there is an existing crontab put the following in it: @reboot root /usr/local/bin/fixdate.sh Put the fixdate.sh in /usr/local/bin/fixdate.sh Be sure that fixdate has +x. Ideally it should be owned by root and have 500 permissions that way it can't be edited to do anything nasty by other users. Once these two files are in place the user only has to reboot to fix the problem if their time is out of date.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.