-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathinstall_qemu.sh
66 lines (60 loc) · 1.82 KB
/
install_qemu.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
cd /etc/apt
rm -rf sources.list
wget https://raw.githubusercontent.com/Bebove/macos-kvm/master/sources.list
chmod 777 sources.list
apt-get update -y
apt-get upgrade -y
apt-get install openssh-server -y
apt-get install python python-pip git axel -y
pip install --upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple
sed -i '$d' /usr/bin/pip
sed -i '$d' /usr/bin/pip
sudo sed -i '$d' /usr/bin/pip
sudo echo 'from pip import __main__' >> /usr/bin/pip
sudo echo 'if __name__ == '__main__':' >> /usr/bin/pip
sudo echo -e '\t sys.exit(__main__._main())' >> /usr/bin/pip
pip install pip -U
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
pip install click request
apt-get install pkg-config -y
apt install libvirt-bin libvirt-daemon libvirt0 -y
apt-get install libjpeg-dev libspice-server1 -y
apt-get install libopus-dbg libvte-2.91-dev libopus-dev curl opus* -y
apt-get install libepoxy-dev libgbm-dev liblzo2-dev libpmem-dev libssl-dev libgtk-3-dev libsdl2-dev libsdl-dev -y
cd ~
wget https://www.spice-space.org/download/releases/spice-protocol-0.12.15.tar.bz2
tar jxf spice-protocol-0.12.15.tar.bz2
cd spice-protocol-0.12.15/
./configure
make -j4
make install
apt-get install vim -y
apt-get update -y
apt-get upgrade -y
cd ~
axel -n 64 https://www.spice-space.org/download/releases/spice-server/spice-0.14.1.tar.bz2
tar jxf spice-0.14.1.tar.bz2
cd spice-0.14.1/
./configure
make -j4
make install
cd ~
#wget https://github.com/libusb/libusb/archive/v1.0.22.zip
#unzip v1.0.22.zip
#cd libusb-1.0.22/
#aclocal
#aclocal --install
#autoconf
#autoheader
#libtoolize
#automake --add-missing
#./configure
#make -j12
#make install
cd ~
axel -n 128 https://download.qemu.org/qemu-4.0.0.tar.xz
tar xvJf qemu-4.0.0.tar.xz
cd qemu-4.0.0
./configure --enable-gtk --enable-sdl --enable-opengl --enable-lzo
make -j4
make install