tce-load -i compiletc perl5 bash ncurses-dev bc coreutils cd linux-3.16.6 make mrproper copy config-3.16.6-tinycore .config make oldconfig make prepare make modules_prepare gunzip Module.symvers-3.16.6-tinycore.gz cp Module.symvers-3.16.6-tinycore Module.symvers make SUBDIRS=scripts/mod Edit Makefile replace include/config/auto.conf: $(Q)test -e include/generated/autoconf.h -a -e $@ || ( \ echo >&2; \ echo >&2 " ERROR: Kernel configuration is invalid."; \ echo >&2 " include/generated/autoconf.h or $@ are missing.";\ echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \ echo >&2 ; \ /bin/false) with include include/config/auto.conf cd /lib/modules/3.16.6-tinycore sudo ln -s /usr/src/linux-3.16.6 source sudo ln -s /usr/src/linux-3.16.6 build /usr/src ./NVIDIA-Linux-x86-173.14.39-pkg1.run --extract-only cd NVIDIA-Linux-x86-173.14.39-pkg1 patch -Np0 -i ../NVIDIA-Linux-x86-173.14.39-pkg1.patch patch -Np0 -i ../NVIDIA-Linux-x86-173.14.39-pkg1.run_acpi.patch cd usr/src/nv make SYSSRC=/usr/src/linux-3.16.6 module gzip nvidia.ko advdef -z4 nvidia.ko.gz sudo install -d -m 755 /usr/local/lib/modules/3.16.6-tinycore/kernel/drivers/video sudo install -m 644 nvidia.ko.gz /usr/local/lib/modules/3.16.6-tinycore/kernel/drivers/video cd ../../ sudo install -d -m 755 /usr/local/lib/xorg/modules/drivers sudo install -d -m 755 /usr/local/lib/xorg/modules/extensions sudo install -d -m 755 /usr/local/etc/OpenCL/vendors sudo install -d -m 755 /usr/local/share/man/man1 sudo install -d -m 755 /usr/local/share/applications sudo install -d -m 755 /usr/local/share/pixmaps sudo install -d -m 755 /usr/local/share/doc/nvidia-glx/html sudo install -d -m 755 /usr/local/lib/vdpau sudo install -d -m 755 /usr/local/include/GL sudo install -m 755 X11R6/lib/modules/drivers/nvidia_drv.so /usr/local/lib/xorg/modules/drivers sudo install -m 755 X11R6/lib/modules/extensions/libglx.so.173.14.39 /usr/local/lib/xorg/modules/extensions *** Xorg-7.7 already has libglx.so *** sudo ln -s "libglx.so.173.14.39 /usr/local/lib/xorg/modules/extensions/libglx.so sudo install -m 755 lib/libGL.so.173.14.39 /usr/local/lib sudo install -m 755 lib/libGLcore.so.173.14.39 /usr/local/lib sed -e 's:__LIBGL_PATH__:/usr/local/lib:' -i lib/libGL.la sed -e 's:/X11R6/:/:' -i lib/libGL.la sudo install -m 755 lib/libGL.la /usr/local/lib sudo install -m 644 include/GL/*.h /usr/local/include/GL sudo install -m 644 X11R6/lib/libXvMCNVIDIA.a /usr/local/lib sudo install -m 755 X11R6/lib/libXvMCNVIDIA.so.173.14.39 /usr/local/lib sudo install -m 755 lib/libcuda.so.173.14.39 /usr/local/lib sudo install -m 755 lib/tls/libnvidia-tls.so.173.14.39 /usr/local/lib sudo install -m 755 lib/libnvidia-cfg.so.173.14.39 /usr/local/lib sudo install -m 755 X11R6/lib/modules/libnvidia-wfb.so.173.14.39 /usr/local/lib sudo install -m 755 bin/nvidia-xconfig /usr/local/bin sudo install -m 644 share/man/man1/nvidia-xconfig.1.gz /usr/local/share/man/man1 sed -e 's:__UTILS_PATH__:/usr/local/bin:' -e 's:__PIXMAP_PATH__:/usr/local/share/pixmaps:' -i share/applications/nvidia-settings.desktop sudo install -m 755 bin/nvidia-settings /usr/local/bin sudo install -m 644 share/man/man1/nvidia-settings.1.gz /usr/local/share/man/man1 sudo install -m 644 share/applications/nvidia-settings.desktop /usr/local/share/applications sudo install -m 644 share/pixmaps/nvidia-settings.png /usr/local/share/pixmaps sudo install -m 755 bin/nvidia-bug-report.sh /usr/local/bin sudo install -m 755 bin/nvidia-smi /usr/local/bin sudo install -m 644 share/doc/Copyrights /usr/local/share/doc/nvidia-glx sudo install -m 644 share/doc/README.txt /usr/local/share/doc/nvidia-glx sudo install -m 644 share/doc/NVIDIA_Changelog /usr/local/share/doc/nvidia-glx sudo install -m 644 share/doc/html/* /usr/local/share/doc/nvidia-glx/html cd /usr/local/lib sudo ln -s libGLcore.so.173.14.39 libGLcore.so.1 sudo ln -s libnvidia-tls.so.173.14.39 libnvidia-tls.so.1