View Full Version : HOW TO: nVidia-Compiz on USB HDD Install
ShadowKill
06-25-2008, 12:11 PM
Hey all, and welcome to another lovely tutorial on the ever frustrating nVidia-Compiz hybrid solution! This tutorial will focus on BT3 FINAL (USB version) installed on a HDD as it pertains to getting Compiz/Emerald working with the nVidia chipset(s). For informational purposes the hardware this method has been tested on is as follows:
Back|Track 3 Final / Vista Ultimate 32
512mb nVidia GeForce 8800 GT PCI:2:0:0
AMD Athlon 64 x2 5200+
500gb HDD
3gb RAM
From the thread(s) drwalter, ««EDocTooR»», and myself have running regarding compiz issues with and without nVidia driver support, you can all gather that there are some compatability mismatches that have caused quite a bit of headache and more than a few hours lost. What I've come up with is a fairly sure-fire way to have compiz work on bootup with very little work.
First off, I completely rebuilt my .iso with these new files and configs, but it is not really necessary as you can simply grab the files needed from another source (partition, cd/dvd, thumbdrive, etc). I just wanted my config to take with me wherever work calls ;)
The modules relating to compiz and nVidia that were packaged with the USB .iso did not work for me at all. I tried numerous time to reinstall drivers, update/downgrade packages, and just about every configuration of xorg possible, all without success. The only way I could ever achieve gui was to boot via the VESA-KDE options.
So, that in mind, I removed all of the respective modules from the .iso directories and, having succesfully integrated compiz into BT3b with the same hardware, replaced them with the cubez.lzm and nvidia.lzm that came with BT3b. I also put the NVIDIA-Linux-x86-169.12-pkg1.run driver installer into my /Optional directory as this was the installer I used previously. After building the new .iso, I performed a fresh install (http://backtrack.offensive-security.com/index.php/Transcript_of_movie).
After you have completed the installation, or at least after the "cp --preserve...." portion, copy the three files mentioned earlier to /mnt/backtrack/root and either continue with the installation or chroot to your BT3 partition. lzm2dir the two LZMs to / and run
sudo sh NVIDIA-Linux-x86_32-169.12-pkg1.run
This will start the driver installer. Choose yes to all of the questions besides the one to connect and search for a kernel. Choose no here becauase we want to build a new kernel. When you select yes to building a new kernel, an "error" will come up saying there was an issue with the way the previous drivers were installed. Ignoire it, there's nothing wrong. Continue with the installation until it has completed and when it asks if you want the installer to auto-configure your xorg.conf for you choose no.
You should be back to bash now. Next run a
nvidia-xconfig --add-argb-glx-visuals -d 24
Then nano /etc/X11/xorg.conf and find the "Extensions" section at the end, if it is there, and change it to:
Section "Extensions"
Option "Composite" "Enable"
EndSection
If it is not there...add it :)
Save it and exit, then edit your lilo configuration as normal. Reboot, log in, and issue a startx. Viola, you should see the nVidia splash and shortly thereafter be looking at the desktop with 8 desktop selection squares on the bottom right and the compiz icon in the taskbar.
If you have any issues, questions, comments let me know. I'd be more than happy to help you as I know how much of a pain it was getting to this point. Oh yeah, send all gripes/complaints to pureh@te ;)
ShadowKill
06-25-2008, 12:54 PM
As an additional note to this, I've tested this on several new hardware configs now, all with nVidia GPUs, and it has worked near flawlessly on them all. The only issue I really had was in one case /etc/fstab was configured wrong somehow, and all sybolic-links to the partitions/drives (sda, sda1-4, sr0, etc) were pointing at hdc, hdc1-4, dr1, etc. I simply changed those and ran a mkdir for all of them in the /mnt folder.
drwalter
06-25-2008, 01:22 PM
Looks great really happy the headache is over
ShadowKill
06-25-2008, 02:07 PM
Looks great really happy the headache is over
Thanks a lot for your help and dialog regarding this whole endeavor ;)
I'm glad the headache is over too. It was, however, very worth it
««EDocTooR»»
06-25-2008, 04:04 PM
Thanks, for the tutorial.
Can you please add some details to create this pre-configured DVD as I know that I will be installing BT3 Final many times.
Assume, that I can adjust the bash/shell commands to suite my partitions, and that I know how to
create a ISO using windows applications such as Magic or Nero.
I am stuck here, as I can't find the "nvidia.lzm", I am guessing that it is compressed somewhere the search continues.
BOOT INTO WINDOWS
(4) Create a folder on your Desktop and name it Nvidiabt3
(5) Uncompress your BT3 USB Final into the Nvidiabt3 folder
Start > Run > CMD
C:\Documents and Setting\<username>> cd Desktop
C:\Documents and Setting\<username>\Desktop> mkdir Nvidiabt3
C:\Documents and Setting\<username>\Desktop> cd Nvidiabt3
Create a DATA copy of the uncompressed BT3 USB FINAL files;
Load your drive E: with the BT3 USB FINAL DVD
C:\Documents and Setting\<username>\Desktop\Nvidiabt3> xcopy e:\*.* /e /v /s
74 File(s) copied
Remove the BT3 USB FINAL DVD
Load your drive E: with the BT3 USB BETA DVD
C:\Documents and Setting\<username>\Desktop\Nvidiabt3> copy e:\BT3\optional\cubez.lzm BT3\optional\
Overwrite BT3\optional\cubez.lzm? type "y" enter to choose Yes
Download the following:
http://www.offensive-security.com/modules/nvidia.lzm
See, I am lost... and since don't know lzm compression and module techniques yet, I am thanking you
again for helping me get going.
Many thanks,
««EDocTooR»»
ShadowKill
06-25-2008, 04:14 PM
Thanks, for the tutorial.
Can you please add some details to create this pre-configured DVD as I know that I will be installing BT3 Final many times.
Assume, that I can adjust the bash/shell commands to suite my partitions.
Many thanks,
««EDocTooR»»
I'm at work right now, but give me about an hour and I'll have that information up for ya. What do you guys think, should I put up my .iso build so that others can see/use it too?
drwalter
06-25-2008, 09:50 PM
I'm at work right now, but give me about an hour and I'll have that information up for ya. What do you guys think, should I put up my .iso build so that others can see/use it too?
hmmm don't know how the dev team would feel if people started spreading it around. Maybe pm them first?
ShadowKill
06-25-2008, 10:59 PM
hmmm don't know how the dev team would feel if people started spreading it around. Maybe pm them first first?
Yeah, I figured on that. That's why I asked ;)
Originally Posted by ««EDocTooR»» http://forums.remote-exploit.org/blackrazor_fire/buttons/viewpost.gif (http://forums.remote-exploit.org/showthread.php?p=88884#post88884)
Thanks, for the tutorial.
Can you please add some details to create this pre-configured DVD as I know that I will be installing BT3 Final many times.
Assume, that I can adjust the bash/shell commands to suite my partitions.
Many thanks,
««EDocTooR»»
Okay, the files I refered to in my initial post are those contained within both the /BT3/modules and /BT3/optional folders of the ISO. ccsm-0.7.4-noarch-1as.lzm, etc, etc. All of those....put 'em in a backup directory somewhere. You will be replacing the /BT3/modules files, all of them, with the mesa701, milw0rm, and optional LZMs. As for the /BT3/optional files, you will be putting the cubez, nvidia, pxe, and NVIDIA-Linux-x86-169.12-pkg1.run in there. All of these, minus the nVidia installer, come from BT3b.
As for the creation of the .iso, all you should be doing is putting everthing in its place, granting admin rights to mkisofs, and running C:\blah -blah> make_iso C:\Nvidiabt3.iso
ShadowKill
06-26-2008, 11:21 PM
Mods:
Is this "sticky" worthy???
««EDocTooR»»
06-29-2008, 12:23 AM
When I googled
NVIDIA-Linux-x86_32-169.12-pkg1.run
Only this page was displayed, could there be a typo?
ShadowKill
06-29-2008, 01:57 PM
When I googled
NVIDIA-Linux-x86_32-169.12-pkg1.run
Only this page was displayed, could there be a typo?
Take the "_32" out of there. That was a mistake on my part.
««EDocTooR»»
06-29-2008, 09:12 PM
This is my transcript that I used to install
QTParted:
http://sourceforge.net/project/showfiles.php?group_id=115843&package_id=173828
I choose gparted-livecd-0.3.4-11.iso
(1) GParted Live (Default settings) enter
Don't touch keymap enter
[0] enter
Select your monitor screen size 1440x900 enter
[33] enter
-------------------------------------------------------
Create a Partition for BT3; type et3; and apply changes
-------------------------------------------------------
My End results
/dev/sda1 ntfs WIN_XP 53 GB
/dev/sda2 ext3 UBUNTU_8.04 23 GB
/dev/sda3 ext3 BT3_USB_FUL 14.51 GB
/dev/sda4 linux-swap ID 1.92 GB (Shared BT3 & Ubuntu)
================================================== =====
Note: I had to go to Windows (r) and use UltraISO which let me open, and delete, and add any file that I wanted to
the bootable BT3 USB ISO, and with one click create the Modified ISO.
bt ~ # uname -a
Linux bt 2.6.21.5 #4 SMP Thu Apr 10 04:23:56 GMT 2008 i686 Intel(R) Pentium(R) M processor 1.86GHz GenuineIntel GNU/Linux
bt ~ # uname -r
2.6.21.5
bt ~ # ls /dev/sd*
/dev/sda /dev/sda1 /dev/sda2 /dev/sda3 /dev/sda4
bt ~ # ls /dev/hd*
/dev/hdc
bt ~ # ls /mnt
floppy/ hdc/ live/ sda1/ sda2/ sda3/
bt ~ # mount -l
/dev/sda1 on /mnt/sda1 type fuseblk (rw,nosuid,nodev,noatime,allow_other,blksize=4096)
/dev/sda2 on /mnt/sda2 type ext3 (rw,noatime) [UBUNTU_8.04]
/dev/sda3 on /mnt/sda3 type ext3 (rw,noatime) [BT3_USB_FUL]
bt ~ # . Now you have your details, note it helps to Label your BT3 partition BT3_USB_FUL during the partition process.
bt ~ # . If you haven't created and started your swap-partition do the next two commands.
bt ~ # mkswap /dev/sda4
bt ~ # swapon /dev/sda4
bt ~ # mkdir /mnt/backtrack
bt ~ # mount /dev/sda3 /mnt/backtrack/
bt ~ # mkdir /mnt/backtrack/boot/
bt ~ # cp --preserve -R /{bin,dev,changes,boot,home,pentest,root,usr,etc,li b,opt,sbin,var} /mnt/backtrack/
bt ~ # mkdir /mnt/backtrack/{mnt,proc,sys,tmp}
bt ~ # mount --bind /dev/ /mnt/backtrack/dev/
bt ~ # mount -t proc proc /mnt/backtrack/proc/
bt ~ # cp /boot/vmlinuz /mnt/backtrack/boot/
bt ~ # mkdir /mnt/backtrack/mnt/{floppy,hdc,sda1,sda2,sda3}
bt ~ # chroot /mnt/backtrack/ /bin/bash
bt / # cd /root/
bt ~ # wget http://us.download.nvidia.com/XFree86/Linux-x86/169.12/NVIDIA-Linux-x86-169.12-pkg1.run
write this down "sudo sh inux-x86/169.12/NVIDIA-Linux-x86-169.12-pkg1.run
bt ~ # exit
Edit your lilo or grub
bt ~ # reboot
reboot into NO X
bt login: ********
password: ********
bt ~ # cd /root/
bt ~ # sudo sh Linux-x86/169.12/NVIDIA-Linux-x86-169.12-pkg1.run
This will start the driver installer. Choose yes to all of the questions
besides the one to connect and search for a kernel. Choose no here
becauase we want to build a new kernel. When you select yes to
building a new kernel, an "error" will come up saying there was an
issue with the way the previous drivers were installed. Ignoire it,
there's nothing wrong. Continue with the installation until it has
completed and when it asks if you want the installer to
auto-configure your xorg.conf for you choose no.
bt ~ # nvidia-xconfig --add-argb-glx-visuals -d 24
nano /etc/X11/xorg.conf
Section "Extensions"
Option "Composite" "Enable"
EndSection
Here is a copy of my # nano /etc/X11/xorg.conf
When the CUBEZ WAS WORKING, for those brave enough to
continue.
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 1.0 (buildmeister@builder3) Mon Apr 16 20:37:13 PDT 2007
# File generated by XFdrake (rev 57713)
# ************************************************** ********************
# Refer to the xorg.conf man page for details about the format of
# this file.
# ************************************************** ********************
Section "ServerLayout"
Identifier "layout1"
Screen "screen1" 0 0
InputDevice "Keyboard1" "CoreKeyboard"
InputDevice "Mouse1" "CorePointer"
EndSection
Section "Files"
# font server independent of the X server to render fonts.
# minimal fonts to allow X to run without xfs
FontPath "unix/:-1"
FontPath "/usr/share/fonts/misc:unscaled"
EndSection
Section "Module"
Load "dbe" # Double-Buffering Extension
Load "v4l" # Video for Linux
Load "extmod"
Load "type1"
Load "freetype"
Load "glx" # 3D layer
EndSection
Section "ServerFlags"
#DontZap # disable <Crtl><Alt><BS> (server abort)
# allows the server to start up even if the mouse does not work
#DontZoom # disable <Crtl><Alt><KP_+>/<KP_-> (resolution switching)
Option "allowmouseopenfail"
EndSection
Section "InputDevice"
Identifier "Keyboard1"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "de"
Option "XkbVariant" "nodeadkeys"
Option "XkbOptions" "compose:rwin"
EndSection
Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/mouse"
EndSection
Section "Monitor"
# 1024x786 @ 75.00 Hz (GTF) hsync: 61.58 kHz; pclk: 83.74 MHz
Identifier "monitor1"
VendorName "Plug'n Play"
ModelName "MCM 17P1"
HorizSync 30.0 - 96.0
VertRefresh 50.0 - 160.0
ModeLine "1024x786_75.00" 83.7 1024 1080 1192 1360 786 787 790 821 -hsync +vsync
ModeLine "1280x1024_85.00" 159.4 1280 1376 1512 1744 1024 1025 1028 1075 -hsync +vsync
ModeLine "1280x1024_70.00" 128.9 1280 1368 1504 1728 1024 1025 1028 1066 -hsync +vsync
ModeLine "1024x786_85.00" 96.6 1024 1088 1200 1376 786 787 790 826 -hsync +vsync
ModeLine "1280x1024_100.00" 191.0 1280 1376 1520 1760 1024 1025 1028 1085 -hsync +vsync
ModeLine "1280x1024_75.00" 138.5 1280 1368 1504 1728 1024 1025 1028 1069 -hsync +vsync
ModeLine "1024x786_60.00" 65.6 1024 1080 1184 1344 786 787 790 814 -hsync +vsync
ModeLine "768x576" 50.0 768 832 846 1000 576 590 595 630
ModeLine "768x576" 63.1 768 800 960 1024 576 578 590 616
EndSection
Section "Device"
Identifier "device1"
Driver "nvidia"
VendorName "ATI Technologies Inc."
BoardName "ATI Mach64 Utah"
EndSection
Section "Screen"
Identifier "screen1"
Device "device1"
Monitor "monitor1"
DefaultDepth 24
Option "DPMS"
Option "XaaNoOffscreenPixmaps" "1"
SubSection "Display"
Depth 8
Modes "1024x768" "832x624" "800x600" "640x480" "480x360" "320x240"
EndSubSection
SubSection "Display"
Depth 15
Modes "1024x768" "832x624" "800x600" "640x480" "480x360" "320x240"
EndSubSection
SubSection "Display"
Depth 16
Modes "1024x768" "832x624" "800x600" "640x480" "480x360" "320x240"
EndSubSection
SubSection "Display"
Depth 24
Modes "1024x768" "832x624" "800x600" "640x480" "480x360" "320x240"
EndSubSection
EndSection
Section "Extensions"
Option "Composite"
EndSection
ShadowKill
06-29-2008, 10:51 PM
I still can't see my title bars.. ShadowKill:
I was wondering if the statement, "all of the respective modules from the .iso" just meant cubez.lzm and nvidia.lzm?
Or, does it mean: rm /BT3/modules/* and then copy all the files from the cp /media/cdrom0/BT3/modules/*
Could you post a copy of your working configuration of xorg please.
Thanks
That meant all of the files relating to compiz/nvidia. So yeah rm /BT3/modules/* | cp /media/cdrom0/BT3/modules/* /BT3/modules/ should work fine.
cubez, nvidia, and pxe should be the only ones in there I believe.
Give me your xorg and i'll tell you whether its right or not, I'm off the work right now.
««EDocTooR»»
07-02-2008, 06:08 AM
Hi ShadowKill;
I am still searching for the " nvidia.lzm " file I can't find it anywhere.
Please see my post below, and check my install, and xorg.conf
Thank you again,
««EDocTooR»»
ShadowKill
07-02-2008, 12:43 PM
http://rapidshare.com/files/126594984/nvidia.lzm.html
Get it while ya can ;)
««EDocTooR»»
07-03-2008, 04:30 AM
ShadowKill, I did get the Cubez to work with my Nvidia card; however, I had to use Windows to create the ISO. Secondly, I couldn't switch from flex, kde, without crashes. As a result, I have installed BT3 the normal way.
Thanks for you time,
««EDocTooR»»
ShadowKill
07-03-2008, 11:54 AM
That's how I created it as well. What crashes are you talking about? At any rate, congrats on getting it to work, even if you don't use it now :/
SyntaXe
07-06-2008, 12:51 AM
When I am trying to startx, it tells it cant find my graphic card :S
nivid0 or something doesnt exists, and such. If you need more info on the error message, I can manage to get it.
Cheers.
ShadowKill
07-06-2008, 04:57 AM
When I am trying to startx, it tells it cant find my graphic card :S
nivid0 or something doesnt exists, and such. If you need more info on the error message, I can manage to get it.
Cheers.
That would help :)
SyntaXe
07-06-2008, 11:54 AM
It turns out that it successfully boots up with startx when i choose the "compiz" but its like all buggy, some trayicons turns black, and the top of the windows, em, the line with the "X" its kinda gone, its all laggy, and if I try open a terminal, it opens but its just hanging on the desktop, and I cant go anything.
I have no idea whats hapening >_<
Edit; I managed to get a screenshot of how things look hxxp://syntaxe.crackforce.org/img/snapshot1.png
ShadowKill
07-06-2008, 02:33 PM
Did you perhaps run an xconf before or just after your driver install?
Get to console either through the terminal or ending your session and using the real console, and run a
nvidia-xconfig --add-argb-glx-visuals -d 24
Then, check out your xorg.conf and make sure it contains the "Extensions" section etc. After that let me know what you find.
Oh yeah, an output of dmesg after all of this has happened would be good too.
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.