zwetan

WIN DEV VM notes

Apr 7th, 2011
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.89 KB | None | 0 0
  1. WIN DEV VM notes
  2.  
  3. - install VMWare tools
  4.  
  5. - install firefox
  6.  
  7. - install chrome
  8.  
  9. - install cygwin
  10. http://www.cygwin.com/
  11. - subversion
  12. - mercurial
  13. - python
  14. - nano
  15.  
  16. - install console
  17. http://sourceforge.net/projects/console/
  18.  
  19. - install notepad2
  20. http://www.flos-freeware.ch/notepad2.html
  21.  
  22. - instal Mozilla Build
  23. http://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/MozillaBuildSetup-1.4.exe
  24. add C:\mozilla-build\msys\bin to ENV
  25.  
  26. - install Java SDK
  27. http://java.sun.com/javase/downloads/index.jsp
  28.  
  29. download Java SE Development Kit
  30. JDK 6 Update 16 (jdk-6u16-windows-i586.exe)
  31.  
  32. define JAVA_HOME as C:\Program Files\Java\jdk1.6.0_16 in ENV
  33. add %JAVA_HOME%\bin to ENV
  34.  
  35. - install Ant
  36. http://ant.apache.org/bindownload.cgi
  37. define ANT_HOME as C:\shell\apache-ant-1.7.1 in ENV
  38. add %ANT_HOME%\bin to ENV
  39.  
  40. - install Visual Studio C++ 2008 express edition
  41. http://www.microsoft.com/express/download/default.aspx
  42.  
  43. have a hotmail/msn account ready
  44. open VC++ and click help/register (use IE, chrome or firefox does not work)
  45.  
  46.  
  47. - hard disks
  48.  
  49. having another disk for dev files can allow you to share it
  50. between different VM
  51.  
  52. also it allow you to keep the main hard disk clean
  53. and not defragmenting it every 2 days
  54.  
  55. close the VM
  56. create a new hard disk (outside of your current VM)
  57. for ex "dev_shared.vmdk"
  58.  
  59. start the VM
  60. run administrative tools
  61. open computer management
  62. in storage
  63. select "disk management"
  64. follow the "initialise and convert disk" wizard
  65. right click the new disk, create a new volume, format, etc.
  66.  
  67.  
  68.  
  69. - configuring Windows
  70.  
  71. right click C: (and any other drive letters)
  72. in "general" tab
  73. uncheck "Allow Indexing Service to index this disk for fast file searching"
  74.  
  75. right click "My Computer
  76. in "System Restore" tab
  77. check "turn off system restore"
  78. in "automatic update" tab
  79. select "turn off automatic update"
  80. in "remote" tab
  81. uncheck "allow remote assistance invitations to be sent from this computer"
  82. in "advanced" tab
  83. in "performance"
  84. click "settings"
  85. in performance options
  86. select "advanced" tab
  87. in virtual memory
  88. click "change"
  89. select "no paging file"
  90. click "set"
  91. restart the VM
  92.  
  93. right click C:
  94. in "tools" tab
  95. click "defragment now"
  96. repeat 2/3 times
  97.  
  98. open a DOS prompt and type
  99. chkdsk C: /X
  100. the system will ask to run on system restarts
  101. answer "Y"
  102. restart
  103.  
  104. shut down the VM
  105. go in settings and shrink the hard disk
  106.  
  107. - configure cygwin bash to run VS C++ on the command line
  108. open your .bash_profile
  109.  
  110. add
  111. ----
  112. # NOTE: The INCLUDE, LIB and LIBPATH must contain windows path information and separator and not cygwin paths.
  113. VS_HOME_PATH="/c/Program Files/Microsoft Visual Studio 9.0"
  114. VS_HOME="c:\Program Files\Microsoft Visual Studio 9.0"
  115.  
  116. export PATH="$VS_HOME_PATH/Common7/IDE:$VS_HOME_PATH/VC/bin:$VS_HOME_PATH/Common7/Tools:$VS_HOME_PATH/VC/VCPackages:$PATH"
  117. export INCLUDE="$VS_HOME\VC\atlmfc\include;$VS_HOME\VC\include;C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include;"
  118. export LIB="$VS_HOME\VC\atlmfc\lib;$VS_HOME\VC\lib;C:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib"
  119. export LIBPATH="$VS_HOME\VC\atlmfc\lib;$VS_HOME\VC\lib;C:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib"
  120. ----
  121.  
  122.  
  123.  
  124. - install PageDefrag
  125. http://technet.microsoft.com/en-us/sysinternals/bb897426.aspx
  126.  
  127. - install MyDefrag
  128. http://www.mydefrag.com/Manual-DownloadAndInstall.html
  129.  
  130. - optimise Windows hard disk
  131.  
  132. in your hard disk "dev_shared.vmdk"
  133. mounted as O:
  134. create a tmp directory
  135.  
  136. right click "My Computer
  137. in "advanced" tab
  138. click "environment variables"
  139. replace all the TMP/TEMP variables to O:\tmp
  140. reboot the VM
  141.  
  142. run PageDefrag on reboot
  143.  
  144. run MyDefrag to consolidate free space
  145.  
  146. shut down the VM
  147. go in settings and shrink the hard disk again
Advertisement
Add Comment
Please, Sign In to add comment