![]() |
usb mount permissions
I would like to be able for users to mount usb drives. This is on a 10.2 Slackware install.
I added this line in fstab: Code:
/dev/sda1 /mnt/usbdrive vfat noauto,user,rw 0 0Code:
paul@darkstar:~$ cd /mnt/usbdriveCode:
paul@darkstar:~$ mount /dev/sda1 /mnt/usbdrive |
This should work:
Code:
/dev/sdc1 /mnt/usb vfat noauto,users,rw,umask=1000 0 0 |
Thank you, that worked. Now my Camera Download script does the job:
Code:
#!/bin/bash |
Thanks for that script. I'll have to try it with my Sony camera.
Can you tell me what "newdir=`date +%a-%b%d-%Y-%R`" does? I think to scale the images you can use "convert" or something else from the imagemagick app. |
Yup, imagemagick will be able to scale the images for you, awesome app suite that one :)
|
bigwheel,
I gotta learn bash scripting. Got a book or two but never read them. That's a nice script -- real clean and efficient. I'm going to add my videos from my Sony camera to it. Thanks! |
Chinaman probably already figured this out, but
Code:
newdir=`date +%a-%b%d-%Y-%H-%M-%S`Mon-Apr17-2006-17-36-29 Which is the output of the date function. Look at man date and you can change the format as needed. Warning, don't use a time which has a colon in the output. This is what I am trying to do to reduce the size of the images after downloading them: Code:
#!/bin/bashI still need to get the gimp command to work on the command line. Actually I have not tested the cd command yet, need some time off to work on it. Here is where I got the gimp batch script info from: http://www.gimp.org/tutorials/Basic_Batch/ |
Yes, I issued "man date" just after posting that. And I made me a little script to do my videos, also. I can probably put it in the same script, but haven't yet. When I get some time I'll check out "convert" or something in the Imagemagick app and give you a line to replace that one.
If you get there before me, in a Slackware system we have: file:///usr/share/doc/ImageMagick-6.2.6/www/convert.html |
Get ImageMajick and try this:
Code:
#!/bin/bashCode:
export PATH=/bin:/usr/bin:/usr/local/bin:$HOME/bin:.the $(...) on line 2 is equivalent to `...`, but can be quoted safely. See man strftime for how to format date. All characters are safe for file or directory names. You just need to escape special ones with a backslash (\). finally, you can get ImageMajick from imagemajick.org. |
woohoot
I was able to get this script to work: Code:
#!/bin/bashThanks for the help! Useful links: http://www.cit.gu.edu.au/~anthony/graphics/imagick6/ http://www.imagemagick.org/script/co...line-tools.php /usr/doc/ImageMagick-6.2.3 http://linuxcommand.org/learning_the_shell.php |
| All times are GMT -5. The time now is 02:31 AM. |