0420.html 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Arch Linux Install Guide Using VirtualBox</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  7. <script type="text/javascript">
  8. $(function(){
  9. $('textarea').each(function(i,e){
  10. theTextarea = $(this);
  11. theTextarea.height((theTextarea[0].scrollHeight-5) +'px');
  12. });
  13. $('li').each(function(i,e){
  14. var uuid = 'li_' + Math.floor(Math.random() * Math.floor(1000000)).toString() + '_' + i.toString();
  15. $(this).contents().wrap('<span id="'+ uuid +'"><label for="cb_'+ uuid +'"></label></span>');
  16. $(this).prepend('<input type="checkbox" class="completeBox" id="cb_' + uuid +'" rel="'+ uuid +'" />')
  17. });
  18. $('code,div.codeBlock,textarea.codeBlock').each(function(i,e){
  19. theElement = $(this);
  20. var lines = theElement.html().split("\n");
  21. theElement.empty();
  22. for(l=0;l<lines.length;l++){
  23. if($.trim(lines[l]) != '' && $.trim(lines[l]).substr(0,1) != '#' && $.trim(lines[l]).indexOf(' #') == -1 && lines[l].substr(0, 4).toUpperCase() != 'REM '){
  24. theElement.append('<input type="image" src="images/clipboard.png" value="" class="copy-text" rel="copy_'+ i +'_'+ l +'" data-clipboard-text="'+ lines[l].replace(/"/g, '&quot;') +'" /><span id="copy_'+ i +'_'+ l +'">'+ lines[l] +'</span>');
  25. } else {
  26. theElement.append(lines[l]);
  27. }
  28. }
  29. });
  30. $(document).on('click','input.copy-text',function(){
  31. theButton = $(this);
  32. $('input.copy-text').attr('src','images/clipboard.png');
  33. $('span.copy-animation,span.copy-animation-ps').removeClass('copy-animation copy-animation-ps');
  34. try {
  35. if($('#'+ theButton.attr('rel')).parent('div').hasClass('PS')){
  36. $('#'+ theButton.attr('rel')).addClass('copy-animation-ps');
  37. } else {
  38. $('#'+ theButton.attr('rel')).addClass('copy-animation');
  39. }
  40. navigator.clipboard.writeText(theButton.data('clipboard-text').replace(/<[^>]*>?/gm, ''));
  41. theButton.attr('src','images/clipboard_active.png');
  42. } catch(err) {
  43. }
  44. return false;
  45. });
  46. $(document).on('click','input.completeBox',function(){
  47. theBox = $(this);
  48. $('#'+ theBox.attr('rel')).addClass('strikethrough');
  49. theBox.prop('disabled',true);
  50. theBox.parent('li').prevAll().each(function(i,e){
  51. theLI = $(this);
  52. if(theLI.find('input[type=checkbox]').not(':checked')){
  53. $('#'+ theLI.find('input[type=checkbox]').attr('rel')).addClass('strikethrough');
  54. theLI.find('input[type=checkbox]').prop('checked',true).prop('disabled',true);
  55. }
  56. });
  57. });
  58. if(window.self !== window.top){
  59. window.parent.$('iframe.stepsFrame').height((this['scrollingElement']['scrollHeight']+20) +'px');
  60. }
  61. });
  62. </script>
  63. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  64. </head>
  65. <body>
  66. <div id="gridContainer">
  67. <div class="topMargin"></div>
  68. <div id="listName" class="topMargin">
  69. <h1>Arch Linux Install Guide Using VirtualBox</h1>
  70. </div>
  71. <div></div>
  72. <div id="content">
  73. <ol>
  74. <li>Download Arch Linux <a href="https://archlinux.org/download/" target="_blank">Download</a></li>
  75. <li>Launch Virtualbox</li>
  76. <li>Create a New VM by selecting Machine &gt; New
  77. <p>Name: Arch<br />
  78. Machine Folder: C:\VMs<br />
  79. Type: Linux<br />
  80. Version: Arch (64-bit)<br />
  81. Memory Size: 4096 MB<br />
  82. Hard disk: Create a virtual hard disk now</p>
  83. </li>
  84. <li>Click Create</li>
  85. <li>On the Create Virtual Hard Disk dialog
  86. <p>Name the virtual disk image Arch.vdi<br />
  87. File size: 40 GB<br />
  88. Hard disk file type: VDI<br />
  89. Storage on physical hard disk: Dynamically Allocated</p>
  90. </li>
  91. <li>Click Create</li>
  92. <li>Select the VM and Click Settings</li>
  93. <li>Select System &gt; Processor</li>
  94. <li>Give the VM at least 2 processors</li>
  95. <li>Select Display</li>
  96. <li>Slide the Video Memory to 128 MB</li>
  97. <li>Select Network</li>
  98. <li>Set the attached to dropdown to Bridged Adapter</li>
  99. <li>Select Storage</li>
  100. <li>Click on the CD-ROM drive</li>
  101. <li>Select the disc dropdown to the right &gt; Choose a virtual optical disc file...</li>
  102. <li>Browse to and select the downloaded Arch .iso file</li>
  103. <li>Click OK</li>
  104. <li>Make sure the Arch VM is selected and click Start &gt; Normal</li>
  105. <li>At the Arch Linux menu, select Arch Linux install medium &gt; Press Enter</li>
  106. <li>Run the following commands to install Arch Linux on the VBOX HARDDISK
  107. <div class="codeBlock"># list disk drives, note the identifier for VBOX HARDDISK<br />
  108. fdisk -l<br />
  109. # partition the drive, change the identifier if needed<br />
  110. fdisk /dev/sda<br />
  111. # create a new partition<br />
  112. n<br />
  113. # set the partition type to primary<br />
  114. p<br />
  115. # default sector<br />
  116. 2048<br />
  117. # set the partition size<br />
  118. +40GB<br />
  119. # create a swap partition<br />
  120. n<br />
  121. # set the partition type to primary<br />
  122. p<br />
  123. # default sector<br />
  124. Press Enter to accept default<br />
  125. # set the partition size<br />
  126. Press Enter to accept default<br />
  127. # write the partitions<br />
  128. w<br />
  129. # print out the partitions<br />
  130. fdisk -l<br />
  131. # create ext4 root partition<br />
  132. mkfs.ext4 /dev/sda1<br />
  133. # confirm proceeding with the change if prompted<br />
  134. y<br />
  135. # create swap partition<br />
  136. mkswap /dev/sda2<br />
  137. # confirm proceeding with the change if prompted<br />
  138. y<br />
  139. # mount the root partition<br />
  140. mount /dev/sda1 /mnt<br />
  141. # enable swap<br />
  142. swapon /dev/sda2<br />
  143. # run pacstrap installation<br />
  144. pacstrap /mnt base linux linux-firmware<br />
  145. # generate fstab file<br />
  146. genfstab -U /mnt &gt;&gt; /mnt/etc/fstab<br />
  147. # change root to the /mnt directory<br />
  148. arch-chroot /mnt<br />
  149. # set the hostname<br />
  150. echo archlinux-vm &gt; /etc/hostname<br />
  151. # install grub bootloader<br />
  152. pacman -S grub<br />
  153. grub-install /dev/sda<br />
  154. # create grub config<br />
  155. grub-mkconfig -o /boot/grub/grub.cfg<br />
  156. # install gnome desktop environment<br />
  157. pacman -S gnome<br />
  158. # enable required services<br />
  159. systemctl enable gdm.service<br />
  160. systemctl enable NetworkManager.service<br />
  161. # set root passwd<br />
  162. passwd<br />
  163. # shutdown<br />
  164. exit<br />
  165. shutdown now</div>
  166. </li>
  167. <li>Right click the Arch Linux VM &gt; Settings...</li>
  168. <li>Select Storage from the left navigation menu</li>
  169. <li>Remove the Arch Linux installation medium from the optical drive</li>
  170. <li>Click OK</li>
  171. <li>Right click the Arch Linux VM &gt; Start &gt; Normal Start</li>
  172. <li>At the gnome login, login with username root and the password set during the installation</li>
  173. </ol>
  174. <h2>Install VirtualBox Guest Additions (Optional)</h2>
  175. <ol>
  176. <li>Run the following command in a terminal window
  177. <div class="codeBlock">pacman -S virtualbox-guest-utils</div>
  178. </li>
  179. </ol>
  180. </div>
  181. </div>
  182. </body>
  183. </html>