(Based on Beginners' guide)
Host :
- Debian Jessie
Guest :
- ArchLinux 2016.01.01
- Kernel 4.3.3
| #!/bin/bash | |
| sleep 60 | |
| IP=`hostname -i` | |
| HOSTNAME=`hostname -f` | |
| echo "@reboot $HOSTNAME online. IP address: $IP" > /root/email.txt | |
| echo >> /root/email.txt | |
| date >> /root/email.txt |
(Based on Beginners' guide)
Host :
Guest :
pacman -Syu
pacman -S virtualbox-guest-utils
Fichier: /etc/modules-load.d/virtualbox.conf
vboxguest
vboxsf
vboxvideo
Node.js and npm packages are available in the Community Repository.
pacman -S nodejs npm
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
sudo apt-get install -y nodejs
| #!/bin/bash | |
| iptables -P INPUT ACCEPT | |
| iptables -P FORWARD ACCEPT | |
| iptables -P OUTPUT ACCEPT | |
| echo "Flush All Rules, Delete All Chains, and Accept All [OK]" |
| #-*- coding: utf-8 -*- | |
| def application(environ, start_response): | |
| import sys | |
| pvar = 'Hello world !!' | |
| output = pvar.encode('utf8') | |
| # output = sys.version.encode('utf8') | |
| status = '200 OK' | |
| headers = [('Content-type', 'text/plain'), | |
| ('Content-Length', str(len(output)))] | |
| start_response(status, headers) |
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| # All Vagrant configuration is done below. The "2" in Vagrant.configure | |
| # configures the configuration version (we support older styles for | |
| # backwards compatibility). Please don't change it unless you know what | |
| # you're doing. | |
| Vagrant.configure(2) do |config| | |
| # The most common configuration options are documented and commented below. | |
| # For a complete reference, please see the online documentation at |
| #!/bin/bash | |
| # Mount the installer image to some directory by using the hdiutil tool | |
| hdiutil attach "/Applications/Install OS X El Capitan.app/Contents/SharedSupport/InstallESD.dmg" -noverify -nobrowse -mountpoint /Volumes/esd | |
| # Now let's create a placeholder image of our ISO file | |
| hdiutil create -o ElCapitan3.cdr -size 7316m -layout SPUD -fs HFS+J | |
| # After an empty ISO file will be created, we need to mount it | |
| hdiutil attach ElCapitan3.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/iso |