euglug.org

[카테고리:] Uncategorized

  • [Eug-lug] shut down unneeded ports in Gentoo?



    Bob MillerTue Jan 25 12:19:25 PST 2005

    Rob Hudson wrote:
    
    > When I run "netstat -pant", I do not see the opened ports, only 22, 25, 
    > 80, and 993.  Which makes me think "filtered" means something. 
    > According to the nmap manpage, "Filtered means that a firewall, filter, 
    > or other network obstacle is covering the port and preventing nmap from 
    > determining whether the port is open."  I haven't yet set up a firewall 
    > so it's not that.
    
    Are you running iptables?  That would explain it.
    Portsentry is another program that filters ports.
    
    > I don't see any inet or xinet in my /etc directory.  Does Gentoo put 
    > those somewhere else or not use it?
    
    xinetd is not part of the base Gentoo install.  If you didn't
    emerge it yourself, you don't have it.
    
    -- 
    Bob Miller                              K<bob>
    kbobsoft software consulting
    http://kbobsoft.com                     kbob at jogger-egg.com
    
  • [Eug-lug] shut down unneeded ports in Gentoo?



    Rob HudsonTue Jan 25 11:28:38 PST 2005

    Bob Miller wrote:
    > Rob Hudson wrote:
    > 
    > 
    >>I ran nmap on a server of mine and found a few open that I'd rather not 
    >>be open (the ones with "filtered" in the list)...  How can I shut those 
    >>down in Gentoo?
    >>
    >>22/tcp   open     ssh
    >>25/tcp   open     smtp
    >>80/tcp   open     http
    >>135/tcp  filtered msrpc
    >>139/tcp  filtered netbios-ssn
    >>445/tcp  filtered microsoft-ds
    >>993/tcp  open     imaps
    >>4444/tcp filtered krb524
    > 
    > 
    > On the box in question, run "netstat -pant" to find out what program
    > has each one opened.  The name of the program is at the far right.
    > Then use rc-update to disable each service.  And then stop the service
    > by typing "/etc/init.d/<servicename> stop".
    
    When I run "netstat -pant", I do not see the opened ports, only 22, 25, 
    80, and 993.  Which makes me think "filtered" means something. 
    According to the nmap manpage, "Filtered means that a firewall, filter, 
    or other network obstacle is covering the port and preventing nmap from 
    determining whether the port is open."  I haven't yet set up a firewall 
    so it's not that.
    
    When I ran nmap, I ran it thusly, "nmap -sS domain.com".  I could try it 
    again and ask for a full TCP connect and see what it reports.
    
    I don't see any inet or xinet in my /etc directory.  Does Gentoo put 
    those somewhere else or not use it?
    
    Thanks,
    Rob
    
  • [Eug-lug] shut down unneeded ports in Gentoo?



    Bob MillerTue Jan 25 11:00:50 PST 2005

    Rob Hudson wrote:
    
    > I ran nmap on a server of mine and found a few open that I'd rather not 
    > be open (the ones with "filtered" in the list)...  How can I shut those 
    > down in Gentoo?
    > 
    > 22/tcp   open     ssh
    > 25/tcp   open     smtp
    > 80/tcp   open     http
    > 135/tcp  filtered msrpc
    > 139/tcp  filtered netbios-ssn
    > 445/tcp  filtered microsoft-ds
    > 993/tcp  open     imaps
    > 4444/tcp filtered krb524
    
    On the box in question, run "netstat -pant" to find out what program
    has each one opened.  The name of the program is at the far right.
    Then use rc-update to disable each service.  And then stop the service
    by typing "/etc/init.d/<servicename> stop".
    
    -- 
    Bob Miller                              K<bob>
    kbobsoft software consulting
    http://kbobsoft.com                     kbob at jogger-egg.com
    
  • [Eug-lug] shut down unneeded ports in Gentoo?



    Rob HudsonMon Jan 24 23:53:01 PST 2005

    I ran nmap on a server of mine and found a few open that I'd rather not 
    be open (the ones with "filtered" in the list)...  How can I shut those 
    down in Gentoo?
    
    22/tcp   open     ssh
    25/tcp   open     smtp
    80/tcp   open     http
    135/tcp  filtered msrpc
    139/tcp  filtered netbios-ssn
    445/tcp  filtered microsoft-ds
    993/tcp  open     imaps
    4444/tcp filtered krb524
    
    
    Thanks,
    Rob
    
  • [Eug-lug] mounting old Mac floppy



    horstMon Jan 24 23:02:11 PST 2005

    Both worked: direct mount, and via image. The bits on the floppy hadn't 
    flip-flopped yet :-)
    
    Still, revisiting the loop device for mount was a good exercise.
    
    Thanks Bob, for offering plan B .................. Horst
    
    > Date: Mon, 24 Jan 2005 01:55:39 -0800
    > From: Bob Miller <kbob at jogger-egg.com>
    > 
    > horst wrote:
    >
    >> I try to extract some files from a Mac floppy that's about 7 years old.
    >
    > The filesystem type should be hfs.
    >
    > I'd copy the floppy contents to a disk file and mount the disk file
    > because old floppies get read errors easily.
    >
    > 	# cp /dev/fd0 /tmp/fd0.img
    > 	# mount -o ro,loop -t hfs /tmp/fd0.img /mnt/floppy
    > 	# ls /mnt/floppy
    >
    > -- 
    > Bob Miller                              K<bob>
    > kbobsoft software consulting
    > http://kbobsoft.com                     kbob at jogger-egg.com
    
  • [Eug-lug] Au Sujet d’Emacs (some guy migrating to VIM)



    larry priceMon Jan 24 21:47:31 PST 2005

    http://pinard.progiciels-bpi.ca/opinions/editors.html
    
    A very interesting take from Francois Pinard on his decision to migrate to VIM
    
    Contains a fair bit of FSF history, and commentary thereupon
    
    Also discusses pymacs
    
    -- 
    http://Zoneverte.org -- information explained
    Do you know what your IT infrastructure does?
    
  • [Eug-lug] Minicom configuration



    Mike CherbaMon Jan 24 14:30:55 PST 2005

    Glad to hear it!
    		-Mike
    
    On Mon, 2005-01-24 at 14:15, Allen Brown wrote:
    > I used your custom version this weekend.  Nice time saver.
    > And since I am working with high-school students who are
    > also talking to this camera (CMUcam), I don't have to
    > explain as many times how to set those options.
    -- 
    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] Minicom configuration



    Allen BrownMon Jan 24 14:15:13 PST 2005

    I used your custom version this weekend.  Nice time saver.
    And since I am working with high-school students who are
    also talking to this camera (CMUcam), I don't have to
    explain as many times how to set those options.
    -- 
    Allen Brown
       work: Agilent Technologies      non-work: http://www.peak.org/~abrown/
             allen_brown at agilent.com	            abrown at peak.org
       If you are going through hell, keep going. --- Sir Winston Churchill
    
    
    Mike Cherba wrote:
    > Allen,
    > I poked about a bit in minicom and discovered why the authors didn't put
    > command line options or environment variables in for auto linewrap and
    > local echo.  These variables must be initialized AFTER the terminal
    > emulation is completed.  The original minicom program was not
    > architected to easily allow this.  So, I hacked together an updated
    > version.  I'm sending that version to you seperately from this email
    > because I didn't want to spam it to the whole list.  If other people
    > want it I assume they'll tell me. 
    > 
    > I've not fixed the architecture, but I grafted in two new options. 
    > --echo or -e and --autolinefeed or -b.  They have of course been added
    > to the help, but not to the manpage.  If you use these options you
    > should see messages in the top of the window when minicom starts.  You
    > can just add the options to the MINICOM environment variable on machines
    > you need it on. 
    > 		-Mike
    > 
    > 
    > On Wed, 2005-01-19 at 11:49, Allen Brown wrote:
    > 
    >>That's not the same.  AutoLF causes minicom to linefeed the
    >>display everytime it receives a CR.  This device doesn't
    >>send CR-LF.  It just sends CR.  So every line is displayed
    >>over the top of the next until I type C-A a.
    
  • [Eug-lug] Computer time



    Allen BrownMon Jan 24 14:07:06 PST 2005

    Bob Miller wrote:
    > The history lesson should make it obvious why emacs doesn't
    > share the unix tools philosophy.
    
    Finally a critisism of emacs that has some merit!
    This is exactly correct.  Emacs tries to do everything.
    
    OTOH, the micro-emacs clones don't try.  As a result they
    are much smaller and load faster.
    
    Netscape and Mozilla* share the same problem.  They all
    try to do everything.  Yes, even thunderbird and firefox.
    They try to be an editor.  And it is very frustrating
    because they are crappy editors.
    -- 
    Allen Brown
       work: Agilent Technologies      non-work: http://www.peak.org/~abrown/
             allen_brown at agilent.com	            abrown at peak.org
       A fool thinks himself to be wise, but the wise man knows himself
       to be a fool. --- William Shakespeare
    
    
    
  • [Eug-lug] Computer time



    Jim KahnMon Jan 24 12:04:19 PST 2005

     I point out ed for the original poster who normally used a gui editor. I
    pointed ed out as a standard and very easy to learn editor. There isn't much
    there, but it is enough to get you to the point where you can get your gui
    up and running. Then the user can go back to his gui editor. If you already
    know vi, emacs etc., ed
    would probably be a waste of time, but it is on most if not all unixes.
    Jim k
    PS I have been offline updateing my computer capacity from a mixed bag of
    old windows computers. I am back into windows. As soon as I add another hard
    drive and memory I will load fedora core 3.
    ----- Original Message ----- 
    From: "Jim K" <kjim9 at earthlink.net>
    To: "Eugene Unix and Gnu/Linux User Group" <euglug at euglug.org>
    Sent: Saturday, January 22, 2005 2:35 AM
    Subject: Re: [Eug-lug] Computer time
    
    
    >       I just did a man ex on a mandrake 10 community system and it
    > displayed the vim man page. Is ex just an alias for vim?
    > I have had at least one linux system that didn't have ex, but they all
    > had ed. You can create a program or script that creates a
    > script that executes ed and operate on another file. ed is small and
    > could be loaded on thing like linux ipods the Zuarus series of machines
    > etc, without using up memory.
    >     Also if you have used a line editor in the past ed is easy to pick
    > up and run with.
    > Jim K
    > Allen Brown wrote:
    >
    > >On Fri, 21 Jan 2005, Max Lemieux wrote:
    > >
    > >
    > >
    > >>Ok, this works. Enter gives me a ? but line number + enter displays a
    line.
    > >>
    > >>What practical uses do you find for ed? seems specialized enough that it
    > >>could be very handy.
    > >>
    > >>-Max
    > >>
    > >>
    > >
    > >Criminey!  ed is just an historical relic.  If you want something
    > >that is line oriented rather than a screen editor, use ex.
    > >--
    > >Allen Brown
    > >  work: Agilent Technologies      non-work: http://www.peak.org/~abrown/
    > >        allen_brown at agilent.com             abrown at peak.org
    > >  The dinosaurs became extinct because they didn't have a space program.
    > >  --- Larry Niven
    > >
    > >
    > >
    > >
    > >>Jacob Meuser wrote:
    > >>
    > >>
    > >>
    > >>>On Fri, Jan 21, 2005 at 02:52:39PM -0800, Max Lemieux wrote:
    > >>>
    > >>>
    > >>>
    > >>>
    > >>>>max at 4[~]$ ed Robert.txt
    > >>>>261
    > >>>>
    > >>>>Yikes! I even RTFM ed, and no mention of a display mode (what am I
    > >>>>missing?). The substitution looked handy, though...
    > >>>>
    > >>>>
    > >>>>
    > >>>>
    > >>>ed works line-at-a-time.
    > >>>
    > >>>just start hitting enter, or some number less than 261 and then enter.
    > >>>
    > >>>now if you want to delete a line type 'd <line#>'.
    > >>>
    > >>>use 'a <line#>' to add a line.
    > >>>
    > >>>
    > >>>
    > >>>
    > >>>
    > >>_______________________________________________
    > >>EUGLUG mailing list
    > >>euglug at euglug.org
    > >>http://www.euglug.org/mailman/listinfo/euglug
    > >>
    > >>
    > >>
    > >_______________________________________________
    > >EUGLUG mailing list
    > >euglug at euglug.org
    > >http://www.euglug.org/mailman/listinfo/euglug
    > >
    > >
    > >
    >
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    >
    >
    > -- 
    > No virus found in this incoming message.
    > Checked by AVG Anti-Virus.
    > Version: 7.0.300 / Virus Database: 265.7.2 - Release Date: 1/21/05
    >
    >
    
    
    
    -- 
    No virus found in this outgoing message.
    Checked by AVG Anti-Virus.
    Version: 7.0.300 / Virus Database: 265.7.2 - Release Date: 1/21/05