Slack Current and KDE 3.5 automount
I just installed Slackware v10.2 and then upgraded to Current using slackpkg on an old test system. I wanted to see what changes are coming in the new version, and get a little experience with KDE (I normally use Dropline Gnome). After tracking down a couple of stray packages, everything seems to be running well. I also installed the new 2.6.16.9 kernel under /testing in the Current branch.
One question I have is the current with KDE does not seem to automount flash drives and CDs. I have been used to having automounting working for a while under Dropline Gnome, and I was surprised is isn't working under KDE. I have seen some posts for instructions on downloading hal and udev and configuring them for automounting, but I am surprised that is isn't working by default. Does this indicate something wrong with my install of Slack Current and KDE since I upgraded from 10.2, or is this not enabled in KDE yet? I was wondering if there are other packages I need to install to get this working under KDE? Thanks... Bob |
What you have to understand is that Dropline Gnome installs HAL and DBUS and messes with the standard Slackware udev in order to have that functionality. While all of this is supported by KDE, it isn't installed as a standard part of Slackware. Which is just as well, because it is a nasty hack IMO. Note: I'm not referring to Dropline's method of supporting it, rather the way that HAL & DBUS work themselves. That is to say: Dropline's packaging is as good as anyone else's. It is DBUS & HAL that I don't like.
Anyhow, I've always found it trivially easy to set up some desktop icons under KDE which will allow you to mount your USB keys and CD/DVD drives using the "traditional" method of mounting/unmounting. Another alternative (which I've only recently discovered myself) is to set up autofs, which will automatically mount & unmount removable media. You need to have autofs support built into your kernel (it can be built as a module). There are a few posts here about autofs. It certainly seems a much cleaner alternative to the whole HAL/DBUS thing. At the end of the day, it is your machine, so if you are desperate to have this "functionality" hack, you need to install the following packages from Dropline Gnome: hal, dbus and udev. There may be a couple of other dependancies, but you'll have to refer to the Dropline docs to find out for sure. |
Personally I like to use KwikDisk when using Slackware with KDE. It will add a little icon in your System Tray which you can click to mount and open a (previously fstab configured) removable device.
Note that since this program runs with your user rights, you may need to use "user" or "users" in your fstab to properly mount some devices (I guess HAL/DBUS run as root). EDIT: KwikDisk is under KDE Menu -> System -> More -> KwikDisk (At least in KDE 3.5.2). The executable is called "kwikdisk". |
Thanks for the information. I am not necessarily in need of automounting, I was just wondering why it was not included. I don't mind at all exploring some of the other ways to provide mounting of removable media other than the command line.
I have no interest at all in adding a lot of "outside" packages to my KDE setup on this box, just wanted to understand the different approach. Bob |
Quote:
Dbus is just a messaging bus. I can't see how it is a "hack" in any way. It's actually quite cool when you use it with various programs. It allows programs to communicate over a unified interface. It's very powerful and is used by lots of GNOME applications (and now KDE as well). It will ultimately be impossible for Slackware to refrain from including things like HAL and PAM. Users will demand it. Software will demand it, or simply won't build at all (note the recent openldap inclusions in Slackware, thanks to Samba. Now we can stop building our Dropline openldap package). Eventually, Slackware's sole maintainer will ease everyone's worries by stating something along the lines of: "things are finally stable enough to warrant their inclusion in Slackware" when, in reality, he's just one lone man who's probably way too overwhelmed with many of the new technologies that are going into other Linux distributions. I don't mean to criticize the guy. It's just painfully apparent that many of his criticisms of these components stem solely upon his lack of experience with them. I guess it still makes no sense to build HAL support into any Slackware components until the 2.6 kernel becomes a Slackware standard. But when it does (finally), excluding HAL support in Slackware would be absolutely foolish. HAL is amazingly powerful software. The automounting of removable media is simply one component of it. It (and PAM, by the way), are some of the final components that are needed to properly turn Linux into a serious desktop for modern computing needs. Without them, Slackware simply sits in limbo as an unusable distribution for most home users and an inadequate distribution for serious businesses. If you've seen many of the the mechanisms that are required to use Linux in a networked environment, you'd probably notice that Slackware simply will not work out-of-the-box in many places. Where does it fit in the grand scheme of things? I believe that Slackware users should politely request to Pat that many of these features are included in Slack. It's very obvious that many of them want these things. Some folks are just too afraid to voice their opinions for fear of being flamed by the "Slackware elite". I see frequent requests for help with making PAM work in Slackware, or making KDE automount disks with ease. It's a shame that Slackware just doesn't do these things by default. These are extremely powerful and useful tools that are responsible for bringing distributions like Ubuntu and Suse to the top in the home and workplace alike. How long will Pat be able to say "If you don't like it, then move to Ubuntu"? I respect your opinion about the these features on a Slackware Linux desktop, but I do believe it's a bit unfair to call HAL a "hack" without really justifying why this is the case. A lot of the opinions on such matters often stem from a lack of familiarity with some of the underlying technologies that Slackware seems to be missing, while all of the other distributions seem to embrace them. Please correct me if I am missing something that may very well put it in a category as a "hack". To me, however, it simply seems like a logical replacement for old and obsolete ways of doing things. I learned to use Linux on Slackware. I love Slackware and always will. So much of Slackware is done so well, but so much of it simply isn't improving in the right ways. Maybe it never will. Maybe it was always destined to remain a "hobby OS" for us geeks that still like it that way. I still believe that leaves room for improvements in usability though. I just don't feel that users should have to ask: "How do I make this work when I plug this in?". Linux isn't like that anymore, but Slackware remains the same. Perhaps it's just become too much for one lone hacker to handle on his own. Sorry for crashing this thread. I just felt compelled to voice my opinion on this subject because I find it mindblowing that users still have to ask these sorts of questions when they use Slack. I don't think that users should have to say: "I don't really need automounting, I just think it would be nice to have." Because, you know, I believe that we do need these features in Slackware. What is the logical reason for making things more difficult for users? What will be the excuse if they are still left out by the time the next version of Slackware is released? |
Quote:
Everyone is entitled to their own opinion and I respect yours, but claiming to not like it because it is a "Hack" don't cut it. I would like you to break it down a bit for us all to understand. Guess what I am seeking here is how deep your knowledge of hal/dbus really is to be able to make such a statement. I am guessing you won't be able too because it's just crap heresay you've heard from other die hard slack users. Slackware is still using the 2.4.x kernels for crying out loud. Hal/Dbus is not a hack, the problem is that Slackware is stuck back in the early 90's-2000's and if it's maintainer, "The Slackware God" Patrick Volkerding doesn't learn to accept change, slackware will still be stuck in the past a few years from now. I know Pat has his reasons for what he does and I respect that, what I don't respect is his following tossing out misleading and false information to those who might want to bring their slack desktop upto date with current technology. If you don't like a certain software, state why you don't like it, but don't be ignorant and mislead others. All you trolls are doing is making the slack community look like a bunch of idiots. |
Quote:
http://www.die.net/doc/linux/man/man8/fstab-sync.8.html and then come back and tell me how clean HAL is. I don't care what it is, nothing should be allowed to modify such important system files. Autofs is a much cleaner, simpler and logical approach. The only "downside" that I can see is that I have to manually open a window instead of having one pop up. Getting HAL & DBUS working was the single most difficult thing I've ever had to do on any Linux machine. At the end of all the hoop jumping, I was left with a setup wihch would dangerously alter system files when a user did something as innocuous as inserting a USB stick. No thanks. Autofs rocks. |
Quote:
The beauty of packages like Dropline is that people can have them if they want them on Slackware today, while nothing is forced upon those who don't want it. Quote:
Quote:
Quote:
To configure Autofs, you just copy two files from /usr/doc/autofs/samples to /etc, modify them to suit your system and add one command to /etc/rc.d/rc.local. No other automounter is so simple to set up. Quote:
|
Quote:
Code:
2006-01-21 David Zeuthen <davidz@redhat.com> You basically just proved my point, because fstab-sync is 'NOT' used anymore. Guess you need to do a better google search when trying to prove your knowledge. Better inform your lemming slacky users of this also. I guess if you all were with the times you would know this little bit of info already... Good day :D |
Quote:
I might try it again one day, but for now I'm happy with autofs. Quote:
|
Quote:
2. HAL deals with (mainly hot-pluggable) hardware, not just filesystems, which means autofs does not handle the types of things it deals with, not by a long ways. 3. There's nothing particularly dangerous about adding an entry for a device that the kernel knows wasn't there a moment ago, and is there now in a known, reasonably understood state. 4. fstab isn't some holy writ. It's just a list of filesystems and where the admin would like them mounted, and with what options. Plus, adding and removing lines from text files is a truly trivial programming task. I'd have thought guys who work inside the kernel could handle it. |
I can't speak for kde for I don't use it, but I believe it can
use pmount. Gnome can use either gnome-mount or pmount. There may be others but neither of them touch fstab or any other system files for mounting devices. |
Quote:
Quote:
Quote:
So they deprecated fstab-sync and haven't replaced it with anything? This all sounds too complicated. |
I believe pmount utilises pam for permissions.
|
Quote:
I know it's hard to imagine actually mounting devices without an fstab entry for the device, but, again... It's not needed, which is why fstab-sync doesn't exist anymore. |
All times are GMT -5. The time now is 10:16 AM. |