SlackwareThis 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.
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.
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?
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.
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.
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
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.
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
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
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.