User Tools

Site Tools


vm:headless

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
vm:headless [2019/01/09 10:51] – created borjavm:headless [2019/02/22 15:21] markpcohen
Line 21: Line 21:
 10. Under "Network" -> "Adapter 2", select "Enable Network Adapter". Then, select "Host-only Adapter" for the "Attached to" field, and make sure that "vboxnet0" is selected for the "Name" field. 10. Under "Network" -> "Adapter 2", select "Enable Network Adapter". Then, select "Host-only Adapter" for the "Attached to" field, and make sure that "vboxnet0" is selected for the "Name" field.
  
-11. Under "Shared Folders", click the blue folder icon with the green plus icon on the right hand side. Under "Folder Path" select "Other", navigate to ''REPO_ROOT'', and click "Open" in the bottom right. For "Folder Name", enter the name of your class. From now on, this location will be referred to as ''REPO_SHARED_NAME''. Then, select "Auto-Mount" and click "OK", and then "OK" again.+11. Under "Shared Folders", click the blue folder icon with the green plus icon on the right hand side. Under "Folder Path" select "Other", navigate to ''REPO_ROOT'', and click "Open" in the bottom right. For "Folder Name", enter the name of your class. From now on, this location will be referred to as ''REPO_SHARED_NAME''. Then, select "Make Permanent(if available - it sometimes doesn't show up, that's okay too) and click "OK", and then "OK" again.
  
-12. Start the VM and log in.+12. Start the VM and log in. The password is ''uccs''.
  
 13. In the VM, launch a terminal and run the following commands: 13. In the VM, launch a terminal and run the following commands:
Line 39: Line 39:
   $ nmcli con mod "INTERFACE_NAME_HERE" ipv4.method "manual" ipv4.addresses "192.168.56.101/24"   $ nmcli con mod "INTERFACE_NAME_HERE" ipv4.method "manual" ipv4.addresses "192.168.56.101/24"
  
-14. Shut down the VM (click the gear icon in the top right, and click "Shut Down").+14. Run the following command:
  
-15. Launch a terminal on your local machine (i.e. not inside the VM). Run the following commands:+  $ sudo nano /etc/fstab 
 + 
 +This will open up your system's volume mounting configuration. At the bottom of the file, add the following line: 
 + 
 +  REPO_SHARED_NAME /media/sf_REPO_SHARED_NAME vboxsf gid=1000,uid=1000 
 + 
 +Be sure to replace ''REPO_SHARED_NAME'' with the appropriate name. For example, if you named your shared folder ''cs233'', you would write: 
 + 
 +  cs233 /media/sf_cs233 vboxsf gid=1000,uid=1000 
 + 
 +Then, to quit nano, press ''Ctrl+x'', then press ''y'', then press ''Enter''
 + 
 +15. Shut down the VM (click the gear icon in the top right, and click "Shut Down"). 
 + 
 +16. Launch a terminal on your local machine (i.e. not inside the VM). Run the following commands:
  
   $ mkdir -p ~/.ssh   $ mkdir -p ~/.ssh
Line 54: Line 68:
 Then, to quit nano, press ''Ctrl+x'', then press ''y'', then press ''Enter''. Then, to quit nano, press ''Ctrl+x'', then press ''y'', then press ''Enter''.
  
-15. In VirtualBox, right click on the VM and choose "Start" -> "Headless Start".+17. In VirtualBox, right click on the VM and choose "Start" -> "Headless Start".
  
-16. Wait ~15s for the VM to start up fully. Then, in a terminal on your local machine, run:+18. Wait ~15s for the VM to start up fully. Then, in a terminal on your local machine, run:
  
      
   $ ssh cs-vm   $ ssh cs-vm
  
-17. Once you're logged in, you'll see the prompt change to something like ''student@cs-vm:~$ ''. Then, run the following commands:+19. Once you're logged in, you'll see the prompt change to something like ''student@cs-vm:~$ ''. Then, run the following commands:
  
   $ git config --global core.fileMode false   $ git config --global core.fileMode false
Line 71: Line 85:
  
   $ ln -s /media/sf_cs233 ~/cs233   $ ln -s /media/sf_cs233 ~/cs233
 +
 +20. Run the following commands:
 +
 +  $ git config --global push.default simple
 +  $ git config --global credential.helper store
 +  $ git config --global user.email "YOUR_UCHICAGO_EMAIL_HERE"
 +  $ git config --global user.name "YOUR_FULL_NAME_HERE"
  
  
/var/lib/dokuwiki/data/pages/vm/headless.txt · Last modified: 2020/04/25 20:16 by borja

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki