Commit 4ecd72e2 authored by Kirk Webb's avatar Kirk Webb

A few more updates to the base setup command sequences

* Muck about with the time setup.  What a mess.
* Don't set the timezone.
* Fix the user and group databases.
parent 309d59e3
......@@ -66,13 +66,13 @@ addreg HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server ;; fDenyTSConnectio
log Creating local root user
adduser root ;; %rootpass% ;; makeadmin
# XXX: Ugh... Something still doesn't work here.
# XXX: Ugh... What a mess!
log Setting up the clock
addreg HKLM\SYSTEM\CurrentControlSet\Control\TimeZoneInformation ;; RealTimeIsUniversal ;; Dword ;; 1
runcmd w32tm.exe ;; /register
runcmd sc.exe ;; config w32time start= auto ;; 0
runcmd tzutil.exe ;; /s "Mountain Standard Time" ;; 0
#runcmd net.exe ;; start w32time ;; 0
runcmd w32tm.exe ;; /config /manualpeerlist:%ntpserver% /syncfromflags:manual /update ;; 0
runcmd net.exe ;; start w32time
runcmd w32tm.exe ;; /config /manualpeerlist:%ntpserver% /syncfromflags:manual /update
log Finished! Please be sure to put Microsoft's devcon utility into %devconpath%
log Also, copy in ssh host keys from another of your Emulab nodes and replace the existing ones on this machine.
......@@ -56,6 +56,12 @@ runcyg echo -e '#!/bin/sh\n$*\n' > /bin/sudo && chmod a+rx /bin/sudo ;; 0
log Adding security rights to root account
runcyg editrights -u root -a SeCreateTokenPrivilege -a SeAssignPrimaryTokenPrivilege -a SeIncreaseQuotaPrivilege -a SeServiceLogonRight -l ;; 0
log Fixing up /etc/passwd and /etc/group
runcyg mkpasswd | sed -e '{ s/^root:unused:[0-9]\+:\(.*\)$/root:unused:0:\1/; s%^\(cyg_sshd.*\):.*$%\1:/bin/false% }' > /etc/ && mv -f /etc/ /etc/passwd ;; 0
runcyg mkgroup | sed -e '/^Administrators/ { p; s/Administrators/wheel/ }' > /etc/ && mv -f /etc/ /etc/group ;; 0
# SSHD can be very picky about touching the user and group databases.
runcyg cygrunsrv -E sshd && cygrunsrv -S sshd ;; 0
log Downloading pubsub source
mkdir %elabsw%
getfile %elab_dld%/%pubsub_tarball% ;; %elabsw%\%pubsub_tarball%
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment