#!/bin/sh # Wizard to install the Nvidia driver # Adapted for Klikit-Linux by Chris_(medico_2001) mycard=`lspci | grep VGA | grep nVidia | cut -f 2- -d " "` sudo killall synaptic apt-get dpkg adept export XDIALOG_HIGH_DIALOG_COMPAT=1 DIALOG=Xdialog DIA=Xdialog clear $DIALOG --title "Klikit Wizard" \ --backtitle " Install 3D Nvidia Driver " \ --radiolist "This wizard will try to install the 3D Nvidia Driver. \n This driver will let you play 3D accelerated games, and increase the performance of certain graphic intensive applications, taking full advantage of the resources of your Nvidia video card.\n This wizard requires that you are connected to the internet.\n\n Before installing the driver make sure you read and accept the License For Customer Use of NVIDIA Software.\n\n Your video card was detected by Klikit-Linux as:\n $mycard \n\n It is required that you select correctly the driver to be installed or 3D acceleration will not work\n If by any chance this wizard does not work, it creates a backup of your previous xorg.conf file (/etc/X11/xorg.conf.klikit, which can be restored with the command: restore-xorg. \n\n Another option to install the Nvidia driver is using the Envy installer \n If you use Envy to install the driver use that same program to remove it." 60 80 0 \ "9755" "Latest stable version for 6100 Nvidia video cards and above" off \ "9631" "For Geforce 2, Geforce 3 and Geforce 4 Nvidia video cards" off \ "7184" "For very old Nvidia video cards" off \ "License" "Read the License For Customer Use of NVIDIA Software" off \ "Envy" "Launch the Envy installer" off \ "Exit" "Close this wizard" off 2> /tmp/checklist.tmp.$$ retval=$? if [ $retval = 1 ]; then exit 0 fi choice=`cat /tmp/checklist.tmp.$$` rm -f /tmp/checklist.tmp.$$ if [ "$choice" = "License" ]; then firefox http://www.nvidia.com/object/nv_swlicense.html exit 0 fi if [ "$choice" = "Exit" ]; then exit 0 fi # ----------------------------------- if [ "$choice" = "9755" ]; then sudo rm /etc/X11/xorg.conf.klikit sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.klikit sudo xterm -e apt-get install nvidia-glx-new kdialog --title="klikit info" --msgbox "Done. it seems the installation of the 9755 Nvidia driver was sucessful." /opt/Klikit_Extras/scripts/nvidia-resolution fi # ----------------------------------- if [ "$choice" = "9631" ]; then sudo rm /etc/X11/xorg.conf.klikit sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.klikit sudo xterm -e apt-get install nvidia-glx kdialog --title="klikit info" --msgbox "Done. it seems the installation of the 9631 Nvidia driver was sucessful." /opt/Klikit_Extras/scripts/nvidia-resolution fi # ----------------------------------- if [ "$choice" = "7184" ]; then sudo rm /etc/X11/xorg.conf.klikit sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.klikit sudo xterm -e apt-get install nvidia-glx-legacy kdialog --title="klikit info" --msgbox "Done. it seems the installation of the 7184 Nvidia driver was sucessful." /opt/Klikit_Extras/scripts/nvidia-resolution fi # ----------------------------------- if [ "$choice" = "Envy" ]; then sudo rm /etc/X11/xorg.conf.klikit sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.klikit kdialog --title="klikit info" --msgbox "This option will launch the Envy installer" /usr/bin/envy -g kdialog --title="klikit info" --msgbox "If you installed the driver using Envy, remove it with the same program" fi