PDA

View Full Version : Get Compiz Running onboot from USB HDD install


drwalter
06-21-2008, 05:08 AM
This tutorial assumes one has installed the USB to HDD, however these steps may just as easily be followed during the install process (I realized afterwards that compiz didn't work so I figured most others experiencing the same problem would have too).

First make sure you boot into the usb bt3 final.

You'll need to move the lzm2dir file over from cd to you hdd install.
open terminal and...

#cp /usr/bin/lzm2dir /mnt/yourbt3partitionhere/usr/bin/

Now to configure the bootloader. I use grub however lilo shouldn't be much different Someone please post lilo equivalent to help consolidate posts

#nano /mnt/partitionwithbootloader/etc/grub.conf

now add(or edit) a bt3 section to look like this
title Backtrack 3 KDE Compiz
rootnoverify (hd0,2)
kernel /boot/vmlinuz vga=791 root=/dev/sda3 ro autoexec=xconf;cubez;kdm
boot

Remembering of course (hd[or sd]0,2) refers to the 3rd not 2nd partition. So change accordingly to the proper BT3 Final partition.

ctrl+x and save

Now reboot and select Backtrack 3 KDE Compiz

««EDocTooR»»
06-21-2008, 05:18 AM
I'll try it,, just because I want to see the cube thingy.

title Backtrack 3 KDE Compiz
rootnoverify (hd0,2)
kernel /boot/vmlinuz vga=791 root=/dev/sda3 ro autoexec=xconf;cubez;kdm
boot

Will this start the NVidia KDE Compiz, if not what changes do you think would be helpful?

ShadowKill
06-21-2008, 10:12 AM
The lilo.conf would look as follows:


lba32
boot = /dev/sda
prompt
timeout = 1200
change-rules
reset
vga = 791

#Linux Bootable Partition Config begins
image = /boot/vmlinuz
root = /dev/sda4
label = Back|Track
read-only

#Windows Bootable Partition Config begins
other = /dev/sda1
lable = Winblowz|Vista
table = /dev/sda
Then


Ctrl+X
Y
'Enter'
lilo -v
exit
reboot
Also the syslinux.cfg settings would be as follows, changing where needed:

KERNEL /boot/vmlinuz APPEND vga=0x317 initrd=/boot/initrd.gz ramdisk_size=6666
root=/dev/ram0 rw chexpand=256 load=nvidia,cubez autoexec=xconf;cubez;startxThis is driving me crazy :mad:

I've tried just about everything I can think of besides trying different driver releases, and cannot get an X session started at all.

I'm getting this:

NVIDIA: could not open the device file /dev/nvidia0 (Input/output error).
(EE) NVIDIA(GPU-1): Failed to initialize the NVIDIA graphics device PCI:2:0:0.
(EE) NVIDIA(GPU-1): Please see the COMMON PROBLEMS section in the README for
(EE) NVIDIA(GPU-1): additional information.

ShadowKill:~# ls -la /dev/nv*
crw-rw-rw- 1 root root 195, 0 2008-06-20 00:42 /dev/nvidia0
crw-rw-rw- 1 root root 195, 255 2008-06-20 00:42 /dev/nvidiactl
Also, I just checked dmesg and got an nvidia taints kernel.....

Lack of sleep + console bashing + frustration = clouded thinking....

:confused: Help?!

drwalter
06-22-2008, 06:49 PM
Did it work when booting from the usb? If so you might be able to pick up some ideas from the bootup.

ShadowKill
06-22-2008, 07:16 PM
Did it work when booting from the usb? If so you might be able to pick up some ideas from the bootup.

No it didn't. The only way I've gotten GUI was by booting from USB via the VESA KDE option.......

Tried recompiling kernel with a different driver build, 9629 -vs- 9639, and got a "no devices found" error instead......

I'm so lost right now....

drwalter
06-22-2008, 10:40 PM
I'm so lost right now....

I believe muts mentioned fixvesa for those problems. That might help get you started. Maybe compare your bt3 setup to bt2 or bt3b.

ShadowKill
06-22-2008, 10:45 PM
I believe muts mentioned fixvesa for those problems. That might help get you started. Maybe compare your bt3 setup to bt2 or bt3b.

I'll look into fixvesa. I've compared my BT3b build to BT3-F and as far as xorg, syslinux, preloaded modules, and respective dependancies go, they match. I had this problem initially with BT3b, but a simple driver update and the steps in my tutorial fixed my problems.

I've tried asking around on the nVidia forums but no one there seems too keen on assisting based on the fact that I'm using SLAX (BT3-F).......

Do you think it would be more or less likely to solve my problems if I simply removed every trace of nVidia drivers from my system, and used the compiz/nVidia LZMs/settings from my BT3b install on my BT3-F install?

If so, what would I have to do to get a complete rm of those drivers? I already know I will have to rebild the kernel with the drivers from my BT3b install, but I'm not too keen on the distribution of config files and such. Would sudo rm /etc/init.d/nv* be all I need?

drwalter
06-23-2008, 05:30 PM
It's worth a shot but it could go either way. Just make sure you find / -name nv* before you rm them so you know exactly what and where to replace.

ShadowKill
06-25-2008, 09:08 AM
I fugured it out. Tutorial incoming

drwalter
06-25-2008, 01:19 PM
I fugured it out. Tutorial incoming

Nice Congrats!

proimage
07-07-2008, 04:17 AM
Hi,

I have tried your proceedures and compiz didn't startup instead the normal KDE came up

You'll need to move the lzm2dir file over from cd to you hdd install.
open terminal and...

This was already available on the BT3 hdd install folder

This done as well...

now add(or edit) a bt3 section to look like this
title Backtrack 3 KDE Compiz
rootnoverify (hd0,2)
kernel /boot/vmlinuz vga=791 root=/dev/sda3 ro autoexec=xconf;cubez;kdm
bootAny help,

Regs

Managed to get Compiz working, but after KDE loads with a cluttered display, I have to type in a shell, cubez and startcompiz.sh so that compiz starts and cleans the desktop.

Is there a way to create a script that does this as apparently the ro functions in Grub do not seem to make any changes.

Regs

captj
09-01-2008, 01:56 PM
The lilo.conf would look as follows:


lba32
boot = /dev/sda
prompt
timeout = 1200
change-rules
reset
vga = 791

#Linux Bootable Partition Config begins
image = /boot/vmlinuz
root = /dev/sda4
label = Back|Track
read-only

#Windows Bootable Partition Config begins
other = /dev/sda1
lable = Winblowz|Vista
table = /dev/sda


Then


Ctrl+X
Y
'Enter'
lilo -v
exit
reboot



Hi,
so this is incorrect?
thanks:)

ShadowKill
09-02-2008, 08:59 AM
Hi,
so this is incorrect?
thanks:)

No, it is not incorrect.... :confused:

EDIT: If you're looking for a nVidia Compiz setup, captj, see my tutorial regarding exactly that.

jackofoed
10-20-2008, 03:00 PM
Hi

I acciedentely reset compiz fision in bt3 final i only tried
to change the theme, by going to:

system -> settings ->appearance & themes.

And i changed some stuff like theme, style, etc. but now that i realize that compiz doesn't work i would like to change it back... How do i do that? Or if someone could tell me their settings for compiz and theme manager... that would help alot

THANKS