
##
#
#
#Ubuntu 12.04 displaylink on UM-900
#
#
#
#
#
#
#
0.

sudo apt-get update



###
#
#
#refer to http://askubuntu.com/questions/141606/how-to-fix-the-system-is-running-in-low-graphics-mode-error 
#
#
#

sudo apt-get install linux-kernel-image-3.2.0-38-generic
sudo apt-get install linux-headers-3.2.0-38-gerneric

#####################################################################################################
#Note:
#	if you don't want to downgrade the kernel and your kernel  version is greater than 3.4, please refer to url:
#	http://plugable.com/2012/06/21/displaylink-usb-devices-on-linux-kernel-3-4-0. and Please set the udlfb driver's option 
#	fb_defio=0, or the kernel will be panic!!
#
######################################################################################################


sudo apt-get -d install --reinstall gdm
sudo apt-get remove --purge gdm
sudo apt-get install gdm
sudo reboot

sudo apt-get build-dep gnome-panel
sudo apt-get install gnome-session-fallback
sudo apt-get source gnome-panel
sudo chown -R username:username gnome-panel*
cd gnome-panel-3.4.1
debuild -us -uc
patch -p1 < fix-for-1083811.patch  #(please refer to https://bugzilla.gnome.org/show_bug.cgi?id=689610)
make && sudo make install


1.
sudo apt-get install module-assistant
sudo module-assistant prepare
git clone http://git.plugable.com/webdav/udlfb/
cd udlfb
patch -p1 < ../um900.patch
make
sudo make install
sudo depmod -a
2.

sudo apt-get install pkg-config xorg-dev
git clone http://git.plugable.com/webdav/xf-video-udlfb/
cd xf-video-udlfb
./configure
make
sudo make install

3.
##################################################
#Note:
#       You may need to modify the "Driver" Option in the "Device" Section which the Identifier is "NvdiaCard".
#	The test machine has a nvidia card , so  I just use "driver nouveau"
#
#
#
#
################################################


sudo cp -iv 51-displaylink.conf /usr/share/X11/xorg.conf.d/


4.

sudo apt-get source nautilus
sudo apt-get build-dep nautilus
sudo chown -R yourusername:yourusername  nautilus*

cd nautilus-3.4.2
debuild -uc -us
patch -p1 < where/is/your/folder/white_screen.patch

make && sudo make install
