IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New 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.
New 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
New 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:
  1. vi /etc/hotplug/blacklist.d/unwanted
  2. $
  3. o
  4. usblp
  5. :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
New 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
New 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]
New 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.
New 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
New 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]
New 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.
New 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
New 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]
New 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!] @ iwethey
No 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]
New Ha that is so rich
Sacrifice system tightness in the interest of laziness. OK fine. Yeah. Right.
-drl
New "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]
New 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!] @ iwethey
No 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]
New 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
New 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!] @ iwethey
No 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]
     How do you prevent a module from loading? - (drewk) - (37)
         man modules.conf - (broomberg)
         Re: How do you prevent a module from loading? - (deSitter) - (1)
             Not any more - (drewk)
         A quick idea of what to look for and what to do. - (folkert) - (33)
             Re: A quick idea of what to look for and what to do. - (deSitter) - (32)
                 What redirection? - (drewk) - (16)
                     Re: What redirection? - (deSitter) - (15)
                         Reading for comprehension - (Yendor) - (2)
                             Re: Reading for comprehension - (deSitter) - (1)
                                 Oh, you're so damn l33t. - (pwhysall)
                         Wow - (drewk) - (10)
                             Wow - (deSitter) - (9)
                                 YUO = TEH FUNNEH - (pwhysall)
                                 Uhhh ... - (drewk) - (7)
                                     Re: Uhhh ... - (deSitter) - (6)
                                         What cack. - (pwhysall)
                                         He the BREAKS... - (folkert) - (4)
                                             Ha that is so rich - (deSitter) - (3)
                                                 "System tightness" means nothing... - (pwhysall)
                                                 I don't think you under stand. - (folkert)
                                                 And why not? - (ben_tilly)
                         Okay for your anal retentive mind... - (folkert)
                 "Hi. I'm Ross." - (pwhysall) - (5)
                     "I use SuSE" - (deSitter) - (4)
                         It's not a horrible kludge. - (pwhysall) - (2)
                             http://portal.suse.com/sdb/en/2004/05/91_coldhotplug.html -NT - (deSitter) - (1)
                                 What NO documentation for the ONE liner? - (folkert)
                         No, you use - (folkert)
                 Hey Big Guy... - (folkert) - (8)
                     Re: Hey Big Guy... - (deSitter) - (7)
                         Or better yet... - (folkert) - (6)
                             fbog -NT - (deSitter) - (5)
                                 What, "fbog" Why? - (folkert) - (4)
                                     Calm down - (deSitter) - (3)
                                         He didn't - (drewk)
                                         No. blacklisting is ONLY for dealing with - (folkert)
                                         You call an extra sleep(5) not a kludge? - (ben_tilly)

They just don't work, in the real world outside Gosling's beard.
77 ms