Post #177,628
10/4/04 11:36:44 AM
|
What redirection?
One of the main benefits of USB is auto-detection of devices. There is one particular device that I don't want auto-detected under Linux, because I want it under Windows/VMWare instead. He's telling me to enter the name of the module that will detect that device in a blacklist.
What am I missing?
===
Implicitly condoning stupidity since 2001.
|
Post #177,630
10/4/04 11:40:16 AM
|
Re: What redirection?
fooker is advising you to redirect the output of a command to create a "blacklist" file to prevent the module from loading. This is about as balled up an idea as I can think of 1) you aren't really blacklisting anything 2) you should never use trickery to accomplish tasks.
Find out how to remove the module from hotplug without tricks. As I said, in SuSE I'd just fire up the system config editor and remove USB from hotplug until I was sure it wasn't a problem. You shouldn't tear your system apart because on one hardware problem. Either fix it or stop using that hardware.
Ugh.
Double ugh.
-drl
|
Post #177,631
10/4/04 11:50:17 AM
|
Reading for comprehension
fooker is advising you to redirect the output of a command to create a "blacklist" file to prevent the module from loading. This is about as balled up an idea as I can think of 1) you aren't really blacklisting anything 2) you should never use trickery to accomplish tasks. This isn't trickery, Ross. It's the same thing as: - vi /etc/hotplug/blacklist.d/unwanted
- $
- o
- usblp
- :x
Same. Exact. Thing. Except that it's all done on one single commandline. So...what's the big fearysome deal?
-YendorMike
"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." - Benjamin Franklin, 1759 Historical Review of Pennsylvania
|
Post #177,653
10/4/04 1:06:47 PM
|
Re: Reading for comprehension
It's just extremely bad taste. You don't accomplish manual system administration with redirection, particularly when you're root. If this isn't obvious there is no point in explaining it.
Who on earth is too lazy to actually open/edit a file? Jueezus.
-drl
|
Post #177,657
10/4/04 1:10:34 PM
|
Oh, you're so damn l33t.
Here's a clue. Everyone does this, all the time. Get over it.
You'll be telling me vi is some kind of text editor, next.
Peter [link|http://www.debian.org|Shill For Hire] [link|http://www.kuro5hin.org|There is no K5 Cabal] [link|http://guildenstern.dyndns.org|Blog]
|
Post #177,634
10/4/04 11:57:11 AM
|
Wow
As Yendor already pointed out, the redirection was just a convenient way to get the string into a file without opening an editor. 1) you aren't really blacklisting anything Yes, I'm really blacklisting something. This is how Debian does USB. 2) you should never use trickery to accomplish tasks. It's not using trickery. This is how Debian does USB. Find out how to remove the module from hotplug without tricks. The way to do it in Debian is with the blacklist. As I said, in SuSE I'd just fire up the system config editor and remove USB from hotplug until I was sure it wasn't a problem. And in Debian you do it by entering it in the blacklist. If you really want to use a system config editor to make this entry in the blacklist, it seems easy enough to write one. You shouldn't tear your system apart because on one hardware problem. How is it "tearing my system apart" to prevent a specific module from loading on hotplug? Either fix it or stop using that hardware. Good idea. Send me a Linux driver for an Epson Stylus R200, and another one for an HP ScanJet 3570c. Soon as you do that I'll install them and wipe Wondows from the box.
===
Implicitly condoning stupidity since 2001.
|
Post #177,652
10/4/04 1:05:04 PM
|
Wow
There must be something wrong - no sane system would have a blacklist file alone for managing hardware. That's worse than Windows.
Can't you reconfigure your kernel to not build that/those module(s)?
-drl
|
Post #177,658
10/4/04 1:11:12 PM
|
YUO = TEH FUNNEH
Yeah, because compiling your kernel is SO MUCH EASIER than editing a single text file.
Peter [link|http://www.debian.org|Shill For Hire] [link|http://www.kuro5hin.org|There is no K5 Cabal] [link|http://guildenstern.dyndns.org|Blog]
|
Post #177,659
10/4/04 1:11:27 PM
|
Uhhh ...
You called blacklisting a module "hacking my system apart." Now you want me to recompile my kernel to exclude it. The method Greg is talking about is making an entry in a config file that says, "If a usb printer connects, ignore it."
===
Implicitly condoning stupidity since 2001.
|
Post #177,678
10/4/04 2:29:13 PM
|
Re: Uhhh ...
Tight policy says only those modules DIRECTLY RELATED to your functioning hardware constellation are allowed to exist on a machine. So before ANYTHING else, you make a kernel and modules tailored exactly to your own world.
If you haven't done this, you should.
-drl
|
Post #177,685
10/4/04 2:36:15 PM
|
What cack.
What "tight policy" is that? The one in place on Planet Ross?
Or do you direct end users to configure their kernels themselves (not a single distro recommends this)?
In your world, people would have to recompile their kernel just for plugging in a new USB key.
Silly.
Peter [link|http://www.debian.org|Shill For Hire] [link|http://www.kuro5hin.org|There is no K5 Cabal] [link|http://guildenstern.dyndns.org|Blog]
|
Post #177,686
10/4/04 2:37:40 PM
|
He the BREAKS...
The whole reason to run Debian.
Ease of Update and ability to auto-magically upgrade.
Whoops. We got this here new kernel that fixes the Huge open hole, but we can't update it... you aren't running a Stock Distribution Kernel. You are out of luck.
-- [link|mailto:greg@gregfolkert.net|greg], [link|http://www.iwethey.org/ed_curry|REMEMBER ED CURRY!] @ iwetheyNo matter how much Microsoft supporters whine about how Linux and other operating systems have just as many bugs as their operating systems do, the bottom line is that the serious, gut-wrenching problems happen on Windows, not on Linux, not on Mac OS. -- [link|http://www.eweek.com/article2/0,1759,1622086,00.asp|source]Here is an example: [link|http://www.greymagic.com/security/advisories/gm001-ie/|Executing arbitrary commands without Active Scripting or ActiveX when using Windows]
|
Post #177,694
10/4/04 2:53:48 PM
|
Ha that is so rich
Sacrifice system tightness in the interest of laziness. OK fine. Yeah. Right.
-drl
|
Post #177,698
10/4/04 2:58:42 PM
|
"System tightness" means nothing...
...because the system is there to do precisely one thing:
Get The Job Done.
If you sacrifice that on the altar of "system tightness", then you have failed as an admin.
Peter [link|http://www.debian.org|Shill For Hire] [link|http://www.kuro5hin.org|There is no K5 Cabal] [link|http://guildenstern.dyndns.org|Blog]
|
Post #177,704
10/4/04 3:10:56 PM
|
I don't think you under stand.
Right off the BAT, you prove you are inferior at administration.
You cannot use the tools provided, or work with them to make you life easier.
You once asked me why I nearly always take the Road less easily taken. I didn;t care to answer it then. I sorta will now.
Well, you don't seem to understand, when I take the road less taken, it *IS* for a reason.
Those reasons might be anywhere from; just because I have the ability to, or Maybe, just maybe I am taking the long-term easy way out.
I'll let you try to understand why *I* as a very Seasoned Senior Network and Systems Analyst to the routes I do.
I'll tell you one thing, it isn't becuse Microsoft has forced me.
-- [link|mailto:greg@gregfolkert.net|greg], [link|http://www.iwethey.org/ed_curry|REMEMBER ED CURRY!] @ iwetheyNo matter how much Microsoft supporters whine about how Linux and other operating systems have just as many bugs as their operating systems do, the bottom line is that the serious, gut-wrenching problems happen on Windows, not on Linux, not on Mac OS. -- [link|http://www.eweek.com/article2/0,1759,1622086,00.asp|source]Here is an example: [link|http://www.greymagic.com/security/advisories/gm001-ie/|Executing arbitrary commands without Active Scripting or ActiveX when using Windows]
|
Post #177,725
10/4/04 4:20:08 PM
|
And why not?
Your "tightness" is an artificial aesthetic value of yours. Unless you can translate it into a value someone else cares about, it deserves to be sacrificed if it conflicts with any value that people care more about.
By contrast "takes less work" is a value that is very real and has directly measurable consequences. That which takes less work is more likely to happen. Costs less to do. And frees people's time so that they can focus on more important things.
Sure, you might waste some system resources. Do I care? Should I care? No. Not if those system resources cost less than the time saved.
The one thing that I should care about is whether time and energy saved now will cost me more later. If you can demonstrate that then you have a point. But if you can't, then it is clear to me how little value I should place on system "tightness".
Cheers, Ben
About the use of language: it is impossible to sharpen a pencil with a blunt axe. It is equally vain to try to do it with ten blunt axes instead. -- Edsger W. Dijkstra
|
Post #177,677
10/4/04 2:18:14 PM
|
Okay for your anal retentive mind...
As the System owber "root", Open /etc/hotplug/blacklist.d/unwanted with your favorite editor. It is a new file, so you will need to save it. In this editor of your get to a point where you can open a new line and the type in the following characters in the following order all lowercase all one word no space(s) inbetween them.
u sounds like "yew" s sounds like "ess" b sounds like "pee" but also sounds like "bee" l sounds like "elle" but no extra "ah" on the end p sounds like "bee" but also sound like "pee"
Once you do this, you then must exit your editor, but first saving the file. Make sure you save it as /etc/hotplug/blacklist.d/unwanted
This then concludes adding entries to Debian's Blacklist list of modules for Hotplug the package.
Now, we still have discover to deal with. Now for discover it is the file /etc/discover-modprobe.conf.
Please open the file up, it may be new, so don't forget to save it when you are finished. Get into a mode where you can add a line and begin typing.
Once there please enter the following sequence of Characters at the end of the file:
s sounds like "ess" k sounds like "cay" i sounds like "eye" p sounds like "pee" = This one is special so you might have to look for it. " Another special one, it shoudl be right next to the enter key. u sounds like "yew" s sounds like "ess" b sounds like "bee" l sounds like "elle" mine the "ahh" at the end p sounds like "p" " The same key you pressed six(6) characters ago, yeah that is the one.
Once that is done, please exit edit mode and save the file.
The whole reason to do this is to tweak what you want and don;t want to auto-magically load.
You see Hotplug and discover overlap each other a bit now... causing the double entry setup.
Now, if you'll excuse me, I have to go do other things more important.
-- [link|mailto:greg@gregfolkert.net|greg], [link|http://www.iwethey.org/ed_curry|REMEMBER ED CURRY!] @ iwetheyNo matter how much Microsoft supporters whine about how Linux and other operating systems have just as many bugs as their operating systems do, the bottom line is that the serious, gut-wrenching problems happen on Windows, not on Linux, not on Mac OS. -- [link|http://www.eweek.com/article2/0,1759,1622086,00.asp|source]Here is an example: [link|http://www.greymagic.com/security/advisories/gm001-ie/|Executing arbitrary commands without Active Scripting or ActiveX when using Windows]
|