Last active
August 29, 2015 14:07
-
-
Save mikemorris/4e10d56837d402f3be59 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sudo apt-get update -y | |
sudo apt-get upgrade -y | |
sudo apt-get install -y git-core | |
sudo apt-get install -y automake libtool libpthread-stubs0-dev | |
sudo apt-get install -y xserver-xorg-dev x11proto-xinerama-dev libx11-xcb-dev | |
sudo apt-get install -y libxcb-glx0-dev libxrender-dev | |
sudo apt-get install -y llvm-dev xutils-dev | |
sudo apt-get build-dep -y libgl1-mesa-dri libxcb-glx0-dev | |
export TOP=$PWD | |
git clone git://anongit.freedesktop.org/git/mesa/mesa | |
git clone git://anongit.freedesktop.org/git/mesa/vmwgfx | |
git clone git://anongit.freedesktop.org/git/mesa/drm | |
git clone git://anongit.freedesktop.org/git/xorg/driver/xf86-video-vmware | |
cd $TOP/drm | |
./autogen.sh --prefix=/usr/lib/drm --libdir=/usr/lib64 | |
make | |
sudo make install | |
cd $TOP/mesa | |
./autogen.sh --prefix=/usr/lib/mesa --libdir=/usr/lib64 --with-gallium-drivers=svga,swrast --enable-xa --disable-dri --enable-xlib-glx | |
make | |
sudo make install | |
cd $TOP/xf86-video-vmware | |
./autogen.sh --prefix=/usr/lib/xf86-video-vmware --libdir=/usr/lib64 | |
make | |
sudo make install | |
sudo rm /lib/modules/`uname -r`/kernel/drivers/gpu/drm/vmwgfx/vmwgfx.ko* | |
cd $TOP/vmwgfx | |
make | |
sudo make install | |
# “Can't read private key” is an expected error, it simply means you aren’t an Ubuntu maintainer | |
sudo cp 00-vmwgfx.rules /etc/udev/rules.d | |
# After installing vmwgfx.ko you might want to run the following command to check that the new kernel module is in the expected place: | |
find /lib/modules -name vmwgfx.ko -exec ls -l '{}' \; | |
# If you see the kernel module listed in more than one place, you may need to move things around. | |
# Is this necessary? modinfo vmwgfx ppears broken otherwise | |
sudo mv /lib/modules/3.13.0-32-generic/kernel/drivers/gpu/drm/vmwgfx/ /lib/modules/3.13.0-32-generic/extra/vmwgfx.ko | |
modprobe vmwgfx | |
#sudo apt-get install -y mesa-utils | |
#LD_LIBRARY_PATH=/usr/lib64 LIBGL_DEBUG=verbose glxinfo | grep direct | |
#LD_LIBRARY_PATH=/usr/lib64 LIBGL_DEBUG=verbose glxinfo | grep OpenGL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment