-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-ubuntu.sh
executable file
·75 lines (59 loc) · 1.34 KB
/
install-ubuntu.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!/usr/bin/env bash
# vim: set ts=2 sw=2 expandtab :
set -o errexit
set -o pipefail
set -o nounset
declare -r WORKSPACE=~/workspace
# IMPORTANT: run this script using `sudo`
create_workspace() {
mkdir -p ${WORKSPACE}
}
# Required for wine
enable_32bit_arch() {
dpkg --add-architecture i386
}
add_wine_repository() {
add-apt-repository -y ppa:wine/wine-builds
}
update_pkgs() {
apt-get -y update
}
install_mxe() {
git clone https://github.com/mxe/mxe.git ${WORKSPACE}/mxe
pushd ${WORKSPACE}/mxe
MXE_TARGETS='x86_64-w64-mingw32.static i686-w64-mingw32.static' make gcc
popd
}
install_mxe_requirements() {
apt-get install -y \
autoconf automake autopoint bash bison bzip2 flex gettext\
git g++ gperf intltool libffi-dev libgdk-pixbuf2.0-dev \
libtool libltdl-dev libssl-dev libxml-parser-perl make \
openssl p7zip-full patch perl pkg-config python ruby scons \
sed unzip wget xz-utils libtool-bin
}
install_wine() {
apt-get -y install --install-recommends winehq-staging
}
install_xvfb() {
apt-get -y install xvfb
}
install_x11vnc() {
apt-get -y install x11vnc
}
install_pulseaudio() {
apt-get -y install pulseaudio
}
main() {
create_workspace
enable_32bit_arch
add_wine_repository
update_pkgs
install_mxe_requirements
install_mxe
install_wine
install_xvfb
install_x11vnc
install_pulseaudio
}
main