root@ubuntu:~# mount /dev/cdrom /mnt/
root@ubuntu:~# cd /mnt/
root@ubuntu:/mnt# ./VBoxLinuxAdditions.run
root@ubuntu:/mnt# reboot
marek@ubuntu:~$ sudo apt-get install clang
marek@ubuntu:~$ wget -q -O - https://swift.org/keys/all-keys.asc | \
gpg --import -
marek@ubuntu:~$ mkdir down
marek@ubuntu:~$ sudo mount -t vboxsf -o uid=$UID,gid=$(id -g) down ~/down
marek@ubuntu:~/down$ gpg --verify swift-4.0.2-RELEASE-ubuntu16.04.tar.gz.sig
gpg: assuming signed data in `swift-4.0.2-RELEASE-ubuntu16.04.tar.gz'
gpg: Signature made Thu 02 Nov 2017 05:23:32 AM CET using RSA key ID 71E1B235
gpg: Good signature from "Swift 4.x Release Signing Key <swift-infrastructure@swift.org>"
gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
Primary key fingerprint: 5E4D F843 FB06 5D7F 7E24 FBA2 EF54 30F0 71E1 B235
wget -q -O - https://swift.org/keys/release-key-swift-4.x.asc | \
gpg --import -
marek@ubuntu:~$ sudo mkdir /opt/swift
marek@ubuntu:~$ cd /opt/swift
marek@ubuntu:/opt/swift$ sudo tar xzf ~/down/swift-4.0.2-RELEASE-ubuntu16.04.tar.gz
marek@ubuntu:/opt/swift$ sudo ln -s swift-4.0.2-RELEASE-ubuntu16.04 swift
marek@ubuntu:/opt/swift$ cd
marek@ubuntu:~$ echo 'PATH="/opt/swift/swift/usr/bin/:$PATH"' >> .profile
swiftenv
https://swiftenv.fuller.li/en/latest/installation.html
marek@ubuntu:~$ echo 'export SWIFTENV_ROOT="$HOME/.swiftenv"' >> ~/.profile
marek@ubuntu:~$ echo 'export PATH="$SWIFTENV_ROOT/bin:$PATH"' >> ~/.profile
marek@ubuntu:~$ echo 'eval "$(swiftenv init -)"' >> ~/.profile
na 16.04
marek@ubuntu:~$ sudo apt-get install libpython2.7
marek@ubuntu:~$ swiftenv install 4.0