ZAVCXL0005 - Windows: Difference between revisions

From miki
Jump to navigation Jump to search
Line 32: Line 32:
:* If VirtualBox is configured in NAT mode, we can fix the certificate warning by using real server names in Outlook account configuration ('''mail.gandi.net''', '''smtp.priorweb.be''' and '''mail.priorweb.be'''), but this assumes that (1) SSH listens to <code>0.0.0.0</code> and (2) that Windows {{file|hosts}} file contains the lines:
:* If VirtualBox is configured in NAT mode, we can fix the certificate warning by using real server names in Outlook account configuration ('''mail.gandi.net''', '''smtp.priorweb.be''' and '''mail.priorweb.be'''), but this assumes that (1) SSH listens to <code>0.0.0.0</code> and (2) that Windows {{file|hosts}} file contains the lines:
<source lang=text>
<source lang=text>
:* If VirtualBox is configured in Bridged mode, use server '''zavcxl0005'''. This assumes SSH listens to <code>0.0.0.0</code>.
10.0.2.2 mail.gandi.net
10.0.2.2 mail.gandi.net
10.0.2.2 smtp.priorweb.be
10.0.2.2 smtp.priorweb.be

Revision as of 05:06, 1 July 2016

Introduction

This is the configuration page for the Windows 7 partition on ZAVCWL0035.

Configuration Files

All configuration files can be found here.

Installed Applications

Common applications

See Common configuration for Linux.

Essential

Outlook (package)
  • [YYYY-MM-DD] Update to vX.Y
  • Michael Peeters
  • michael.peeters@st.com
  • Server: Safex1.mail1.st.com
  • Username: michael.peeters@st.com
  • Use Cached Exchange mode
  • Mail to keep offline: 3 months
  • More settings: Data file: D:\....ost
  • Settings - Mail → Reading Pane → 'unchecks' Mark item as read when selection change.
  • Install CalDav Synchronizer, see Owncloud. Additional settings:
We must use Privoxy as proxy because Zscaler corrupts the certificate (or we must tell CalDav to ignore certificate issue). This works only if the vbox network is attached to NAT because the firewall drops connection to Privoxy port. Also, maybe this is not important, but Privoxy is configured with listen-address :8118.
  • Email accounts
  • immie.org and noekeon.org via port forwarding.
  • If VirtualBox is configured in Bridged mode, use server zavcxl0005. This assumes SSH listens to 0.0.0.0. Outlook will complain that certificate is not correct.
  • If VirtualBox is configured in NAT mode, we can fix the certificate warning by using real server names in Outlook account configuration (mail.gandi.net, smtp.priorweb.be and mail.priorweb.be), but this assumes that (1) SSH listens to 0.0.0.0 and (2) that Windows hosts file contains the lines:
10.0.2.2	mail.gandi.net
10.0.2.2	smtp.priorweb.be
10.0.2.2	mail.priorweb.be
Application (package, repo Repository)
sudo apt-...
Application (package)
  • [YYYY-MM-DD] Update to vX.Y
  • TBC

Local

MSYS / MinGW (package)
  • Install MinGW Get, and select MinGW base and MSYS base system
  • Create a shortcut in C:\ProgramData\Microsoft\Windows\Start Menu with target C:\bin\mingw\msys\1.0\msys.bat -rxvt.
(Optionally change the icon).
  • OBSOLETE? Actually MSYSGit is much better. It associates with .sh file in the setup. So this is only needed to build C project since MSYSGit does not have make.
MSYSGit (package)
  • Git available in bash and CMD.EXE.

Uninstalled

Application (package) [YYYY-MM-DD] Update
Additional configuration settings

P2V

  • Resize C: / /dev/sda1 partition to 60GB using gparted.
  • Delete BCD partition /dev/sda2.
  • Create raw partition disk:
sudo dd if=/dev/sda of=vm.mbr bs=512 count=1
sudo install-mbr -i n -p D -t 0 vm.mbr            # Certainly useless since we'll repair the boot with Win rescue disk
sudo vboxmanage internalcommands createrawvmdk -filename zavcwl0035-sda1-mbr.vmdk -rawdisk /dev/sda -partitions 1 -relative -mbr vm.mbr
# This creates 2 files: ...-mbr.vmdk, and ...-mbr-pt.vmdk

Create VM:

  • Mount zavcwl0035-sda1-mbr.vmdk
  • Set hard-disk as Solid-state Drive

Boot VM with Ubuntu Live CD:

  • In Gparted, delete all partitions but /dev/sda1, and set boot flag.
This is needed to have Windows Repair Disc detect correctly the windows installation.

Boot in windows repair. Now it detects the partition. Let repair and restart. Boot again Windows repair disc. To skip automatic recovery, select restore image, then next, then cancel twice. Open a command prompt:

mountvol             # Show a single volume C: (+X: and D: from the current boot)
c:
bcdedit /export C:\BCD_Backup
ren C:\boot\BCD bcd.old
bootrec /rebuildbcd

... and say Y when asked to add installation to boot list. Reboot, press F8.

Boot normally: Windows boots but we get a blue screen that quickly disappear. Go into advanced boot options by hitting F8 at boot, and choose Disable automatic restart on system failure. We see the message:

A problem has been detected ...
...
Technical information:

*** STOP: 0x0000007B (0xFFFFF880009A9928, 0xFFFFFFFFC0000034, ...)

When started in safe mode, several drivers are started, and stops at CLASSPNP.SYS.

Boot linux livecd, then delete all occurences of AGP440.sys and intelppm.sys.

Boot Windows repair cd, import into registry:

Windows Registry Editor Version 5.00
 
[HKEY_LOCAL_MACHINE\remote_SYSTEM\ControlSet001\Control\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318}\0000]
"InfPath"="mshdc.inf"
"InfSection"="msahci_Inst"
"ProviderName"="Microsoft"
"DriverDateData"=hex:00,80,8c,a3,c5,94,c6,01
"DriverDate"="6-21-2006"
"DriverVersion"="6.1.7600.16385"
"MatchingDeviceId"="pci\\cc_010601"
"DriverDesc"="Standard AHCI 1.0 Serial ATA Controller"
"Migrated"=dword:00000001
 
[HKEY_LOCAL_MACHINE\remote_SYSTEM\ControlSet001\Control\PnP]
"DisableCDDB"=-
 
[HKEY_LOCAL_MACHINE\remote_SYSTEM\ControlSet001\services\atapi]
"Start"=dword:00000000
 
[HKEY_LOCAL_MACHINE\remote_SYSTEM\ControlSet001\services\msahci]
"Start"=dword:00000000

Reboot... it boots! Let's shutdown w/o logging... it boots again! Yeehaa!!!

To get administrator access, first install chntpw:

  • Either enable universe repository on ubuntu live cd (edit /etc/apt/sources.list
  • Or copy package

Then

cd /media/ubuntu/OSDisk/Windows/System32/config
chntpw -l SAM
chntpw -u SysAdmin SAM
cd
sudo umount /media/ubuntu/OSDisk

System Settings

1st install
  • (temporarily) reset SysAdmin password (using chntpw) and then set password.
  • Install Virtualbox additions (no Direct3D support)
  • Disable hibernation - Hibernate not supported, so we simply delete hiberfil.sys (first edit security permissions)

→ used space: 34.110.431.232 (31.7GB)

  • Turn off system restore (computer → properties → system protection)
  • Clean up disk C: drive (service pack backup 500MB, queued error reporting)

→ used space: 28.867.043.328 (26.8GB)

  • Disable paging file (was set to Automatically manage paging file size for all drives)

→ used space: 22.665.486.336 (21.1GB)

Tuning
  • 1st Disable Windows Search
    via Control PanelPrograms and FeaturesTurn Windows features on or offWindows Search

To Do

Issues

  • To Do — Disable Remote Assistance (System properties → Remote)?
  • To Do — Uninstall McAfee Endpoint Encryption
  • To Do — Install MS symbols for Process Explorer [1]
  • To Do — Disable igfxCUIService Module because it crashes (see Action Center)
  • Issue — To be completed

Done & Fixed

  • Fixed — Issue description
    Fix description
  • Done — Description