• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: Setting the time & date on the guruplug  (Read 2510 times)
two9er
Jr. Member
**

Karma: 10
Posts: 51


View Profile
« on: May 17, 2010, 10:04:12 AM »

When my plug booted, the time as reported by the date command always indicated Aug 8 2009.
I found this in /etc/rc/local: date 080808082009
After commenting it out, installing ntpdate,
Code:
# apt-get install ntpdate
and inserting the appropriate command into /etc/rc.local
Code:
# echo "ntpdate us.pool.ntp.org" >> /etc/rc.local
The time & date are set upon booting, except they are displayed as UTC.
running tzselect
Code:
# tzselect
allows one to change the timezone, and following directions and inserting (in my case)
Code:
# echo "TZ='America/Denver'; export TZ" >> .profile
makes it permanent. I also found in /etc/timezone: Etc/UTC, which I changed to Etc/America/Denver
Code:
# date
Mon May 17 11:01:09 MDT 2010
All is good.

HTH,
Logged

Just plugging away! GuruPlug Server Plus, 1TB esata hd, 8GB microSD (rfs)

Fletch
Jr. Member
**

Karma: 1
Posts: 61


View Profile
« Reply #1 on: May 19, 2010, 11:29:37 PM »

I don't know which rootfs you have, but the latest Lenny image from the plugcomputer.org download site already has the ntp daemon (not ntpdate) installed and running.  Just do:

Code:
dpkg-reconfigure tzdata

to set your timezone.
Logged

two9er
Jr. Member
**

Karma: 10
Posts: 51


View Profile
« Reply #2 on: May 20, 2010, 08:50:10 AM »

As far as I can tell, I have Debian GNU/Linux 5.0.4 "lenny" installed. Maybe from an older script?
I just did check:

Code:
sheevaplug-debian:~# apt-get install ntp
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  ntp-doc
The following NEW packages will be installed:
  ntp
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.

Which confirms that it hadn't been installed yet. In looking in the current RFS rebuild script available here:
http://plugcomputer.org/plugwiki/images/d/d7/Debian_rfs.tar.bz2

I see that ntp is indeed slated for install:

Code:
# Install ntp.
PACKAGE_LIST=`echo ${PACKAGE_LIST} ntp`

Along with this:

Code:
cat >> $TARGET_DIR/etc/rc.local <<EOF

mount -a
date 080808082009
mkdir -p /var/cache/apt/archives/partial

/root/init_setup.sh

EOF

Other packages (obviously) missing from my RFS are lp/lpr[ng], wpasupplicant, there may be more.
Another oddity was in /etc/apt/sources.list:

Code:
deb http://10.82.108.51/kedars/sheevaplug_wifi/builds/packages/ binary/

Hmm.. an internal server. Anyways, I see no need to rebuild the RFS, as I have been tuning it to suit my needs.

No wireless, bluetooth, iptables, samba, avahi-daemon.
I've blacklisted visor, ipv6, btmrvl, btmrvl_sdio, bluetooth, libertas, and libertas_sdio.

Code:
sheevaplug-debian:~# lsmod
Module                  Size  Used by
kl5kusb105             10174  0
usbserial              28876  1 kl5kusb105

I have installed cups, nfs-user-server, and build-essential

FWIW, Jim
Logged

Just plugging away! GuruPlug Server Plus, 1TB esata hd, 8GB microSD (rfs)

Pages: [1]
Print
Jump to: