Linux-Misc Digest #385, Volume #26 Sat, 25 Nov 00 14:13:01 EST
Contents:
Klyx and Pictures (Kyle Parfrey)
Configuring Linux for ADSL (Sympatico) ("WME")
Re: bash scripting question (Robert Jones)
Re: linux operating system installable files (Thilo Herzfeld)
Re: adding users... (Jeffrey Hood)
camserv won't compile (Romeyn Prescott)
Where can I get a pre-built POSE for Linux ? (Arctic Storm)
Re: RH6.2 login is now broken - how to fix? (Moe Koenig)
Problems booting RH7 after install ("Cheryl Freeman")
Re: Modified Cue Cat does not work on X windows ("Charles Sullivan")
Re: Klyx and Pictures ("Jan Schaumann")
Anybody setup dotnow.com for Linux :-) (Andrew Purugganan)
another bash scripting question ([EMAIL PROTECTED])
Re: Where can I get a pre-built POSE for Linux ? ("Jan Schaumann")
Re: cdrecord and HP9500/ATPI cd-drive? ([EMAIL PROTECTED])
Re: shutdown vs halt (Dan Amborn)
Re: shutdown vs halt (Bill Unruh)
----------------------------------------------------------------------------
From: Kyle Parfrey <[EMAIL PROTECTED]>
Subject: Klyx and Pictures
Date: Sat, 25 Nov 2000 15:11:45 GMT
Hey all:
I would like to use Klyx for a large report, but it looks like it
doesn't support normal bitmap
type graphics. Is it possible to convert .gif or .jpg into encapsulated
postscript?
If not, what would be a could wordprocessor, abiword doesn't seem to be
very good.
Thanks
Ykle
------------------------------
From: "WME" <[EMAIL PROTECTED]>
Subject: Configuring Linux for ADSL (Sympatico)
Date: Sat, 25 Nov 2000 15:14:04 GMT
I checked Slackware's website, but didn't find anything for that !! Any
ideas?
Thanks
------------------------------
From: Robert Jones <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.admin,comp.os.linux.help,comp.os.linux.questions
Subject: Re: bash scripting question
Date: Sat, 25 Nov 2000 09:16:36 -0600
Manfred Bartz wrote:
> "David Cunningham" <[EMAIL PROTECTED]> writes:
>
> > <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]...
> >
> > > i need to execute a process and assign it's pid to a variable.
> > > eg. if i run xchat, say, and it has pid 1234, how can i store this
> > > value in a variable when the process begins execution?
>
> > Here's a more generic solution to your problem. This script can assign any
> > pid to a variable. It works by looking for the first pid by the name
> > specified and then storing that pid in a local variable.
> >
> > #!/bin/sh
> >
> > PROCNAME="xchat"
> >
> > PID=`ps -ef | grep -i $PROCNAME | grep -v grep | awk {'print $2'} | head -1`
> > echo "The pid for $PROCNAME is $PID"
>
> As you say:
> ``it works by looking for the _first_ pid by the name specified...''
>
> The only problem is if you have multiple instances of the same
> program, then it won't work.
>
> And instead of stringing all those commands together, you could use
> the admittedly little known ``pidof''. E.g.:
>
> $ pidof xchat
> 12033
>
> Same caveat as before, it will not work properly if you have multiple
> instances of the same program.
>
> --
> Manfred
Really?
[rj@localhost rj]$ /sbin/pidof mingetty
27043 26989 604 603 602
[rj@localhost rj]$ ps -C mingetty
PID TTY TIME CMD
602 tty4 00:00:00 mingetty
603 tty5 00:00:00 mingetty
604 tty6 00:00:00 mingetty
26989 tty3 00:00:00 mingetty
27043 tty2 00:00:00 mingetty
[rj@localhost rj]$
--
"I have not the slightest confidence in 'spiritual manifestations.'"
-- Robert G. Ingersoll
9:12am up 42 days, 3:38, 1 user, load average: 0.00, 0.04, 0.05
------------------------------
From: Thilo Herzfeld <[EMAIL PROTECTED]>
Crossposted-To:
comp.os.linux.powerpc,comp.os.linux.development.system,de.comp.os.unix.linux.misc,no.it.os.unix.linux.diverse,uk.comp.os.linux
Subject: Re: linux operating system installable files
Date: Sat, 25 Nov 2000 16:32:51 +0100
nitin sharma wrote:
>
> kindly specify the files which i should download for the installing linux on my
>system from the corresponding sites.
>
> linuxppc from http://download.sourceforge.net/mirrors/linuxppc/
>
> yellowdog linux from ftp://ftp.yellowdoglinux.com/pub/yellowdog/
>
> debian linux from
> http://www.debian.org/distrib/ftplist
>
> after downloading the files how do you install the operating system on the target
>system? Do u need to write the files on a CD before installation or there is some
>other method?
>
> Chequemail.com - a free web based e-mail service that also pays!!!
> http://www.chequemail.com
Hi
Go to www.linuxiso.org
Thilo
--
Thilo Herzfeld
icq: 43329619
mail: [EMAIL PROTECTED]
------------------------------
From: Jeffrey Hood <[EMAIL PROTECTED]>
Crossposted-To: comp.unix.shell
Subject: Re: adding users...
Date: Sat, 25 Nov 2000 15:49:29 GMT
Thanks for the help...
JH
--
Jeffrey Hood
HM Consulting
jeffrey.hood at (you - know - why) verizon dot net
------------------------------
Subject: camserv won't compile
From: Romeyn Prescott <[EMAIL PROTECTED]>
Date: Sat, 25 Nov 2000 16:10:14 GMT
Has anyone had any luck using (compiling) camserv with RedHat 7? It won't
compile for me.
...ROMeyn
------------------------------
From: Arctic Storm <[EMAIL PROTECTED]>
Crossposted-To:
comp.sys.palmtops.pilot,alt.comp.sys.palmtops.pilot,comp.os.linux.development,comp.os.linux.development.apps
Subject: Where can I get a pre-built POSE for Linux ?
Date: Sat, 25 Nov 2000 16:58:54 GMT
I'm trying to get the Palm OS Emulator to work, but running into great
difficulty building POSE.
I have RedHat Linux 7.0.
I'm reading "Embedded Linux Journal", page 38. For some odd reason, the
month or the issue number is not conspicuously displayed on the cover,
and it has a picture of MachZ chip/board.
I installed FLTK from source as instructed. I downloaded the POSE tar
and extracted it.
After "./configure" command, when I issue the "make" command, I see
pages of text scrolls by, and at the end, I get an error "make: ***
[all-recursive] Erro 1", and a couple of other errors.
I issued the command "make install" as root, anyway, and I get a similar
error. After that, when I type "pose", I get an error that no such file
is found.
Where can I find a pre-built binaries of the POSE? Building from
source is too difficult. I'm rather surprised that pre-built binaries
for Linux on Pentium isn't readily available, considering the vast
number of people who could benefit from the convenience.
Any help would be appreciated.
Thanks.
======
------------------------------
From: [EMAIL PROTECTED] (Moe Koenig)
Crossposted-To: comp.os.linux.networking,comp.os.linux.setup
Subject: Re: RH6.2 login is now broken - how to fix?
Date: Sat, 25 Nov 2000 17:01:55 GMT
Reply-To: [EMAIL PROTECTED]
On Sun, 15 Oct 2000 08:52:53 +0800, Robert Masters
<[EMAIL PROTECTED]> wrote:
>>You've been hacked. Thats the usual response when a 'rootkit' has been
>>installed.
>>
>>Take it offline ASAP to prevent any further useage by the hacker. Then
>>backup any data you need, and only what you need so as to not backup the
>>hackers work, wipe the disk clean and reinstall.
>
>This is actually a bit extreme - if you can work out which packages have been
>worked over, you can do a forced install of those packages from the
>distribution - much less hassle!
WRONG APPROACH!
No matter how much time you spend, you can *never* be sure to have
really found all changes and backdoors a hacker could have inserted.
The ONLY way to safely recover from a root compromise is:
1. Physically disconnect the now untrusted machine from all networks
2. Backup all data you need, be sure not to copy any system binaries,
configuration files or libraries.
If you have to re-use configuration files from the
compromised host be sure to verify each and every single line for
unauthorized modifications. The safer way to go would be to rewrite
all configuration files from scratch, at least for services that
require root privileges to run.
3. Wipe all disks clean and reinstall the OS from trusted media
(CD-Rom).
Let me stress again that it is not possible to reliably determine
which "packages" have been altered! There are literally hundreds of
ways to backdoor/trojan a linux system. Not only system binaries can
be replaced or patched. Also there are malicious kernel modules and
even kernel patches of a kind that leaves all doors open for the
attacker - so he may come back months after the box has been
"cleaned".
>>Then goto updates.redhat.com and grab and install *all* the fixes
>>available for 6.2 there.
>
>And that's the next step, along with wiping out any/all spurious user accounts,
>and forcing password changes across the board.
Again: If an attacker leaves obvious mods like these he might either
be a script kiddy who doesnt really know what its doing or
- worse - expect you to happily "clean" them off your system so he
notices when his intrusion has been detected. It is a common method
to measure the skill level of the "opponent admin" by leaving such
stuff laying around (eg. an account named "rewt" or "hax0r" in
/etc/passwd) and see if the admin falls victim to the trap by NOT
choosing the "extreme way" to recover as you call it. If he doesn't
the target host may be considered a safe bet for more complex
installations (sniffer, floodnet hub, whatever) since the admin will
obviously not be able to detect these.
>[...]
>
>More good advice. In fact, get rid of anything that is not needed for it to
>run. If nothing else, it makes life easier when you want to see what is going
>on when they hack you next time! And get rid of any ports/daemons that you
>don't need as well. Also, if you're really serious, log the traffic logs and
>messages to a separate machine, via a one-way link, like a serial port. Or to
>paper.
Very true.
Usually people wont have a 2nd host only for logging at home but there
are syslog replacements w/ cryptographic integrity checking and such.
They will do the trick almost as well.
In my opinion you already mentioned the most important rule above;
disable EVERYTHING and switch on just what you need, one by one.
Also do not allow ANYONE to login from remote to ANY service, unless
there is no way to avoid it.
Never rely only on Packetfilters, not even on a full featured DMZ.
Security must not end right after the frontline.
>>Then hook it up long enough to go get portsentry from www.psionic.com
>>and install it. Once thats in and running, it might be safe to plug in
>>the ethernet cable and leave it plugged in again.
>
>Don't know portsentry - could you enlighten us?
Its a rather simple utility to detect portscans.
It might be helpful but its not more than one piece of the puzzle.
>>That may not be enough to stop a really determined cracker, but its
>>managed to reject about 30 passes at hacking my office machine so far.
>
>:-) But you are right, there is no "magic bullet" - as the old saw goes, the
>price of freedom (of having a safe machine) is eternal vigilence. Modify,
>maintain, monitor. Constantly.
Exactly.
regards, m.k.
--
PGP fingerprint: 78F1 B792 07F2 4070 D40D F147 43E5 2717 B98A CD1C
Please sign the LDP at: http://www.libranet.com/petition.html
------------------------------
From: "Cheryl Freeman" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup
Subject: Problems booting RH7 after install
Date: Sat, 25 Nov 2000 11:51:35 -0500
I just upgraded to RH7 from RH6.0. The install went clean but the system
will not boot from floppy or disk.
1. It's a dual-boot Windows 98/Linux config. 4.3GB SCSI disk, 2GB
partitioned to Windows (/dev/sda1), 2GB to Linux (all root /dev/sda2 with a
128MB swap /dev/sda5). This partitioning worked fine under RH6.0.
2. The RH7 install consistently overwrites the MBR with a corrupted LILO
config. I get "insert system disk" error message when I try to boot. I have
to "fdisk /mbr" to restore a Windows boot-able MBR.
3. The RH7 boot floppy gets as far as loading the ncr53c8xx SCSI driver,
then hangs right after "ncr53c875-0: on-chip RAM at 0x52100000" message.
4. I can boot from the CD in rescue mode, and am able to mount the root
volume /dev/sda2, but I can't get the system to boot the root volume (linux
root=/dev/sda2). No error, it just doesn't mount.
Here's my hardware configuration. The OS is RH7.0 (Guiness) from CheapBytes:
Compaq AP400
530 Mhz Pentium III processor, 128MB RAM
Compaq CD-ROM CR-589
Compaq DDRS-34560W 4.3GB disk drive
Generic NEC floppy
Matrox Millennium G200 AGP display adapter
Symbios Logic 875XS|D, 2280x PCI SCSI Adapter; 53C875, 53876 Device
Intel 82371AB/EB PCI Bus Master IDE controller
Sportster 56k Data Fax modem
ViewSonic PS790 monitor
PS/2 compatible mouse
Compaq Fast Ethernet NIC NC3121
Intel 82371AB/EB PCI to USB Universal Host controller
ES1869 sound controller (WDM)
I spent a lot of time trying to resolve this without success. Any help with
this problem would be greatly appreciated. Please direct replies to
[EMAIL PROTECTED] Thanks.
------------------------------
From: "Charles Sullivan" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup,linux.redhat.misc
Subject: Re: Modified Cue Cat does not work on X windows
Date: Sat, 25 Nov 2000 17:03:47 GMT
E J <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]...
> I just modified my Cue Cat to read barcodes and spit out the numbers
> without being scrambled. It works under windows or text based linux,
> but when I run X windows(KDE or Failsafe mode), it does not work. When
> I scan a barcode in X windows based text editor, the screen would just
> give a few beeps and line feed. How do I get my modified Cue Cat to
> work under X windows?
The unmodified CueCat prefixes its output with the <Alt>F10 character.
Perhaps your modification does not eliminate this prefix, and it has
some function in the text editor.
By default in Gnome/Enlightenment at least, <Alt>F10 causes a switch to
a different virtual screen.
------------------------------
From: "Jan Schaumann" <[EMAIL PROTECTED]>
Subject: Re: Klyx and Pictures
Date: Sat, 25 Nov 2000 12:25:11 -0500
* "Kyle Parfrey" <[EMAIL PROTECTED]> wrote:
> Hey all: I would like to use Klyx for a large report, but it looks like
> it doesn't support normal bitmap type graphics. Is it possible to
> convert .gif or .jpg into encapsulated postscript? If not, what would
> be a could wordprocessor, abiword doesn't seem to be very good.
KLyx is a good choice - stick with it.
I don't have much experience with this, but I know for a fact that the
Gimp can convert your picture as a(n encapsulated) .ps.
xv, too, IIRC.
-Jan
--
Jan Schaumann <http://www.netmeister.org>
De-fault! The two sweetest words in the English language.
-- Homer Simpson
------------------------------
From: [EMAIL PROTECTED] (Andrew Purugganan)
Subject: Anybody setup dotnow.com for Linux :-)
Date: 25 Nov 2000 17:07:52 GMT
Is it one of those deals where you need a crack to set it up?
--
jazz
Registered linux user no. 164098 +--+--+--+ Litestep user no. 386
Doesn't it bother you, that we have to search for intelligent life
--- OUT THERE??
------------------------------
Date: Sat, 25 Nov 2000 19:54:07 +0200
From: [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.admin,comp.os.linux.help,comp.os.linux.questions
Subject: another bash scripting question
hi
here's a simple script to help me identify all the files with
size=0bytes in the current directory:
for file in `ls -1`;
do
if [ ! -s $file ];
then
ls -l $file;
fi
done
this script fails for filenames that contain multiple words, eg. a
filename like "my file.txt" or my\ file.txt.
how can i fix this?
thanks
ali
------------------------------
From: "Jan Schaumann" <[EMAIL PROTECTED]>
Subject: Re: Where can I get a pre-built POSE for Linux ?
Crossposted-To:
comp.sys.palmtops.pilot,alt.comp.sys.palmtops.pilot,comp.os.linux.development,comp.os.linux.development.apps
Date: Sat, 25 Nov 2000 13:12:55 -0500
* "Arctic Storm" <[EMAIL PROTECTED]> wrote:
> I installed FLTK from source as instructed. I downloaded the POSE tar
> and extracted it. After "./configure" command, when I issue the "make"
> command, I see pages of text scrolls by, and at the end, I get an error
> "make: ***
> [all-recursive] Erro 1", and a couple of other errors.
What are the errors you are getting?
Did you isntall all dependcies as mentioned in the article?
Please post the errors so we can tackle the problem together.
> I issued the command "make install" as root, anyway,
If "make" fails, all succeeding commands are bound to fail as well.
> Where can I find a pre-built binaries of the POSE? Building
> from source is too difficult. I'm rather surprised that pre-built
> binaries for Linux on Pentium isn't readily available, considering the
> vast number of people who could benefit from the convenience. Any help
> would be appreciated. Thanks.
ftp://rpmfind.net/linux/contrib/libc6/SRPMS//pose-3.0a4-1mdk.src.rpm
That's a source-rpm, but you build a normal rpm from this one.
Oh, and here's a normal rpm:
ftp://rpmfind.net/linux/contrib/libc6/i686/pose-3.0a4-1mdk.i686.rpm
-Jan
--
Jan Schaumann <http://www.netmeister.org>
There are two major products to come out of Berkeley:
LSD and UNIX. We don't believe this to be a coincidence.
------------------------------
Date: Sat, 25 Nov 2000 21:09:13 +0200
From: [EMAIL PROTECTED]
Subject: Re: cdrecord and HP9500/ATPI cd-drive?
Ish Rattan wrote:
> Hello,
>
> Just added a hp-9500i/atpi (internal drive: 12x8x32x drive) to Mandrake-7.0
> The man page for cdrecord mentions only SCSI devices, so, does it work
> with IDE/ATPI drives? If not what is the appropriate software for writing
> CDs (I do not use KDE/GNOME? environments)?
>
> Thanks in advance,
> - ishwar
cdrecord does work with ide/atapi drives. i use a HP-8100 and it works just
fine. however, what you need to do is enable scsi emulation support in your
kernel in order to write CD's. the rest of the time, the normal ide driver
works just fine. check the CD-Writing HOWTO for instructions on writing CD's.
it's very useful.
just another tip, if u compile both scsi emulation support AND ide support
into your kernel, the ide driver takes precedence. i compile both as modules.
by default, the ide driver gets loaded, and when i need to write CD's, i
unload the ide driver and enable scsi emulation instead.
once this is done, do a "cdrecord -scanbus" and your drive will show up.
ali
------------------------------
From: Dan Amborn <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux.mandrake,alt.os.linux
Subject: Re: shutdown vs halt
Date: Sat, 25 Nov 2000 11:57:54 -0600
Reply-To: [EMAIL PROTECTED]
On Sat, 25 Nov 2000 00:52:07 GMT, [EMAIL PROTECTED] (
Black Dragon ) wrote:
>
>On Fri, 24 Nov 2000 02:14:51 GMT in alt.os.linux,
><[EMAIL PROTECTED]> `unix nut' said:
>
>
>: Another way to shutdown is to set to run level 0.
>: login as root and type "init 0" this will cleanly and instantly shut =
system
>: down.
>
>
>This is probably over-kill but it's become a habit. I always take the=20
>machine down to run level 1 (single user), sync the file system, and=20
>then issue the halt command. On the rare occasions that I need to shut=20
>it down that is. :-)=20
What exactly is the -t switch good for anyway?
I use the command
shutdown -r +2 now=20
and as far as I can tell its no different than
shutdown -r -t2 +2 now
I haven't played much with the shutdown command until recently so I am
still learning its proper use.
--
Dan Amborn
[EMAIL PROTECTED]
Yoda of Borg are we: Futile is resistance. Assimilate you, we will.
------------------------------
From: [EMAIL PROTECTED] (Bill Unruh)
Crossposted-To: alt.os.linux.mandrake,alt.os.linux
Subject: Re: shutdown vs halt
Date: 25 Nov 2000 19:01:42 GMT
In <[EMAIL PROTECTED]> Dan Amborn <[EMAIL PROTECTED]>
writes:
]What exactly is the -t switch good for anyway?
It is an internal timer which tells shutdown to wait n seconds between
killing programs and changing run levels. It gives the programs time to
shut down, if they need the time. If they do not, this will do nothing.
]I use the command
]shutdown -r +2 now
Which makes not sense. th e +2 says, wait two minutes befor shutting
down. The now means wait 0 minutes befor shutting down (now is an alias
for +0). Read the shutdown man page.
man shutdown
------------------------------
** 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 (and comp.os.linux.misc) via:
Internet: [EMAIL PROTECTED]
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
******************************