euglug.org

[작성자:] admin

  • [Eug-lug] More advanced procmail voodoo



    Bob MillerMon Dec 12 20:38:26 PST 2005

    Rob Hudson wrote:
    
    > What's the best way to test a procmail recipe?
    
    *A* way is like this.
    
        $ cat > testmsg
        From a at a Thu Jan 1 00:00:00 GMT 1970
        Interesting-Header: interesting value
    
        Body.
        ^D
        $ cp .procmailrc testprocmailrc
        :0
        * Interesting-Header:
        testmbox
        ^D
        $ tail -f testmbox &
        $ until echo -n 'Done? '
        >       read x
        >       [[ "$x" ~= [Yy]* ]]
        > do
        >     man procmailrc
        >     "$EDITOR" testprocmailrc
        >     procmail testprocmailrc < testmsg
        > done
        $ mv testprocmailrc .procmailrc
    
    -- 
    Bob Miller                              K<bob>
                                            kbob at jogger-egg.com
    
  • [Eug-lug] Schwag!



    Mr OMon Dec 12 18:57:15 PST 2005

    Your "root" password is your user password. Simply type "sudo"
    followed by the command and enter your password. Rest assured,
    Ubuntu installs quite nicely on a fair number of machines.
    Quirky hardware can cause issues though, such as the old NForce
    board I had. 
    
    Dat be it,
    Mr O.
    
    --- toman <toman at ellisdunes.org> wrote:
    
    
     At some point a root
    > password got assigned, but not by me, so I have no idea what
    > it is. The 
    > application install GUI was really primitive, maybe they're
    > expecting 
    > users to be apt-get
    > conversant. It couldn't find a driver for my linksys wireless
    > card, 
    > which older versions of Suse have. All in all, for a
    > distribution that's 
    > working that "Linux for
    > everybody" angle it seemed like Linux for almost nobody. I
    > think if I 
    > were to inflict a Debian variant on an unsuspecting newbie, it
    > would be 
    > Knoppix or its
    > progeny, because it does such a good job of autoprobing
    > hardware, and 
    > just works.  Anyway, if my Ubuntu bashing wasn't enough to
    > disuade 
    > folks, I have a few
    > that are free to good homes.
    > 
    >                                                               
    >           
    >
    
    __________________________________________________
    Do You Yahoo!?
    Tired of spam?  Yahoo! Mail has the best spam protection around 
    http://mail.yahoo.com 
    
  • [Eug-lug] Comcast internet and linux?



    Mike CherbaMon Dec 12 18:51:34 PST 2005

    Oh Joy.  So they took away a single generic tool which worked 99% of the
    time in favor of two OS specific ones which break 99% of the time.  That
    makes a lot of sense.  Oh wait, this is comcast we're talking about. 
    Nevermind.  All they've done for the last 2 years is try hard to make
    their system less usable and more constricted.  I can't wait till I can
    get DSL here and get off Comcast.
    
    
    
    On Mon, 2005-12-12 at 18:47, Mr O wrote:
    > They did away with their SAS server (gotta love redundancy) a
    > this year. Gone are the easy days. As I said, even their own
    > techs hate the new system. 
    > 
    > --- Mike Cherba <mike.cherba at caviumnetworks.com> wrote:
    > 
    > > As far as I know, the "setup Wizard" isn't actully required. 
    > > Their
    > > Modem box has a webserver and will happily take it's
    > > configuration
    > > theough that method.  Unless they stopped using the little
    > > Motorola
    > > boxes.  On the whole I'd say they are decent enough for
    > > browsing, but
    > > they want to charge an extra $50 per month to let me get
    > > inbound
    > > requests at all, so I'm switching away from them as soon as I
    > > can get a
    > > reasonable alternative.
    > > 			-Mike
    > 
    > 
    > __________________________________________________
    > Do You Yahoo!?
    > Tired of spam?  Yahoo! Mail has the best spam protection around 
    > http://mail.yahoo.com
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    -- 
    The most exciting phrase to hear in science, the one that heralds the
    most discoveries, is not Eureka! (I found it!) but 'That's funny...’
            - Issac Asimov
    
  • [Eug-lug] Comcast internet and linux?



    Mr OMon Dec 12 18:47:56 PST 2005

    They did away with their SAS server (gotta love redundancy) a
    this year. Gone are the easy days. As I said, even their own
    techs hate the new system. 
    
    --- Mike Cherba <mike.cherba at caviumnetworks.com> wrote:
    
    > As far as I know, the "setup Wizard" isn't actully required. 
    > Their
    > Modem box has a webserver and will happily take it's
    > configuration
    > theough that method.  Unless they stopped using the little
    > Motorola
    > boxes.  On the whole I'd say they are decent enough for
    > browsing, but
    > they want to charge an extra $50 per month to let me get
    > inbound
    > requests at all, so I'm switching away from them as soon as I
    > can get a
    > reasonable alternative.
    > 			-Mike
    
    
    __________________________________________________
    Do You Yahoo!?
    Tired of spam?  Yahoo! Mail has the best spam protection around 
    http://mail.yahoo.com 
    
  • [Eug-lug] Schwag!



    Joseph TomanMon Dec 12 16:00:45 PST 2005

    Allen Brown wrote:
    
    > toman wrote:
    >
    >> Bob Miller wrote:
    >>
    >>> Some schwag has arrived.
    >>>
    >>> I have Ubuntu CDs, compliments of the Ubuntu project.  Release 5.10
    >>> ("Breezy Badger").  40 copies for PC and 15 for minority
    >>> architectures.
    >>>
    >>> Marsee at O'Reilly sent us multiple copies of three titles.
    >>>
    >>>     Linux Desktop Pocket Guide
    >>>     Knoppix Pocket Reference
    >>>     Linux Desktop Hacks
    >>>
    >>> I'll bring it all to this Thursday's clinic.
    >>>
    >>>   
    >>
    >>
    >> I just got a set of those as well, 10 PC, 3 64bit and 2 Mac, I think. 
    >> If anyone in the Cottage Grove area wants one, please let me know. I 
    >> have to say though,
    >> that I loaded Ubuntu on an older laptop of mine and was quite 
    >> disappointed with it. The install was very debian, you know, ncurses 
    >> based. At some point a root
    >> password got assigned, but not by me, so I have no idea what it is. 
    >> The application install GUI was really primitive, maybe they're 
    >> expecting users to be apt-get
    >> conversant. It couldn't find a driver for my linksys wireless card, 
    >> which older versions of Suse have. All in all, for a distribution 
    >> that's working that "Linux for
    >> everybody" angle it seemed like Linux for almost nobody. I think if I 
    >> were to inflict a Debian variant on an unsuspecting newbie, it would 
    >> be Knoppix or its
    >> progeny, because it does such a good job of autoprobing hardware, and 
    >> just works.  Anyway, if my Ubuntu bashing wasn't enough to disuade 
    >> folks, I have a few
    >> that are free to good homes.
    >>
    >>                                                                         
    >>                                                                        
    >>                           J. Toman
    >
    >
    > What architecture did you install onto?  What brand?
    > I hear there is quite a bit of variation but that
    > mainstream hardware is well supported.
    
    It's a 5 year old Vaio.
    
    larry price wrote:
    
    On 12/12/05, toman <toman at ellisdunes.org> wrote:
    
    
    >It couldn't find a driver for my linksys wireless card,
    >which older versions of Suse have.
    >  
    >
    
    >Valid, but remember that Ubuntu is aimed at desktops so...
    
    
    In what sense? Why would they make such a restrictive distribution?
    
    >All in all, for a distribution that's
    >working that "Linux for
    >everybody" angle it seemed like Linux for almost nobody.
    >  
    >
    
    >That hasn't been my experience.
    
    Well, to be fair, I think that good GUI is the hardest thing to do in programming,
    so I'm not that down on Ubuntu. I was just hoping that that's where they had put most
    of their effort, since their mission is "linux for people". The whole install just felt
    unpolished, and if you're trying to win hearts and minds that's the worst impression you
    can make. YMMV.
    
    							J. Toman
    
    
    
  • [Eug-lug] Schwag!



    Mike CherbaMon Dec 12 14:45:39 PST 2005

    Matt,
    	If you can, bring your laptop to the Thursday clinic this week. 
    several of us with some experience with Ubuntu will be on hand to try
    and grok the difficulties and help out.  I had some difficulties with
    wireless on my wife's laptop when I first set it up, but once I
    understood what was needed things went smoothly.  
    
    
    The problem with Wireless is twofold.  First, Many companies change the
    actual chipset inside the cards and leave the model number the same so
    you can't really count on what you are getting.  And Second that many
    wireless card manufacturers don't release linux drivers.  Drivers for
    linux tend to be specific to a chipset and not the manufacturer.
    
    What worked in the end was adding the ndis-wrapper code in order to be
    able to use the windows drivers for the card under linux.  If I might
    ask, which model of card is in your laptop?  Anyway, hope to see you on
    thursday!
    
    
    On Mon, 2005-12-12 at 14:28, Matthew Jarvis wrote:
    > toman wrote:
    > > conversant. It couldn't find a driver for my linksys wireless card, 
    > > which older versions of Suse have. All in all, for a distribution that's 
    > > working that "Linux for
    > > everybody" angle it seemed like Linux for almost nobody. I think if I 
    > > were to inflict a Debian variant on an unsuspecting newbie, it would be 
    > > Knoppix or its
    > > progeny, 
    > 
    > I can echo this experience almost word for word from my work this last 
    > weekend trying to get Linux on my laptop.
    > 
    > The laptop isn't really used for much, just a wireless thing in the 
    > living room for web surfing mostly. I had intended to put Ubuntu on it 
    > then changed my mind for something with a smaller bloat....
    > 
    > But for grins I did the Ubuntu install and besides it taking *forever* 
    > to install, I could never go anywhere after the login - just hangs with 
    > a blank screen (tan background as I recall. not the grey screen issue 
    > with displaymanager not loading)....
    > 
    > I ended up installing Damn Small Linux after checking up on things at 
    > distrwatch, that went pretty smoothly, but I can't get it to see my 
    > wireless card. I was going to post here asking for help but then again 
    > it might be good for me to feel a bit more pain researching the problem...
    > 
    > Tried booting up Knoppix in the hopes of seeing what needed to be 
    > configured for the wireless and hoping the GUI interface would help me, 
    > but the thing wouldn't boot up with anything other than 'failsafe' mode, 
    > thus no hardware detection.... kinda defeated the purpose...  <g>
    > 
    > If Ubuntu had worked on the laptop it would have been perfect (though a 
    > bit too much stuff)... but the thing just wouldn't run....
    > 
    > 
    > Matthew S. Jarvis
    > IT Manager
    > Bike Friday - "Performance that Packs."
    > www.bikefriday.com
    > 541/687-0487 x140
    > mattj at bikefriday.com
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    -- 
    Mike Cherba
    Cavium Networks
    883 Brookside Dr
    Eugene, OR 97405
    phone: (541) 684-3820
    Cell:  (541) 914-2188
    mike.cherba at caviumnetworks.com
    www.caviumnetworks.com
    
  • [Eug-lug] Schwag!



    Allen BrownMon Dec 12 14:44:22 PST 2005

    toman wrote:
    > Bob Miller wrote:
    > 
    >> Some schwag has arrived.
    >>
    >> I have Ubuntu CDs, compliments of the Ubuntu project.  Release 5.10
    >> ("Breezy Badger").  40 copies for PC and 15 for minority
    >> architectures.
    >>
    >> Marsee at O'Reilly sent us multiple copies of three titles.
    >>
    >>     Linux Desktop Pocket Guide
    >>     Knoppix Pocket Reference
    >>     Linux Desktop Hacks
    >>
    >> I'll bring it all to this Thursday's clinic.
    >>
    >>   
    > 
    > I just got a set of those as well, 10 PC, 3 64bit and 2 Mac, I think. If 
    > anyone in the Cottage Grove area wants one, please let me know. I have 
    > to say though,
    > that I loaded Ubuntu on an older laptop of mine and was quite 
    > disappointed with it. The install was very debian, you know, ncurses 
    > based. At some point a root
    > password got assigned, but not by me, so I have no idea what it is. The 
    > application install GUI was really primitive, maybe they're expecting 
    > users to be apt-get
    > conversant. It couldn't find a driver for my linksys wireless card, 
    > which older versions of Suse have. All in all, for a distribution that's 
    > working that "Linux for
    > everybody" angle it seemed like Linux for almost nobody. I think if I 
    > were to inflict a Debian variant on an unsuspecting newbie, it would be 
    > Knoppix or its
    > progeny, because it does such a good job of autoprobing hardware, and 
    > just works.  Anyway, if my Ubuntu bashing wasn't enough to disuade 
    > folks, I have a few
    > that are free to good homes.
    > 
    >                                                                         
    >                                                                        
    >                           J. Toman
    
    What architecture did you install onto?  What brand?
    I hear there is quite a bit of variation but that
    mainstream hardware is well supported.
    -- 
    Allen Brown  abrown at peak.org  http://www.peak.org/~abrown/
       If a law is unjust, a man is not only right to disobey it,
       he is obligated to do so. --- Thomas Jefferson
    
  • [Eug-lug] Schwag!



    Matthew JarvisMon Dec 12 14:28:28 PST 2005

    toman wrote:
    > conversant. It couldn't find a driver for my linksys wireless card, 
    > which older versions of Suse have. All in all, for a distribution that's 
    > working that "Linux for
    > everybody" angle it seemed like Linux for almost nobody. I think if I 
    > were to inflict a Debian variant on an unsuspecting newbie, it would be 
    > Knoppix or its
    > progeny, 
    
    I can echo this experience almost word for word from my work this last 
    weekend trying to get Linux on my laptop.
    
    The laptop isn't really used for much, just a wireless thing in the 
    living room for web surfing mostly. I had intended to put Ubuntu on it 
    then changed my mind for something with a smaller bloat....
    
    But for grins I did the Ubuntu install and besides it taking *forever* 
    to install, I could never go anywhere after the login - just hangs with 
    a blank screen (tan background as I recall. not the grey screen issue 
    with displaymanager not loading)....
    
    I ended up installing Damn Small Linux after checking up on things at 
    distrwatch, that went pretty smoothly, but I can't get it to see my 
    wireless card. I was going to post here asking for help but then again 
    it might be good for me to feel a bit more pain researching the problem...
    
    Tried booting up Knoppix in the hopes of seeing what needed to be 
    configured for the wireless and hoping the GUI interface would help me, 
    but the thing wouldn't boot up with anything other than 'failsafe' mode, 
    thus no hardware detection.... kinda defeated the purpose...  <g>
    
    If Ubuntu had worked on the laptop it would have been perfect (though a 
    bit too much stuff)... but the thing just wouldn't run....
    
    
    Matthew S. Jarvis
    IT Manager
    Bike Friday - "Performance that Packs."
    www.bikefriday.com
    541/687-0487 x140
    mattj at bikefriday.com
    
  • [Eug-lug] More advanced procmail voodoo



    T. Joseph CARTERMon Dec 12 13:25:39 PST 2005

    On Mon, Dec 12, 2005 at 09:48:24AM -0800, Bob Miller wrote:
    > > So the question is, how do I match on the condition of that two-line
    > > breakage and, having done so, how do I fix the broken charset before
    > > writing the message to the destination folder?
    > > 
    > > 	Content-type: text/plain; charset="US-ASCII"
    > > 	Content-Transfer-Encoding: quoted-printable
    > 
    > Use the "f" flag to filter your mail through an external program
    > that handles multiline regexps.
    
    Ahh, so we will forward some mail that don't need fixing along with some
    that do, but we'll trust the external program to be smarter.  At my mail
    volume, this is reasonable.  (I get a few hundred per day, that's all, 60%
    of that is junked automatically by spam rules..)
    
    
    > fix_aol_charset.py looks like this.
    > 
    >     #!/usr/bin/python
    > 
    >     import re, sys
    > 
    >     pattern = r'(content-type:\s*text/plain;\scharset=")us-ascii("\n'
    >     pattern += r'content-transfer-encoding: quoted-printable)'
    >     pattern = re.compile(pattern, re.IGNORECASE | re.MULTILINE)
    >     fix = lambda msg: pattern.sub(r'\1windows-1252\2', msg)
    > 
    >     sys.stdout.write(fix(sys.stdin.read()))
    
    I am not familiar with r'' in python, since most of what I do has to work
    as far back as 1.5 or 2.0..  What's the deal with that?  =)  I suppose it
    would also be possible here to fix the email using some Python MIME
    library to make it more robust, but I imagine I don't really have a need
    to do that.
    
    
    > The three condition lines in .procmailrc are an optimization to invoke
    > the external program only on messages that *probably* have the charset
    > problem.  Feel free to give them more forgiving regexps -- I just
    > copied the text from your mail.
    
    No, the regex used above is fine I think, though I might tighten up the
    AOL check a little.
    
    -- 
    "We are what we repeatedly do.  Excellence, therefore, is not an act,
    but a habit."
    	-- Aristotle
    
  • [Eug-lug] Schwag!



    larry priceMon Dec 12 13:04:53 PST 2005

    On 12/12/05, toman <toman at ellisdunes.org> wrote:
    
    > based. At some point a root
    > password got assigned, but not by me, so I have no idea what it is.
    
    Ubuntu works like OS X in that respect, the user account you create
    during the install has the power to sudo, but there is no root login
    account as such, unless you specifically create one.
    
    
    > application install GUI was really primitive, maybe they're expecting
    > users to be apt-get
    > conversant.
    
    Synaptic, and the Applications>Add Applications  menu item (which is a
    simplifid front end for synaptic) aren't any more difficult or less 
    complex than Yast.
    
    > It couldn't find a driver for my linksys wireless card,
    > which older versions of Suse have.
    
    Valid, but remember that Ubuntu is aimed at desktops so...
    
    > All in all, for a distribution that's
    > working that "Linux for
    > everybody" angle it seemed like Linux for almost nobody.
    
    That hasn't been my experience.
    
    > I think if I
    > were to inflict a Debian variant on an unsuspecting newbie, it would be
    > Knoppix or its
    > progeny, because it does such a good job of autoprobing hardware, and
    > just works.  Anyway, if my Ubuntu bashing wasn't enough to disuade
    > folks, I have a few
    > that are free to good homes.
    >
    
    In general, it's not a good idea to just drop Linux on the
    unsuspecting, you should tell them enough to make them suspicious
    first, then cut them loose with the install disc :-)
    
    
    --
    http://Zoneverte.org -- information explained
    Do you know what your IT infrastructure does?