LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-01-2006, 02:20 PM   #1
Lufbery
Senior Member
 
Registered: Aug 2006
Location: Harrisburg, PA
Distribution: Slackware 64 14.2
Posts: 1,180
Blog Entries: 29

Rep: Reputation: 135Reputation: 135
Question Five things I still can't do with Slackware 11...


HI all,

I installed Ubuntu this past summer, played with it for a while, and decided that I'd like to give Slackware a try. My previous experience with Linux is nil.

Last month I got Slackware 11 installed, with a default install, using the 2.4 kernel. It went very well. I was able to configure X for my video chipset and ALSA is working for sound.

So far, so good. I've even been able to install a few pieces of software that I had before: Open Office and Scummvm (for games).

The problem is that there are a few things that I used to be able to do with Ubuntu that I can't (yet) with slackware.

1) Mount my USB flash drive
2) Mount my digital camera so I can retrieve the photos
3) Mount anything as an unprivilaged user
4) Mount my DVD ROM at all
5) Play WMV files

I've found posts on this board that may help me with 1 (edit fstab), 2 (straighten out groups and permissions for my non-root user), and maybe 4 (more with fstab).

But my first question is this: should I upgrade to the 2.6 kernel? That's what Ubuntu 6.10 had and I could do those things above. From what I've read, upgrading to the 2.6 kernel is a bit of a pain for newbies like me.

To put it another way, will the 2.4 kernel allow me to mount my DVD, flash drive, and digital camera?

Thanks in advance,

-Drew
 
Old 11-01-2006, 02:28 PM   #2
2Gnu
Senior Member
 
Registered: Jan 2002
Location: Southern California
Distribution: Slackware
Posts: 1,880

Rep: Reputation: 51
You should be able to mount any device you want, with whatever permissions you choose, with either 2.4 or 2.6 kernels. For 2.6, you'll be using udev, instead of manually setting permissions in the /dev directory and fstab. If there are other things you need from 2.6, go there first and then work on the device permissions. Otherwise, post the errors you're getting, the permissions set and the contents of your fstab file.

As for wmv video, make sure you have Xine installed, them copy the codecs to the directory Xine expects them to be. You can get the codecs from the MPlayer site.
 
Old 11-01-2006, 02:33 PM   #3
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
If you're running a desktop configuration and not using a 2.6 kernel, you're crazy. There have been so many improvements since 2.4 it's almost like a different system. USB, CD, and device support are much better (though much has been backported, to be fair). udev alone makes upgrading all worthwhile, in my opinion.

I think the only good reasons to use 2.4 now are if you have a single-purpose device like a server that only needs a stable platform, or a small, hand-held type of device that needs a light, stripped down kernel and OS. Everything else should be 2.6.

BTW, even though you mention 5 things, the first 4 of them can all be solved with the mount command and proper fstab options, so they really should be considered only one.

And as for #5, install mplayer and the win32codecs.
 
Old 11-01-2006, 03:21 PM   #4
Lufbery
Senior Member
 
Registered: Aug 2006
Location: Harrisburg, PA
Distribution: Slackware 64 14.2
Posts: 1,180

Original Poster
Blog Entries: 29

Rep: Reputation: 135Reputation: 135
Thanks, guys.

I'm at work right now, but I'll post my fstab later this evening.

Regards,
 
Old 11-01-2006, 10:02 PM   #5
Lufbery
Senior Member
 
Registered: Aug 2006
Location: Harrisburg, PA
Distribution: Slackware 64 14.2
Posts: 1,180

Original Poster
Blog Entries: 29

Rep: Reputation: 135Reputation: 135
Okay, folks,

Here is my fstab:

Code:
/dev/hdb9        swap             swap        defaults         0   0
/dev/hdb6        /                ext3        defaults         1   1
/dev/hdb7        /home            ext3        defaults         1   2
/dev/hda1        /media/fat-c     vfat        defaults         1   0
/dev/hdb1        /media/fat-d     vfat        defaults         1   0
/dev/hdb5        /media/fat-e     vfat        defaults         1   0
/dev/cdrom       /mnt/cdrom       auto        noauto,owner,ro  0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
I notice that DVD is not even listed.

How can I edit this to take care of the problems I mentioned in my first post?

Thanks,

-Drew
 
Old 11-01-2006, 11:19 PM   #6
2Gnu
Senior Member
 
Registered: Jan 2002
Location: Southern California
Distribution: Slackware
Posts: 1,880

Rep: Reputation: 51
Here's my fstab info (key difference is allowing user access vs. owner):

Code:
/dev/cdrom       /mnt/cdrom       iso9660     noauto,user,ro   0   0
/dev/dvd         /mnt/dvd         auto        noauto,user,ro   0   0
Perms on the device in /dev (not recommended, but I'm the only user and it's a laptop):

Code:
lrwxrwxrwx  1 root root          8 Sep 15  2005 dvd -> /dev/hdc
 
Old 11-02-2006, 04:59 AM   #7
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Rep: Reputation: 75
As far as mounting the digital camera is concerned; some cameras can be treated as usb mounted drives but for others such as Canon you will need to install a program like digikam with the gphoto2 libraries.

I have a question based on what I have read here. My fstab contain entries like

/dev/cruzer1 /media/cruzer vfat user,noauto,umask=0 0 0

which are a hangover from before I used udev and I had lines like

/dev/sda3 /media/sda3 vfat user,noauto,umask=0 0 0

and which I use in combination with rules in udev to mount my usb drives.

SUBSYSTEM=="block", SYSFS{model}=="Cruzer Mini*", NAME+="cruzer1"


Do I not need these entries in fstab now?

Last edited by arubin; 11-02-2006 at 05:04 AM.
 
Old 11-02-2006, 08:00 AM   #8
Lufbery
Senior Member
 
Registered: Aug 2006
Location: Harrisburg, PA
Distribution: Slackware 64 14.2
Posts: 1,180

Original Poster
Blog Entries: 29

Rep: Reputation: 135Reputation: 135
Hi folks,

Thanks for the additional information. Here are a few more questions:

1) What does the "noauto" mean?

2) Do I still need to add my unpriviledged self to the CDROM and other groups?

I just reread the "mail" from Pat Volkerding that I got when I installed. He mentions having to run a scan command of some sort if one uses USB drives. I'm going to give that a shot and see what it does to my fstab.

I'd like my camera to be treated as a USB drive. I think that's what happened when I used Ubuntu, but digikam looks good too.

Thanks again,

-Drew
 
Old 11-02-2006, 08:35 AM   #9
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Rep: Reputation: 75
I'll describe to you how I set up my usb drives.

I have two flash memory sticks, mp3player, external usb hard disc and a digital radio with memory card in. The same approach works for all.

So I pugged my cruzer flash disc into the port. Opened a console and typed dmesg.

At the end of the printout it had something like.

USB Mass Storage device found at 2
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
SCSI device sdc: 251904 512-byte hdwr sectors (129 MB)
sdc: Write Protect is off
sdc: Mode Sense: 03 00 00 00
sdc: assuming drive cache: write through
sdc: sdc1

So I know that the drive is seen as sdc1

I made a directory /media/cruzer

added the following to fstab
/dev/cruzer1 /media/cruzer vfat user,noauto,umask=0 0 0

Then at the console ran

udevinfo -p /sys/block/sdc/sdc1 -a

This gives a long output. I am not at my homePc now so cannot show it to you but it looks something like


'/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-1':
BUS="usb"
ID="1-1"
SYSFS{bConfigurationValue}="1"
SYSFS{bDeviceClass}="00"
SYSFS{bDeviceProtocol}="00"
SYSFS{bDeviceSubClass}="00"
SYSFS{bMaxPower}=" 84mA"
SYSFS{bNumConfigurations}="1"
SYSFS{bNumInterfaces}=" 1"
SYSFS{bcdDevice}="0100"
SYSFS{bmAttributes}="80"
SYSFS{detach_state}="0"
SYSFS{devnum}="2"
SYSFS{idProduct}="0117"
SYSFS{idVendor}="0117"
SYSFS{manufacturer}="Power by USB"
SYSFS{maxchild}="0"
SYSFS{model}="Cruzer Mini*"
SYSFS{product}="USB 2.0 Flash Drive "
SYSFS{serial}="A083014282978"
SYSFS{speed}="480"
SYSFS{version}=" 2.00"

I used this information to write a rule


SUBSYSTEM=="block", SYSFS{model}=="Cruzer Mini*", NAME+="cruzer"

which I saved as a file as

/etc/udev/rules.d/10-udev.rules

I did the same for my various devices and ended up with entries in fstab like this

/dev/cruzer /media/cruzer vfat user,noauto,umask=0 0 0
/dev/univadis /media/univadis vfat user,noauto,umask=0 0 0
/dev/external /media/external vfat user,noauto,umask=0 0 0
/dev/evoke /media/evoke vfat user,noauto,umask=0 0 0

and a rule in /etc/udev/rules.d/10-udev.rules

for each and a directory in /media for each.

Now to mount the device all I have to do is plug in and mount using konqueror under media, the command line or my favourite file manager which is worker.

I ought to stress that I am running a 2.6 kernel. I am not sure if this all woks with 2.4 but I have generally found usb drives much more reliably handled in 2.6. Upgrading to 2.6 is very easy and just a matther of installing the packages in installation cd

Alan

Last edited by arubin; 11-02-2006 at 08:41 AM.
 
Old 11-02-2006, 10:21 AM   #10
simcox1
Member
 
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794
Blog Entries: 2

Rep: Reputation: 30
Here's a bit more info. The 'noauto' option in fstab means the device isn't mounted automatically at startup (as opposed to 'auto'). If you change the 'owner' option to 'user', you should be able to mount the device as ordinary user. As far as your dvd drive, you have to add that to fstab yourself, possibly with the same options as your cdrom. /dev/dvd and /mnt/dvd should already exist. You might need to create some symlinks such as linking /dev/dvd to /dev/hdc or wherever it actually is.

Digital camera. The easiest way I have found is to install libgphoto and gphoto2 (which you can get from linuxpackages.net). On the gphoto2 website it explains how to set it up so that an ordinary user can use it. This is a command line utility, but a simple 'gphoto2 -P' will get all the photos off your camera and dump them in the current directory.
 
Old 11-03-2006, 03:48 PM   #11
Lufbery
Senior Member
 
Registered: Aug 2006
Location: Harrisburg, PA
Distribution: Slackware 64 14.2
Posts: 1,180

Original Poster
Blog Entries: 29

Rep: Reputation: 135Reputation: 135
Alan,

Does your solution require that I have the 2.6 kernel and udev running?

Question for all: I've installed the 2.4 kernel. Can I upgrade just the kernel without reinstalling all of the Slackware distribution? I think I can, but my lack of experience with Linux makes it hard for me to fully understand the process.

Thanks in advance,

-Drew
 
Old 11-03-2006, 04:19 PM   #12
2Gnu
Senior Member
 
Registered: Jan 2002
Location: Southern California
Distribution: Slackware
Posts: 1,880

Rep: Reputation: 51
udev is a 2.6.x kernel thing.

If you can't mount stuff under 2.4, it's not likely to magically work with 2.6.

Yes, you can upgrade to 2.6 without reinstalling. There are several threads in this forum dating back to the 11.0 release that discuss the how part in detail.
 
Old 11-03-2006, 09:32 PM   #13
Lufbery
Senior Member
 
Registered: Aug 2006
Location: Harrisburg, PA
Distribution: Slackware 64 14.2
Posts: 1,180

Original Poster
Blog Entries: 29

Rep: Reputation: 135Reputation: 135
No magic bullets, then. :-D

I edited the fstab file and am now able to mount the USB drive as an unprivileged user. I still haven't figured out the DVD ROM drive, but it's getting late, so I'll take what I can get for tonight.

Here is my fstab as it stands now:

Code:
/dev/hdb9        swap             swap        defaults            0   0
/dev/hdb6        /                ext3        defaults            1   1
/dev/hdb7        /home            ext3        defaults            1   2
/dev/hda1        /media/fat-c     vfat        defaults            1   0
/dev/hdb1        /media/fat-d     vfat        defaults            1   0
/dev/hdb5        /media/fat-e     vfat        defaults            1   0
/dev/cdrom       /mnt/cdrom       auto        noauto,user,ro      0   0
/dev/dvd	 /mnt/dvd	  auto	      noauto,user,ro      0   0
/dev/sda1        /media/sda1      vfat        noauto,user,rw      1   0
/dev/fd0         /mnt/floppy      auto        noauto,owner        0   0
devpts           /dev/pts         devpts      gid=5,mode=620      0   0
proc             /proc            proc        defaults            0   0
When I try to mount the DVD, it actually mounts the CD.

So I still need to try the digital camera, and I still need to mount the DVD.

Thanks for the help so far, everyone.

Regards,

-Drew
 
Old 11-03-2006, 10:22 PM   #14
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 115Reputation: 115
Okay, that means the /dev/dvd link is pointing to the wrong device. Since you aren't using udev, it should be just a rm and ln -s.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Suse: confused on many things, why is installing things so hard? blackflare Linux - Newbie 11 10-16-2007 04:35 AM
Going to be running Slackware on my laptop what are the things I need to worry about darkhatter Slackware 2 09-20-2006 04:01 PM
Newbie on slackware, coming from Debian. Donīt know how to install things stormrider_may Slackware 10 03-08-2006 01:49 PM
a few things about slackware WebGraphics Slackware 15 02-26-2006 11:56 AM
things to do before and after installing slackware oldi Slackware 7 04-11-2004 08:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration