Linux-Misc Digest #732, Volume #25 Mon, 11 Sep 00 08:13:04 EDT
Contents:
lpd printing - RH 6.1 (Christoph Kukulies)
Re: subnet problem (Bento Loewenstein)
lost interrupt (Jim Lee)
refresh zip drive contents? (Christian Verbeek)
Re: cdrecord screwing up X? (muzh)
Mounting root on a loop device (file)? (Leo Liberti)
initial cursor location at boot (jarne)
Re: buffer_dirty - what's the @#$%? (Kasper Dupont)
Re: subnet problem (M. Buchenrieder)
Re: ~user www directories needed (Gareth)
LD_LIBRARY_PATH problem ([EMAIL PROTECTED])
2.2.17 & nfsd ("Ross Goodley")
Re: Zip 100 Parallel Port Drive ("Peter T. Breuer")
LD_LIBRARY_PATH problem ([EMAIL PROTECTED])
Re: how can I delete blank line? (Johan Kullstam)
Re: Origin of the GNOME name & logo ? ("Peter T. Breuer")
Re: Opinions: An Adequate Starter System? ("Peter T. Breuer")
Re: Zip 100 Parallel Port Drive ([EMAIL PROTECTED])
Re: End-User Alternative to Windows (D. Spider)
----------------------------------------------------------------------------
From: Christoph Kukulies <[EMAIL PROTECTED]>
Subject: lpd printing - RH 6.1
Date: 11 Sep 2000 08:33:14 GMT
We have an HP4050 printer (double sided b/w) printing.
We are printing to that printer via one RH 6.1 host.
Very often it happens, that one job prints on the backside of
the last page of the previous job, which is unpleasant, e.g.
someone is getting the curriculum vitae of his colleague
printed on the last page of his program listing.
--
Chris Christoph P. U. Kukulies [EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Bento Loewenstein)
Subject: Re: subnet problem
Date: Mon, 11 Sep 2000 08:32:29 GMT
On Mon, 11 Sep 2000 14:27:37 +0800, "Hello World" <[EMAIL PROTECTED]>
wrote:
>so what is the network and broadcast address for the first and last subnet?
>thanx!
Do a binary conversion. A sub-netmask 255.255.255.192 would be like:
11111111.11111111.11111111.11000000
The first 26 bits of the IP addres makes the network address, and the last
6 the host address. With this setup you can use all four networks, with
the following addresses (using a subneted C class with the addres
192.168.1.0 as example):
Network 1:
Network Address: 192.168.1.0
Broadcast Address: 192.168.1.63
Network 2:
Network Address: 192.168.1.64
Broadcast Address: 192.168.1.127
Network 3:
Network Address: 192.168.1.128
Broadcast Address: 192.168.1.191
Network 4:
Network Address: 192.168.1.192
Broadcast Address: 192.168.1.255
To see this look at the bit pattern of the last octet. The part of it that
adresses the host (last six bits) will be referencing to the subnet
itself if turned all to 0 or to all the hosts on the subnet if shifted to
1.
So, if you're sending a packet to 192.168.1.67, you're sending it to the
host addres 3 in the subnet 192.168.1.64. To see this you just make a
logical OR operation betwen the network address and the host address like
this
11000000.10101000.00000001.01000000 OR
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
network bits
00000000.00000000.00000000.00000011
^^^^^^
host bits
======================================
11000000.10101000.00000001.01000011
which equals to 192.168.1.67.
As you can see, you can use all 4 subnetworks with this setup.
If you're planning to connect this subnetworks to a router ou or gateway
to make them talk to each other, remember that you don't need
neccessarilly to set the correct netmask on all the hosts (but it's
advisable), but the router/gateway MUST know that this is a subneted C
class, or it may not work.
BTW, you're gona lose 8 addresses in this setup, which are the 4 network
ones and the four broadcast ones. This ones CAN NOT be used as hosts. If
you set a host with an address like 192.168.1.64 IT WILL NOT WORK.
Bento
>
>"Christoph Lechner" <[EMAIL PROTECTED]> ���g��l��
>news:[EMAIL PROTECTED]...
>> Hello World schrieb:
>> >
>> > if i use the mask 255.255.255.192 to split a class c network into 4
>subnet,
>> > some people say that the first and subnet cannot be used because it
>contains
>> > the network and boardcast address. is it right? if i use all 4 subnet,
>will
>> > there be any problem? thanx.
>> AFAIK it isn't a problem! But you can't use the first address in the first
>> subnet and the last address of the fourth subnet coz of network and broad-
>> cast addresses.
>>
>> Regards
>> - C. Lechner
>
>
------------------------------
From: Jim Lee <[EMAIL PROTECTED]>
Subject: lost interrupt
Date: Mon, 11 Sep 2000 01:53:51 -0700
I installed Mandrake 7.1 in a IBM Thinkpad 400Mhz 64MB RAM /dev/hda1 has
Windows 98 (2.1GB 58% used), Linux /dev/hda5 (2.7GB 49% used)at runlevel
3. When not in used I exited X Window and automatically goes to standby
mode after X # of minutes. Yesterday I left it while in X Window and
went to sleep then all hell broke loose. Even left at Unix login prompt
(X Window exited, nothing running) and automatically go to sleep/standby
mode after 15 minutes, at wake it says 'lost interrupt'. I can't
Ctrl+Alt+Del but flip the switch. Does anyone have this experience?
------------------------------
From: Christian Verbeek <[EMAIL PROTECTED]>
Subject: refresh zip drive contents?
Date: Mon, 11 Sep 2000 18:01:18 GMT
dear newsgroup,
i have an intern scsi zip 100 drive. i copy some files to it, using my=20
linux computer. then i erased these files and copied some other stuff to=
=20
it with my nt laptop. back on my linux pc i still see the files i had=20
removed before with my laptop and i do not see the new files. then i did=
=20
a reboot of the linux system and after this i see the new files. is ther=
e=20
some kind of cache one can force to update?
thanx for answer, c.
------------------------------
From: muzh <[EMAIL PROTECTED]>
Subject: Re: cdrecord screwing up X?
Date: Mon, 11 Sep 2000 21:47:08 +1200
How much memory do you have? How much Swap memory do you have?
In my case similar problems disappeared when I increased my Swap memory
to 512Mb, and I ensured that my Swap partition was on a drive that was
not forever switching itself off.
Sometimes when X needs more memory -- it needs it fast!
Jehsom wrote:
>
> Just today, I tried burning a CD for the first time since I rebooted 45
> days ago, and all of a sudden, X started messing up. Things stopped re-
> freshing on the screen. e.g., xmms would be playing, but would appear to
> be stopped. Or with windowmaker, when I switched desktops, the name of the
> desktop that fades away when switching would just stay there.
>
> Anyone experienced this? I'm using a Plextor 8/4/32A (IDE) and a RIVA 128
> video card, as well as an Abit KA7-100 motherboard.
>
> Thanks,
> Moshe
>
> --
> jehsom@ angband.org cc.gatech.edu polter.net shaftnet.org nullity.dhs.org
> wreck.org bellsouth.net resnet.gatech.edu burdell.org yo.dhs.org gooning.org
> usa.net togetherweb.com resnet.gatech.edu; gte741e mj116 @prism.gatech.edu;
> jacobsonconsulting@ usa.net; ICQ 1900670
--
Never trust a man in a suit --
cll
------------------------------
From: Leo Liberti <[EMAIL PROTECTED]>
Subject: Mounting root on a loop device (file)?
Date: Mon, 11 Sep 2000 10:57:06 +0100
Hi everyone. Is it possible to use
the initrd to mount the root fs on
a loop device (i.e. a file)?
Leo
------------------------------
From: jarne <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.help
Subject: initial cursor location at boot
Date: Mon, 11 Sep 2000 10:04:03 GMT
I have recently recompiled my kernel so that it has a slick ( and huge)
logo for when it starts ( the boot logo)
It is 1152 x 768 (is in 1024 X 768 so that there is still room to see
what services are being started)
the problem is that the cursor is starting right in the middle of the
image and continues to the bottom of the screen. that is really ugly.
When I use a small image (say 80 high) the cursor has no prob starting
after the logo.
is there some way that I can get the cursor to start below the logo...
either by hacking the code or (preferably) as a kernel arg.
thanks in advanced
PS
does anyone know how to get a RIVA128 based card to start in
1152x864(144 cols, 108 rows) @ 32 bit color without black screening on
me
Jarne Cook
[EMAIL PROTECTED]
------------------------------
From: Kasper Dupont <[EMAIL PROTECTED]>
Crossposted-To:
comp.os.linux.hardware,comp.os.linux.questions,comp.os.linux.development.system
Subject: Re: buffer_dirty - what's the @#$%?
Date: Mon, 11 Sep 2000 11:50:28 +0200
Lurch wrote:
>
> Hello,
>
> to make sure the umount is done after the copy, you can use the "&&" instead
> of ";" (the second instruction won't start executing before the first one
> has terminated successfully
>
> i.e. mount /mnt/fd && cp /mnt/fd/* /prj && umount /mnt/fd
>
With ; commands are not executed in parallel.
seperating with & gives parallel execution
separating with ; gives serial execution, and continues on errors
separating with && gives serial execution, and stops on errors
[EMAIL PROTECTED] wrote:
>
> was accessed) (if you interrupt it while it is writing to the fat
> sector(s) on the floppy, it will probably not just be a bad time stamp)
> and if you interrupt while it is writing to the floppy the record on the
> floppy may be faulty.
FAT does not have read time stamps, so reading from a FAT disk will
not result in any write opperations. Ext2 timestamps readings and
also mounts, so mounting an ext2 filesystem rw will always result
in write opperations, on my system the write opperations will be
finished before umount returns. (The same is true when remounting ro.
I'm using Red Hat 6.0, there might be systems with other behaviours.)
Ken Walter wrote:
>
> In a properly designed file system, caches should be written out
> to removable media as quickly as possible. If the user manages
> to remove the media before everything is written, the system should
> request the media be reinserted and then finish.
> Otherwise the removal should be an automatic dismount.
> Anything else is user unfriendly.
I agree. Unfortunately the only OS i know where this is properly
implemented is Amiga OS. From multiple sources I have heard that
the PC floppy controller is not good enought to do that kind of
things.
Brian V. Smith wrote:
>
> In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (William
>Burrow) writes:
>
> |> This would be nice, but under certain weird circumstances the user
> |> copying to the media may not be in control of the media. Technically,
> |> removable media should be lockable such that someone with access to the
> |> media cannot remove it while it is mounted.
>
> You mean like the floppy drive on the Mac? I've always hated it's fascistic policy
> of not being to pop out the floppy by pushing a button, but for *nixes it makes
> sense because of the caching.
IMHO the right solution is that the OS can lock the disk in the drive,
but
when the eject button is pressed the OS should be informed. The OS
should
then umount and eject the disk as soon as possible. On single user
systems
the user can be requested to reinsert the disk if needed again.
The only problem is how to make sure the eject button will eject the
disk
when there is no power on the system. But some cleverly designed
mechanics
should do the job.
--
Kasper Dupont
------------------------------
From: [EMAIL PROTECTED] (M. Buchenrieder)
Subject: Re: subnet problem
Date: Mon, 11 Sep 2000 06:24:30 GMT
"Hello World" <[EMAIL PROTECTED]> writes:
>if i use the mask 255.255.255.192 to split a class c network into 4 subnet,
>some people say that the first and subnet cannot be used because it contains
>the network and boardcast address. is it right?
[...]
No. Please check RFC1878 for further references.
Michael
--
Michael Buchenrieder * [EMAIL PROTECTED] * http://www.muc.de/~mibu
Lumber Cartel Unit #456 (TINLC) & Official Netscum
Note: If you want me to send you email, don't munge your address.
------------------------------
From: [EMAIL PROTECTED] (Gareth)
Subject: Re: ~user www directories needed
Date: Mon, 11 Sep 2000 11:08:04 GMT
Reply-To: [EMAIL PROTECTED]
I believe [EMAIL PROTECTED] (William W.) said on Wed,
06 Sep 2000 18:09:13 GMT, that:
>In our last episode (06 Sep 2000 15:46:52 GMT),
>the artist formerly known as LFessen106 said:
>>>I am using apache as my web server and i have received requests from users
>>>for
>>>their own /home/httpd/html/~username directories. How is this achieved
>>>whilst giving them cgi-perl, servlets access too.
>>>Thanks.
>>>K.
>>>
>>
>>Create a subdirectory for them in the default apache directory system, and then
>>make a symbolic link between one in their home directory to the one you made
>>for them under apache's directory...
>>
>>For instance, if your apache directory is /home/httpd you'd create a directory
>>for charlie as /home/httpd/charlie, and then go to charlie's home directory
>>(/home/charlie) and make a symbolic link directory for him to put his html
>>files in by doing a 'ln -s /home/httpd/charlie html', which would create a
>>directory under his home directory called html - (html would really be a link
>>to the /home/httpd/charlie directory but charlie wouldn't know it). He can
>>then put his web stuff in his html directory and then view them by going to
>>'http://your_server_name_here.whatever/charlie'.
>
>Isn't Apache's standard configuration to treat hostname/~user as a link
>to ~user/public_html? If not, it can be set in the Apache configuration
>files. That's a much less messy way to do it. Users can then create a
>directory called "public_html", set the permisions to least 644, and
>they're set.
>
First off I'm pretty much a newbie, but although reading the documentation,
which does moreorless state what you did, I also went with the symbolic link
option as this saves having to make the whole /~users directectory chmod 777
(I still don't fully understand inodes, links etc etc.)
>However, that doesn't solve the problem of giving CGI access. You need
>to configure Apache to allow users to run CGI scripts from their own
>directories. I haven't done this, but it should be somewhere in the
>Apache configuration files too. However, this isn't a good idea, because
>scripts run with the permission of the Web server (which is root, if
>you've configured Apache badly, or some dedicated user like www if
>you've done it right.) In either case, it means that a user's CGI script
>can potentially damage files not belonging to the user.
>
True, Ive got the cgi-bin going for the overall httpd directory,
but am having dificulty understanding how to get the /~users/cgi-bin
working.
>Instead, you should install cgiwrap, which allows the Web server to run
>CGI scripts with the UID of the user who owns them. This means that, at
>worst, a user's badly-designed CGI program could wipe out, reveal or
>otherise compromise the user's own files but not those of anyone else.
>
This too, is part of the learning curve.
>In general, you should keep tight control over who can write programs
>that the Web server can execute. CGi programs need to be carefully
>security-checked, because they can be run by anonymous outside users,
>and they *don't* have to be invoked by submitting a Web form -- they can
>be directly supplied with any kind of data that the user wants.
>
>
Keep on Groovin'
gareth
http://www.backstage.co.za/gareth/
------------------------------
From: [EMAIL PROTECTED]
Subject: LD_LIBRARY_PATH problem
Date: Mon, 11 Sep 2000 10:58:36 GMT
Hi all,
I developed a Java application and I created a libShmMem.so using
C program and JNI(Java Native Interface). In my Java application I am
using System.loadLibrary("ShmMem") to load the .so lib and I am calling
the native methods which are in libShmMem.so. In command line I set
LD_LIBRARY_PATH=<the libShmMem.so file path> and I ran the program, it
is working fine.
I want to run the same in the Netscape Browser using Javascript, the way
in which I am running other Java applications using Javascript in
Netscape Browser. Netscape browser is not taking the LD_LIBRARY_PATH and
not able to load the .so file (based on the exception I am guessing).
Even I put the LD_LIBRARY_PATH in /etc/profile and rebooted and I
checked using "set" command, and ran the program, it is not working.
Also I put the .so file in /usr/lib dir., netscape is not taking that
lib.
I want to know, the way how netscape is loading other .so or .o libs. If
I follow the same way to load my .so, it may work for me.
Please treat it as an urgent, and could you please tell me What I need
to do.
Thanks in advance,
Xavier Babu
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: "Ross Goodley" <[EMAIL PROTECTED]>
Subject: 2.2.17 & nfsd
Date: Mon, 11 Sep 2000 12:21:07 +0100
Sorry if this is a bit obvious, (if so by all means tell me which FM I
should R), gave my machine a shiny new 2.2.17 kernel this w/e, but
attempting to run nfsd gives me ;-
nfssvc function undefined
now i definitely enabled nfs support in make menuconfig, and yet plainly,
looking in the nfsd subdirectory, no compilation has occurred in there
(distinct lack of .o files) can some kind soul tell me what I have to enable
in the config to get the little git back?
aTdHvAaNnKcSe
R
------------------------------
From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware,comp.os.linux.development.system
Subject: Re: Zip 100 Parallel Port Drive
Date: 11 Sep 2000 11:27:47 GMT
In comp.os.linux.misc Michel Talon <[EMAIL PROTECTED]> wrote:
: In comp.os.linux.development.system Peter Rodriguez <[EMAIL PROTECTED]> wrote:
:> changed the PNP/PCI Config from PNP OS Installed NO to YES.
: This is in principle BAD. For OS such as Linux FreeBSD and even WinNT i think
: the correct setting is PNP OS NO, so that the BIOS initializes as much cards
: as it can.
Except that the meaning of this switch depends on the bios. Turning it
to No can mean that it switches off access to PnP. That's taiwanese for
you!
Peter
------------------------------
From: [EMAIL PROTECTED]
Subject: LD_LIBRARY_PATH problem
Date: Mon, 11 Sep 2000 11:18:58 GMT
Hi all,
I developed a Java application and I created a libShmMem.so using
C program and JNI(Java Native Interface). In my Java application I am
using System.loadLibrary("ShmMem") to load the .so lib and I am calling
the native methods which are in libShmMem.so. In command line I set
LD_LIBRARY_PATH=<the libShmMem.so file path> and I ran the program, it
is working fine.
I want to run the same in the Netscape Browser using Javascript, the way
in which I am running other Java applications using Javascript in
Netscape Browser. Netscape browser is not taking the LD_LIBRARY_PATH and
not able to load the .so file (based on the exception I am guessing).
Even I put the LD_LIBRARY_PATH in /etc/profile and rebooted and I
checked using "set" command, and ran the program, it is not working.
Also I put the .so file in /usr/lib dir., netscape is not taking that
lib.
I want to know, the way how netscape is loading other .so or .o libs. If
I follow the same way to load my .so, it may work for me.
Please treat it as an urgent, and could you please tell me What I need
to do.
Thanks in advance,
Xavier Babu
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
Subject: Re: how can I delete blank line?
From: Johan Kullstam <[EMAIL PROTECTED]>
Date: Mon, 11 Sep 2000 11:39:03 GMT
[EMAIL PROTECTED] writes:
> metoo:
>
> grep "."
>
> (can't beet this one ;)
clever!
grep .
there's no need to protect dot from the shell.
> Peter
>
> In article <[EMAIL PROTECTED]>,
> Johan Kullstam <[EMAIL PROTECTED]> wrote:
> > "choi jinhyuk" <[EMAIL PROTECTED]> writes:
> >
> > > I wana delete all blank lines .
> > > succeded in searching like this
> > > %s/^$//g
> > > but blank line was not deleted. how can I?
> > > and how can I do it in sed and using grep?
> > > thanks
> >
> > grep -v '^$'
> >
> > sed '/^$/d'
> >
> > --
> > J o h a n K u l l s t a m
> > [[EMAIL PROTECTED]]
> > Don't Fear the Penguin!
> >
>
> --
> -rw-r--r-- 1 kruse users 66 Nov 2 11:50 .signature
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
--
J o h a n K u l l s t a m
[[EMAIL PROTECTED]]
Don't Fear the Penguin!
------------------------------
From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux
Subject: Re: Origin of the GNOME name & logo ?
Date: 11 Sep 2000 11:30:47 GMT
David Dorward <[EMAIL PROTECTED]> wrote:
: Arctic Storm wrote:
:>
:> Is GNOME an acronym? If so, what does it stand for?
:> Where/how did GNOME get the logo of a food print? Why 4 toes? What animal
:> is it? Who came up with this logo? Why?
: GNU Network Object Model Environment
: http://www.gnome.org/faqs/users-faq/
No, It means Gnome is Not Only My Environment.
Peter
------------------------------
From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware
Subject: Re: Opinions: An Adequate Starter System?
Date: 11 Sep 2000 11:35:39 GMT
In comp.os.linux.misc Bento Loewenstein <[EMAIL PROTECTED]> wrote:
: On Sat, 20 May 100 03:35:11 GMT, [EMAIL PROTECTED] wrote:
: Avoid Debian and Slacware if you're new to Linux. This distros are suposed
: to be used by experienced users. They're extremelly hard to install and
: configure, and most of the administrative tasks are done by hand. RedHat
: is a breeze to install if compared with Debian and Slack, and it has
I've never understood the basis for that part of the assertion: RH has
never installed itself "automatically" for me, whereas slack has worked
liek a charm every time.
: linuxconf as default admin utility, which makes it easyer to maintain.
Unfortunately, for anyone with half a brain, redhats interposition of
guis between yourself and what you're trying to do makes it harder to
administer, not easier. One only has to learn one rule for adminstering
text files: (a) read the FILE section in manual or strace the
executable to find out which the file is; (b) read the file comments;
(c) edit the the contents to taste; (d) restart the executable in question.
You have to learn the names of dozens of guis and learn and manoever around
tricky hidden menu systems to work via a gui.
: SuSe has a similar tool called Yast and Caldera has COAS wich are very
: easy too.
: If you want an easy distro based on Debian Corel is Ok. It's one of the
: easyest I've ever seen. Another option is the brazilian distro Conectiva.
In fact, it is debian, cut down to 200MB or so, and with a graphical
install screen added.
: It's based on RedHat, but is as easy a Corel to install, and comes with
: liunuxconf too.
Peter
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: Zip 100 Parallel Port Drive
Crossposted-To: comp.os.linux.hardware,comp.os.linux.development.system
Date: 11 Sep 2000 08:05:09 -0400
In comp.os.linux.hardware Michel Talon <[EMAIL PROTECTED]> wrote:
> Sorry, had not seen this one, but i think SPP will be slow. EPP would be
> better.
Well, ZIP drives are known not to work well or at all with ECP.
------------------------------
From: [EMAIL PROTECTED] (D. Spider)
Crossposted-To: alt.os.linux,comp.os.linux.advocacy
Subject: Re: End-User Alternative to Windows
Date: Mon, 11 Sep 2000 12:03:30 GMT
It appears that on Sat, 09 Sep 2000 12:17:39 GMT, in
comp.os.linux.advocacy "Ingemar Lundin"
<[EMAIL PROTECTED]> wrote:
>
>> 500 mill for windows? Um, not. Maybe for all computers* in the world.
>> Linux has WAY more than 2.5 mill. Estimates from '96 put Linux at 10
>> mill. I'd place it at 20 mill. This is for users not servers+users.
>
>Thats right Mark, 500 milj Windows...since the introduction of Windows 95,
>MS has sold 150 milj copies of Windows 9X (3 milj retail included), and to
>that add Windows version 1.0-3.11 + Windows NT 3.01-4.0 + Windows 2000
>(execeeding 2 milj so far).
>How is that for a sucess story?
>
>Altough i admit that Windows 1.0-3.11 was really DOS with a GUI
So is Windows 9x
#####################################################
My email address is posted for purposes of private
correspondence only. Consent is expressly NOT given
to receive advertisements, or bulk mailings of any
kind.
#####################################################
------------------------------
** 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
******************************