-
Junior Member
registered user
I will make a few assumptions:
1- You want a Knoppix that loads always the accelerated nvidia driver instead of "nv", and behaves normally for other types of video cards.
2- You are remastering knoppix following the Knoppix Remastering Howto of knoppix.net
3- You are familiar with a text editor of your choice (in a terminal). I will use vi.
4- You've already booted knoppix, and have one root shell with the chrooted environment.
5- You have avaliable in the chroot linux-kernel-headers and gcc-2.95
First, create a temporary directory somewhere. I used /temporary:
root@tty1[/]# mkdir temporary
root@tty1[/]# cd temporary
Now, download the .run file from nvidia:
root@tty1[temporary]# wget http://download.nvidia.com/XFree86/L...-5336-pkg1.run
Extract it:
root@tty1[temporary]# sh NVIDIA-Linux-x86-1.0-5336-pkg1.run --extract-only
root@tty1[temporary]# cd NVIDIA-Linux-x86-1.0-5336-pkg1
Now there's a little thing we have to tweak. /usr/bin/gcc is a symlink that points to gcc-3.3, but the kernel was compiled with gcc-2.95. I've never had any problems compiling it with 3.3, but just to be on the safe side, let's modify the link (we'll fix it again later):
root@tty1[NVIDIA-Linux-x86-1.0-5336-pkg1]# ln -sf /usr/bin/gcc-2.95 /usr/bin/gcc
We are ready to install. Let's bypass some checks:
root@tty1[NVIDIA-Linux-x86-1.0-5336-pkg1]# ./nvidia-installer --accept-license --no-runlevel-check --no-precompiled-interface
If all went well, the driver is installed. Now let's modify the mkxf86config script:
root@tty1[NVIDIA-Linux-x86-1.0-5336-pkg1]# cd /usr/sbin
root@tty1[sbin]# vi mkxf86config
Look for the sed command that creates /etc/X11/XF86Config-4. You can look for the string "nv", the sed command is a few lines below (there's another 'sed' line above this, don't touch that)
Then, add this before the sed:
if [ "$XMODULE" = "nv" ]; then
XMODULE="nvidia"
fi
sed -e 's|@@PROTOCOL@@|'......
Save the file and exit.
And the moment you've all been waiting for!! Let's tidy up the room first...
root@tty1[NVIDIA-Linux-x86-1.0-5336-pkg1]# cd /
root@tty1[/]# ln -sf /usr/bin/gcc-3.3 /usr/bin/gcc
root@tty1[/]# rm -rf /temporary
Now repack it, and enjoy!
Similar Threads
-
By nlight40 in forum Hdd Install / Debian / Apt
Replies: 1
Last Post: 12-16-2004, 09:21 AM
-
By naventus in forum Hdd Install / Debian / Apt
Replies: 22
Last Post: 07-17-2004, 05:05 AM
-
By naventus in forum Hdd Install / Debian / Apt
Replies: 8
Last Post: 06-28-2004, 08:00 PM
-
By kelmo in forum Hdd Install / Debian / Apt
Replies: 5
Last Post: 05-09-2004, 09:20 AM
-
By slc in forum Hdd Install / Debian / Apt
Replies: 19
Last Post: 08-27-2003, 06:25 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

TP-Link TL-SG105 5-Port Gigabit Ethernet Unmanaged Metal Desktop Network Switch
$19.99

Cisco Catalyst 2960-48TT-L 48-Port Fast Ethernet Managed Rackmount Switch
$46.99

NETGEAR GS308EP Essential Series 8-Port Gigabit PoE+ Unmanaged Switch
$49.99

Cisco WS-C3650-12X48UR-L 48-Port Stackable Layer 3 8x10G SFP+ Port Switch
$129.99

10-Port Gigabit PoE Network Switch with 8 PoE+ Ports with 2 Combo SFP Slots 125W
$39.99

TP-Link TL-SG2210P 10-Port Gigabit Smart Switch w/ 8-Port PoE+ NO AC SKU 25597
$36.98

TP-Link TL-SG105, 5 Port Gigabit Unmanaged Ethernet Switch, Network Hub, Ethern
$15.25

Arista DCS-7010T-48-R 48P 1GbE 4P 10GbE SFP+ RA Switch with rack mounts
$69.00

TP-Link TL-SG1048 48-Port Gigabit Rackmount Switch New Factory Sealed
$199.99

Linksys LGS328MPC 24-Port Managed Gigabit PoE+ Switch with 4 10G SFP+ Uplinks
$224.95