Linux-Misc Digest #64, Volume #27 Fri, 9 Feb 01 04:13:02 EST
Contents:
Re: security ([EMAIL PROTECTED])
Re: cdrecord+ATAPI burner (Dylan Thomas)
Re: xv_get_sel alike tools for Linux (* Tong *)
Re: tar omitting leading directories (Robert Lynch)
lilo.conf and boot up questions (Stearns28)
Re: Which distribution? ("Chaz")
Re: tar omitting leading directories (John Wingate)
Re: Standard Template Library (Thaddeus L Olczyk)
ssh question ("Tom Edelbrok")
Where does $PATH come fro (Mike Mcclain)
Re: security (Mike Mcclain)
Re: How to specify tty for write/talk (GYULAI Mihaly)
Re: lilo.conf and boot up questions (Eric)
Re: ssh question ("Peter T. Breuer")
Re: pop3 issues (Villy Kruse)
Re: Where does $PATH come fro ("Nils O. Sel�sdal")
Re: Getting started with Java ("Nils O. Sel�sdal")
Re: Getting started with Java ("Nils O. Sel�sdal")
----------------------------------------------------------------------------
From: [EMAIL PROTECTED]
Subject: Re: security
Date: Fri, 09 Feb 2001 04:12:50 GMT
Mike Mcclain <[EMAIL PROTECTED]> wrote:
> Howdy,
> Prior to setting up internet access, What can I do to
> harden a one user linux box? The Security_HOWTO said edit
> /etc/inetd.conf, so I commented out all but ftp & telnet and
If you are going to allow logins and file transfers from the
Internet, I'd get rid of telnet and ftp as well, then set up ssh
(http://www.openssh.com/)
I'd look into a firewall using ipchains, or the new iptables. A web
search should turn up a *lot* of info on that subject.
--
Jim Buchanan [EMAIL PROTECTED] [EMAIL PROTECTED]
=================== http://www.buchanan1.net/ ==========================
"I don't think Microsoft is evil in itself; I just think that they make
really crappy operating systems." -Linus Torvalds
================= Visit: http://www.thehungersite.com ==================
------------------------------
From: Dylan Thomas <[EMAIL PROTECTED]>
Subject: Re: cdrecord+ATAPI burner
Date: Fri, 09 Feb 2001 04:17:40 GMT
I too had this same problem. near as I could tell, everything was installed
correctly.
I was using kernel 2.4.0 on a RedHat 6.2 system. HP 7200i drive with ide-scsi
emulation. I could read fine from the cd, using the scsi emulation, but not
write. My error messages were simmilar to yours. My solution was to download
the latest cdrecord alpha release from
ftp://ftp.fokus.gmd.de/pub/unix/cdrecord/alpha/ and compile it following the
instructions...
The compiled version worked fine, the RedHat 6.2 cdrecord 1.9 rpm packages did
not...
Cheers
Dylan
Andrew Rounds wrote:
> I can't get cdrecord to work on my machine. Anyone have any ideas? Output
> from a cdrecord session is pasted below. I am on MDK7.2 with kernel 2.4.0
> if that makes any difference (although I think I had the same problem with
> kernel 2.2.18)
>
> A big thanks to anyone who can tell me what I am doing wrong. I know the
> burner (slave on secondary drive, but hdd=ide-scsi emulation switched on)
> works, because it works on that other operating system that I dual boot
> with.
>
> Thanks
>
> Andy
>
> /usr/bin/cdrecord dev=0,0,0 fs=2048k -v -useinfo speed=4 -dao -eject -pad
> -data "/tmp/track-01.img"
> pregap1: -1
> Cdrecord 1.9 (i586-mandrake-linux-gnu) Copyright (C) 1995-2000 J�rg
> Schilling
> TOC Type: 1 = CD-ROM
> scsidev: '0,0,0'
> scsibus: 0 target: 0 lun: 0
> Linux sg driver version: 3.1.17
> Using libscg version 'schily-0.1'
> atapi: 1
> Device type : Removable CD-ROM
> Version : 0
> Response Format: 1
> Vendor_info : 'MITSUMI '
> Identifikation : 'CR-4804TE '
> Revision : '2.2C'
> Device seems to be: Philips CDD-522.
> Using generic SCSI-3/mmc CD-R driver (mmc_cdr).
> Driver flags : SWABAUDIO
> Drive buf size : 1343488 = 1312 KB
> FIFO size : 2097152 = 2048 KB
> Track 01: data 598 MB padsize: 30 KB
> Total size: 687 MB (68:06.50) = 306488 sectors
> Lout start: 687 MB (68:08/38) = 306488 sectors
> Current Secsize: 2048
> ATIP info from disk:
> Indicated writing power: 6
> Is not unrestricted
> Is not erasable
> ATIP start of lead in: -11740 (97:25/35)
> ATIP start of lead out: 336156 (74:44/06)
> Disk type: Short strategy type (Phthalocyanine or similar)
> Manuf. index: 40
> Manufacturer: INFODISC Technology Co., Ltd.
> Blocks total: 336156 Blocks current: 336156 Blocks remaining: 29668
> Starting to write CD/DVD at speed 4 in write mode for single session.
> Last chance to quit, starting real write in 1 seconds.
> Waiting for reader process to fill input buffer ... input buffer ready.
> /usr/bin/cdrecord: Input/output error. mode select g1: scsi sendcmd:
> retryable error
> CDB: 55 10 00 00 00 00 00 00 3C 00
> status: 0x2 (CHECK CONDITION)
> Sense Bytes: 70 00 05 00 00 00 00 0A 00 00 00 00 26 00 00 00
> Sense Key: 0x5 Illegal Request, Segment 0
> Sense Code: 0x26 Qual 0x00 (invalid field in parameter list) Fru 0x0
> Sense flags: Blk 0 (not valid)
> cmd finished after 0.001s timeout 200s
> /usr/bin/cdrecord: Warning: using default CD write parameter data.
> Mode Select Data 00 10 00 00 05 32 02 00 00 00 00 00 00 00 00 00 00 00 00
> 96 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00
> /usr/bin/cdrecord: Cannot open new session.
> /usr/bin/cdrecord: fifo had 32 puts and 0 gets.
> /usr/bin/cdrecord: fifo was 0 times empty and 0 times full, min fill was
> 100%.
------------------------------
From: * Tong * <[EMAIL PROTECTED]>
Subject: Re: xv_get_sel alike tools for Linux
Date: 09 Feb 2001 00:23:05 -0400
[EMAIL PROTECTED] (Marc D. Williams) writes:
> On 06 Feb 2001 20:01:50 -0400, * Tong * wrote:
> >Hi,
> >
> >I'm looking for xv_get_sel alike tools for Linux.
> >
> >FYI, xv_get_sel is a nice little gadget under Solaris that copy the
> >content of a selection to the standard output.
> >
> Would this be something like xclipboard maybe (standard with X)?
> Then there's xfilesel which I guess copies a selection to a file
> and back to an X selection.
Thanks, what I am really looking for is *command line* tools so that
I can easily use them within my script. Sorry I didn't make myself
clear at the first place.
> If these are similar to what you mean then the URL for xfilesel
> is at freshmeat (the place you didn't want to be referred to).
<smile>, not like that, I like it a lot, just do want to do aimless
searching... :-)
BTW, I hate the freshmeat's new interface though. last time I search
for ical but I got tons of hits but none of them is ical. :-) Try it
and you'll know.
--
Tong (remove underscore(s) to reply)
http://members.xoom.com/suntong001/
- All free contribution & collection & music from the heavens
------------------------------
From: Robert Lynch <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Re: tar omitting leading directories
Date: Thu, 08 Feb 2001 20:24:05 -0800
[EMAIL PROTECTED] wrote:
>
> Hi there,
>
> Couldn't find a comp.linux.tar or similar newsgroups so here I am.
> I had a look on the tar faqs and on the web (using google, very
> good search engin BTW and scanned the newspostings in deja.com)
> but I couldn't find an easy solution (none). Here is my problem:
>
> I receive from a query the locations of lots of files I need to tar
> in one archive in order to send it to the client. The locations
> look like this:
>
> /data/thisproject/veryimportant/format/20-01-99/file1.txt
> /data/thisproject/veryimportant/format/20-01-99/file2.txt
> etc.
> /data/thisproject/veryimportant/format/13-02-99/file1.txt
> /data/thisproject/veryimportant/format/13-02-99/file2.txt
> /data/thisproject/veryimportant/format/13-02-99/file3.txt
> etc.
> /data/thisproject/othermachine/16-08-01/file1.txt
>
> Several files in date-labeled directories.
>
> I receive the locations in one single long string, let's say
> files2tar. What I do is give tar this long string. What I get is
> one tar archive which is good but the thing is when the client
> unpacks the whole archive he will have to click through all these
> leading directories (data,thisproject...) to finally get the files
> he wants. I was wondering if there is any nice and neat option
> when creating the archive to tell tar that it should put
> the files only with the last directory like
>
> 20-01-99/file1.txt
> 20-01-99/file2.txt
> 13-02-99/file1.txt
> 13-02-99/file2.txt
> 13-02-99/file3.txt
> 16-08-01/file1.txt
>
> I need the whole path to get to the data itself but I want them to
> be archived in less directory depths (omitting the leading ones
> except of the last).
>
> Anyone any ideas ? Even if I use a script (any language) to shorten
> the files2tar string to
> "20-01-99/file1.txt 20-01-99/file2.txt 13-02-99/file1.txt etc."
>
> how can I give this information to the tar command ?
> Something like tar cf data.tar files2tar --target files2tarshortened ??
> But there is no --target or so ...
>
> Thanks for helping :-)
> -Ro
>
> Sent via Deja.com
> http://www.deja.com/
$ find . -name "*.txt"
./a/x/1x.txt
./a/y/1y.txt
$ find . -name "*.txt" | cut -d/ -f2-4 |tar cvfT strip.tar -
a/x/1x.txt
a/y/1y.txt
$ ls
a strip.tar
$ tar tvf strip.tar
-rw-r--r-- user/user 0 2001-02-08 20:07:32 a/x/1x.txt
-rw-r--r-- user/user 0 2001-02-08 20:07:38 a/y/1y.txt
(1x.txt, 1y.txt were created by "touching" them.)
Hope this helps.
Bob L.
--
Robert Lynch-Berkeley CA USA: [EMAIL PROTECTED] <== NOTE:
**New address! Please CHANGE your addressbook listing.***
------------------------------
From: [EMAIL PROTECTED] (Stearns28)
Date: 09 Feb 2001 04:57:26 GMT
Subject: lilo.conf and boot up questions
Hi all,
I have a question about lilo.conf and boot up uner RH 6.1. Please give me a
hand if you can.
I found this line in my lilo.conf after the "image=" line:
initrd=/boot/initrd-2.2.12-20.img
What does this line do? I looked thru 'man lilo.conf' and could find any
thing on initrd .
My RH 6.1 server failed to boot up after a cold reboot. The boot process
stopped after mounting only the root file system in read-only mode. All
other filesystems in /etc/fstab were not mounted. /sbin/init was not
executed and I was booted into a /bin/sh shell instead.
I could not edit lilo.conf becaue /etc is in the read-only root system.
What went wrong? Any idea?
Thanks.
------------------------------
From: "Chaz" <[EMAIL PROTECTED]>
Subject: Re: Which distribution?
Date: Fri, 9 Feb 2001 05:01:51 -0000
Sorry, i meant 100meg not 10meg *doh*
"Rod Smith" <[EMAIL PROTECTED]> wrote in message
news:imzg6.5194$[EMAIL PROTECTED]...
> [Posted and mailed]
>
> In article <9smg6.9741$[EMAIL PROTECTED]>,
> "Chaz" <[EMAIL PROTECTED]> writes:
> > Hi i want to install linux on a pc with 2meg of edo ram and a 386 25mhz
cpu.
> > The hard disk is 10meg. I would like to know what version/distribution i
> > should install. Thanks in advance.
>
> There might be some very old distribution that will run in as little as
> 2MB of RAM, but all modern distributions require at least 4MB, and often
> more than that. Similarly, 10MB of disk space is insufficient for
> anything but a micro-distribution. You might be able to press this
> system into service as a small dedicated router or something, but for
> serious use as a workstation or server, it's inadequate.
>
> --
> Rod Smith, [EMAIL PROTECTED]
> http://www.rodsbooks.com
> Author of books on Linux & multi-OS configuration
------------------------------
From: John Wingate <[EMAIL PROTECTED]>
Subject: Re: tar omitting leading directories
Date: Fri, 09 Feb 2001 05:11:28 GMT
[EMAIL PROTECTED] wrote:
> I receive from a query the locations of lots of files I need to tar
> in one archive in order to send it to the client. The locations
> look like this:
> /data/thisproject/veryimportant/format/20-01-99/file1.txt
> /data/thisproject/veryimportant/format/20-01-99/file2.txt
> etc.
> /data/thisproject/veryimportant/format/13-02-99/file1.txt
> /data/thisproject/veryimportant/format/13-02-99/file2.txt
> /data/thisproject/veryimportant/format/13-02-99/file3.txt
> etc.
> /data/thisproject/othermachine/16-08-01/file1.txt
> I receive the locations in one single long string, let's say
> files2tar. What I do is give tar this long string.
> ...
> I need the whole path to get to the data itself but I want them to
> be archived in less directory depths (omitting the leading ones
> except of the last).
> Anyone any ideas ? Even if I use a script (any language) to shorten
> the files2tar string to
> "20-01-99/file1.txt 20-01-99/file2.txt 13-02-99/file1.txt etc."
You can do what you want with the -C (change directory) option:
tar cf data.tar -C /data/thisproject/veryimportant/format 20-01-99/file1.txt \
... -C /data/thisproject/othermachine 16-08-01/file1.txt
You will need a script to massage the files2tar string into this form.
(GNU tar has a long option variant: "--directory=DIR" is equivalent to
"-C DIR".)
--
John Wingate Language serves three functions. One is to
[EMAIL PROTECTED] communicate ideas, one is to conceal ideas, and
the third is to conceal the absence of ideas.
--Otto Jespersen
------------------------------
From: [EMAIL PROTECTED] (Thaddeus L Olczyk)
Subject: Re: Standard Template Library
Date: Fri, 09 Feb 2001 05:35:27 GMT
Reply-To: [EMAIL PROTECTED]
On Thu, 08 Feb 2001 13:34:37 GMT, Ramin Sina
<[EMAIL PROTECTED]> wrote:
>Hi all,
>
>could someone please tell me if STL is included in the gcc compiler that
>comes with Red Hat Linux 6.2, and if so, what do I need to do to link it
>with my code?
>
>Thanks very much
>Ramin Sina
Yes, but you may prefer STLPort (www.stlport.org )
There are also some libraries that you may want to check out at
www.boost.org
------------------------------
From: "Tom Edelbrok" <[EMAIL PROTECTED]>
Subject: ssh question
Date: Thu, 8 Feb 2001 21:54:36 -0800
Thanks to Sak Wathanasin and David Efflandt for getting me straightened out
with permissions to run openssh! If I set ".ssh" to 700, and authorized_keys
to 600 then everything works fine as you said it would.
One problem though, why do your permissions work and the ones that I was
using didn't?
All of the permissions that I was using were more "open" than yours. For
example, I had 755 for ".ssh", and "664" for authorized_keys. So if my
permissions were less restrictive than yours why do yours work and mine
always yield "RSA authentication error"? After I got it working with your
permissions I set it back to mine and got the same authentication error.
Can anyone explain this?
Thanks,
Tom.
------------------------------
From: [EMAIL PROTECTED] (Mike Mcclain)
Subject: Where does $PATH come fro
Date: Fri, 09 Feb 2001 06:04:06 GMT
Howdy,
grep -r PATH /etc/* ~/*
MiKe
-=> [EMAIL PROTECTED] wrote to ALL <=-
JO> Where and what is setting the path before and after my .bashrc?
--- MultiMail/Linux v0.31
------------------------------
From: [EMAIL PROTECTED] (Mike Mcclain)
Subject: Re: security
Date: Fri, 09 Feb 2001 06:05:10 GMT
Howdy Jim,
I take it from your response that if I leave telnet and
ftp in /etc/inetd.conf that this means others can login on my box.
I thought I had to leave them on to ftp/telnet out. What I really
think I want is akin to a telephone with no bell. I can call out
but noone can call in.
Is my logic broken?
Thanks,
MiKe
-=> [EMAIL PROTECTED] wrote to ALL <=-
JB> If you are going to allow logins and file transfers from the
JB> Internet, I'd get rid of telnet and ftp as well, then set up ssh
JB> (http://www.openssh.com/)
JB> I'd look into a firewall using ipchains, or the new iptables. A web
JB> search should turn up a *lot* of info on that subject.
Herein lies the rub, I'm swamped with info about networking. Mc
--- MultiMail/Linux v0.31
------------------------------
From: GYULAI Mihaly <[EMAIL PROTECTED]>
Subject: Re: How to specify tty for write/talk
Date: Fri, 09 Feb 2001 07:33:27 GMT
In article <[EMAIL PROTECTED]>,
* Tong * <[EMAIL PROTECTED]> wrote:
> How to specify tty for write/talk for Linux?
Do you want to send messages to another console?
Try it on other console than tty8:
echo "Hello World" >/dev/tty8
--
GYULAI Mihaly
http://gyulai.freeyellow.com
Sent via Deja.com
http://www.deja.com/
------------------------------
From: Eric <[EMAIL PROTECTED]>
Subject: Re: lilo.conf and boot up questions
Date: Fri, 09 Feb 2001 08:55:44 +0100
Reply-To: [EMAIL PROTECTED]
Stearns28 wrote:
>
> Hi all,
>
> I have a question about lilo.conf and boot up uner RH 6.1. Please give me a
> hand if you can.
>
> I found this line in my lilo.conf after the "image=" line:
>
> initrd=/boot/initrd-2.2.12-20.img
>
> What does this line do? I looked thru 'man lilo.conf' and could find any
> thing on initrd .
Have you considered `man initrd`
> My RH 6.1 server failed to boot up after a cold reboot. The boot process
> stopped after mounting only the root file system in read-only mode. All
> other filesystems in /etc/fstab were not mounted. /sbin/init was not
> executed and I was booted into a /bin/sh shell instead.
>
> I could not edit lilo.conf becaue /etc is in the read-only root system.
>
> What went wrong? Any idea?
What was the error message you got?
have you tried to supply the "init=/sbin/init" option when you boot.
Eric
------------------------------
From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Subject: Re: ssh question
Date: Fri, 9 Feb 2001 08:48:17 +0100
Tom Edelbrok <[EMAIL PROTECTED]> wrote:
> All of the permissions that I was using were more "open" than yours. For
> example, I had 755 for ".ssh", and "664" for authorized_keys. So if my
> permissions were less restrictive than yours why do yours work and mine
> always yield "RSA authentication error"? After I got it working with your
Because they should be at least as restrictive, or ssh will complain
and barf (probably settable in the config file).
> permissions I set it back to mine and got the same authentication error.
> Can anyone explain this?
Everyone - you observed it too.
Peter
------------------------------
From: [EMAIL PROTECTED] (Villy Kruse)
Subject: Re: pop3 issues
Date: 9 Feb 2001 08:18:30 GMT
On Thu, 08 Feb 2001 22:11:42 +0100, Michael Heiming <[EMAIL PROTECTED]> wrote:
>
>Yes, sorry, but I would suggest using another MUA, there are ie. eudora
>and pegasus
>which both have more features than anyone needs.
Or even Outlook Express.
Villy
------------------------------
Reply-To: "Nils O. Sel�sdal" <[EMAIL PROTECTED]>
From: "Nils O. Sel�sdal" <[EMAIL PROTECTED]>
Subject: Re: Where does $PATH come fro
Date: Fri, 9 Feb 2001 09:20:14 +0100
"Mike Mcclain" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Howdy,
> grep -r PATH /etc/* ~/*
> MiKe
> -=> [EMAIL PROTECTED] wrote to ALL <=-
>
> JO> Where and what is setting the path before and after my .bashrc?
lots of stuff..
the login command sets some.. man login
scripts in /etc/profile.d might set some..
/etc/bashrc
scripts in /etc/rc.d/init.d
------------------------------
Reply-To: "Nils O. Sel�sdal" <[EMAIL PROTECTED]>
From: "Nils O. Sel�sdal" <[EMAIL PROTECTED]>
Subject: Re: Getting started with Java
Date: Fri, 9 Feb 2001 09:25:44 +0100
"Steve Ackman" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> On Thu, 8 Feb 2001 08:28:47 +0100, Nils O. Sel�sdal <[EMAIL PROTECTED]>
wrote:
> >
> >>
> >> Python has been called THE language with which to learn OO.
> >>
> >> The Red Hat install program is written in Python, so it's
> >> already installed if you're running Red Hat. Type 'python'
> >> at the command line and see if it's there. If so, then type
> >> 'idle' and see if you might have also accidentally installed
> >> the so-called IDE.
> >>
> >> If not, check out http://www.python.org, and put the notion
> >> of Java on the shelf for some other day... (which, after you
> >> get into Python, will likely never come. ;-)
>
>
> >Do there exist any decent IDE's for python...(i refuse to code in an OO
> >laguage
> >if a cannot get an ide with a codeinsight feature..)
>
> I'm new to python and don't use an IDE (yet?), so I'm not sure
> what a codeinsight feature is. Searching through the help files,
> the term "codeinsight" doesn't show up. Perhaps it's known by a
> different name in IDLE. There's a class browser and a path
> browser, if that's what you mean.
those are useless...
it means i type Button b = new Button();
b. <-- pressing the . here i get a popupwindow with
all the methods on a Button object
b.setSize( <-- here i get a popup window/tooltip
with all parameters for the method setSize on a Button object..
> >And why is python not so widely used in the enterprise if it's so great?
> >(im' talkin about application servers, corba, and things that work behind
> >e.g. www.amazon.com)
>
> Isn't that kind of like asking why Linux isn't so widely used
> in the enterprise if it's not so great?
Linux IS widely used in the enterprise (not on mostermachines >16 cpus..
though..)
------------------------------
Reply-To: "Nils O. Sel�sdal" <[EMAIL PROTECTED]>
From: "Nils O. Sel�sdal" <[EMAIL PROTECTED]>
Subject: Re: Getting started with Java
Date: Fri, 9 Feb 2001 09:28:53 +0100
"Bob Hauck" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> On Thu, 8 Feb 2001 08:28:47 +0100, Nils O. Sel�sdal
> <[EMAIL PROTECTED]> wrote:
>
> >Do there exist any decent IDE's for python...
>
> There's one called IDLE, but it is a work in progress.
>
>
> > (i refuse to code in an OO laguage if a cannot get an ide with a
> > codeinsight feature..)
>
> Whatever. I get along fine without an IDE, even in Java.
and how much time do you spend remembering the methods of
java.sql.Statement, with
all it's parameters`?
> > And why is python not so widely used in the enterprise if it's so great?
>
> Maybe because it has no IDE. Maybe because there's no PythonCo to send
> middle managers on junkets. Howcome "the enterprise" doesn't use Lisp
> or Smalltalk? Why is water wet? Are you a leader or a follower?
I just use whatever makes mony the fastes way...
------------------------------
** FOR YOUR REFERENCE **
The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:
Internet: [EMAIL PROTECTED]
You can send mail to the entire list by posting to comp.os.linux.misc.
Linux may be obtained via one of these FTP sites:
ftp.funet.fi pub/Linux
tsx-11.mit.edu pub/linux
sunsite.unc.edu pub/Linux
End of Linux-Misc Digest
******************************