-
Piotr Maślanka authoreda5590a69
build.sh 1.12 KiB
#!/bin/bash
set -e
export DISPLAY=:0.0
export WINEPREFIX="/home/vagrant/.wine"
export WINEARCH="win32"
apt-get update
apt-get install -y python-software-properties
# Repositories
## Mono
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb http://download.mono-project.com/repo/ubuntu precise main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
## WineHQ
# wget https://dl.winehq.org/wine-builds/Release.key
# apt-key add Release.key
# apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/
## update
apt-get update
# Install things
TO_INSTALL=""
## Mono for .NET 4.0, and winbind for ntlm_auth
TO_INSTALL="$TO_INSTALL mono-complete winbind"
## WINE
TO_INSTALL="$TO_INSTALL wine winetricks xvfb"
## Fonts for Mono/WINE
TO_INSTALL="$TO_INSTALL xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic"
## Things
TO_INSTALL="$TO_INSTALL unzip curl"
## roll - globbing intended
apt-get install -y $TO_INSTALL
# Install command
cp -f /vagrant/tibbo_build.sh /usr/sbin/tibbo_build
chmod ugo+rx /usr/sbin/tibbo_build
# Sanitize
chown -R vagrant:vagrant /home/vagrant