Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-03-2006, 07:40 PM
|
#1
|
Member
Registered: Sep 2005
Location: Mar del Plata, Arg
Distribution: Always Slackware
Posts: 230
Rep:
|
kodak dx6490 in slack 10.2
hi!!
i got this camera and every time that i want conect it to my pc, i do this, with the camera on, if not, doesnt works
chmod -R 770 /proc/bus/usb
chown -R root:users /proc/bus/usb
as root of course
this can be done in a automatic way??
my kernel is the 2.4.13, and the usb is handle by the hotplug
thanx a lot
|
|
|
07-04-2006, 04:33 PM
|
#2
|
Senior Member
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098
Rep:
|
That should show you when you plug in the deivce where it is located. The you will have to edit you /etc/fstab.
When I used the fdisk -l to show where my flash drive was it prompted it as sda1.
|
|
|
07-04-2006, 05:07 PM
|
#3
|
Member
Registered: May 2004
Location: Wash DC Metro Area
Distribution: Slackware 11
Posts: 108
Rep:
|
Another fast and easy option is to check messages right after you hotplug your camera:
tail /var/log/messages
messages is sometimes long-winded, but it should say something to this effect:
Code:
Jul 4 17:03:15 pluto kernel: usbcore: registered new driver ub
Jul 4 17:03:19 pluto kernel: Vendor: Model: USB Flash Memory Rev: 1.04
Jul 4 17:03:19 pluto kernel: Type: Direct-Access ANSI SCSI revision: 00
Jul 4 17:03:20 pluto kernel: SCSI device sdc: 2004992 512-byte hdwr sectors (1027 MB)
Jul 4 17:03:20 pluto kernel: sdc: Write Protect is off
Jul 4 17:03:20 pluto kernel: SCSI device sdc: 2004992 512-byte hdwr sectors (1027 MB)
Jul 4 17:03:20 pluto kernel: sdc: Write Protect is off
Jul 4 17:03:20 pluto kernel: sdc: sdc1
Jul 4 17:03:20 pluto kernel: sd 1:0:0:0: Attached scsi removable disk sdc
Jul 4 17:03:20 pluto kernel: sd 1:0:0:0: Attached scsi generic sg3 type 0
Either way, you have to sort through data. In my case, I can mount my thumbdrive off of /dev/sdc1.
Remember, you have to have a mount point. Off of /, I made /riviera. In my fstab, I put the line:
Code:
/dev/sdc1 /riviera vfat noauto,user,rw,exec 1 0
I don't have to be root to mount riviera. I just type: mount /riviera. It works great and to keep from hosing up my hardware, I remember to umount /riviera before I unhook my thumbdrive.
--vonSt
|
|
|
07-04-2006, 05:49 PM
|
#4
|
Member
Registered: Sep 2005
Location: Mar del Plata, Arg
Distribution: Always Slackware
Posts: 230
Original Poster
Rep:
|
my camera works fine, and a dont put anything in the fstab
just on the camera, this...
chmod -R 770 /proc/bus/usb
chown -R root:users /proc/bus/usb
and the digikam
but i dont want do that chmod blabla thing
its clear??
thanx a lot guys
|
|
|
07-04-2006, 06:24 PM
|
#5
|
Member
Registered: May 2004
Location: Wash DC Metro Area
Distribution: Slackware 11
Posts: 108
Rep:
|
I gave you a way to download pictures from your camera to your computer. Is that what you are doing or are you using a webcam and you want to activate it so that you can use a videophone?
--vonSt
|
|
|
07-04-2006, 06:29 PM
|
#6
|
Member
Registered: Sep 2005
Location: Mar del Plata, Arg
Distribution: Always Slackware
Posts: 230
Original Poster
Rep:
|
to download pictures to my hard
|
|
|
07-04-2006, 09:44 PM
|
#7
|
Member
Registered: May 2004
Location: Wash DC Metro Area
Distribution: Slackware 11
Posts: 108
Rep:
|
From eSlack.org:
en /etc/rc.d/rc.local coloca eso para que se ejecute en cada inicio de sistema
However...
Camera and computer should not care about root and users. Usually, cameras are treated as hard drives by the computer. Hotplug should link camera and computer. Hotplug should give the camera a device name, such as "/dev/sda1" or "/dev/uba1". Root should mount the camera as if it were a CDROM or floppy drive.
When I had my Fuji digital camera, I could copy pictures from the camera to the computer. For fun, I would copy documents from the computer to the camera, but the camera did not know what to do with them.
--vonSt
en espanol... quizá (altavista.babelfish.com):
Al menos...
La cámara fotográfica y la computadora no deben preocuparse de root y users. Generalmente, las cámaras fotográficas se piensan en como HDDs duras por la computadora. Hotplug debe ligar la cámara fotográfica y la computadora. Hotplug debe dar a la cámara fotográfica un nombre de dispositivo, tal como "/dev/sda1" o "/dev/uba1". Root debe montar la cámara fotográfica como si fuera un CDROM o una FDD.
Cuando poseí mi cámara fotográfica digital de "Fuji", podría copiar cuadros de la cámara fotográfica a la computadora. Para la diversión, copié documentos de la computadora a la cámara fotográfica, pero la cámara fotográfica no sabía qué hacer con él.
|
|
|
07-04-2006, 11:06 PM
|
#8
|
Member
Registered: Sep 2005
Location: Mar del Plata, Arg
Distribution: Always Slackware
Posts: 230
Original Poster
Rep:
|
From eSlack.org:
en /etc/rc.d/rc.local coloca eso para que se ejecute en cada inicio de sistema
i need to do that thing (chown blabla) with the camera on,
|
|
|
07-05-2006, 02:15 PM
|
#9
|
Member
Registered: May 2004
Location: Wash DC Metro Area
Distribution: Slackware 11
Posts: 108
Rep:
|
The method you are using is not normal for Linux. That is why we are having a problem understanding the thing you want to do.
If you still want an answer to your original question, I can offer you this solution:
1. Read and learn about "sudo", "sudoers", and "visudo". These commands help you run programs that only root can run.
4. Use sudo to allow your user account permissions to chmod/chown.
sudo is complex and causes security problems with your computer. It should work to allow the user to run those commands (in one file) instead of root.
If you want to run the two commands automatically as root:
1. Create a text file. Call it "getcamera". Put the chmod/chown commands in this file.
2. chmod 777 getcamera (to make it executable).
3. Every time you plug the camera into Linux, run "getcamera" as root and it will run the two files for you.
Note: This is way more complicated than mounting the camera as a HDD. You DO need to make sure your kernel supports "mass storage drives."
--vonSt
|
|
|
07-05-2006, 05:39 PM
|
#10
|
Member
Registered: Jun 2003
Distribution: Slackware
Posts: 100
Rep:
|
Quote:
Originally Posted by specialized
hi!!
i got this camera and every time that i want conect it to my pc, i do this, with the camera on, if not, doesnt works
chmod -R 770 /proc/bus/usb
chown -R root:users /proc/bus/usb
as root of course
this can be done in a automatic way??
my kernel is the 2.4.13, and the usb is handle by the hotplug
thanx a lot
|
You need to write a hotplug script for automation.
Some info can be found concerning digikam and hotplug here: http://digikam.free.fr/hotplug/howto.html.
Generic info on setting usb permissions via hotplug can be found here: http://www.gphoto.org/doc/manual/permissions-usb.html.
Let us know if that helps or not.
|
|
|
07-05-2006, 09:39 PM
|
#11
|
Member
Registered: Sep 2005
Location: Mar del Plata, Arg
Distribution: Always Slackware
Posts: 230
Original Poster
Rep:
|
thanx a lot quip
the first link gave me the solution
thanx thanx thanx!!!
|
|
|
07-05-2006, 09:57 PM
|
#12
|
Member
Registered: Jun 2003
Distribution: Slackware
Posts: 100
Rep:
|
Quote:
Originally Posted by specialized
thanx a lot quip
the first link gave me the solution
thanx thanx thanx!!!
|
Glad to help!
|
|
|
All times are GMT -5. The time now is 10:25 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|