raz0rblade
12-28-2002, 09:44 PM
USB Camera guide for gentoo linux.
This will work for ALL usb cameras under gentoo.
1. Make sure that SCSI Support, usbcore support, and usb mass storage are compilied into your kernel.
2. Plug in your camera :P
3. Now run `dmesg` and look for something like this:
hub.c: new USB device 00:1d.2-2, assigned address 4
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 4
The device and address line may be different, so don't panic if they are. ;)
4. This step is if you no other scsi devices installed on you box. If you do skip ahead to Step 5. Type:
# mkdir /mnt/camera
# mount -t vfat /dev/sda1 /mnt/camera
As long as no error follow that, your good to go ! Proceed Step 6.
5. This is only if you have other scsi devices on your box. Type:
# mkdir /mnt/camera
# mount -t vfat /dev/sdX1 /mnt/camera
Replace X with the letter after the last device. If you have 3 devices (for example) it would be sdd. If you had 2 it would be sdc. Get it ? :) As long as no errors follow those commands, your good to go ! Proceed to Step 6.
6. Now that it's mounted, time to check to make sure that the camera is setup correct:
# ls -a /mnt/camera
dcim .. .
#
What shows is completly different for different cameras, but you should get something when you ls it.
7. Now let's add the lines to /etc/fstab. (Note to people with multiple SCSI devices: Replace "a" in sda with the correct letter.)
/dev/sda1 /mnt/camera vfat auto,user,rw,exec 0 0
That will make sure that all users have access to the camera and that it's auto-mounted when the camera is plugged in and auto-unmounted when the camera is unplugged. If you perfer to mount and umount manually use noauto instead.
8. Now just make sure that permissions allow everyone to access.
# chmod 0777 /dev/sda1
# chmod 0777 /mnt/camera
9. Now to unmount and unplug and re-plug in to make sure everything is good.
# exit
exit
(Unplug the camera and replug it in.)
$ ls -a /mnt/camera
dcim .. .
$
You should get the same listing as before in Step 6. If you do, Celebrate your camera is now installed ! :D Now if you want you can add a shortcut to the device if you run gnome/kde for easy access.
This will work for ALL usb cameras under gentoo.
1. Make sure that SCSI Support, usbcore support, and usb mass storage are compilied into your kernel.
2. Plug in your camera :P
3. Now run `dmesg` and look for something like this:
hub.c: new USB device 00:1d.2-2, assigned address 4
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 4
The device and address line may be different, so don't panic if they are. ;)
4. This step is if you no other scsi devices installed on you box. If you do skip ahead to Step 5. Type:
# mkdir /mnt/camera
# mount -t vfat /dev/sda1 /mnt/camera
As long as no error follow that, your good to go ! Proceed Step 6.
5. This is only if you have other scsi devices on your box. Type:
# mkdir /mnt/camera
# mount -t vfat /dev/sdX1 /mnt/camera
Replace X with the letter after the last device. If you have 3 devices (for example) it would be sdd. If you had 2 it would be sdc. Get it ? :) As long as no errors follow those commands, your good to go ! Proceed to Step 6.
6. Now that it's mounted, time to check to make sure that the camera is setup correct:
# ls -a /mnt/camera
dcim .. .
#
What shows is completly different for different cameras, but you should get something when you ls it.
7. Now let's add the lines to /etc/fstab. (Note to people with multiple SCSI devices: Replace "a" in sda with the correct letter.)
/dev/sda1 /mnt/camera vfat auto,user,rw,exec 0 0
That will make sure that all users have access to the camera and that it's auto-mounted when the camera is plugged in and auto-unmounted when the camera is unplugged. If you perfer to mount and umount manually use noauto instead.
8. Now just make sure that permissions allow everyone to access.
# chmod 0777 /dev/sda1
# chmod 0777 /mnt/camera
9. Now to unmount and unplug and re-plug in to make sure everything is good.
# exit
exit
(Unplug the camera and replug it in.)
$ ls -a /mnt/camera
dcim .. .
$
You should get the same listing as before in Step 6. If you do, Celebrate your camera is now installed ! :D Now if you want you can add a shortcut to the device if you run gnome/kde for easy access.