Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 18 Jun 2013, 17:31
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
How to use NVIDIA nonfree driver in "Quirky Linux - 1.40"
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count_1  
Author Message
postfs1


Joined: 27 Mar 2010
Posts: 831

PostPosted: Mon 11 Jul 2011, 21:45    Post_subject:  How to use NVIDIA nonfree driver in "Quirky Linux - 1.40"  

The reason: the nvidia.pet that i have downloaded earlier, unexpectedly has ran away from my removable device some time ago.
Quote:
http://www.murga-linux.com/puppy/viewtopic.php?p=484870#484870

......................................................................................................................

If there is a need to create the NVIDIA nonfree driver, then there is an ISO file, which can be installed for such a task.
"Quirky 1.4 bug reports and feedback. Post_542170" wrote:

http://www.murga-linux.com/puppy/viewtopic.php?p=542170#542170

......................................................................................................................
If there is a need to create the NVIDIA nonfree driver, then there are a several scripts which perhaps can help to build an ISO image of operating system with the software development environment.
"How to build an ISO with the development software. Quirky L."
wrote:

http://www.murga-linux.com/puppy/viewtopic.php?p=543888#543888


......................................................................................................................
......................................................................................................................
STEP-1. >>> Installation.
......................................................................................................................
Quote:

Attempt-1_-STEP-1--NVIDIA_driver_to_TAR.sh
Code:

#!/bin/bash
#-=Quirky Linux - 1.40=- is installed onto HDD. Version of installation: FULL.
#Variant of use of the SCRIPTS: -=display mode: virtual terminal=-.
#......................................................................................................................
#>>>------------------------------------------------------------------------------
#------------------------------------------------------------------------------>>>
mkdir -p /archive ;
cd /archive ; curl -C - -O file:///mnt/sda1/NVidia-275/NVIDIA-Linux-x86-275.09.07.run ;
chmod 0744 NVIDIA-Linux-x86-275.09.07.run ;
#
umount /mnt/sda1 ;
##
adduser -g "raoot" -H -D -G root -s /bin/sh -u 1004 raoot ;
#
chown -R raoot /usr/.*?* ;
chown -R raoot /lib/*?* ;
chown -R raoot /sbin/*?* ;
chown -R raoot /bin/*?* ;
chown -R raoot /etc/*?* ;
chown -R raoot /etc/.*?* ;
chown -R raoot /root/*?* ;
chown -R raoot /root/.*?* ;
##
find /usr -user root ; # >>>
find /lib -user root ; # >>>
find /sbin -user root ; # >>>
find /bin -user root ; # >>>
find /etc -user root ; # >>>
find /root -user root ; # >>>
#
echo "GO NEXT."



Quote:

Attempt-1_-STEP-2--NVIDIA_driver_to_TAR.sh
Code:

#!/bin/bash
#......................................................................................................................
#>>>------------------------------------------------------------------------------
#------------------------------------------------------------------------------>>>
cd /archive ;
sh NVIDIA-Linux-x86-275.09.07.run
#
echo "GO NEXT."



Quote:

Attempt-1_-STEP-3--NVIDIA_driver_to_TAR.sh
Code:

#!/bin/bash
#......................................................................................................................
#>>>------------------------------------------------------------------------------
#------------------------------------------------------------------------------>>>
find /usr -type f -user root > /archive/NVIDIA-Linux-x86-_TXT_-275.09.07_run.txt ;
find /usr -type l -user root >> /archive/NVIDIA-Linux-x86-_TXT_-275.09.07_run.txt ;
find /lib -type f -user root >> /archive/NVIDIA-Linux-x86-_TXT_-275.09.07_run.txt ;
find /lib -type l -user root >> /archive/NVIDIA-Linux-x86-_TXT_-275.09.07_run.txt ;
find /sbin -type f -user root >> /archive/NVIDIA-Linux-x86-_TXT_-275.09.07_run.txt ;
find /sbin -type l -user root >> /archive/NVIDIA-Linux-x86-_TXT_-275.09.07_run.txt ;
find /bin -type f -user root >> /archive/NVIDIA-Linux-x86-_TXT_-275.09.07_run.txt ;
find /bin -type l -user root >> /archive/NVIDIA-Linux-x86-_TXT_-275.09.07_run.txt ;
find /etc -type f -user root >> /archive/NVIDIA-Linux-x86-_TXT_-275.09.07_run.txt ;
find /etc -type l -user root >> /archive/NVIDIA-Linux-x86-_TXT_-275.09.07_run.txt ;
find /root -type f -user root >> /archive/NVIDIA-Linux-x86-_TXT_-275.09.07_run.txt ;
find /root -type l -user root >> /archive/NVIDIA-Linux-x86-_TXT_-275.09.07_run.txt ;
#
#
cd /archive ;
tar --files-from=/archive/NVIDIA-Linux-x86-_TXT_-275.09.07_run.txt -cvf NVIDIA-Linux-x86-_TAR_-275.09.07_run.tar ;
#
xz --compress NVIDIA-Linux-x86-_TAR_-275.09.07_run.tar ;
#
ls -s --block-size=MB NVIDIA-Linux-x86-_TAR_-275.09.07_run.tar.xz ;
#
cd /mnt/sda1/NVidia-275/Quirky_Linux--NVidia/ ;
#
curl -C - -O file:///archive/NVIDIA-Linux-x86-_TAR_-275.09.07_run.tar.xz ;
#
cd / ;
#
rm /archive/NVIDIA-Linux-x86-_TAR_-275.09.07_run.tar.xz ;
#
#<<<------------------------------------------------------------------------------
#------------------------------------------------------------------------------<<<
echo "Now, -=NVIDIA-Linux-x86-275.09.07=- nonfree driver can be in use."


......................................................................................................................
<<< Installation.
......................................................................................................................
......................................................................................................................
STEP-2. >>> Use of the drivers.
......................................................................................................................

Quote:

NVIDIA_nonfree_DRV_INST--v2.sh

The script can give a desktop which is provided by means of NVIDIA nonfree driver.
Code:

#!/bin/bash
##
#Strange OUTPUT after XWIN --->>
#WARNING: Could not open '/lib/modules/2.6.31.14/kernel/drivers/usb/core/usbcore.ko': No such file or directory
#FATAL: Could not open '/lib/modules/2.6.31.14/kernel/drivers/hid/usbhid/usbhid.ko': No such file or directory
#!When "NV" free driver is in use, that then, there are no such a notifications.
#In both cases the folders ".../usb/core/" and ".../hid/usbhid/" are empty.
##
#If ACPI is needed, then BOOT OPTION for the KERNEL: "puppy acpi=force acpi_use_timer_override"
if [ -e /usr/sbin/acpid ] ; then
sleep 0.5s ;
else
cd /tmp ;
#
curl -C - -O file:///mnt/sr0/_Files/NVidia_drivers-275.09.07--Linux/Fedora-11_files/acpid-1.0.8-4.fc11.i586.rpm ;
if [ ! `echo -e "62a3f8516f01e733c2275e656991c177  acpid-1.0.8-4.fc11.i586.rpm" | md5sum -c - >/tmp/.md-5.sm ; sleep 0.5s ; grep -o 'OK' /tmp/.md-5.sm` ] ; then xmessage -file /tmp/.md-5.sm ; else yaf-splash -bg purple -fg green -text "`cat /tmp/.md-5.sm`" ; fi ;
rpm -i acpid-1.0.8-4.fc11.i586.rpm ;
fi ;
sleep 0.5s ;
rm /tmp/acpid-1.0.8-4.fc11.i586.rpm ;
rm /tmp/.md-5.sm ;
#
if [ -e /var/run/acpid.pid ] ; then
rm /var/run/acpid.pid ;
fi
addgroup -g 24 acpid ;
adduser -g "ACPI daemon" -h /var/run/acpid -D -G acpid -s /bin/false -u 24 acpid ;
if [ ! -x /var/run/acpid ] ; then
install -m755 -g 24 -o 24 -d /var/run/acpid ;
fi
if [ ! `ps -eocomm | grep -w acpid` ] ; then
acpid -g acpid -m 755 -s /var/run/acpid/acpid.socket -f &
ln -s /var/run/acpid/acpid.socket /var/run/acpid.socket
fi
#
#MAKING THE /etc/X11/xorg.conf --->> NVIDIA --->>
echo '' > /etc/X11/xorg.conf ;
echo 'Section "ServerLayout"' >> /etc/X11/xorg.conf ;
echo '   Identifier     "X.org Configured"' >> /etc/X11/xorg.conf ;
echo '   Screen      0  "Screen0" 0 0' >> /etc/X11/xorg.conf ;
echo '   InputDevice    "Mouse0" "CorePointer"' >> /etc/X11/xorg.conf ;
echo '   InputDevice    "Keyboard0" "CoreKeyboard"' >> /etc/X11/xorg.conf ;
echo 'EndSection' >> /etc/X11/xorg.conf ;
echo '' >> /etc/X11/xorg.conf ;
echo 'Section "Files"' >> /etc/X11/xorg.conf ;
echo '   RgbPath      "/usr/X11R6/lib/X11/rgb"' >> /etc/X11/xorg.conf ;
echo '   ModulePath   "/usr/X11R7/lib/xorg/modules/drivers"' >> /etc/X11/xorg.conf ;
echo '   ModulePath   "/usr/X11R7/lib/xorg/modules/fonts"' >> /etc/X11/xorg.conf ;
echo '   ModulePath   "/usr/X11R7/lib/xorg/modules/input"' >> /etc/X11/xorg.conf ;
echo '   ModulePath   "/usr/X11R7/lib/xorg/modules"' >> /etc/X11/xorg.conf ;
echo '   ModulePath   "/usr/X11R7/lib"' >> /etc/X11/xorg.conf ;
echo '   FontPath     "/usr/X11R7/lib/X11/fonts/misc"' >> /etc/X11/xorg.conf ;
echo '   FontPath     "/usr/X11R7/lib/X11/fonts/TTF"' >> /etc/X11/xorg.conf ;
echo '   FontPath     "/usr/X11R7/lib/X11/fonts/Type1"' >> /etc/X11/xorg.conf ;
echo 'EndSection' >> /etc/X11/xorg.conf ;
echo '' >> /etc/X11/xorg.conf ;
echo 'Section "Module"' >> /etc/X11/xorg.conf ;
echo '#Space;Space;Space;Space;Space;Space;Space;Space;' >> /etc/X11/xorg.conf ;
echo '   Load  "vbe"' >> /etc/X11/xorg.conf ;
echo '   Load  "dbe"' >> /etc/X11/xorg.conf ;
echo '   Load  "fbdevhw"' >> /etc/X11/xorg.conf ;
echo '   Load  "record"' >> /etc/X11/xorg.conf ;
echo '   Load  "freetype"' >> /etc/X11/xorg.conf ;
echo '   Load  "type1"' >> /etc/X11/xorg.conf ;
echo '#Space;Space;Space;Space;Space;Space;Space;Space;' >> /etc/X11/xorg.conf ;
echo '   Load  "xtrap"' >> /etc/X11/xorg.conf ;
echo '#   Load  "v4l"' >> /etc/X11/xorg.conf ;
echo '#Space;Space;Space;Space;Space;Space;Space;Space;' >> /etc/X11/xorg.conf ;
echo '   Load  "extmod"' >> /etc/X11/xorg.conf ;
echo '##   Load  "glx"' >> /etc/X11/xorg.conf ;
echo '##   Load  "dri"' >> /etc/X11/xorg.conf ;
echo 'EndSection' >> /etc/X11/xorg.conf ;
echo '' >> /etc/X11/xorg.conf ;
echo 'Section "ServerFlags"' >> /etc/X11/xorg.conf ;
echo '##   Option      "RandR" "on"' >> /etc/X11/xorg.conf ;
echo '   Option       "NoPM" "True"' >> /etc/X11/xorg.conf ;
echo '#AIGLX needs driver support to run.' >> /etc/X11/xorg.conf ;
echo '#Specifically, it depends on the texture_from_pixmap OpenGL extension,' >> /etc/X11/xorg.conf ;
echo '#which is supported on embedded Intel i810 through G45 graphics' >> /etc/X11/xorg.conf ;
echo '#chipsets & ATI Radeon cards up to X1900 series through free drivers' >> /etc/X11/xorg.conf ;
echo '#in X.org and NVIDIA graphics card through NVIDIA`s proprietary' >> /etc/X11/xorg.conf ;
echo '#9xxx series drivers (although with these drivers, compositing' >> /etc/X11/xorg.conf ;
echo '#managers do not require AIGLX proper — only X.Org 7.1).' >> /etc/X11/xorg.conf ;
echo '   Option      "aiglx" "on"' >> /etc/X11/xorg.conf ;
echo 'EndSection' >> /etc/X11/xorg.conf ;
echo '' >> /etc/X11/xorg.conf ;
echo 'Section "InputDevice"' >> /etc/X11/xorg.conf ;
echo '   Identifier  "Keyboard0"' >> /etc/X11/xorg.conf ;
echo '   Driver      "kbd"' >> /etc/X11/xorg.conf ;
echo '   Option      "XkbRules" "xorg"' >> /etc/X11/xorg.conf ;
echo '   Option      "XkbModel" "pc1??"' >> /etc/X11/xorg.conf ;
echo '   Option      "XkbLayout" "us,ru" #xkeymap0' >> /etc/X11/xorg.conf ;
echo '   Option      "XkbOptions" "grp:shifts_toggle,grp_led:scroll"' >> /etc/X11/xorg.conf ;
echo 'EndSection' >> /etc/X11/xorg.conf ;
echo '' >> /etc/X11/xorg.conf ;
echo 'Section "InputDevice"' >> /etc/X11/xorg.conf ;
echo '   Identifier  "Mouse0"' >> /etc/X11/xorg.conf ;
echo '   Driver      "mouse"' >> /etc/X11/xorg.conf ;
echo '   Option       "Protocol" "IMPS/2" #mouse0protocol' >> /etc/X11/xorg.conf ;
echo '   Option       "Device" "/dev/input/mice"' >> /etc/X11/xorg.conf ;
echo '   Option       "Emulate3Buttons" "yes"' >> /etc/X11/xorg.conf ;
echo '#   Option      "Emulate3Buttons"' >> /etc/X11/xorg.conf ;
echo '#   Option      "Emulate3Timeout" "50"' >> /etc/X11/xorg.conf ;
echo '   Option      "ZAxisMapping" "4 5" #scrollwheel' >> /etc/X11/xorg.conf ;
echo 'EndSection' >> /etc/X11/xorg.conf ;
echo '' >> /etc/X11/xorg.conf ;
echo 'Section "Monitor"' >> /etc/X11/xorg.conf ;
echo '   Identifier   "Monitor0"' >> /etc/X11/xorg.conf ;
echo '   VendorName   "Monitor Vendor"' >> /etc/X11/xorg.conf ;
echo '#monitor-edid-2.4-1.fc11.i586.rpm gives the tool' >> /etc/X11/xorg.conf ;
echo '#which can show the monitor`s name:' >> /etc/X11/xorg.conf ;
echo '   ModelName    "MM???"' >> /etc/X11/xorg.conf ;
echo '   HorizSync    ?0.0-??.0' >> /etc/X11/xorg.conf ;
echo '   VertRefresh  ?0-??0' >> /etc/X11/xorg.conf ;
echo '#>->->(10??x0.??=???; ???x0.??=???)>->->->' >> /etc/X11/xorg.conf ;
echo '##   DisplaySize  ???  ???' >> /etc/X11/xorg.conf ;
echo '##   Gamma        1.0 1.0 1.0' >> /etc/X11/xorg.conf ;
echo '#Program -=xvidtune=- gives the parameters' >> /etc/X11/xorg.conf ;
echo '#of a good screen position:' >> /etc/X11/xorg.conf ;
echo '#>->->unique name of mode is important>->->->' >> /etc/X11/xorg.conf ;
echo '##   Modeline     "10??x???_nv"   9?.?0  1??? 1??? 1??? 1???  7?? 7?? 7?? 8?? +hsync +vsync' >> /etc/X11/xorg.conf ;
echo '#   Option       "PreferredMode" "10??x???"' >> /etc/X11/xorg.conf ;
echo '#   Option       "DPMS" "false"' >> /etc/X11/xorg.conf ;
echo 'EndSection' >> /etc/X11/xorg.conf ;
echo '' >> /etc/X11/xorg.conf ;
echo 'Section "Device"' >> /etc/X11/xorg.conf ;
echo '   Identifier  "Videocard0"' >> /etc/X11/xorg.conf ;
echo '   Driver      "nvidia"' >> /etc/X11/xorg.conf ;
echo '   VendorName  "nVidia Corporation"' >> /etc/X11/xorg.conf ;
echo '   BoardName   "GeForce ???0"' >> /etc/X11/xorg.conf ;
echo '   BusID       "PCI:2:0:0"' >> /etc/X11/xorg.conf ;
echo '#Option which provides ignoring of EDID>->->' >> /etc/X11/xorg.conf ;
echo '#   Option     "NoDDC" "on"' >> /etc/X11/xorg.conf ;
echo '#   Option     "DDCMode" "off"' >> /etc/X11/xorg.conf ;
echo '#   Option     "IgnoreEDID" "on"' >> /etc/X11/xorg.conf ;
echo '##   Option      "NoDDC" "on"' >> /etc/X11/xorg.conf ;
echo '#<-<-<-<' >> /etc/X11/xorg.conf ;
echo 'EndSection' >> /etc/X11/xorg.conf ;
echo '' >> /etc/X11/xorg.conf ;
echo 'Section "Screen"' >> /etc/X11/xorg.conf ;
echo '   Identifier "Screen0"' >> /etc/X11/xorg.conf ;
echo '   Device     "Videocard0"' >> /etc/X11/xorg.conf ;
echo '   Monitor    "Monitor0"' >> /etc/X11/xorg.conf ;
echo '   DefaultDepth     24' >> /etc/X11/xorg.conf ;
echo '#   Option     "BiosLocation" "primary:0xC0000"' >> /etc/X11/xorg.conf ;
echo '#   Option     "BiosLocation" "pci:2:0:0"' >> /etc/X11/xorg.conf ;
echo '#   Option     "BiosLocation" "file:/root/test.bio"' >> /etc/X11/xorg.conf ;
echo '   SubSection "Display"' >> /etc/X11/xorg.conf ;
echo '      Viewport   0 0' >> /etc/X11/xorg.conf ;
echo '      Depth     24' >> /etc/X11/xorg.conf ;
echo '##      Modes    "10??x???_nv"' >> /etc/X11/xorg.conf ;
echo '   EndSubSection' >> /etc/X11/xorg.conf ;
echo 'EndSection' >> /etc/X11/xorg.conf ;
echo '' >> /etc/X11/xorg.conf ;
echo '#Then you are trying to run as a user that doesn`t have' >> /etc/X11/xorg.conf ;
echo '#permission to use the DRI (root is the default allowed user).' >> /etc/X11/xorg.conf ;
echo '#To let all users access the DRI,' >> /etc/X11/xorg.conf ;
echo '#add the following section to your xorg.conf:' >> /etc/X11/xorg.conf ;
echo 'Section "DRI"' >> /etc/X11/xorg.conf ;
echo '   Group        0' >> /etc/X11/xorg.conf ;
echo '   Mode         0666' >> /etc/X11/xorg.conf ;
echo 'EndSection' >> /etc/X11/xorg.conf ;
echo '' >> /etc/X11/xorg.conf ;
echo 'Section "Extensions"' >> /etc/X11/xorg.conf ;
echo 'Option   "Composite"  "off"' >> /etc/X11/xorg.conf ;
echo 'EndSection' >> /etc/X11/xorg.conf ;
echo '' >> /etc/X11/xorg.conf ;
echo '#PuppyHardwareProfile=NVIDIA' >> /etc/X11/xorg.conf ;
echo '' >> /etc/X11/xorg.conf ;
#
#After installation of the driver the program -=nvidia-xconfig=- can be used.
#
#[--- THE NEEDFUL NOT OFTEN --->>
# # # # #cd /tmp ;
# # # # #tar -cvf NV_before_NVIDIA.tar /usr/X11R7/lib/xorg/modules/extensions/libglx.so /usr/X11R7/lib/libGL.so.1 /usr/X11R7/lib/libGL.so /lib/modules/2.6.31.14/modules.dep /lib/modules/2.6.31.14/modules.alias /lib/modules/2.6.31.14/modules.symbols /etc/ld.so.cache ;
# # # # #cd /mnt/sdb1/-/0_Tmp/0_NVidia-275/0_Quirky_Linux-ISO_for_NVidia/ ;
# # # # #curl -C - -O file:///tmp/NV_before_NVIDIA.tar ;
#
# # # # #rm /tmp/NV_before_NVIDIA.tar ;
#<<--- THE NEEDFUL NOT OFTEN ---]
rm /usr/X11R7/lib/xorg/modules/extensions/libglx.so /usr/X11R7/lib/libGL.so.1 /usr/X11R7/lib/libGL.so /lib/modules/2.6.31.14/modules.dep /lib/modules/2.6.31.14/modules.alias /lib/modules/2.6.31.14/modules.symbols /etc/ld.so.cache ;
#
cd / ;
curl -C - -O file:///mnt/sr0/_Files/NVidia_drivers-275.09.07--Linux/NVidia-275.09.07--QuirkyLinux-1.40/NVIDIA-Linux-x86-_TAR_-275.09.07_run.tar.xz ;
echo "3a8e498dd98dc42485e250a5d6638dce  NVIDIA-Linux-x86-_TAR_-275.09.07_run.tar.xz" > /md5sum--NVIDIA-Linux-x86-_TAR_-275.09.07.txt ;
#xmessage "`md5sum -c md5sum--NVIDIA-Linux-x86-_TAR_-275.09.07.txt | cat`" ;
rxvt +hold -bc -geometry 70x4+100-390 -e bash -c 'read -p "`md5sum -c md5sum--NVIDIA-Linux-x86-_TAR_-275.09.07.txt | cat`"' ;
sleep 0.5s ;
tar -xJf NVIDIA-Linux-x86-_TAR_-275.09.07_run.tar.xz ;
sleep 0.5s ;
rm /NVIDIA-Linux-x86-_TAR_-275.09.07_run.tar.xz ;
rm /md5sum--NVIDIA-Linux-x86-_TAR_-275.09.07.txt ;
#
nvidia-xconfig ;
#
rm /usr/share/applications/nvidia-settings.desktop ;
#
sed -i".tmp" '/"NVidia"/d' /root/Choices/ROX-Filer/PuppyPin ;
#
echo '[Desktop Entry]' > /usr/share/applications/NVIDIA-settings.desktop ;
echo 'Encoding=UTF-8' >> /usr/share/applications/NVIDIA-settings.desktop ;
echo 'Name=NVIDIA-settings' >> /usr/share/applications/NVIDIA-settings.desktop ;
echo 'Comment=Management tool for use of the -=nvidia=- driver' >> /usr/share/applications/NVIDIA-settings.desktop ;
echo 'Exec=nvidia-settings' >> /usr/share/applications/NVIDIA-settings.desktop ;
echo 'Terminal=false' >> /usr/share/applications/NVIDIA-settings.desktop ;
echo 'Type=Application' >> /usr/share/applications/NVIDIA-settings.desktop ;
echo 'Categories=System' >> /usr/share/applications/NVIDIA-settings.desktop ;
echo 'GenericName=Video card management tool' >> /usr/share/applications/NVIDIA-settings.desktop ;
echo 'Icon=/usr/share/doc/NVIDIA_GLX-1.0/nvidia-settings.png' >> /usr/share/applications/NVIDIA-settings.desktop ;
#and now...
sed -i".tmp" '/\/pinboard/d' /root/Choices/ROX-Filer/PuppyPin ;
sleep 1s ;
#echo '<icon x="928" y="224" label="NVidia">/usr/share/applications/NVIDIA-settings.desktop</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
#echo '<icon x="928" y="200" label="NVidia">/usr/share/applications/NVIDIA-settings.desktop</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
echo '<icon x="864" y="284" label="NVidia">/usr/share/applications/NVIDIA-settings.desktop</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
echo '</pinboard>' >> /root/Choices/ROX-Filer/PuppyPin ;
sleep 1s ;
rox -p /root/Choices/ROX-Filer/PuppyPin ;
fixmenus ;
sleep 1s ;
#xmessage 'Non-free -=NVidia=- driver has been installed. Xorg will be relaunched.' `jwm -restart` ;
rxvt +hold -bc -geometry 72x4+100-390 -e bash -c 'read -p "Non-free -=NVidia=- driver has been installed. Xorg will be relaunched."' `jwm -restart` ;
sleep 1s ;
#bash /usr/bin/restartwm `xmessage "Proprietary -=NVidia=- driver has been installed. Xorg will be relaunched."`
/usr/bin/restartwm


Edit: 2012, aug 14.


Quote:

Get_NV-STEP-1_free_DRV_BACK--v2.sh

The script can give a desktop which is provided by means of VESA driver.
Code:

#!/bin/bash
#
#After FIRST installation of the "NVIDIA" proprietary driver there is only one
#time when VTerminal can be seen - it takes place after the FIRST use of this script.
#
#MAKING THE /etc/X11/xorg.conf --->> VESA --->>
echo '' > /etc/X11/xorg.conf ;
echo 'Section "ServerLayout"' >> /etc/X11/xorg.conf ;
echo '   Identifier     "X.org Configured"' >> /etc/X11/xorg.conf ;
echo '   Screen      0  "Screen0" 0 0' >> /etc/X11/xorg.conf ;
echo '   InputDevice    "Mouse0" "CorePointer"' >> /etc/X11/xorg.conf ;
echo '   InputDevice    "Keyboard0" "CoreKeyboard"' >> /etc/X11/xorg.conf ;
echo 'EndSection' >> /etc/X11/xorg.conf ;
echo '' >> /etc/X11/xorg.conf ;
echo 'Section "Files"' >> /etc/X11/xorg.conf ;
echo '   RgbPath      "/usr/X11R6/lib/X11/rgb"' >> /etc/X11/xorg.conf ;
echo '' >> /etc/X11/xorg.conf ;
echo '   FontPath     "/usr/X11R7/lib/X11/fonts/misc"' >> /etc/X11/xorg.conf ;
echo '   FontPath     "/usr/X11R7/lib/X11/fonts/TTF"' >> /etc/X11/xorg.conf ;
echo '   FontPath     "/usr/X11R7/lib/X11/fonts/Type1"' >> /etc/X11/xorg.conf ;
echo 'EndSection' >> /etc/X11/xorg.conf ;
echo '' >> /etc/X11/xorg.conf ;
echo 'Section "Module"' >> /etc/X11/xorg.conf ;
echo '#Space;Space;Space;Space;Space;Space;Space;Space;' >> /etc/X11/xorg.conf ;
echo '   Load  "dbe"' >> /etc/X11/xorg.conf ;
echo '   Load  "freetype"' >> /etc/X11/xorg.conf ;
echo '   Load  "type1"' >> /etc/X11/xorg.conf ;
echo '#Space;Space;Space;Space;Space;Space;Space;Space;' >> /etc/X11/xorg.conf ;
echo '   Load  "xtrap"' >> /etc/X11/xorg.conf ;
echo '#Space;Space;Space;Space;Space;Space;Space;Space;' >> /etc/X11/xorg.conf ;
echo '   SubSection  "extmod"' >> /etc/X11/xorg.conf ;
echo '     Option    "omit xfree86-dga"   # don`t initialise the DGA extension' >> /etc/X11/xorg.conf ;
echo '  EndSubSection' >> /etc/X11/xorg.conf ;
echo 'EndSection' >> /etc/X11/xorg.conf ;
echo '' >> /etc/X11/xorg.conf ;
echo 'Section "ServerFlags"' >> /etc/X11/xorg.conf ;
echo '   Option      "RandR" "on"' >> /etc/X11/xorg.conf ;
echo '   Option       "NoPM" "True"' >> /etc/X11/xorg.conf ;
echo 'EndSection' >> /etc/X11/xorg.conf ;
echo '' >> /etc/X11/xorg.conf ;
echo 'Section "InputDevice"' >> /etc/X11/xorg.conf ;
echo '   Identifier  "Keyboard0"' >> /etc/X11/xorg.conf ;
echo '   Driver      "kbd"' >> /etc/X11/xorg.conf ;
echo '   Option      "XkbRules" "xorg"' >> /etc/X11/xorg.conf ;
echo '   Option      "XkbModel" "pc1??"' >> /etc/X11/xorg.conf ;
echo '   Option      "XkbLayout" "us,ru" #xkeymap0' >> /etc/X11/xorg.conf ;
echo '   Option      "XkbOptions" "grp:shifts_toggle,grp_led:scroll"' >> /etc/X11/xorg.conf ;
echo 'EndSection' >> /etc/X11/xorg.conf ;
echo '' >> /etc/X11/xorg.conf ;
echo 'Section "InputDevice"' >> /etc/X11/xorg.conf ;
echo '   Identifier  "Mouse0"' >> /etc/X11/xorg.conf ;
echo '   Driver      "mouse"' >> /etc/X11/xorg.conf ;
echo '   Option       "Protocol" "IMPS/2" #mouse0protocol' >> /etc/X11/xorg.conf ;
echo '   Option       "Device" "/dev/input/mice"' >> /etc/X11/xorg.conf ;
echo '   Option       "Emulate3Buttons" "yes"' >> /etc/X11/xorg.conf ;
echo '#   Option      "Emulate3Buttons"' >> /etc/X11/xorg.conf ;
echo '#   Option      "Emulate3Timeout" "50"' >> /etc/X11/xorg.conf ;
echo '   Option      "ZAxisMapping" "4 5" #scrollwheel' >> /etc/X11/xorg.conf ;
echo 'EndSection' >> /etc/X11/xorg.conf ;
echo '' >> /etc/X11/xorg.conf ;
echo 'Section "Monitor"' >> /etc/X11/xorg.conf ;
echo '   Identifier   "Monitor0"' >> /etc/X11/xorg.conf ;
echo '   VendorName   "Monitor Vendor"' >> /etc/X11/xorg.conf ;
echo '#monitor-edid-2.4-1.fc11.i586.rpm gives the tool' >> /etc/X11/xorg.conf ;
echo '#which can show the monitor`s name:' >> /etc/X11/xorg.conf ;
echo '   ModelName    "MM???"' >> /etc/X11/xorg.conf ;
echo '   HorizSync    ??.0-??.0' >> /etc/X11/xorg.conf ;
echo '   VertRefresh  ?0-??' >> /etc/X11/xorg.conf ;
echo '#>->->(?0??x0.??=???; ???x0.??=???)>->->->' >> /etc/X11/xorg.conf ;
echo '#Program -=xvidtune=- gives the parameters' >> /etc/X11/xorg.conf ;
echo '#of a good screen position:' >> /etc/X11/xorg.conf ;
echo '#>->->unique name of mode is important>->->->' >> /etc/X11/xorg.conf ;
echo '#   Option       "PreferredMode" "?0??x???"' >> /etc/X11/xorg.conf ;
echo '#   Option       "DPMS" "false"' >> /etc/X11/xorg.conf ;
echo 'EndSection' >> /etc/X11/xorg.conf ;
echo '' >> /etc/X11/xorg.conf ;
echo 'Section "Device"' >> /etc/X11/xorg.conf ;
echo '   Identifier  "Videocard0"' >> /etc/X11/xorg.conf ;
echo '   Driver      "vesa"' >> /etc/X11/xorg.conf ;
echo '   VendorName  "nVidia Corporation"' >> /etc/X11/xorg.conf ;
echo '   BoardName   "GeForce ???0"' >> /etc/X11/xorg.conf ;
echo '   BusID       "PCI:2:0:0"' >> /etc/X11/xorg.conf ;
echo '#Option which provides ignoring of EDID>->->' >> /etc/X11/xorg.conf ;
echo '#   Option     "NoDDC" "on"' >> /etc/X11/xorg.conf ;
echo '#   Option     "DDCMode" "off"' >> /etc/X11/xorg.conf ;
echo '#   Option     "IgnoreEDID" "on"' >> /etc/X11/xorg.conf ;
echo '#<-<-<-<' >> /etc/X11/xorg.conf ;
echo 'EndSection' >> /etc/X11/xorg.conf ;
echo '' >> /etc/X11/xorg.conf ;
echo 'Section "Screen"' >> /etc/X11/xorg.conf ;
echo '   Identifier "Screen0"' >> /etc/X11/xorg.conf ;
echo '   Device     "Videocard0"' >> /etc/X11/xorg.conf ;
echo '   Monitor    "Monitor0"' >> /etc/X11/xorg.conf ;
echo '   DefaultDepth     24' >> /etc/X11/xorg.conf ;
echo '#   Option     "BiosLocation" "primary:0xC0000"' >> /etc/X11/xorg.conf ;
echo '#   Option     "BiosLocation" "pci:2:0:0"' >> /etc/X11/xorg.conf ;
echo '#   Option     "BiosLocation" "file:/root/test.bio"' >> /etc/X11/xorg.conf ;
echo '   SubSection "Display"' >> /etc/X11/xorg.conf ;
echo '      Viewport   0 0' >> /etc/X11/xorg.conf ;
echo '      Depth     24' >> /etc/X11/xorg.conf ;
echo '      Modes    "?0??x???"' >> /etc/X11/xorg.conf ;
echo '   EndSubSection' >> /etc/X11/xorg.conf ;
echo 'EndSection' >> /etc/X11/xorg.conf ;
echo '' >> /etc/X11/xorg.conf ;
echo '' >> /etc/X11/xorg.conf ;
echo '#PuppyHardwareProfile=NVIDIA' >> /etc/X11/xorg.conf ;
echo '' >> /etc/X11/xorg.conf ;
#<<---
#
restartwm


Edit: 2012, aug 14.


Quote:

Get_NV-STEP-2_free_DRV_BACK--v2.sh

After the -=Get_NV-STEP-1_free_DRV_BACK.sh=- script, the script can give a desktop which is provided by means of free driver for NVIDIA card.
Code:

#!/bin/bash
#
#CTRL+ALT+BACKSPACE after ACTIVATION of Xorg, and then, -=xwin=-.
#
# # #
#
rmmod nvidia ;
rmmod i2ccore ;
#
cd / ;
curl -C - -O file:///mnt/sr0/_Files/NVidia_drivers-275.09.07--Linux/NV_before_NVIDIA--QuirkyLinux-1.40/NV_before_NVIDIA.tar ;
echo "ab9e08a16ec59ecd2c1bdc80f9980d4a  NV_before_NVIDIA.tar" > /md5sum--NV_before_NVIDIA.txt ;
#xmessage "`md5sum -c md5sum--NV_before_NVIDIA.txt | cat`" ;
rxvt +hold -bc -geometry 70x4+100-390 -e bash -c 'read -p "`md5sum -c md5sum--NV_before_NVIDIA.txt | cat`"' ;
sleep 0.5s ;
rm /md5sum--NV_before_NVIDIA.txt ;
#
#bash /usr/bin/wmexit ;
#
rm /usr/X11R7/lib/libXvMCNVIDIA.a ;
rm /usr/X11R7/lib/xorg/modules/drivers/nvidia_drv.so ;
rm /usr/X11R7/lib/xorg/modules/extensions/libglx.so.275.09.07 ;
rm /usr/X11R7/lib/xorg/modules/libnvidia-wfb.so.275.09.07 ;
rm /usr/X11R7/lib/libXvMCNVIDIA.so.275.09.07 ;
rm /usr/bin/nvidia-smi ;
rm /usr/bin/nvidia-xconfig ;
rm /usr/bin/nvidia-settings ;
rm /usr/bin/nvidia-bug-report.sh ;
rm /usr/bin/nvidia-installer ;
rm /usr/lib/libnvidia-glcore.so.275.09.07 ;
rm /usr/lib/libGL.so.275.09.07 ;
rm /usr/lib/libnvidia-tls.so.275.09.07 ;
rm /usr/lib/tls/libnvidia-tls.so.275.09.07 ;
rm /usr/lib/libnvidia-ml.so.275.09.07 ;
rm /usr/lib/libnvidia-cfg.so.275.09.07 ;
rm /usr/lib/libcuda.so.275.09.07 ;
rm /usr/lib/libOpenCL.so.1.0.0 ;
rm /usr/lib/libnvidia-compiler.so.275.09.07 ;
rm /usr/lib/libvdpau.so.275.09.07 ;
rm /usr/lib/vdpau/libvdpau_trace.so.275.09.07 ;
rm /usr/lib/vdpau/libvdpau_nvidia.so.275.09.07 ;
rm /usr/lib/libnvcuvid.so.275.09.07 ;
rm /usr/lib/libGL.la ;
rm /usr/share/applications/nvidia-settings.desktop ;
rm /usr/share/doc/NVIDIA_GLX-1.0/NVIDIA_Changelog ;
rm /usr/share/doc/NVIDIA_GLX-1.0/nvidia-settings.png ;
rm /usr/share/doc/NVIDIA_GLX-1.0/LICENSE ;
rm /usr/share/doc/NVIDIA_GLX-1.0/README.txt ;
rm /usr/share/doc/NVIDIA_GLX-1.0/html/acknowledgements.html ;
rm /usr/share/doc/NVIDIA_GLX-1.0/html/addtlresources.html ;
rm /usr/share/doc/NVIDIA_GLX-1.0/html/appendices.html ;
rm /usr/share/doc/NVIDIA_GLX-1.0/html/audiosupport.html ;
rm /usr/share/doc/NVIDIA_GLX-1.0/html/commonproblems.html ;
rm /usr/share/doc/NVIDIA_GLX-1.0/html/configlaptop.html ;
rm /usr/share/doc/NVIDIA_GLX-1.0/html/configmultxscreens.html ;
rm /usr/share/doc/NVIDIA_GLX-1.0/html/configtvout.html ;
rm /usr/share/doc/NVIDIA_GLX-1.0/html/configtwinview.html ;
rm /usr/share/doc/NVIDIA_GLX-1.0/html/configuringagp.html ;
rm /usr/share/doc/NVIDIA_GLX-1.0/html/depth30.html ;
rm /usr/share/doc/NVIDIA_GLX-1.0/html/displaydevicenames.html ;
rm /usr/share/doc/NVIDIA_GLX-1.0/html/dma_issues.html ;
rm /usr/share/doc/NVIDIA_GLX-1.0/html/dpi.html ;
rm /usr/share/doc/NVIDIA_GLX-1.0/html/editxconfig.html ;
rm /usr/share/doc/NVIDIA_GLX-1.0/html/faq.html ;
rm /usr/share/doc/NVIDIA_GLX-1.0/html/flippingubb.html ;
rm /usr/share/doc/NVIDIA_GLX-1.0/html/framelock.html ;
rm /usr/share/doc/NVIDIA_GLX-1.0/html/glxsupport.html ;
rm /usr/share/doc/NVIDIA_GLX-1.0/html/i2c.html ;
rm /usr/share/doc/NVIDIA_GLX-1.0/html/index.html ;
rm /usr/share/doc/NVIDIA_GLX-1.0/html/installationandconfiguration.html ;
rm /usr/share/doc/NVIDIA_GLX-1.0/html/installdriver.html ;
rm /usr/share/doc/NVIDIA_GLX-1.0/html/installedcomponents.html ;
rm /usr/share/doc/NVIDIA_GLX-1.0/html/introduction.html ;
rm /usr/share/doc/NVIDIA_GLX-1.0/html/knownissues.html ;
rm /usr/share/doc/NVIDIA_GLX-1.0/html/minimumrequirements.html ;
rm /usr/share/doc/NVIDIA_GLX-1.0/html/newusertips.html ;
rm /usr/share/doc/NVIDIA_GLX-1.0/html/nvidiasettings.html ;
rm /usr/share/doc/NVIDIA_GLX-1.0/html/openglenvvariables.html ;
rm /usr/share/doc/NVIDIA_GLX-1.0/html/powermanagement.html ;
rm /usr/share/doc/NVIDIA_GLX-1.0/html/procinterface.html ;
rm /usr/share/doc/NVIDIA_GLX-1.0/html/programmingmodes.html ;
rm /usr/share/doc/NVIDIA_GLX-1.0/html/sdi.html ;
rm /usr/share/doc/NVIDIA_GLX-1.0/html/selectdriver.html ;
rm /usr/share/doc/NVIDIA_GLX-1.0/html/sli.html ;
rm /usr/share/doc/NVIDIA_GLX-1.0/html/supportedchips.html ;
rm /usr/share/doc/NVIDIA_GLX-1.0/html/vdpausupport.html ;
rm /usr/share/doc/NVIDIA_GLX-1.0/html/xcompositeextension.html ;
rm /usr/share/doc/NVIDIA_GLX-1.0/html/xconfigoptions.html ;
rm /usr/share/doc/NVIDIA_GLX-1.0/html/xineramaglx.html ;
rm /usr/share/doc/NVIDIA_GLX-1.0/html/xrandrextension.html ;
rm /usr/share/doc/NVIDIA_GLX-1.0/html/xvmcsupport.html ;
rm /usr/share/man/man1/nvidia-smi.1.gz ;
rm /usr/share/man/man1/nvidia-xconfig.1.gz ;
rm /usr/share/man/man1/nvidia-settings.1.gz ;
rm /usr/share/man/man1/nvidia-installer.1.gz ;
rm /usr/X11R7/lib/libXvMCNVIDIA_dynamic.so ;
rm /usr/X11R7/lib/xorg/modules/extensions/libglx.so ;
rm /usr/X11R7/lib/xorg/modules/libnvidia-wfb.so.1 ;
rm /usr/X11R7/lib/xorg/modules/libwfb.so ;
rm /usr/X11R7/lib/libXvMCNVIDIA_dynamic.so.1 ;
rm /usr/bin/nvidia-uninstall ;
rm /usr/lib/vdpau/libvdpau_trace.so.1 ;
rm /usr/lib/vdpau/libvdpau_nvidia.so.1 ;
rm /usr/lib/libGL.so.1 ;
rm /usr/lib/libGL.so ;
rm /usr/lib/libnvidia-ml.so.1 ;
rm /usr/lib/libnvidia-ml.so ;
rm /usr/lib/libnvidia-cfg.so.1 ;
rm /usr/lib/libnvidia-cfg.so ;
rm /usr/lib/libcuda.so.1 ;
rm /usr/lib/libcuda.so ;
rm /usr/lib/libOpenCL.so.1.0 ;
rm /usr/lib/libOpenCL.so.1 ;
rm /usr/lib/libOpenCL.so ;
rm /usr/lib/libvdpau.so.1 ;
rm /usr/lib/libvdpau.so ;
rm /usr/lib/libvdpau_trace.so ;
rm /usr/lib/libvdpau_nvidia.so ;
rm /usr/lib/libnvcuvid.so.1 ;
rm /usr/lib/libnvcuvid.so ;
rm /lib/modules/2.6.31.14/kernel/drivers/video/nvidia.ko ;
rm /lib/modules/2.6.31.14/modules.dep.bin ;
rm /lib/modules/2.6.31.14/modules.dep ;
rm /lib/modules/2.6.31.14/modules.ieee1394map ;
rm /lib/modules/2.6.31.14/modules.pcimap ;
rm /lib/modules/2.6.31.14/modules.usbmap ;
rm /lib/modules/2.6.31.14/modules.ccwmap ;
rm /lib/modules/2.6.31.14/modules.isapnpmap ;
rm /lib/modules/2.6.31.14/modules.inputmap ;
rm /lib/modules/2.6.31.14/modules.ofmap ;
rm /lib/modules/2.6.31.14/modules.seriomap ;
rm /lib/modules/2.6.31.14/modules.alias ;
rm /lib/modules/2.6.31.14/modules.alias.bin ;
rm /lib/modules/2.6.31.14/modules.symbols ;
rm /lib/modules/2.6.31.14/modules.symbols.bin ;
rm /etc/X11/xorg.conf.backup ;
rm /etc/ld.so.cache ;
rm /etc/OpenCL/vendors/nvidia.icd ;
#
#
# # #
#
tar -C / -xf /NV_before_NVIDIA.tar ;
#
rm /NV_before_NVIDIA.tar ;
#MAKING THE /etc/X11/xorg.conf --->> NV --->>
echo '' > /etc/X11/xorg.conf ;
echo 'Section "ServerLayout"' >> /etc/X11/xorg.conf ;
echo '   Identifier     "X.org Configured"' >> /etc/X11/xorg.conf ;
echo '   Screen      0  "Screen0" 0 0' >> /etc/X11/xorg.conf ;
echo '   InputDevice    "Mouse0" "CorePointer"' >> /etc/X11/xorg.conf ;
echo '   InputDevice    "Keyboard0" "CoreKeyboard"' >> /etc/X11/xorg.conf ;
echo 'EndSection' >> /etc/X11/xorg.conf ;
echo '' >> /etc/X11/xorg.conf ;
echo 'Section "Files"' >> /etc/X11/xorg.conf ;
echo '   RgbPath      "/usr/X11R6/lib/X11/rgb"' >> /etc/X11/xorg.conf ;
echo '   ModulePath   "/usr/X11R7/lib/xorg/modules/drivers"' >> /etc/X11/xorg.conf ;
echo '   ModulePath   "/usr/X11R7/lib/xorg/modules/fonts"' >> /etc/X11/xorg.conf ;
echo '   ModulePath   "/usr/X11R7/lib/xorg/modules/input"' >> /etc/X11/xorg.conf ;
echo '   ModulePath   "/usr/X11R7/lib/xorg/modules"' >> /etc/X11/xorg.conf ;
echo '   ModulePath   "/usr/X11R7/lib"' >> /etc/X11/xorg.conf ;
echo '   FontPath     "/usr/X11R7/lib/X11/fonts/misc"' >> /etc/X11/xorg.conf ;
echo '   FontPath     "/usr/X11R7/lib/X11/fonts/TTF"' >> /etc/X11/xorg.conf ;
echo '   FontPath     "/usr/X11R7/lib/X11/fonts/Type1"' >> /etc/X11/xorg.conf ;
echo 'EndSection' >> /etc/X11/xorg.conf ;
echo '' >> /etc/X11/xorg.conf ;
echo 'Section "Module"' >> /etc/X11/xorg.conf ;
echo '#Space;Space;Space;Space;Space;Space;Space;Space;' >> /etc/X11/xorg.conf ;
echo '   Load  "vbe"' >> /etc/X11/xorg.conf ;
echo '   Load  "dbe"' >> /etc/X11/xorg.conf ;
echo '   Load  "fbdevhw"' >> /etc/X11/xorg.conf ;
echo '   Load  "record"' >> /etc/X11/xorg.conf ;
echo '   Load  "freetype"' >> /etc/X11/xorg.conf ;
echo '   Load  "type1"' >> /etc/X11/xorg.conf ;
echo '#Space;Space;Space;Space;Space;Space;Space;Space;' >> /etc/X11/xorg.conf ;
echo '   Load  "xtrap"' >> /etc/X11/xorg.conf ;
echo '#   Load  "v4l"' >> /etc/X11/xorg.conf ;
echo '#Space;Space;Space;Space;Space;Space;Space;Space;' >> /etc/X11/xorg.conf ;
echo '   Load  "extmod"' >> /etc/X11/xorg.conf ;
echo '   Load  "glx"' >> /etc/X11/xorg.conf ;
echo '   Load  "dri"' >> /etc/X11/xorg.conf ;
echo 'EndSection' >> /etc/X11/xorg.conf ;
echo '' >> /etc/X11/xorg.conf ;
echo 'Section "ServerFlags"' >> /etc/X11/xorg.conf ;
echo '   Option      "RandR" "on"' >> /etc/X11/xorg.conf ;
echo '   Option       "NoPM" "True"' >> /etc/X11/xorg.conf ;
echo '#AIGLX needs driver support to run.' >> /etc/X11/xorg.conf ;
echo '#Specifically, it depends on the texture_from_pixmap OpenGL extension,' >> /etc/X11/xorg.conf ;
echo '#which is supported on embedded Intel i810 through G45 graphics' >> /etc/X11/xorg.conf ;
echo '#chipsets & ATI Radeon cards up to X1900 series through free drivers' >> /etc/X11/xorg.conf ;
echo '#in X.org and NVIDIA graphics card through NVIDIA`s proprietary' >> /etc/X11/xorg.conf ;
echo '#9xxx series drivers (although with these drivers, compositing' >> /etc/X11/xorg.conf ;
echo '#managers do not require AIGLX proper — only X.Org 7.1).' >> /etc/X11/xorg.conf ;
echo '   Option      "aiglx" "off"' >> /etc/X11/xorg.conf ;
echo 'EndSection' >> /etc/X11/xorg.conf ;
echo '' >> /etc/X11/xorg.conf ;
echo 'Section "InputDevice"' >> /etc/X11/xorg.conf ;
echo '   Identifier  "Keyboard0"' >> /etc/X11/xorg.conf ;
echo '   Driver      "kbd"' >> /etc/X11/xorg.conf ;
echo '   Option      "XkbRules" "xorg"' >> /etc/X11/xorg.conf ;
echo '   Option      "XkbModel" "pc1??"' >> /etc/X11/xorg.conf ;
echo '   Option      "XkbLayout" "us,ru" #xkeymap0' >> /etc/X11/xorg.conf ;
echo '   Option      "XkbOptions" "grp:shifts_toggle,grp_led:scroll"' >> /etc/X11/xorg.conf ;
echo 'EndSection' >> /etc/X11/xorg.conf ;
echo '' >> /etc/X11/xorg.conf ;
echo 'Section "InputDevice"' >> /etc/X11/xorg.conf ;
echo '   Identifier  "Mouse0"' >> /etc/X11/xorg.conf ;
echo '   Driver      "mouse"' >> /etc/X11/xorg.conf ;
echo '   Option       "Protocol" "IMPS/2" #mouse0protocol' >> /etc/X11/xorg.conf ;
echo '   Option       "Device" "/dev/input/mice"' >> /etc/X11/xorg.conf ;
echo '   Option       "Emulate3Buttons" "yes"' >> /etc/X11/xorg.conf ;
echo '#   Option      "Emulate3Buttons"' >> /etc/X11/xorg.conf ;
echo '#   Option      "Emulate3Timeout" "50"' >> /etc/X11/xorg.conf ;
echo '   Option      "ZAxisMapping" "4 5" #scrollwheel' >> /etc/X11/xorg.conf ;
echo 'EndSection' >> /etc/X11/xorg.conf ;
echo '' >> /etc/X11/xorg.conf ;
echo 'Section "Monitor"' >> /etc/X11/xorg.conf ;
echo '   Identifier   "Monitor0"' >> /etc/X11/xorg.conf ;
echo '   VendorName   "Monitor Vendor"' >> /etc/X11/xorg.conf ;
echo '#monitor-edid-2.4-1.fc11.i586.rpm gives the tool' >> /etc/X11/xorg.conf ;
echo '#which can show the monitor`s name:' >> /etc/X11/xorg.conf ;
echo '   ModelName    "MM???"' >> /etc/X11/xorg.conf ;
echo '   HorizSync    ??.0-??.0' >> /etc/X11/xorg.conf ;
echo '   VertRefresh  ?0-??0' >> /etc/X11/xorg.conf ;
echo '#>->->(?0??x0.??=???; ???x0.??=???)>->->->' >> /etc/X11/xorg.conf ;
echo '   DisplaySize  ???  ???' >> /etc/X11/xorg.conf ;
echo '   Gamma        1.0 1.0 1.0' >> /etc/X11/xorg.conf ;
echo '#Program -=xvidtune=- gives the parameters' >> /etc/X11/xorg.conf ;
echo '#of a good screen position:' >> /etc/X11/xorg.conf ;
echo '#>->->unique name of mode is important>->->->' >> /etc/X11/xorg.conf ;
echo '   Modeline     "?0??x???_nv"   ??.?0  ?0?? 1??? 1??? 1???  ??? ??? ??? ??? +hsync +vsync' >> /etc/X11/xorg.conf ;
echo '#   Option       "PreferredMode" "?0??x???"' >> /etc/X11/xorg.conf ;
echo '#   Option       "DPMS" "false"' >> /etc/X11/xorg.conf ;
echo 'EndSection' >> /etc/X11/xorg.conf ;
echo '' >> /etc/X11/xorg.conf ;
echo 'Section "Device"' >> /etc/X11/xorg.conf ;
echo '   Identifier  "Videocard0"' >> /etc/X11/xorg.conf ;
echo '   Driver      "nv"' >> /etc/X11/xorg.conf ;
echo '   VendorName  "nVidia Corporation"' >> /etc/X11/xorg.conf ;
echo '   BoardName   "GeForce ???0"' >> /etc/X11/xorg.conf ;
echo '   BusID       "PCI:2:0:0"' >> /etc/X11/xorg.conf ;
echo '#Option which provides ignoring of EDID>->->' >> /etc/X11/xorg.conf ;
echo '#   Option     "NoDDC" "on"' >> /etc/X11/xorg.conf ;
echo '#   Option     "DDCMode" "off"' >> /etc/X11/xorg.conf ;
echo '#   Option     "IgnoreEDID" "on"' >> /etc/X11/xorg.conf ;
echo '   Option      "NoDDC" "on"' >> /etc/X11/xorg.conf ;
echo '#<-<-<-<' >> /etc/X11/xorg.conf ;
echo 'EndSection' >> /etc/X11/xorg.conf ;
echo '' >> /etc/X11/xorg.conf ;
echo 'Section "Screen"' >> /etc/X11/xorg.conf ;
echo '   Identifier "Screen0"' >> /etc/X11/xorg.conf ;
echo '   Device     "Videocard0"' >> /etc/X11/xorg.conf ;
echo '   Monitor    "Monitor0"' >> /etc/X11/xorg.conf ;
echo '   DefaultDepth     24' >> /etc/X11/xorg.conf ;
echo '#   Option     "BiosLocation" "primary:0xC0000"' >> /etc/X11/xorg.conf ;
echo '#   Option     "BiosLocation" "pci:2:0:0"' >> /etc/X11/xorg.conf ;
echo '#   Option     "BiosLocation" "file:/root/test.bio"' >> /etc/X11/xorg.conf ;
echo '   SubSection "Display"' >> /etc/X11/xorg.conf ;
echo '      Viewport   0 0' >> /etc/X11/xorg.conf ;
echo '      Depth     24' >> /etc/X11/xorg.conf ;
echo '      Modes    "?0??x???_nv"' >> /etc/X11/xorg.conf ;
echo '   EndSubSection' >> /etc/X11/xorg.conf ;
echo 'EndSection' >> /etc/X11/xorg.conf ;
echo '' >> /etc/X11/xorg.conf ;
echo '#Then you are trying to run as a user that doesn`t have' >> /etc/X11/xorg.conf ;
echo '#permission to use the DRI (root is the default allowed user).' >> /etc/X11/xorg.conf ;
echo '#To let all users access the DRI,' >> /etc/X11/xorg.conf ;
echo '#add the following section to your xorg.conf:' >> /etc/X11/xorg.conf ;
echo 'Section "DRI"' >> /etc/X11/xorg.conf ;
echo '   Group        0' >> /etc/X11/xorg.conf ;
echo '   Mode         0666' >> /etc/X11/xorg.conf ;
echo 'EndSection' >> /etc/X11/xorg.conf ;
echo '' >> /etc/X11/xorg.conf ;
echo 'Section "Extensions"' >> /etc/X11/xorg.conf ;
echo 'Option   "Composite"  "off"' >> /etc/X11/xorg.conf ;
echo 'EndSection' >> /etc/X11/xorg.conf ;
echo '' >> /etc/X11/xorg.conf ;
echo '#PuppyHardwareProfile=NVIDIA' >> /etc/X11/xorg.conf ;
echo '' >> /etc/X11/xorg.conf ;
#<<---
#
rm /usr/share/applications/NVIDIA-settings.desktop ;
#
sed -i".tmp" '/"NVidia"/d' /root/Choices/ROX-Filer/PuppyPin ;
sleep 1s ;
rox -p /root/Choices/ROX-Filer/PuppyPin ;
fixmenus ;
#
sleep 1s ;
#xmessage 'Non-free -=NVidia=- driver has been uninstalled. Xorg will be relaunched.' `jwm -restart` ;
rxvt +hold -bc -geometry 74x4+100-390 -e bash -c 'read -p "Non-free -=NVidia=- driver has been uninstalled. Xorg will be relaunched."' `jwm -restart` ;
sleep 1s ;
#
#CTRL+ALT+BACKSPACE after ACTIVATION of Xorg, and then: -=xwin=- or -=xinit=-.
#
#bash -c 'bash -c "`Xdialog --menubox \"X-Windows starters -- XWIN or XINIT:\n\n XWIN = easy relaunch of X-window.\n Path: CTRL+ALT+BACKSPACE, XWIN\n\n XINIT = little bit more access to VTerminal after deinstallation of NVidia drivers.\n Path: XINIT, CTRL+ALT+BACKSPACE, XWIN\" 18 83 20 \"bash -c \"'\''\"/usr/bin/restartwm\"'\''\"\" XWIN \"bash -c \"'\''\"/usr/bin/wmexit && kill -15 \`pidof xwin\`\"'\''\"\" XINIT  2>&1`"'
bash -c 'bash -c "`Xdialog --menubox \"X-Windows starters -- XWIN or XINIT:\n\n XWIN = easy relaunch of X-window.\n Path: CTRL+ALT+BACKSPACE, xwin\n\n XINIT = little bit more access to VTerminal after deinstallation of NVidia drivers.\n Path: xinit, CTRL+ALT+BACKSPACE, xwin\" 18 83 20 \"bash -c \"'\''\"/usr/bin/restartwm\"'\''\"\" XWIN \"bash -c \"'\''\"/usr/bin/wmexit\"'\''\"\" XINIT  2>&1`"'
#
#wmexit && kill -15 `pidof xwin` # <--- After these commands the user can input
#'xinit' or 'xwin' what will give a different results:
#'xinit' = 'xwin' must be activated with hands if there is a need('xwin' provides a simple relaunch of X-system from WM)
#'xwin' = fully black screen after closing of WM.


Edit: 2012, aug 14.


......................................................................................................................
<<< Use of the drivers.
......................................................................................................................

last edit: 2012.08.14

A script's content can be copied into text editor by means of <Quote> mode.

For my NVIDIA adapter which is more than 5 years old i use the -=NVIDIA-Linux-x86-173.14.35-pkg1.run=-

Exclamation
The first scheme of getting back the FREE NVIDIA driver:
1)The user executes script which activates VESA driver.
2)The user executes script which restores NVIDIA NV driver in system directory plus activates NVIDIA NV driver.

The second scheme of getting back the FREE NVIDIA driver:
1)The user executes script which activates VESA driver.
2)The user executes script which restores NVIDIA NV driver in system directory. The user executes XORGWIZARD which activates NVIDIA NV driver.

_________________
  • I don't know why laboratories are named a hospitals.
  • The alive personage is like a tea bag with granules of unknown density inside, at that one the packet was made of organic material and was placed in the evaporated liquid or liquid.

Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count_1  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1620s ][ Queries: 11 (0.0049s) ][ GZIP on ]