Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alias and współdzielenie katalogów #16

Merged
merged 3 commits into from
Apr 20, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions tools/packer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Jak dokonfigurować wirtualną maszynę?
-------------------------------------

- Po zaimportowaniu obrazu OVA zmień ustawienia sieci i ustaw adapter na "Bridged"
- Skonfiguruj współdzielony katalog, w którym będziesz trzymał źródła (odznacz read-only, zaznacz auto-mount)
- Jeśli VM została wcześniej uruchomiona, zatrzymaj ją
- Uruchom maszynę w trybie headless (trzymając SHIFT)
- Aby poznać IP po uruchomieniu maszyny wykonaj w konsoli komendę:
VBoxManage guestproperty get nodeschool-vm /VirtualBox/GuestInfo/Net/0/V4/IP
- Użyj klienta SSH (zalecamy PuTTY [1]) do zalogowania się na użytkownika vagrant (hasło: vagrant)

Współdzielony zasób znajduje się w /media/sf_<nazwa_zasobu>

[1] http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe
2 changes: 2 additions & 0 deletions tools/packer/scripts/install-guest-additions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ mount -o loop /home/vagrant/VBoxGuestAdditions.iso /mnt/guest
sh /mnt/guest/VBoxLinuxAdditions.run
umount /mnt/guest
rm -rf /home/vagrant/VBoxGuestAdditions.iso /mnt/guest

usermod -a -G vboxsf vagrant
5 changes: 5 additions & 0 deletions tools/packer/scripts/install-nvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@ source ~/.nvm/nvm.sh
nvm install 0.12 # for 'shader-school'
nvm install iojs
nvm alias default iojs

# When enabled directory sharing with Windows host you operate on NTFS
# and some modules might not be able to be installed because of symlink
# creation not possible on NTFS.
echo "alias npm='npm --no-bin-links'" >> ~/.bashrc