Linux-Misc Digest #65, Volume #24 Fri, 7 Apr 00 01:13:03 EDT
Contents:
Re: Get Rid of MSh*t ^M's <CR> from a file... (Dances With Crows)
Re: How to add more swap space to an existing system? (Dances With Crows)
Graininess toward one side of the screen under X (Will Robinson)
Re: Floppy Disk Access under Linux (Paul Wilson)
Re: Root Passwords (Michael Erskine)
Re: BOOKS ON LINUX ? ("Pencil Necked Geek")
query on tar backup ([EMAIL PROTECTED])
Re: How to add more swap space to an existing system? (Leonard Evens)
Re: Kernel help >>>> (ajn)
Re: pfat linux hangs during boot ([EMAIL PROTECTED])
Re: Review: Corel Office 2000 (Frank Pittel)
MySQL question (Patrick M. Geahan)
Re: kernel questions (Anand Krishnamoorthy)
Re: Free Linux Books (Rod Smith)
Re: what important I missed for bash? (Ken Pizzini)
Re: BOOKS ON LINUX ? ("jeff")
XFree86 4.0 problems ("dangerboy")
----------------------------------------------------------------------------
From: [EMAIL PROTECTED] (Dances With Crows)
Subject: Re: Get Rid of MSh*t ^M's <CR> from a file...
Date: 06 Apr 2000 22:42:03 EDT
Reply-To: [EMAIL PROTECTED]
On Thu, 06 Apr 2000 23:23:05 +0100, Alan Fay
<<8cj2t3$jhd$[EMAIL PROTECTED]>> shouted forth into the ether:
>
>I'm using Linux 'diff' and 'patch' to merge my source code
>changes into MSh*t source code files. I take the files from
>the MS machine and 'diff -c' them.
>Unfortunately, the MSh*t ^M's are causing me problems.
>How can I easily get rid of these from all files in a
>directory? (recursively?)
#!/bin/bash
# Call this script from the top of whichever dir you want to
# remove all the ^Ms from.
for i in `ls -R` ; do
dos2unix $i;
done
...this assumes you have "dos2unix", and it assumes you have no binaries
in that directory. You may want to change `ls -R` to `ls -R *.c *.h` or
something. dos2unix is a relatively standard part of Unix; if it's not
there, you can do the same thing using tr like so, replacing the dos2unix
line with this:
cat $i | tr -d '\r' > temp.txt ;
mv -f temp.txt $i ;
(when your default mode of interaction with the machine is programmable,
now *THAT'S* a User Environment!)
--
Matt G / Dances With Crows \###| Programmers are playwrights
There is no Darkness in Eternity \##| Computers are lousy actors
But only Light too dim for us to see \#| Lusers are vicious drama critics
(Unless, of course, you're working with NT)\| BOFHen burn down theatres.
------------------------------
From: [EMAIL PROTECTED] (Dances With Crows)
Subject: Re: How to add more swap space to an existing system?
Date: 06 Apr 2000 22:48:44 EDT
Reply-To: [EMAIL PROTECTED]
On Thu, 06 Apr 2000 22:10:14 -0400, mike
<<[EMAIL PROTECTED]>> shouted forth into the ether:
>
> I think that I might need more swap space and I don't want to
>reinstall Redhat 6.1. I have some free space on my hard drive
>so I was wondering If it was possible to add more swap space
>to my system.
Use fdisk or cfdisk, and add another "Linux Swap" type partition. Then
"mkswap /dev/HDXY" Simple, eh? You might need to add a line to /etc/fstab
like so:
/dev/hdXY none swap defaults 0 0
X being the drive letter, Y being the partition number you made using
fdisk, of course. Immediately after following these steps, you can
"swapon /dev/hdXY" to activate the swapspace. Everything will work
transparently upon the next reboot.
If you didn't have any non-partitioned disk space and still needed to do
this, you'd do it like so:
# dd if=/dev/zero of=/swapfile bs=1024 count=16384 (16384=16M; modify
for your needs)
# sync
# mkswap /swapfile
# swapon /swapfile
And the /etc/fstab line would have /swapfile in place of /dev/hdXY. HTH,
HAND, bonne chance.
--
Matt G / Dances With Crows \###| Programmers are playwrights
There is no Darkness in Eternity \##| Computers are lousy actors
But only Light too dim for us to see \#| Lusers are vicious drama critics
(Unless, of course, you're working with NT)\| BOFHen burn down theatres.
------------------------------
From: Will Robinson <[EMAIL PROTECTED]>
Subject: Graininess toward one side of the screen under X
Date: Thu, 06 Apr 2000 19:43:10 -0700
The right three-quarters of my screen have a slight but noticable
horizontal grain which gets more prominent further toward the right.
This problem is not present when running MS Windows. Are there settings
I could fool with in XF86Config or something to make this go away?
Right now I'm running at 1024x768 16bpp on a Guillemot Xentor 32 (NVidia
TNT2 chipset). Does anyone have any ideas?
Will Robinson
[EMAIL PROTECTED]
------------------------------
From: Paul Wilson <[EMAIL PROTECTED]>
Subject: Re: Floppy Disk Access under Linux
Date: Thu, 06 Apr 2000 23:03:13 -0400
==============AA6674B1A5EF4B36CF72ADE9
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi Bob,
Did you mount the floppy disk after formatting it? Before you can access
a disk, you have to mount its filesystem...floppies are (usually) not
mounted automatically. Try this command:
mount -t <filesystem> /dev/fd0 /mnt/floppy
where <filesystem> is the file system listed in /etc/fstab for your floppy.
The major filesystems (that I know about) are ext2 (second extended),
msdos, and vfat (windows).
Your floppy entry in /etc/fstab should look something like this (with your
appropriate filesystem in the third field):
/dev/fd0 /mnt/floppy ext2 noauto,owner 0 0
(Check and make sure this is set up before you issue the mount command)
When you get through using the disk, you should then unmount it. The
command is :
umount /dev/fd0
Of course, you can check the man pages for more info on these commands.
Good luck,
psw
Bob Moore wrote:
> [EMAIL PROTECTED]
>
> Hi I am fairly new to Linux, and I am running Mandrake Release 7.0
> (kernal 2.2.14-15mdk)
>
> I formatted a floppy disk using the following command:
>
> fdformat /dev/fd0H1440
>
> I watched as it formatted and verified 80 tracks etc.
>
> My problem is that I cannot seem to list any files that I copied across
> afterwards. Am I formatting it correctly?
>
> Bob Moore
>
> P.S. remove "xx" in above email address....
==============AA6674B1A5EF4B36CF72ADE9
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hi Bob,
<p> Did you mount the floppy disk after formatting it? Before
you can access a disk, you have to mount its filesystem...floppies are
(usually) not mounted automatically. Try this command:
<p> mount -t <filesystem> /dev/fd0 /mnt/floppy
<p>where <filesystem> is the file system listed in /etc/fstab for your
floppy. The major filesystems (that I know about) are ext2 (second extended),
msdos, and vfat (windows).
<p>Your floppy entry in /etc/fstab should look something like this
(with your appropriate filesystem in the third field):
<p>/dev/fd0
/mnt/floppy
ext2 noauto,owner
0 0
<p>(Check and make sure this is set up <u>before</u> you issue the mount
command)
<p>When you get through using the disk, you should then unmount it. The
command is :
<p>umount /dev/fd0
<p>Of course, you can check the man pages for more info on these commands.
<br>
<p>Good luck,
<br>psw
<br>
<br>
<p>Bob Moore wrote:
<blockquote TYPE=CITE>[EMAIL PROTECTED]
<p>Hi I am fairly new to Linux, and I am running Mandrake Release 7.0
<br>(kernal 2.2.14-15mdk)
<p>I formatted a floppy disk using the following command:
<p>fdformat /dev/fd0H1440
<p>I watched as it formatted and verified 80 tracks etc.
<p>My problem is that I cannot seem to list any files that I copied across
<br>afterwards. Am I formatting it correctly?
<p>Bob Moore
<p>P.S. remove "xx" in above email address....</blockquote>
</html>
==============AA6674B1A5EF4B36CF72ADE9==
------------------------------
From: Michael Erskine <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.networking,comp.os.linux.portable
Subject: Re: Root Passwords
Date: Thu, 06 Apr 2000 23:03:32 -0400
Great Idea!
A lot to be learned... hardware is cheap, knowledge is expensive. He
is collecting knowledge.
-m-
------------------------------
From: "Pencil Necked Geek" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.advocacy,comp.os.linux.hardware,comp.os.linux.help
Subject: Re: BOOKS ON LINUX ?
Date: Thu, 6 Apr 2000 22:02:18 -0500
> On Wed, 05 Apr 2000 00:09:37 +0200, Luca Marchese wrote:
> >ALL THE BOOKS ON LINUX IN THE WORLD ARE HERE
> >
ALL THE BOOKS IN THE WHOLE WORLD!?!?!?! WOWEEEEEEEE! THERE MUST BE
BAJILLIONS OF THEM!!! WAIT TILL I TELL ALL MY AIM BUDDIES ABOUT THIS!!!
------------------------------
From: [EMAIL PROTECTED]
Subject: query on tar backup
Date: Fri, 07 Apr 2000 03:04:43 GMT
we use tar back up for copying on to tapes as well cd's. when we take
backup the entire path name of the file is written to archive. when we
extract the file the path is again created under the current working
directory(cwd). we wish to create only extracted file in the cwd and
not with complete path.
we acheive it by extracting the file to STDOUT and then creating it in
the cwd. when extarcted file is compressed it is more complicated. can
this be minimised by an optional switch?
trust i have explained our requirement.
ramadurai r
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: Leonard Evens <[EMAIL PROTECTED]>
Subject: Re: How to add more swap space to an existing system?
Date: Thu, 06 Apr 2000 22:26:09 -0500
mike wrote:
>
> I think that I might need more swap space and I don't want to
> reinstall Redhat 6.1. I have some free space on my hard drive
> so I was wondering If it was possible to add more swap space
> to my system.
>
> Mike
You can create an additional swap file in an existing partition
without repartitioning. Do man mkswap.
--
Leonard Evens [EMAIL PROTECTED] 847-491-5537
Dept. of Mathematics, Northwestern Univ., Evanston, IL 60208
------------------------------
From: ajn <[EMAIL PROTECTED]>
Subject: Re: Kernel help >>>>
Date: Fri, 07 Apr 2000 13:50:47 +1000
Benson Lei wrote:
>
> Hi,
>
> I would like to know how I customize( configure & re-compile ) my Kernel
> 2.2.14 for RH Linux V6.2 ??
>
> 1) do I need to configure the Kernel by using "/usr/src/linux/make
> menuconfig" when I use
> two PIII CPUs, since I found two PIII CPUs with X windows without
> compilation ??
> 2) If yes, do I need to run " make dep; make clean; make; make modules;
> make modules_install" ??
> ( since I found the steps are different when I read different books,
> and I could not find any V6.1 or V6.2 )
>
> 3) Do I need to do: such as
> a. cp /usr/src/linux-2.x.x/arch/i386/boot/bzImage
> /boot/vmlinuz-2.x.x
> b. cp /usr/src/linux-2.2.14/System.map /boot/System.map-2.x.x
> c. ln -s /boot/System.map-2.x.x /boot/System.map
> d. in lilo: linux=/boot/vmlinuz-2.x.x.
> e. ........
>
> I just want to know if I need to configure & re-compile the Kernel ( not the
> case : kernel upgrading ) ??
>
> Thank you for your help
Usually when I'm building a kernel i got for 'make mrproper;make
config;make bzImage; make modules; make modules_install'
then copy the image and system map to /boot and reconfigure LILO.
ajn
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: pfat linux hangs during boot
Date: Fri, 07 Apr 2000 03:52:12 GMT
I used phatlinux for a few months and the very first thing I had to do
was understand that in the linux.bat, you have to put the correct amount
of ram. It is set for 128 meg, but I only have 64 meg. I edited this
with notepad to 64 meg and saved it. The next time, it booted up fine. I
find Peanut-Linux 7.6 to be a better dos-loop version that phatlinux,
but phat does have linuxconf. If that is not the problem, then please be
more specific on what you did according to the install text that came
with it. I forgot the password was "phat" and couldn't login first time!
In article <[EMAIL PROTECTED]>,
Mel <[EMAIL PROTECTED]> wrote:
> pfat linux hangs during boot with following msg.
> Kernal Panic: Attempted to kill the idle task!
> In swapper task - not syncing
>
> Any ideas?
> Thanks
>
> --
> Posted via CNET Help.com
> http://www.help.com/
>
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: Frank Pittel <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.advocacy
Subject: Re: Review: Corel Office 2000
Date: Fri, 07 Apr 2000 04:00:23 GMT
In comp.os.linux.misc Craig Kelley <[EMAIL PROTECTED]> wrote:
: [EMAIL PROTECTED] (David Steinberg) writes:
: [snip]
:> If it ever becomes reasonably stable, and if such ridiculous features can
:> be disabled, I'll give it another look. For now, there's no way I'd spend
:> $150 on that.
: I really don't use "productivity" <snicker> apps that much anyway. I
: just bought it to support Corel.
: Their first offering of a Linux distribution is *okay*, which is a lot
: better than other distributions have fared on their initial attempt.
: Their office suite is pretty bad right now, but they are pioneering
: the tools which are needed to port Windows applications to native
: Linux applications (without needing a new toolkit like Qt or
: Wxwindows).
I just got office 2000 today. While the installation went smoothly nothing else
would start. All I got was a window that told me a fatal error had occured and I
should contact corel it the trouble persists.
No explanation, nothing logged. All I got was a stupid popup window. Corel is going
to have to shed their ms windows mentality before I throw any more money their way!
--
Keep working millions on welfare depend on you
===================
[EMAIL PROTECTED]
------------------------------
From: Patrick M. Geahan <[EMAIL PROTECTED]>
Subject: MySQL question
Date: 7 Apr 2000 04:09:11 GMT
I've managed to forget the password for the root account to mySQL on my
Linux box. SInce I don't have much on there yet, I'm planning to simply
wipe the databases I've already created and start a fresh install.
The problem is, I can't seem to find where MySQL stores database files.
Does anyone know where these are kept and what they're called? I'm using
3.22.32 on RH6.1. Thanks for your help.
--
=======Patrick M [EMAIL PROTECTED]=======ICQ:3784715==========
Quote of the Week: "It looked just like Schindler's List out there!" -
lady on WGN TV News describing a house explosion.
------------------------------
From: Anand Krishnamoorthy <[EMAIL PROTECTED]>
Crossposted-To:
comp.os.linux.development.system,comp.os.linux.development.apps,comp.os.linux
Subject: Re: kernel questions
Date: Fri, 07 Apr 2000 09:49:39 -0400
==============8BE565C83B0427266FC32E25
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi Doug,
Pl. find my answers below:
Also, a way that I can resolve this value to find what
"vm_area_struct" references this portion of memory for the specific
process?
Answering your second Q first, to determine which Virtual Memory Area (VMA)
the address you retrieved it is only necessary to traverse the
vm_area_structs , it is not necessary to go through the page
table/ddirectories etc.
> In the kernel source, the "thread_struct" reflects has values that
> reflect the computers registers. One of these values is "eip", which is
> the value for the instruction pointer. Does anyone one know what level
> of the page tables (x86 architecture) this value refers to (pte, pmd,
> pgd)?
Any linear address , in your case that given by EIP , will be split into
three parts(I do not remember offhand how many bits each of the three has
out of the 32 bits).The first part will be the offset into the page
directory, (the base of which is pointed to by CR3 register).At this offset
in the page dir, the base address(physical) of the pmd can be found.The
second part of EIP will now be an offset into the pmd. At this offset, the
base (phy) address of the actual physical page in memory can be found. The
third section of the EIP is an offset into the page
Anand .K
[EMAIL PROTECTED]
==============8BE565C83B0427266FC32E25
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<HTML>
Hi Doug,
<BR>Pl. find my answers below:
<P><I>Also, a way that I can resolve this value to find what</I>
<BR><I>"vm_area_struct" references this portion of memory for the specific</I>
<BR><I>process?</I>
<BR>Answering your second Q first, to determine which Virtual Memory Area
(VMA) the address you retrieved it is only necessary to traverse the vm_area_structs
, it is not necessary to go through the page table/ddirectories etc.
<BLOCKQUOTE TYPE=CITE><I>In the kernel source, the "thread_struct" reflects
has values that</I>
<BR><I>reflect the computers registers. One of these values is "eip",
which is</I>
<BR><I>the value for the instruction pointer. Does anyone one know
what level</I>
<BR><I>of the page tables (x86 architecture) this value refers to (pte,
pmd,</I>
<BR><I>pgd)?</I></BLOCKQUOTE>
Any linear address , in your case that given by EIP , will be split into
three parts(I do not remember offhand how many bits each of the three has
out of the 32 bits).The first part will be the offset into the page directory,
(the base of which is pointed to by CR3 register).At this offset in the
page dir, the base address(physical) of the pmd can be found.The second
part of EIP will now be an offset into the pmd. At this offset, the base
(phy) address of the actual physical page in memory can be found. The third
section of the EIP is an offset into the page
<P>Anand .K
<P>[EMAIL PROTECTED]</HTML>
==============8BE565C83B0427266FC32E25==
------------------------------
Reply-To: [EMAIL PROTECTED]
From: [EMAIL PROTECTED] (Rod Smith)
Subject: Re: Free Linux Books
Crossposted-To: alt.linux,alt.os.linux,linux.ads,linux.misc,linux.redhat.announce
Date: Fri, 07 Apr 2000 04:36:15 GMT
In article <[EMAIL PROTECTED]>,
"Computer User" <[EMAIL PROTECTED]> writes:
> The following Linux books are available in digital format at www.ibooks.com
> for free:
>
> Maximum Linux Security
I haven't checked all the titles you listed, but I did check this one. It
appears that most or all of the chapters are mostly encrypted. An
occasional sentence comes through. Also, for some bizarre reason, some of
the chapters of this book have gotten mixed up with chapters from my own
_Linux: Networking for Your Office_ in the online garbled previews. As far
as I can tell, this site puts up mostly-garbled chapters as a sort of
preview to get people to buy the books. If there's a way to get the full
text for free, then as an author I'd have a problem with that.
--
Rod Smith, [EMAIL PROTECTED]
http://www.rodsbooks.com
Author of books on Linux networking & multi-OS configuration
------------------------------
From: [EMAIL PROTECTED] (Ken Pizzini)
Crossposted-To: comp.unix.shell,comp.os.linux.setup
Subject: Re: what important I missed for bash?
Date: 7 Apr 2000 04:39:29 GMT
Reply-To: [EMAIL PROTECTED]
On Thu, 06 Apr 2000 03:24:36 GMT, Chan Yick Wai <[EMAIL PROTECTED]> wrote:
>3) then I give bash dbup, script can start but at the end, it says
>:command not found
>'bup: line 19: syntax error near unexpected token `do
>'bup: line 19: `for fs in $CLSERV1FS; do
Check your script with something like "cat -v" or "sed -n l" to
see if you have any non-printing characters or escape sequences
in your script --- the above error message looks garbled in a
manner which suggests that you may have such.
--Ken Pizzini
------------------------------
From: "jeff" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.advocacy,comp.os.linux.hardware,comp.os.linux.help
Subject: Re: BOOKS ON LINUX ?
Date: Thu, 6 Apr 2000 21:56:16 -0700
<[EMAIL PROTECTED]> wrote in message news:8cjf17$7vp$[EMAIL PROTECTED]...
> In article <8ciap4$[EMAIL PROTECTED]>,
> Johannes Nix <[EMAIL PROTECTED]> wrote:
> > [EMAIL PROTECTED] (Steve) writes:
> > I think that the problem with books about Linux is that the subject is
> > changing far to fast for most books being useful for more than one or
> > two years. <snippage>
>
> Well, in that case any book on Windows is only good for about
> forty-eight hours.
That's absolutely untrue. I once had a Windows book that was good for TWO
SOLID WEEKS. If I've told you once, I've told you HUNDREDS of THOUSANDS of
times - Don't exaggerate.
-jeff :)
------------------------------
From: "dangerboy" <[EMAIL PROTECTED]>
Subject: XFree86 4.0 problems
Date: Fri, 7 Apr 2000 01:07:33 -0400
Just installed xfree86 4.0 and waddaya know it done broke my xwindows...the
install seems to go fine but when i run startx the msg:
"error opening SecurityPolicy file
/usr/X11R6/lib/X11/xserver/SecurityPolicy" appears...
Reinstalling xfree 3.3.6 makes xwindows work but i cant get my
gnome/enlightenment window manager to come up...
when i try to chang to the above directory i get the msg: "too many levels
of symbolic links"
anybody have a clue???
thanks!
------------------------------
** 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
******************************