ReferencePlatforms/Test/Win8
Even though IT now manages our Windows test infrastructure and do not have a necessity to track changes. Here's the initial steps that were taken to setup a Windows 8 machine to take test jobs.
For Windows 8 machines we don't have a reference platform but we create machines through GPO.
Nevertheless we decided to mention all of the changes we are aware of to make it easier for someone to set up a machine to run the same test jobs that we can.
Contents
Windows 8 64-bit
- enable quick edit mode (cmd as normal user as well as run as Administrator)
REG ADD "HKEY_CURRENT_USER\Console" /v QuickEdit /t REG_DWORD /d 1 /f
NOTE: This allows to paste unto a Cmd window with just a right click (this is just for convenience)
Add the cltbld user
Open cmd as Administrator and type 'lusrmgr'
- Users -> New User...
- cltbld
- Modify the properties of it
- "User cannot change password" (uncheck), "password never expires" (checked)
- Add "Remote Desktop Users" to "Member Of"
Allow cltbld to restart the system
- run gpedit.msc (as administrator)
- Computer Configuration -> Windows Settings -> Security Settings -> Local Policies -> User Rights Assignment
- Double click 'Shut down the system', add cltbld to the list.
Add auto-login. Replace "newpassword" for your own:
- run cmd as Administrator and type:
reg add "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultUserName /d cltbld /t REG_SZ /f reg add "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultPassword /d newpasswd /t REG_SZ /f reg add "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoAdminLogon /d 1 /t REG_SZ /f
Install Mozilla Build
- Install http://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/MozillaBuildSetup-1.6.exe
- Append ';C:\mozilla-build\python27;C:\mozilla-build\python27\Scripts;C:\mozilla-build\msys\bin;C:\mozilla-build\vim\vim72;C:\mozilla-build\wget;C:\mozilla-build\info-zip;C:\CoreUtils\bin;C:\mozilla-build\buildbotve\scripts' to the system path.
Install a bunch of other packages
- Run from cmd as Administrator
C:\mozilla-build\wget\wget.exe https://github.com/armenzg/bearded-ironman/raw/master/win8_64bit/setup.bat setup.bat
Deploy Mozilla Maintenance Service
- Use "Run as Administrator" to start a command prompt and run the following:
cd c:\ wget -O installservice.bat --no-check-certificate https://bug704578.bugzilla.mozilla.org/attachment.cgi?id=579099 schtasks /create /tn mozillamaintenance /tr "c:\\windows\\system32\\cmd.exe /c \"c:\\installservice.bat\"" /sc ONSTART /ru SYSTEM wget -O keys.reg --no-check-certificate https://bugzilla.mozilla.org/attachment.cgi?id=577617 regedit /s keys.reg wget -O MozRoot.crt --no-check-certificate https://bugzilla.mozilla.org/attachment.cgi?id=577619 wget -O add_cert.msc --no-check-certificate https://bugzilla.mozilla.org/attachment.cgi?id=579119 start add_cert.msc
- From menu: Action -> All Tasks -> Import... launches Certificate Import Wizard
- Click Next
- Browse and use C:\MozRoot.crt
- Next, Next, Finish
- Close the MMC window