Linux-Misc Digest #167, Volume #25               Tue, 18 Jul 00 11:13:02 EDT

Contents:
  Re: strange tar behaviour (-ljl-)
  kernel hangs in sock_recvmsg (Hoch Martin)
  Re: Just a Few Kwestionz.....(long)
  Re: New User: INSTAL ON WIN98 (FAT32) partition (Peter Lairo)
  Semaphore and kernel 2.2.* problem ... ([EMAIL PROTECTED])
  Re: screensaver or similar generating problem (Fernando)
  Re: screensaver or similar generating problem (Fernando)
  Recent version of cdar (Christopher Wong)
  downloading linux to Cirrus Logic EP7211 board (Pratish Halady)
  FS:  Win4Lin CD - Windows emulator for Linux ("Larry")
  Re: New User: INSTAL ON WIN98 (FAT32) partition (Dances With Crows)
  Re: New User: INSTAL ON WIN98 (FAT32) partition (Todd Knarr)
  CDRECORD MESSAGE ("Gotzon Berrojalbiz")
  SQUID ... s-l-o-o-o-o-o-w! ("Micromans")
  K shell ([EMAIL PROTECTED])
  Re: Are there substantially more/less RPMs for RH or SuSE? (aflinsch)
  Re: mgetty and dial in (John-Paul Stewart)
  Re: Linux Friendly DSL ISPs ("Jan Schaumann")
  NFS (sylvain hutchison)

----------------------------------------------------------------------------

From: -ljl- <[EMAIL PROTECTED]>
Subject: Re: strange tar behaviour
Date: Tue, 18 Jul 2000 12:59:01 GMT

In article <8kv0pp$l9k$[EMAIL PROTECTED]>,
  "Andreas Moroder" <andreas[nospam][EMAIL PROTECTED]> wrote:
> Hello,
>
> If I write two "sessions" to tar session on the norewind scsi device,
> ex.
> tar cvf /dev/nst0 dir1
> tar cvf /dev/nst0 dir2
>
> all works well.
>
> I I want to read the data written, I must call three times
>
> tar tvf /dev/nst0
>
> the first time it reads the dir1
> the second simply does nothing
> and the 3th reads dir2.

This is expected behavior; use 'mt' to position the tape before reading.
There appears to be several different behaviors for tar; BSD, SysV,
... .

Kai says "There is no good standard for tape device behaviour."

--
Louis-ljl-{ Louis J. LaBash, Jr. }


Sent via Deja.com http://www.deja.com/
Before you buy.

------------------------------

Date: Tue, 18 Jul 2000 15:20:32 +0200
From: Hoch Martin <[EMAIL PROTECTED]>
Crossposted-To: 
ch.comp.os.linux,comp.os.linux.embedded,maus.computer.linux,ch.comp.os.linux,comp.os.linux.development.system,alt.os.linux,z-netz.alt.linux,tu-graz.betriebssysteme.linux,at.linux
Subject: kernel hangs in sock_recvmsg

Hello !

I have a problem with stopping a kernel thread in a driver module. The
thread is receiving data all the time and should be stopped by
kill_proc(...). Then the function waits till the thread has stopped
operation using a semaphore.
This mechanism works fine almost the time, but in one of 10 to 100 cases
this mechanism failes. The thread is stuck in sock_recvmsg(..) and
down(..) never returns.
Below is an excerpt of the code. I'm using kernel 2.10

Does anybody have an idea ?

thanks,
Martin

The code of the thread
....
    for (;;)
    {
        oldfs = get_fs();
        set_fs(get_ds());

        iov.iov_base = buf;
        iov.iov_len = MAX_SIZE;
        memset( &msg, 0, sizeof(msg));
        msg.msg_namelen = sizeof( struct sockaddr_in );
        msg.msg_flags = MSG_DONTWAIT;
        msg.msg_iov = &iov;
        msg.msg_iovlen = 1;
        result = sock_recvmsg( rs->socket, &msg,
                    MAX_SIZE, MSG_WAITALL);
        set_fs(oldfs);
        if (signal_pending( current ))
        {
            up( &rs->waiting_sem );
            break;
        }
        ... do something with data ...
    }


stopping the thread:
    kill_proc( rs->pid,  SIGUSR1, 1 );
    down( &rs->waiting_sem );



------------------------------

From: <[EMAIL PROTECTED]>
Subject: Re: Just a Few Kwestionz.....(long)
Date: Tue, 18 Jul 2000 09:23:44 -0400


N/A <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> i have a few questions about Corel Linux Delux if you could answere them
> maybe:
>
>
> 1) how do i change that virtual desktop stuff so i can see my whole
> desktop display in one screen?


    If the resolution you are seeing is 1024x68,
    put

    virtual 1024 768


    in the section that specifies the modes and color depth. They are
probably at the  bottom of the XF86Config file, which would be in /etc/X11
or in the X11 install directory.

You can cycle through the screen resolutions with
ctrl+alt+ kp_plus
             + kp_minus

I am not sure if the alt is needed but you can give it a try.



> 2) what does xvidtune do and how can i run it?

That allows you to control the monitor.
You can move the screen around, shrink or expand it, ( both x and y) , and
it will also print out the mode line that you need to put into the
XF86Config file to get that particular mode.
But it will work off of the existing modes defined in the file.
If you want to peg the vert. refresh at 85 hz ( or any other) , then read
the docs that's in X's doc directory for how to set up a mode line.
Build a mode line with your desired refresh rate, and some sane values for
the other columns. Then get into X, open a terminal and type xvidtune. Now
move the screen around and reshape it till you like it.There should be a
button saying something about mode line. Press that, and the line matching
the current mode will show up on the x-term window. Make sure you copy it
down.
Exit from X, ( if all else fails ctrl+alt+bksp will kill it imedeately.)
and then edit XF86Config's section where the different resolutions are
setup, and putin the mode line with some unique string. Even "My85Hzsetting
" is fine, so long as you put the same string into the display section.

Add the resolution at the begining because when X comes up, it uses the
first resolution by default, but you can change that.

By default you are at 8bpp, 640x480
There are ways to change this but it's in the X or XF86Config man page.




> 3) when running XF86Setup how do i apply the changes or does it do it
> automitically?
>From what I have seen, you have to quit and restart the XServer.

> 4) how can 'virtual' help me?

I have no idea but here's what I do:

on screen 1, gnotepad is open to the file I'm messing with. on the same
screen I have a xterm with gcc. There's another xterm for launching the app.
There's a netscape window for reading the online docs.
with 1600x1200, I use a 1024x768 screen. I move over to netscape to read
things.
Then I move back to the editor. And then to the consoles.

On screen 2 I have winamp playing something,
On  screen 4 I have  mail and news clients running.



> 5) are there any linux commands that would be helpful?

ls -al
lists all in long format

ls -al | grep ^d
Get a listing of all directories.

vi - very useful editor- simple, quick and the only one I use . Comes in
very handy when you type "linux single" at the lilo prompt to try to repair
someething that is preventing a normal boot up.


> thanx so much.

Not so fast.

If you are going to be messing around with X's config then do yourself a
favour and set up to boot in to the text mode .
to set linux to boot into the text mode ( run level 3 ),
you could try typing "init 3" in an xterm.There is an init file it could be
inittab or something like that.
The file will have detailed instructions on changing the run level.

run level 3 is text mode

5 is XWindows.

I think 6 is reboot :)


Once logged in, type startx to start the xserver.
when you exit X, type log out at the command prompt.





between 5  & 3 the only difference is the UI mode.


Before messing with the system, get familiar with the command line. and Get
a handle on vi.

Simple commands  ( note the case of the letter):
"i" - insert at current pos.
"A" - append to end of line.

r- replace the character the cursor is standing on.
R- start replacing from the current character onwards.

When you are typing, you are in "edit" mode. to go back to command mode
 where you can scroll around, delete lines etc.. ) hit esc. If it beeps, it
means it is already in command mode.

movement keys - usually the arrow keys are already mapped. but just in case
:

    k                              up
h        l                    left     right
     j                              down


to save :
go to command mode, ( always)
type ":w" and enter
that's colon-q

to write and quit
:wq

This next one is very important!!
to exit without writing the changes you have made
":q!" - that's an exclamation mark


it's been some time since I messed with X's configuration .
Set aside a few hours to mess with xvidtune. And backup the old config file.



Good luck.


> Posted via CNET Help.com
> http://www.help.com/



------------------------------

From: Peter Lairo <[EMAIL PROTECTED]>
Subject: Re: New User: INSTAL ON WIN98 (FAT32) partition
Date: Tue, 18 Jul 2000 15:26:35 +0200

wow,

thanks for the great info. i have a few small follow-up questions. see
below...

Dances With Crows wrote:
> 
> >2. how do i delete linux from my fat32 C: drive?
> 
> Just delete the (very large) file the partitionless install creates on
> your disk.

does the install only create ONE file, or did you mean directory
(C:\linux)???

> >6. if linux is on its own partition with its own file system, can linux
> >WP then still read my win WP documents on my C: drive (fat32)?
> 
> Yes.

I always thought that two partitions with two DIFFERENT file systems on
them were INVISIBLE to each other. are you sure about this one (sorry
for doubting)?

8. if i boot to the linux patition, is it then my C: drive? if yes, what
drive letter is my win98 partition while in Linux?

9. do i only have to create ONE new partition for Linux?

10. how/where is the boot manager (on what partition) for me to decide
what OS to boot?

11. would installing Linux to fat32 greatly hamper Quake3 performance
under Linux (OK, i outed myself as a gamer)?

-- 

Thanks,

Peter Lairo

------------------------------

From: [EMAIL PROTECTED]
Subject: Semaphore and kernel 2.2.* problem ...
Date: Tue, 18 Jul 2000 13:17:20 GMT

Hi there !

I need to use semaphore to synchronize a PhP page and a C program
on my linux box (kernel 2.2.14 or 2.2.17pre2)

But it doesn't work :-( The same pages / program on a machine with
kernel 2.0.36 work fine.

Is there any solution ? Patches ? ideas ?

Please Help Me, i'm running out of time ...

Pascal


Sent via Deja.com http://www.deja.com/
Before you buy.

------------------------------

From: Fernando <[EMAIL PROTECTED]>
Subject: Re: screensaver or similar generating problem
Date: Tue, 18 Jul 2000 09:28:37 -0500

I have no mouse.  This is an "embebed" machine.

Dmitri V wrote:

> Well, have you tried connecting mouse and moving it a little bit?
>
> HTH
>
> Dmitri



--
These are my personal opinions.
Email: sanabriaf at yahoo dot com



------------------------------

From: Fernando <[EMAIL PROTECTED]>
Subject: Re: screensaver or similar generating problem
Date: Tue, 18 Jul 2000 09:29:46 -0500

Already tried.

Akira Yamanita wrote:

> Try "setterm -blank 0"



--
These are my personal opinions.
Email: sanabriaf at yahoo dot com



------------------------------

From: [EMAIL PROTECTED] (Christopher Wong)
Subject: Recent version of cdar
Reply-To: [EMAIL PROTECTED]
Date: Tue, 18 Jul 2000 13:31:59 GMT

Does anyone know where I can get a more recent version of cdar? This is
a program that allows tar-like access of a CD RW. Freshmeat lists this
program as being at version 0.1.0, but the download link does not
work. The cdar homepage (http://ferret.lmh.ox.ac.uk/~pdw/cdar/) only
offers version 0.0.2. Thanks in advance.

Chris

------------------------------

From: Pratish Halady <[EMAIL PROTECTED]>
Crossposted-To: 
comp.os.linux.help,comp.os.linux.questions,comp.os.linux.setup,comp.os.linux.hardware,comp.os.linux.portable
Subject: downloading linux to Cirrus Logic EP7211 board
Date: Tue, 18 Jul 2000 13:40:00 GMT

Hi everyone!

I'm trying to build and download Linux to the Cirrus Logic EP 7211 ARM
board.  I have a problem with doing the actual downloading.  I am using
a linux program that downloads the code, I found this program in the
ecos source code, to download it I concatenate the ANGEL rom with the
zImage rom that I created of the linux kernel, and try to download that.

When I boot up the board, the Angel starts cause a little green light on

the board tells me so, but the kernel doesn't boot up. Can anyone please

tell me what I did wrong here? Is there a special way to put the angel
rom and the zImage rom together? Or if you have a better way of
downloading the Linux kernel to this board, please let me know. Thanks!

Pratish Rao Halady


------------------------------

From: "Larry" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup
Subject: FS:  Win4Lin CD - Windows emulator for Linux
Date: Tue, 18 Jul 2000 08:56:15 -0500

I have a Win4Lin CD that I purchased but have decided not to use it.  Works
great, I installed it with Windows 98 and all applications I tried ran fine.

If you interested in purchasing it please email me with an offer.  Retail is
$49.95 but I will take substantially less (as in around $20).

Larry




------------------------------

From: [EMAIL PROTECTED] (Dances With Crows)
Subject: Re: New User: INSTAL ON WIN98 (FAT32) partition
Date: 18 Jul 2000 13:57:18 GMT
Reply-To: [EMAIL PROTECTED]

On Tue, 18 Jul 2000 15:26:35 +0200, Peter Lairo <[EMAIL PROTECTED]> wrote:
>> >2. how do i delete linux from my fat32 C: drive?
>> Just delete the (very large) file the partitionless install creates on
>> your disk.
>does the install only create ONE file, or did you mean directory
>(C:\linux)???

Hmm.  I thought it created a very large file that contained the ext2
filesystem, and a small .BAT that executed LOADLIN from DOS.  I guess
different loopback installs do things differently.  If it creates
C:\LINUX\ and C:\LINUX.BAT, then just delete the file and the directory,
no problem.

>I always thought that two partitions with two DIFFERENT file systems on
>them were INVISIBLE to each other. are you sure about this one (sorry
>for doubting)?

Yes.  Linux can read almost every filesystem known.  (Write support is a
bit trickier, but writing to FAT32 has been tested extensively and works
well.)  Windoze cannot see ext2 filesystems directly, but you can use
the explore2fs utility to copy files between ext2 and FAT32.

>8. if i boot to the linux patition, is it then my C: drive? if yes, what
>drive letter is my win98 partition while in Linux?

http://linuxnewbie.org/ and read up.  The Windoze concept of "drive
letters" is seriously brain-damaged and limiting.  Linux, like all
Unices, does away with that by making one disk partition your root
partition and mounting it as / .  You can then mount an arbitrary number
of disk partitions/network filesystems/removable media under /
--generally, people make a partition for / , a partition for /home, and
a partition for /usr.  You can have as many partitions as you like, and
there are some advantages to splitting the system up (better security,
safeguard against power failures making the system unbootable.)

>9. do i only have to create ONE new partition for Linux?

It is a good idea to create at least 2 or 3.  You need a root partition,
and you'll want a swap partition and probably a /home partition.

>10. how/where is the boot manager (on what partition) for me to decide
>what OS to boot?

LILO allows you to boot Windoze or Linux, or you can use LOADLIN to
accomplish something similar.  LILO is installed in the bootsector of a
primary partition or in the MBR, while LOADLIN is a DOS utility that
executes before Windoze starts up.

>11. would installing Linux to fat32 greatly hamper Quake3 performance
>under Linux (OK, i outed myself as a gamer)?

Don't know for sure.  I never noticed much disk access while playing the Q3
demo, but I'm not a hardcore gamer and I really didn't care for Q3.

-- 
Matt G|There is no Darkness in eternity/But only Light too dim for us to see
If the chances are a million to one against something happening, the
odds are 50/50 that it will.  Especially if that something is a bad
thing.

------------------------------

From: Todd Knarr <[EMAIL PROTECTED]>
Subject: Re: New User: INSTAL ON WIN98 (FAT32) partition
Date: 18 Jul 2000 14:13:59 GMT

In comp.os.linux.misc <[EMAIL PROTECTED]> Peter Lairo <[EMAIL PROTECTED]> wrote:
> I always thought that two partitions with two DIFFERENT file systems on
> them were INVISIBLE to each other. are you sure about this one (sorry
> for doubting)?

That's partly a holdover from DOS/Windows concepts, where they map
partitions to drive letters and you can only have 1 C: drive at any
given time ( eg. if you have 2 primary partitions on the first hard
drive, one ( the one you booted from ) will be C: and the other will
be invisible ).  Windows also can't see partitions it can't understand,
so it won't map drive letters for ext2 partitions.

Linux uses a completely different scheme that makes every single partition
available as a device regardless, and you then mount those partitions into
the filesystem ( eg. if you had two primary partitions, first one FAT32
and second one ext2, the second would be /dev/hda2 and probably get
mounted as / and the first would be /dev/hda1 and you could mount it as
/win98 ). The devices are there even if Linux doesn't understand the
filesystem, although if it doesn't understand it you can't mount it.

* Advantage to the Linux way: no more drive letters, adding and removing
partitions doesn't affect where/how other partitions appear.
* Disadvantage to the Linux way: user needs to understand more about what's
on their disks to set it up.

-- 
I'm a science officer. It's my job to have a better idea.
                                -- Dax

------------------------------

From: "Gotzon Berrojalbiz" <[EMAIL PROTECTED]>
Crossposted-To: 
alt.comp.linux,alt.os.linux,alt.os.linux.mandrake,comp.os.linux.help,comp.os.linux.setup
Subject: CDRECORD MESSAGE
Date: Tue, 18 Jul 2000 05:56:46 +0200

I get this message when I do "cdrecord -scanbus":

0,0,0     0) 'IDE-CD  ' 'R/RW 4x4x24     ' '1.01' Removable CD-ROM
cdrecord: Warning: controller returns wrong size for CD capabilities
page.
 0,1,0     1) 'LG      ' 'CD-ROM CRD-8483B' '1.00' Removable CD-ROM

What kind of problem is this? Does anybody know any solution?



------------------------------

From: "Micromans" <[EMAIL PROTECTED]>
Subject: SQUID ... s-l-o-o-o-o-o-w!
Date: Tue, 18 Jul 2000 07:18:50 -0700

I have installed the latest caching proxy-server "squid" STABLE version from
www.squid-cache.org and have it up and running. I've configured it to permit
all http access so that a client can access any web sites. Am running Linux
RedHat 6.0 using pppd to connect to a dial-up ISP on a 56k external USR
modem (ttyS1) that probably gets 33k at best of times. For the client I am
running NT 4.0.

PROBLEM: Even though I can occasionally get certain web pages others wait
for a very long time and then return a "connection timeout" (this error
message is sent to the client from squid) at the client. Other times I wait
a long time and eventually - clunk - the web page fills in. Occasionally if
I press F5 to refresh it helps. Usually nothing helps. Yet many pages do
fill in normally. Some pages that never fill in can be pinged successfully
directly at the Linux box, and if I reboot the Linux box and choose NT
Workstation (on the same box, with the same modem) I can connect to the ISP
and browse all sites successfully.

I have tried various squid options with no luck so far. I can request a page
and if it is going to time out I can simultaneously observe from the lights
on my modem that squid is doing nothing at all, (when squid does return a
page I will immediately see steady activity on the modem).

I have checked out various threads on the web and find a large number of
posts indicating that squid is often very slow and needs tuning. I find a
few posts that claim squid needs no tuning at all.

Is anyone familiar with this package? Does anyone have any tips or
suggestions for isolating the problem? It works, but not good enough to use
in practice. Can anyone point me to links or threads that might be useful?
Thanks.

Micromans



------------------------------

From: [EMAIL PROTECTED]
Subject: K shell
Date: Tue, 18 Jul 2000 14:07:56 GMT

  I need to use ksh for Unix hw.  Could someone let me know how to
install or download one.  I have redhat 6.2 standard version.



                                                  Thank you.


Sent via Deja.com http://www.deja.com/
Before you buy.

------------------------------

From: aflinsch <[EMAIL PROTECTED]>
Subject: Re: Are there substantially more/less RPMs for RH or SuSE?
Date: Tue, 18 Jul 2000 10:16:52 -0500

blowfish wrote:

> 
> If compiled from source yourself. It doesn't matter if it's for i286 or
> i100,000,086. It's configured *exactly* to *your* machine.
> 
> Now, What's better?
> 

I agree with you on the compile from source, but that looses whatever
advantages that rpm has (notably the ease of finding exactly what is
installed on the system).

Personally I prefer rebuilding rpms from a src rpm, then installing.
that gives me the advantages of both worlds.

------------------------------

From: John-Paul Stewart <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Re: mgetty and dial in
Date: Tue, 18 Jul 2000 14:44:23 GMT



Bill Unruh wrote:
> 
> In <[EMAIL PROTECTED]> John-Paul Stewart <[EMAIL PROTECTED]> 
>writes:
> 
> >Sounds right to me.  Is the modem internal or external?  My USR External modem
> >has a light labelled 'AA' for AutoAnswer.  If your modem has such a light and it
> >is NOT lit, then the modem has not been told to answer.
> 
> Using mgetty, the modem should NOT answer. mgetty works by seeing the
> RING output of the modem and then answering itself. If the modem
> autoanswers, mgetty will not work.

My apologies for the misinformation.  My hardware manual is rather
Windows-centric.  I was unaware of mgetty's requirement.  Again, my apologies.

------------------------------

From: "Jan Schaumann" <[EMAIL PROTECTED]>
Subject: Re: Linux Friendly DSL ISPs
Date: Tue, 18 Jul 2000 10:53:43 -0500

It was Monday, July 17, 2000 11:47 PM that [EMAIL PROTECTED] (Hal
Burgiss) spoke the words:

> I am working on putting together a list of Linux friendly xDSL ISPs. By
> 'friendly', I mean not openly hostile. No hassles or hoop jumping during
> pre-install or installation. Ethernet modem _must_ be an option. Tech
> support should at least assist with line and modem problems, and not come
> on with 'well we don't support Linux, so sorry'. Also would be interested
> to know:
> 
> Static IP available? PPPoX? Server policy? Timeouts or session limits
> (intentional ;)? Bandwidth usage metered per month? LAN/NAT supported?
> Self install available?

check out http://www.speakeasy.net (or .org)
I have 4 Static IP's,
run my own http-,mail- and nameserver,
have a tiny little LAN,
unlimited bandwidth,
am allowed to run whatever I want (gnutella,napster,game-server,chat-client etc)

-Jan

-- 
Jan Schaumann <http://www.netmeister.org>

In Greene, New York, it is illegal to eat peanuts and walk backwards on
the sidewalks when a concert is on.

------------------------------

From: sylvain hutchison <[EMAIL PROTECTED]>
Subject: NFS
Date: Tue, 18 Jul 2000 10:59:40 -0700

Hi, I'm using Red Hat 6.1 at work, and I need to know where Automounter
and NFS or YP are mounted,

anyone knows??

Thanks a lot,

Sly.


------------------------------


** 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
******************************

Reply via email to