Linux-Setup Digest #307, Volume #21 Sat, 26 May 01 10:13:06 EDT
Contents:
LILO with rh7.1 & win2000 ("Mello")
Re: U.S Robotics Modem Problem (Matan Ziv-Av)
Re: LILO with rh7.1 & win2000 (Frank Prengel)
Re: /etc/shadow password encrypted and not ("You, Jin-Ho")
Re: /etc/shadow password encrypted and not (Paul Colquhoun)
IRQ change ("alik blochin")
Re: Do I need to allow UDP port 520 connections through? (Dean Thompson)
Re: How to use lpr to print postscript file ? (Nils Holland)
Re: howto move the errors from gcc to a file? (loki)
starting apps on E16 bootup (Ray)
Re: HP n3310 laptop (Juergen Sauer)
Re: How to configure HUGE swap? ("Peter T. Breuer")
Re: starting apps on E16 bootup (kari savolainen)
Re: Compaq CD-ROM drive for Redhat 7.0 ("Matt Ritchie")
Re: broken ppp (Steve Martin)
Re: HELP formated drive (John Hasler)
Re: HELP formated drive (faeychyld)
----------------------------------------------------------------------------
From: "Mello" <[EMAIL PROTECTED]>
Subject: LILO with rh7.1 & win2000
Date: Sat, 26 May 2001 09:42:42 +0200
I've just installed succesfully my rh7.1 but i've some problems with lilo.
When i finish the installation of rh my lilo can't see win2000 so i entered
in linux and i typed lilo -u /dev/hda, now with my old mbr i can see win2000
but there's no notice of linux, the only way to login is to use the boot
dosk. And so i did, in order to reinstall the lilo, but another time my lilo
can't see win2000
My lilo.conf is:
boot="/dev/hda"
map=/boot/map
install=/boot/boot.b
prompt
timeout="50"
message=/boot/message
linear
default linux
image="/boot/wmlinuz-2.4.2-2"
label="linux"
read-only
root="/dev/hda5"
Is there anuone who could help a fresh linux man?
Thank's
Maury
------------------------------
From: [EMAIL PROTECTED] (Matan Ziv-Av)
Crossposted-To: comp.os.linux.networking
Subject: Re: U.S Robotics Modem Problem
Reply-To: [EMAIL PROTECTED]
Date: Fri, 25 May 2001 21:22:05 GMT
> >> I have a US Robotics /3Com Modem 5610 (compatable with Linux). And
> >> I am having trouble configuring it. When I do lspci -v it finds it
> >> at IRQ-5, IO ports at ec00. I don't know how to set the com ports
> >> for it.
>
> > Others have been down this road. You might find your solution here.
>
> > http://www.kcdata.com/~gromitkc/pedersen.txt
>
> Yes, it's there. Use setserial in a boot-up file to set an unused ttySx
> to the IRQ and port. I'm not sure about the other things mentioned,
> except that the right UART should also be specified. That will usually
> be a 16550A regardless of what anything on the modem or box, or in the
> manual says.
This is not necessarily true - I have a 5610 modem (id 12b9:1008), and
all setserial tricks don't work with kernel 2.2 serial driver. This driver
simply does not support (some) PCI serial ports. In order for the modem to
work with kernel 2.2 you need to download the driver from
http://serial.sourcforge.net. 2.4 includes the new driver.
--
Matan Ziv-Av. [EMAIL PROTECTED]
------------------------------
From: Frank Prengel <[EMAIL PROTECTED]>
Subject: Re: LILO with rh7.1 & win2000
Date: Sat, 26 May 2001 09:54:16 +0200
Mello wrote:
> I've just installed succesfully my rh7.1 but i've some problems with lilo.
>
> When i finish the installation of rh my lilo can't see win2000 so i
> entered in linux and i typed lilo -u /dev/hda, now with my old mbr i can
> see win2000 but there's no notice of linux, the only way to login is to
> use the boot dosk. And so i did, in order to reinstall the lilo, but
> another time my lilo can't see win2000
>
>
> My lilo.conf is:
>
> boot="/dev/hda"
> map=/boot/map
> install=/boot/boot.b
> prompt
> timeout="50"
> message=/boot/message
> linear
> default linux
>
> image="/boot/wmlinuz-2.4.2-2"
> label="linux"
> read-only
> root="/dev/hda5"
>
>
>
> Is there anuone who could help a fresh linux man?
I've seen the same problem and solved it by adding the following to my
lilo.conf (assumed that your Win2000 is on /dev/hda1):
other=/dev/hda1
label=Windows2000
That worked.
Ciao,
Frank
------------------------------
From: "You, Jin-Ho" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.help,comp.os.linux.misc,comp.os.linux.networking
Subject: Re: /etc/shadow password encrypted and not
Date: Sat, 26 May 2001 16:55:15 +0900
> Is there a way to set a password at the command line that comes over as
> encrypted in shadow?
Use the command, chpasswd.
ex)
# useradd foo
# echo "foo:foo1234" | chpasswd
See also "newusers"
Bye!
Jin-Ho You
------------------------------
From: [EMAIL PROTECTED] (Paul Colquhoun)
Crossposted-To: comp.os.linux.help,comp.os.linux.misc,comp.os.linux.networking
Subject: Re: /etc/shadow password encrypted and not
Reply-To: <[EMAIL PROTECTED]>
Date: Sat, 26 May 2001 08:10:07 GMT
On Sat, 26 May 2001 13:30:56 +1000, Dean Thompson <[EMAIL PROTECTED]>
wrote:
|
|Hi!,
|
|> Can someone give me a reason why when using RedHat's User Manager, new
|> accounts have the password encrypted in /etc/shadow, but users created
|> with useradd at the command line have clear text passwords in ..shadow?
|>
|> Is there a way to set a password at the command line that comes over as
|> encrypted in shadow?
|
|Yes, you are using the useradd -p parameter I suspect. Useradd expects an
|encrypted password as the parameter to the -p option. If you want to set the
|user password from the command line, you will want to create the user account
|and then issue a "passwd" command at the command line.
|
|Failing that, you will have to write your own little program which uses the
|"crypt()" function call and returns the encrypted string. From there you can
|use the string as a parameter to useradd.
If you write the script in Perl (and probably Python) there is a crypt function
just for this purpose. You will need to look up the manual for it, and read the
description of 'salt' and how it works.
|The "-p" parameter is normally used within programs which actually add a user
|to the system. The program itself generates the encrypted password and then
|passes it in as a parameter to the useradd program which creates the user.
--
Reverend Paul Colquhoun, [EMAIL PROTECTED]
Universal Life Church http://andor.dropbear.id.au/~paulcol
-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-
"Before you criticize someone, you should walk a mile in their
shoes. That way, when you criticize them, you're a mile away,
and you have their shoes."
------------------------------
From: "alik blochin" <[EMAIL PROTECTED]>
Subject: IRQ change
Date: Sat, 26 May 2001 11:49:31 +0200
hi folks
my ethernet and sound card (on board VIA AC'97)
are sharing one irq 11
how do i change it?
do i have to mess with bios setup
or do it manually in linux ?
------------------------------
From: Dean Thompson <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.admin,comp.os.linux.networking,comp.os.linux.redhat
Subject: Re: Do I need to allow UDP port 520 connections through?
Date: Sat, 26 May 2001 18:51:45 +1000
Hi George,
> Every 30 seconds or so, I get a log message like this in /var/log/messages:
>
> May 26 02:29:58 www kernel: gShield / default drop: IN=eth0 OUT=
> MAC=ff:ff:ff:ff:ff:ff:00
> :c0:6a:93:b8:13:08:00 SRC=11.22.33.44 DST=11.22.33.46 LEN=72 TOS=0x00
> PREC=0x00 TTL=64
> ID=3575 PROTO=UDP SPT=520 DPT=520 LEN=52
>
> So it looks like the router is sending out broadcast packets every few
> seconds, and my iptables (gShield) is dropping the packet and logging it.
>
> 1) Does anything bad happen if my Linux box drops these broadcast packets
> that the DSL router is sending out? (for instance, will the router
> eventually assume that the Linux box is turned off, and stop sending
> regular traffic to it?) If that's true, would something like this solve
> the problem without opening my system up to attack?
If your system is not going to accept routing broadcasts from remote routers
and hence there is no need for your own routing table to be updated, you can
ignore these broadcasts. It only becomes an issue if you are running a
routing daemon locally and require updates.
> 2) If it IS ok for my Linux box to ignore these broadcasts, is this the
> best way to tell iptables to ignore the packets (without constantly sending
> a log message to /var/log/messages):
iptables -A INPUT -p udp -s 11.22.33.44 -d 11.22.33.46 --sport
> 520 --dport 520 -j DROP
Yep, you could just drop it silently and not have your /var/log/messages file
fill up. This will have no impact on your system, as your system is already
denying the packets as it stands now.
See ya
Dean Thompson
--
+____________________________+____________________________________________+
| Dean Thompson | E-mail - [EMAIL PROTECTED] |
| Bach. Computing (Hons) | ICQ - 45191180 |
| PhD Student | Office - <Off-Campus> |
| School Comp.Sci & Soft.Eng | Phone - +61 3 9903 2787 (Gen. Office) |
| MONASH (Caulfield Campus) | Fax - +61 3 9903 1077 |
| Melbourne, Australia | |
+----------------------------+--------------------------------------------+
------------------------------
From: Nils Holland <[EMAIL PROTECTED]>
Subject: Re: How to use lpr to print postscript file ?
Date: Sat, 26 May 2001 10:24:41 +0200
Eric Chow wrote:
> Hello,
>
> How can use lpr to print postscript file or pdf file to printer ?
You need ghostscript and something like apsfilter. Have a look at the Linux
Printing HowTo. As always, I don't remember the URL where you can find it
(there are many!) but you can just open up a search engine and search for
"Linux Printing Howto". That shoule do it.
Nils
--
==========================================================
Nils Holland - [EMAIL PROTECTED]
NightCastle Productions - Linux in Tiddische, Germany
http://www.nightcastleproductions.org
"They asked me where this earthquake would begin,
I offered to let them feel my pulse."
==========================================================
------------------------------
From: [EMAIL PROTECTED] (loki)
Crossposted-To: alt.linux,aus.computers.linux,comp.os.linux.development.apps
Subject: Re: howto move the errors from gcc to a file?
Date: 26 May 2001 09:13:13 GMT
David. E. Goble <goble@gtech> wrote unto us:
>Hi all;
>
>I am just beginning to try programming in linux (redhat).
>
>My problem is when I use gcc ...etc it produces a scolling list of
>errors. How can I move or pipe the errors to a file. ie something like
>
> gcc -o hello.c > error.txt?
As a final tip to add to the others, sometimes it is nice to both view and
save the output of a program. The little utility 'tee' is handy for this.
You can use it like this:
gcc -o testprog test.c 2>&1 | tee out.log
The 'tee' program will save what it receives on standard input to the named
file, as well as printing it to the screen. This often gives you the best
of both worlds with regard to viewing and saving of errors.
--
loki
eloki/at/dingoblue.net.au
Dare I disturb the universe? You bet I do! :)
------------------------------
From: Ray <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.x
Subject: starting apps on E16 bootup
Date: Sat, 26 May 2001 10:41:32 +0100
hi folks
is there anyway to get E16 to start apps once it boots - i'm thinking of
starting gkrellm for example - without hacking the xinitrc files etc, ie
in the same way E can automatically start up Epplets that were started
in the previous session
thanks for any advice
ray
------------------------------
From: Juergen Sauer <[EMAIL PROTECTED]>
Crossposted-To:
comp.os.linux.x,comp.os.linux,comp.os.linux.questions,comp.os.linux.portable,linux.dev.laptop,linux.redhat.install
Subject: Re: HP n3310 laptop
Date: 26 May 2001 09:12:41 GMT
Jonathan Tester <[EMAIL PROTECTED]> schrieb
am Sat, 26 May 2001 05:09:48 GMT in comp.os.linux:
> I am trying to install Redhat 7.1 on HP Paivilion laptop n3310.
> Has anybody done this before successfully?
> I would be very grateful for any advise?
Asked HP before ?
That's manufacturer's task. If HP can't help you, return the device.
mfG
Jojo
--
J�rgen Sauer - AutomatiX GmbH, +49-4209-4699, [EMAIL PROTECTED] **
** Das Linux Systemhaus - Service - Support - Server - L�sungen **
http://www.automatix.de to Mail me: remove: -not-for-spawm- **
------------------------------
From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Subject: Re: How to configure HUGE swap?
Date: Sat, 26 May 2001 12:14:04 +0200
Milica Medved <[EMAIL PROTECTED]> wrote:
> I am putting together an AMD 1.3GHz machine with 1.5Gb RAM,
> for processing 64Mb+ data sets. It will run Red Hat 7.1.
> With a 75Gb hard drive, I have plenty of space to spare BUT, I am
> worried about performance, since the memory/swap size is so huge.
Swap? You should never be using swap. It works at the speed of the
disk, which is maybe 100 times slower than memory.
> QUESTIONS:
> 1) Will a 1.5Gb swap partition work fine, or would it be too large?
It is too large.
> I am worried about seek times or other things I can't even imagine yet.
> Would three 512Mb partitions work faster?
Not if they are on the same disk/controller.
> 2) Will creating multiple partitions (e.g. 3x1.5Gb) work faster/slower
> then a single partition of a) 1.5Gb; b) 4.5Gb?
NO (how could it? All accesses go through the same physical device).
> I know that splitting swap partitions accross multiple physical drives
> improves performance, but I will only have one, so that's not an issue.
You could have none, near as anything, if you plan on any kind of speed
optimization!
> Basically, I'd go for, say, 3 or 4 1.5Gb swap partitions, but I am afraid
> of ruining the performance by an overkill, or simply of not optimizing it
> out of pure ignorance. I am NOT worried about waisting hard drive capacity.
> If you can help with advice, thanks.
Don't do this. You have it arse-backwards. Swap is not a concern.
Memory and disk are. Optimize those, not the thing you use when they
fail!
Peter
------------------------------
From: kari savolainen <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.x
Subject: Re: starting apps on E16 bootup
Date: Sat, 26 May 2001 11:53:27 GMT
Ray wrote:
> is there anyway to get E16 to start apps once it boots - i'm thinking of
> starting gkrellm for example - without hacking the xinitrc files etc, ie
> in the same way E can automatically start up Epplets that were started
> in the previous session
In my honest opinion the best way to start applications on X startup IS
editing .xinitrc, at least for me epplets sometimes start in completely
wrong places, there might extra epplets that I didn't want etc. But
anyway, you can make any appliction start on E startup with the
'Remember' setting.
Alt-Click on the application's titlebar, select 'Remember...' and on the
dialog click 'Restart application on login'.
# kari
------------------------------
From: "Matt Ritchie" <[EMAIL PROTECTED]>
Subject: Re: Compaq CD-ROM drive for Redhat 7.0
Date: Sat, 26 May 2001 21:54:59 +1000
Hi,
I've just started trying to install Redhat 7 on an old P1 90Mhz, I
have a similar problem. I need to use a boot disk to start the installation
as my cd-rom does not boot. In the setup when it asks whether the data is
on a SCSI cd or Other. I do not have the device driver and have been looking
all night for one. The cd-rom is a Creative Quad Speed, running off the IDE
channel of a Vibra16 sound card. I have tried it off the secondary IDE
channel on the motherboard with the same results.
Any help or direction would be greatly appreciated as i am about to go and
spend money on a new box if this doesn't work out soon.
Thankyou,
Matthew Ritchie
"Dean Thompson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
>
> Hi!,
>
> > I am a newbie. I am trying to install Redhat 7.0 on my
> > Compaq Deskpro XL 5100. But the CD-ROM can not be detected
> > by the booting process.
> >
> > I have not HD space for HD installation.
> >
> > Can anybody tell me how to get Compaq CD-ROM drive for Linux?
> > or tell me how to detour this? It uses SCSI.
>
> The first challenge will be working out whether or not your SCSI adapter
is
> supported by Linux. If it is, then you might have to boot the
installation
> from a floppy disk and enter the text method of installing redhat. You
will
> then need to enter the advanced method of installing Linux (it is one of
the
> options from the install script from memory). From there you should be
able
> to specify which adapter you want to load. I know that I had to get my
SCSI
> controller identified through this approach, it didn't just happen
> automatically.
>
> You might like to check out the HARDWARE-HOWTO at http://www.linuxdoc.org
and
> see whether the hardware is supported.
>
> See ya
>
> Dean Thompson
>
> --
>
+____________________________+____________________________________________+
> | Dean Thompson | E-mail - [EMAIL PROTECTED]
|
> | Bach. Computing (Hons) | ICQ - 45191180
|
> | PhD Student | Office - <Off-Campus>
|
> | School Comp.Sci & Soft.Eng | Phone - +61 3 9903 2787 (Gen. Office)
|
> | MONASH (Caulfield Campus) | Fax - +61 3 9903 1077
|
> | Melbourne, Australia |
|
>
+----------------------------+--------------------------------------------+
------------------------------
From: Steve Martin <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Re: broken ppp
Date: Sat, 26 May 2001 08:13:16 -0400
dekcarc wrote:
> big problems getting ppp to work over here...could use some help at this
> point (10+ hours put into this so far). i upgraded pppd to 2.4.0 and went
> to compile kernel 2.4.4 (up from 2.2.16).
You might need to make some changes in /dev per the info in
/usr/src/linux/Documentation/Changes. I too had trouble getting
ppp to work under 2.4-series kernels, turned out I had missed a
vital step in the process, went back and followed the instructions
in Changes regarding PPP, it came up like a charm.
> i went back to my old kernel (2.2.16) and wvdial misbehaves the same as
> under 2.4.4. kppp, though, reports "this kernel has no ppp support" with
> 2.2.16.
This relates to the above, I had a similar error message. I
double-checked
the kernel config, I did in fact have PPP support compiled in, so I was
really at a loss. The changes I mentioned above cleared the problem up.
Hope this helps.
------------------------------
From: John Hasler <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc
Subject: Re: HELP formated drive
Date: Sat, 26 May 2001 12:22:08 GMT
Robert writes:
> Anyway, someone here will probably know a better way using linux.
If _all_ you did was delete a partition or alter the partition table in
some way you can recover your data by simply recreating the partition with
Linux fdisk. Messing with the partition table does not touch the data in
the partition.
--
John Hasler
[EMAIL PROTECTED]
Dancing Horse Hill
Elmwood, Wisconsin
------------------------------
Date: Sat, 26 May 2001 23:49:43 +1000
From: faeychyld <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc
Subject: Re: HELP formated drive
Douglas Gouty wrote:
>
> HELP...
>
> I have accidentally formatted one of my data drives.
>
> I was doing a reinstall of SUSE 7.0 to a new ATA-100 drive and still had
> one of my data drives attached. I was watching TV while I was selecting
> partitions and formatting and accidentally selected my data partition as
> well. As soon as it hit the data drive I noticed it and killed the power.
> Not quick enough though. <arrrggg> So I have lost some very important
> account and contact data that had not been backed up as recent as I had
> hoped. I am looking for some utilities to recover from the partial format.
> Any help would be appreciated.
>
> Doug
You might read " man mke2fs " refer to option "-S"
and "man e2fsck" refer to option "-b"
You never know!!!
I know, I wish I had tried them.
bon chance
--
-
-
-
Regards F
------------------------------
** 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.setup.
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-Setup Digest
******************************