Last active
July 27, 2016 14:17
-
-
Save mamigot/77129ce381de1ab483f7580e9a31f6f7 to your computer and use it in GitHub Desktop.
Basic initial configuration of Ubuntu 12.04 on VirtualBox
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# wget $URL_OF_THIS_RAW_SCRIPT -O - | sudo bash | |
############################################################################################# | |
# Basic initial configuration of Ubuntu 12.04 on VirtualBox | |
# (execute after installing the relevant ISO on the VM through VirtualBox: http://releases.ubuntu.com/12.04/) | |
# | |
# | |
# In order to access the VM from your host (e.g. OS X), forward the relevant ports on VirtualBox: | |
# Network -> Adapter 1 (NAT) -> Port Forwarding (http://stackoverflow.com/a/10532299/2708484) | |
# | |
# Easily access the VM by adding the following to your host's ~/.ssh/config | |
# (allows for `ssh $VM_HOST` as opposed to `ssh -p $VM_PORT [email protected]`): | |
# | |
# host $VM_HOST | |
# HostName 127.0.0.1 | |
# Port $VM_PORT | |
# User $VM_USER | |
############################################################################################ | |
############################################################################################ | |
# Run the following on the VM using the `wget` command from above | |
# The following deals with the 'hash sum mismatch' error | |
# http://askubuntu.com/questions/41605/trouble-downloading-packages-list-due-to-a-hash-sum-mismatch-error | |
sudo rm -rf /var/lib/apt/lists/* | |
sudo apt-get -y update | |
sudo apt-get -y upgrade | |
# http://askubuntu.com/questions/265982/unable-to-start-sshd/265985#265985 | |
sudo apt-get purge openssh-server | |
sudo apt-get install openssh-server | |
# Monitor system-level resources | |
sudo apt-get install htop | |
# Add SWAP | |
# https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment