Re: [expert] Backward compatibility

2001-10-26 Thread ddcharles

Hi,

If I am understanding your question correctly, you are looking for a
package that will offer compatibility for older apps (based on 2.1.x
glibc.  If that is the case, Mandrake DOES come with a similar package, it
is called:

compat-glibc-7.2-2.1.3.3mdk

HTH,
David Charles

On Thu, 25 Oct 2001, Biagio Lucini wrote:

 On Wed, 24 Oct 2001, Sergio Korlowsky wrote:

  On Wednesday 24 October 2001 06:34 am, you wrote:
   Dear All,
  
 I have the following problem. I would like to use on Mandrake 8.1
   an executable that has been compiled for RH6.2 (of course, I don't have
   the source code). I know this is possible under RH 7.2, thanks to the
   packages

 [...]

  Have you tried http://www.rpmfind.net
 

 Yes, it seems that only RH packages that stuff. I was wandering if
 Mandrake has something equivalent.

 Biagio









Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



RE: [expert] dual booting with Win2k

2001-10-24 Thread ddcharles

Hi,

Can you please do me a favour and let me know what you have in your
lilo.conf for the FreeBSD  OpenBSD entries?

Thanks,
David Charles

On Wed, 24 Oct 2001, Ralph Forsythe wrote:

 I'm actually running Mandrake 8.1, Win2k-server, FreeBSD, and OpenBSD all
 on the same laptop...  For some reason the redhat LILO doesn't like that
 so I was using the FreeBSD boot loader, but the mandrake version works
 beautifully since I've installed it.

 -rf

 On Wed, 24 Oct 2001, Ron Heron wrote:

  I have 8.1, W2k, and WinME on the same machine, but I just use lilo.  I
  installed 8.1 on top of the win2k and winme, and when it came to configure
  lilo, the only thing i did differently was to make windows the default.  I
  don't think you will have any problem using the standard install, but the
  Holt's approach is very interesting.  I have to try it :)







Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



[expert] external usb hard drive problems

2001-10-20 Thread ddcharles

Hi,

I have an external USB hard drive made by LaCie, which worked out of the
box, was automatically detected during installation, and is set up with
scsi emulation.  If I boot with the drive turned on, it is accessible as
sda1  sda5 (it is partitioned into 2 FAT32 partitions).  There are errors
when it first tries to mount, saying that the 2 devices do not exist, but
then (I think because it only turns on scsi emulation AFTER trying to
mount the drives) it tries a few seconds later in the boot sequence and is
successful.

My problem is as follows:  if the drive is NOT turned on at boot time, I
can NOT mount either of the partitions on the drive, getting an error
message saying that the devices do not exist.  The kernel modules for usb
scsi emulation are loaded (and I even tried removing and reinserting the
modules which I think are needed), but it just does not work.

I think (and please tell me if I am wrong or omitting something) the
modules that are used are usb-scsi usb-ohci and usb-storage (I think, am
not at home and doing this from memory).

The other question I have, although not as bad because it still works, is
the error message I get when the system boots (that I mentioned at the
beginning) where the mounting of the usb drive's partitions fails and then
a few seconds later succeeds.  Is this because  the system tries to mount
the scsi drives (sda1  sda5) BEFORE  the usb-scsi emulation is loaded?

I DO hope that someone can help me.

TIA,
David Charles




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] How do I play a .cgi file

2001-10-20 Thread ddcharles

Hi,

Although perl is probably the most common language used for CGI, it is a
big misconception that they are one and the same.  In fact, a CGI can be
coded in any language you choose, and a lot ARE coded in C/C++, as well as
python, I have even seen DOS BAT files used for GGI (usually as a wrapper,
but still...)

HTH,

David Charles


On Sat, 20 Oct 2001, Admin wrote:

 you don't play .cgi files...you call them, in your browser
 they are perl files for execution of other apps

 Gary Bond wrote:
 
  Can someone point me to the app/plugin that can play
  .cgi files?
 
  __
  Do You Yahoo!?
  Make a great connection at Yahoo! Personals.
  http://personals.yahoo.com
 

  Want to buy your Pack or Services from MandrakeSoft?
  Go to http://www.mandrakestore.com

 --
  http://www.myispnet.net 
 Admin
 [EMAIL PROTECTED]
 ICQ# 7110071
 MSN Messenger= [EMAIL PROTECTED]






Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



RE: [expert] external usb hard drive problems

2001-10-20 Thread ddcharles

Hi,

I read the man page and looked around a bit on the net, but am not sure
what I should do;  should I use the --preload switch, and if so, then for
which modules?

Thanks,
David Charles

On Sat, 20 Oct 2001, Jose M. Sanchez wrote:


 |
 |I wish *SOMEBODY* would include a USB kernel as an install
 |option! USB keyboard and mouse work a lot better if they are
 |available all through the boot process.  Also in regard to
 |your first question, it seems that the
 |USB has gotten a whole lot less unpluggable in 2.4.  Hint:
 |this is a step
 |backwards!
 |
 |mg
 |

 Including it in the kernel is not needed and/or superfluous...

 You can utilize mkinitrd to create a boot image (used automatically by
 the boot loader) that incorporates any modules that you need present and
 loaded during the first stage of the boot. Booting from a SCSI device
 requires this.

 There is no reason that you can use this to add in the USB drivers
 either. You could go as far as booting Linux from a USB hard drive
 (ugh!!).


 -JMS





Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] MandrakeLinux-8.1-Prosuite

2001-10-18 Thread ddcharles

Hi,

Could you please tell me where you saw this?

Thanks,
David Charles

On Thu, 18 Oct 2001, Sergio Korlowsky wrote:


 While checking some files, I noticed this 'New iso available from the
 mirror I always use.   What is the deal with this version now? .

 Is just the new Server-only version of Mandrake, soft of a replacemnt
 for Corporate Server?  If so... that's Great News!

 Sergio Korlowsky
 --

 --=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 Thank - you for contacting the SedeComp Communications Technical Support
 Team.
 Please click 'REPLY' when discussing this matter in further detail
 with us.
 Feel free to review our section on responses to common problems real soon @:
 http://www.sedecomp.linux-site.net | mailto:[EMAIL PROTECTED]
 We use and support Linux Mandrake  | http://www.linux-mandrake.com








Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] tar.gz???

2001-10-03 Thread ddcharles

Hi,

the tar program has a filter built into it that lets it zip using either
gzip/bzip2  (and I think zip also, but can't remember) at the same time
that it is creating the archive; to do so, type the following:

$ tar -cvzf foo.tar.gz foo
OR
$ tar -cvjf foo.tar.bz2 foo

the first line, using the z switch, will compress using gzip;  the
second line, using the j switch, will compress using bzip2.

HTH,
David Charles

On Wed, 3 Oct 2001, Franki wrote:



 Hi all,

 this is going to sound like a dumb question, but believe it or not, I have
 never done this before..

 I want to create .tar.gz files...

 to create a tar, I use tar -cvvf foo.tar foo/  to tar the foo directory
 (taken long ago from the readme)

 if I want to make that a tar.gz file, I assume I have another step?? tar
 alone doesn't seem to compress alot...

 so I would do what???

 tar -cvvf foo.tar foo/  gunzip?

 Ta,


 rgds

 Frank







Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] FTP Clients and d/l Speeds

2001-10-03 Thread ddcharles

Hi,

I would check to make sure that you aren't reading incorrectly; what Imean
is, that SOUNDS fine, when you consider that 1 kbyte = 8 kbits; IIRC, by
default WSFTP uses kbits (but it can be changed); also, USUALLY kbytes is
denoted with an uppercase B (i.e. kB or KB) whereas kbits is with a
small b (i.e. kb or Kb);

Anyways, 45 kBYTES is the same as 360 kBITS (45 * 8 = 360).

HTH,
David Charles

On Wed, 3 Oct 2001, David Paik wrote:

 When downloading a file on my LM8.0 box I can't get over 45Kps. I can
 connect to the same site on my win box using WSFTP and get 300-400 Kps. I
 tried lftp and get the same speed. Is there something I need to tweak to get
 the higher rate? Or is there something I am missing?

 Thanks!
 David






Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] C++ for newbies...

2001-10-02 Thread ddcharles

Hi,

You know the @INC perl var, that has all the dirs that should be looked
into for packages (for use, etc.)?  well, the #include iostream.h line
in your script (I am assuming there is such a line) is kind of like a use
CGI; line would be in a perl script, and just as perl searches the @INC
for CGI, the c compiler is searching for a header file named iostream.h.
As for why iostream.h could not be found, I do not know; what is in your
include path?

David Charles

On Tue, 2 Oct 2001, Franki wrote:


 Hi all,

 I want to start playing with C++, I have written a good many perl scripts
 and I think its time to tackle a compiled language, something to cater to
 speed requirements...

 I arrived at C++ or JAVA, so I rushed out and got books on both,, Java in a
 Nutshell, and Sams Teach yourself C++ in 24 hours...

 Now I actually find the C++ book easier to read, (after the camel book, its
 positively easy to read.)

 So I have decided to start with C++...

 now I have a few questions and I am hoping someone here could perhaps help
 me out here

 1. I just tried the hello world app on in the sames book out of curiosity
 and it told me that it couldn't find the include iostream.h  now my linux
 box was installed as a dev install and I basically installed anything that
 didn't conflict...

 There is no file called iosteam.h on that box, so I am assuming that its
 part of a windows package

 Does anyone have any recommendations for a windows and a linux compiler? I
 used g++ to try and compile hello world, what other choises do I have and
 what reasons would I choose one over the other...


 Ditto for the windows enviroment if anyone here has anything to do with
 it... (I just want to learn I don't care about the windows/linux/macos/etc
 etc... its just about me learning this..)

 I have actually found that book to be quiet readable, so if you are looking
 for a book on C++ you could do worse...

 its somethign of a shock to step out of nice sedate perl into c++, which is
 annoying because I want to learn c and Java immediatly afterwards, then ASP
 and some get better at PHP, I have alot of learning ahead of me...

 up till now, VB and perl were the only two languages (apart from html and
 Javascript) that I had any decent knowledge in...

 I think I should have started with C++ it would have been harder, but I
 would have found perl alot easier at first...
 not that it was all that hard anyway,, but c++ and java have more in common
 when either of them do with perl.,... and compiling and linking is all very
 new


 Any help would be most appreciative...


 rgds

 Frank







Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] Problems with 8.1 RC1, Anybody else?

2001-09-24 Thread ddcharles

Hi,

Can you explain why it is a sure-fire problem, or point me to an article
explaining it please?

Thanks,
David Charles



 When you are logged in and you right click on the desktop
  and select log off then select shutdown the system hangs on shutting down
  portmapper

 Are you trying to use nfs and reiserfs on the machine?  That is a sure-fire
 formula for this behavior.  The two do not get along.

 Civileme





Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] LILO - Fatal Error (for a friend-rush please?)

2001-09-24 Thread ddcharles

Hi,

This suggestion will NOT work if your Win2K is installed on an NTFS
partition, as there IS NO fdisk in Win2K (and win95 floppy will NOT
recognize NTFS drive);  You will have to boot into rescue mode (by using
the install floppies OR the rescue floppy set you made), and use fixmbr.

HTH,
David Charles


On Sun, 23 Sep 2001, Eric Paynter wrote:

 On September 23, 2001 01:18 pm, Leif Madsen wrote:
  Friend of mine recently installed Mandrake 8.0 onto his laptop.  He now
  can't get into his Win2K partition (which is important for school
  tommorow).  This is his current lilo.conf file.

 The quick and dirty way to get back into windoze (while blowing away LILO for
 now) is to boot to DOS and rewrite the master boot record. Your windoze
 recovery disk should have the appropriate files present. Simply run fdisk
 /mbr from the DOS command line. Then run fdisk and select your windoze
 partition as active. Then remove your recovery disk and reboot. It should
 come up with windoze. You can fix LILO later by booting from your madrake
 install CD.

 Good luck!

 -Eric

 --
 arctic bears - email and name services
 25 email addresses@yourdomain CA$11.95/month
 DNS starting at CA$3.49/month - domains from CA$25.95/year
 for details contact [EMAIL PROTECTED] or visit http://www.arcticbears.com






Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] compiling new kernel, keeping old kernel, how?

2001-09-21 Thread ddcharles

Hi,

Thanks, but as I said in my original posting, I have no problem with LILO,
or adding OSs to LILO.   What I AM having a problem with is figuring out
how to compile/install a kernel so that I can keep all the mods/deps from
my current kernel, AND those from the new kernel, in 2 SEPERATE places (if
it is possible).

Thanks,
David Charles


On Thu, 20 Sep 2001 [EMAIL PROTECTED] wrote:

 Hi David,

 All you simply need to do is add another stanza in your /etc/lilo.conf.

 For example, here's part of my laptop's lilo.conf:

 image=/boot/vmlinuz-2.4.5-3mdksmp
 label=245-3smp
 root=/dev/sda3
 read-only
 optional
 append= quiet
 initrd=/boot/initrd-2.4.5-3mdksmp.img

 image=/boot/vmlinuz-2.4.6
 label=246
 root=/dev/sda3
 read-only
 optional
 append= quiet

 So let's say this one is yours.  Near the top of the file, you'll see
 your 'default' line to reflect which kernel image will boot by default
 (by what label it has).  So if you wanted to boot to the latter kernel
 image, just have '246' in your default line.  Like:  default=246

 Don't delete your old kosher kernel, just add the new one.  Know what
 I'm saying?  And don't forget to run lilo when you're done modifying
 your lilo.conf!

 Hope that helps,

 -Charlie
 On Thu 20 Sep at 22:13:57 -0400 [EMAIL PROTECTED] done said:
  Hello everybody,
 
  I want to start off by thanking everyone who uses this list, especially
  those who answered any of my previously posted questions.
 
  I would like to compile another kernel, and be able to boot from it.  I
  have pretty much no problem on the how of compiling the kernel.  My
  question concerns the fact that I have a system that is currently in VERY
  good shape, with very few bugs/problems.  I would like to keep my current
  kernel, as well as all of its dependencies/etc., seperate (and left where
  they are) from the new kernel.  I would like to be able to choose from
  lilo to boot either kernel A or kernel B (I know how to add to LILO no
  prob); I would like it that, in the event that the new kernel seems to be
  incompatible/cause problems with/break some of my software, that I can
  just delete the kernel, map file, the deps, LILO entry etc. (for this,
  perhaps a log of which files were installed would be helpful... where would I find
  it/how would I make such a file during the compile/install process?) from
  my system, and then, because I kept all the files needed by my current
  kernel in their own seperate directory, I would be back in business with
  my current, stable kernel running my system again.
 
  Can someone please either point me to a decent doc that details the
  instructions of such an install, or post a response that includes a nice
  detailed description of how to do it?
 
  Thanks in advance,
  David Charles
 
 

  Want to buy your Pack or Services from MandrakeSoft?
  Go to http://www.mandrakestore.com


 --
 GPG Key fingerprint = 4F36 EC4F 2F2C 5F59 9690  09E5 4C0F 9DB0 8623 53CE
 We're all in this alone.
   -- Lily Tomlin





Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] what options was my kernel compiled with?

2001-09-20 Thread ddcharles

Hi,

to be able to see the file .config you will need to do ls -a not ls
-l.

David Charles

On Thu, 20 Sep 2001, Al Andersen wrote:

snip

 BTW, in the kernel source code directory there's a hidden file. It's called
 .config (do an ls -l to see it). It contains the configuration data for
 your kernel. Back it up so you can copy it to .config should you mess up!

/snip




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



[expert] compiling new kernel, keeping old kernel, how?

2001-09-20 Thread ddcharles

Hello everybody,

I want to start off by thanking everyone who uses this list, especially
those who answered any of my previously posted questions.

I would like to compile another kernel, and be able to boot from it.  I
have pretty much no problem on the how of compiling the kernel.  My
question concerns the fact that I have a system that is currently in VERY
good shape, with very few bugs/problems.  I would like to keep my current
kernel, as well as all of its dependencies/etc., seperate (and left where
they are) from the new kernel.  I would like to be able to choose from
lilo to boot either kernel A or kernel B (I know how to add to LILO no
prob); I would like it that, in the event that the new kernel seems to be
incompatible/cause problems with/break some of my software, that I can
just delete the kernel, map file, the deps, LILO entry etc. (for this,
perhaps a log of which files were installed would be helpful... where would I find
it/how would I make such a file during the compile/install process?) from
my system, and then, because I kept all the files needed by my current
kernel in their own seperate directory, I would be back in business with
my current, stable kernel running my system again.

Can someone please either point me to a decent doc that details the
instructions of such an install, or post a response that includes a nice
detailed description of how to do it?

Thanks in advance,
David Charles




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] mount -t ?Mac? /dev/fd0 /mnt/floppy

2001-09-18 Thread ddcharles

Hi,

I don't know if the floppies use the same fs as mac hard drives, but I DO
know that Mac's fs is HFS, which IS supported by mount.

HTH,
David Charles

On Tue, 18 Sep 2001, Felix Miata wrote:

 I just looked throught 'man mount' without seeing anything to indicate a
 Mac formatted floppy can be mounted. I have no clue what FS type is used
 on a Mac floppy. Is this doable on Intel Linux? Do Macs still use
 mechanically different floppy disk drives?
 --
 The highest glory of the American Revolution was this: it connected,
 in one indissoluble bond, the principles of civil government with the
 principles of Christianity.President John Quincy Adams

 Felix Miata  ***  http://mrmazda.members.atlantic.net/







Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] Windows fonts with Mandrake 8.0?

2001-09-17 Thread ddcharles

Hi,

I am hoping that someone can help this guy out;  I also have a similar
problem when trying to use Get Windows fonts;  when I click on get
windows fonts, and select the fonts, it just hangs, and drakfont NEVER
responds (I even tried leaving it on over night once) so I have to kill
it.

Thanks,
David Charles

On Mon, 17 Sep 2001, David Guntner wrote:

 Hi,

 I'm using drakfont to examine the fonts that I have available to me. If I
 click on Get Windows fonts, it complains that there's no Windows
 partition on my machine - which, strictly speaking, is true.  It tells me
 to use 'Add fonts instead.  Now, I *do* have a Windows 98 machine running
 on my little home network here, and its C: drive is mounted on the Linux
 machine as /mnt/c.  I can cd to /mnt/c/windows/fonts just fine and look at
 the files, etc.  However, if I use Add fonts and work my way over to that
 directory, any font file that I try to click on doesn't get selected, and
 if I manually type the font file name into the Selection: box and click
 ok, I get an error message.  It doesn't bother to tell me what the problem
 is, it just say Error while opening '/mnt/c/WINDOWS/FONTS/arial.tif' (as
 an example).

 So, two questions here:  One, is there any way that I can fool drakfont
 into using /mnt/c/windows/fonts as a Windows Font directory, so that Get
 Windows fonts will work?  And two, is there any way to clear up whatever
 the error is when I try to select a font manually?

   --Dave

 --
   David Guntner  GEnie: Just say NO!
  http://www.akaMail.com/pgpkey/davidg or key server
  for PGP Public key






Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] Fwd: Re: [newbie] filenames with spaces causing errorin script

2001-09-16 Thread ddcharles

Hi,

Like I said before, I don't do my scripting in bash, but in perl.  There
are 2 books that I find indispensible; namely:

Programming Perl by Larry Wall, Tom Christiansen  Randal L. Scwartz (O'Reilly ISBN 
1-56592-149-6)
Perl Black Book by Steven Holzner (CoriolisOpen Press ISBN 1-57610-465-6)

I also do a lot of programming with databases, and for that I find

Programming the Perl DBI by Alligator Descartes  Tim Bunce (O'Reilly ISBN 
1-56592-699-4)

very helpful.

If you are going to go with just one book, most people would tell you the
Programming Perl (camel book) from O'Reilly, because one of the credits
for authors is Larry Wall, but I would suggest you go with th Perl Black
Book; it is 1282 pages (!!!) long, and has a LOT of VERY USEFUL examples,
that are in fact full programs, covering everything from basic file
handling, to sysadmin work, to advanced socket programming (a working
e-mail client and irc chat server  client for example) and A LOT MORE.  I
find that the camel book is pretty much just a printed copy of the
perldoc POD pages (which are included with every perl distribution, with
a tiny bit of chit chat in between, whereas the Black Book has all that,
as well as the tons of examples, and very helpful commentary.

I know this is starting to sound like an info-mercial, so I am going to
stop at that.  BUT, if you ARE looking into scripting, DO SERIOUSLY
consider perl as an alternative to shell (bash/sh/csh) scripting, not
only do I (and MANY other people) feel that it is FAR superior, it is
also, for the most part, VERY portable...

Anyways, HTH,
David Charles

On Sun, 16 Sep 2001, bascule wrote:

 hi, thanks to all for your replies, i understand the principle if IFS if not
 the implementation jipe! and your addition below david explains all the 'bad
 interpreter' errors!  all said i can see that my only book on shell
 programming is woefully basic, so, i went into waterstones today to see what
 they had, not a lot, and my acid test of looking IFS up in the index to see
 what it could tell me failed in all of them, i was rather hoping there would
 be an o'reilly book but i couldn't find one, what would people recommend?
 amazon list an o'reilly book devoted just to bash, can one fill a book about
 bash without discussing a lot about programming? would this be a good choice?

 i welcome peoples advice on reading matter, online docs are all very well but
 i do like a proper book and also i can take a book to work but not my
 computer!

 bascule

 On Saturday 15 September 2001 6:39 am, you wrote:
  Hi,
 
  I forgot to add, you have to put:
 
  #!/path/to/perl
 
  as the first line of the script I posted; (on standard mandrake 8 install,
  that would be #!/usr/bin/perl)  also chmod +x scriptname without quotes.
 
  David Charles






Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] spaces and command line

2001-09-16 Thread ddcharles

Hi,

when you cd to a directory that has spaces in its name, you have to escape
the spaces with a back slash, e.g.:

[/]$ cd dir\ name\ with\ spaces\ in\ name
[/dir name with spaces in name]$

as for scrolling up, try SHIFT+PGUP.

HTH,
David Charles


On Sun, 16 Sep 2001, Mike  Tracy Holt wrote:

 I've got a couple of newbie questions that I've just never really
 bothered asking before but it's always bothered me, so here goes.  1st,
 I've noticed that bash doesn't seem to handle spaces in directory or
 file names very well.  When I look at my windows partitions from linux,
 I can see the complete file names, but when I try to 'cd' to a certain
 directory, bash doesn't seem to deal to well with the spaces.  I've
 found that I can just use an asterisk in place of the spaces, but is
 there another way?

 2nd, if I'm at the command line, no X server involved, is there a way to
 'scroll' up to see what stout was previously on the screen?  Say I do
 'ls' and then do some other stuff and lose that information, is there
 anyway to retrieve that screen or is it just printed once and lost?

 
 Mike  Tracy Holt
 Kirkland, WA
 [EMAIL PROTECTED]
 









Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] Changing mounts and partitions

2001-09-16 Thread ddcharles

Hi,

That IS a good solution Civileme;  however, most of the time when I am
going to delete a full directory, I do the following:

ls /dir
and if it IS in fact what I want to delete, I then type
rm -Rf ESC+_
(that is escape and underscore, to insert that last argument from the last
command)
which prevents ANY possible typo/cat-from-hell incident.

David Charles

On Sun, 16 Sep 2001, civileme wrote:

 On Sunday 16 September 2001 14:56, Felix Miata wrote:
  [EMAIL PROTECTED] wrote:
   I know it saves a keystroke, and that is PRECISELY the reason I use -R
   instead of -r;  as I explained in my posting, using rm -Rf /dir is NOT
   something to be taken lightly, and that is why I got into the habit of
   -R, so that I HAD to do one extra keystroke, and therefore have one more
   chance to think of what I am doing and change my mind.
 
  Anyone interested in saving keystrokes can save a whole lot more by
  typing these first thing upon login:
 
  mc
 
  Once you do that, you find the dir you think you want to remove and hit
  enter. Now you can see whether what's in there is what you really do
  want to rm. Hit enter again, then F8, confirm, and it's gone.


 Heeheehee

 Yep
 decide you are going to type

 rm -rf /.somercd/messages/

 and you get this far

 rm -rf /

 and the housecat leaps onto the desk and tromps on the 'enter'
 key.

 Could it be that briefly through your mind flashes a change in the dinner
 menu before you begin reiterating every crime the cat ever committed and
 exploring all the unlikely ancestries the cat may have had?  Probably.

 Well I don't like the extra keystroke myself so,

 rm -r /.somercd/messages/ -f

 is my approach.

 Civileme






Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] Promise 'LI' at boot

2001-09-15 Thread ddcharles

Hi,

This IS pretty much the EXACT same setup I have (different brand
controller though).  First, check to make sure that the bios has the boot
order checking the correct devices in the correct order (i.e. make it boot
off CD, then the correct hard drive (you will have to figure out what it
is, from my bios, and others I have seen, it is usually hdx, where x is a
number = 0, which you figure out by counting from first hd/first
controller hd0, second hd/first controller hd1, first hd/third controller
hd2, etc., but NOT skipping numbers.  So if you have 2 hd, one is first
hd/first controller and other is second hd/third controller, they would
be hd0 and hd1 respectively NOT hd0 and hd5) for hde.

Next, add a line to your lilo.conf near the top ABOVE  the
image=... listings that says disk=/dev/hde bios=0x80 without quotes
(this is assuming that you have hde as the FIRST hd that the bios will
boot.  Also, change lilo.conf back to booting from hde again
boot=/dev/hde without quotes.

Then, rename your hda*.bak to their original names again and remove the
symbolic link to hde.

try running /sbin/lilo, and rebooting (all this was done ONLY AFTER you
made sure you had a rescue disk of course, just in case ;) ).

Hopefully, it will do the trick.

HTH
David Charles

On Sat, 15 Sep 2001, Joan Tur wrote:

 Es Divendres 14 Setembre 2001 23:56, en [EMAIL PROTECTED] va
 escriure:
  Hi,
 
  I had almost the exact same thing happen to me; It had to do with what was
  master/slave on the ide controller, what was set to boot first in the
  bios, and adding a line to LILO.  If you tell me what is set to boot first
  in the bios, I might have an idea;
 lilo.conf:
 ---
 [root@quinipc etc]# cat lilo.conf
 boot=/dev/hde
 map=/boot/map
 install=/boot/boot.b
 vga=794
 default=Mandrake8
 keytable=/boot/es-latin1.klt
 lba32
 prompt
 timeout=50
 message=/boot/message-graphic
 menu-scheme=wb:bw:wb:bw
 image=/boot/vmlinuz
  label=Mandrake8
  root=/dev/sdb6
  initrd=/boot/initrd.img
  append= hdc=ide-scsi
  vga=788
  read-only
 other=/dev/hde1
  label=WinME
  table=/dev/hde
 ...
 ---
 HD is plugged in the 3rd ide controller, the 1st promise one.  So it's ide2
 and i can access its partitions using hde as device.

 -ide0: disabled in bios
 -ide1: DVD as master
 -ide2: IBM 30Gb as master
 -ide3: empty

 Lilo always run fine (i get no errors).  I've also renamed /dev/hda* to
 /dev/hda*.bak and made simbolic links to /dev/hde* and then pointed lilo.conf
 to hda instead of hde and lilo still runs fine... but i still get 'LI'  8-?

 And i cannot use sda to boot because winME won't boot then... what about
 making a partition on hda to have there lilo??  8-?

 Thanks for your help!!

  David Charles
 
  On Sat, 15 Sep 2001, jipe wrote:
   Joan Tur wrote:
   Hallo!
   
   I've changed my K6-III-400 for a Gigabyte 7DXR with a Promise controller
 1200 Athlon.  My system is on a scsi hd and ide has to boot first in
order for win to boot so i've put lilo on hde.
   
   But i get 'LI' on startup.  I've checked the mail archive and found no
   sollution for this.  Now i'm using a floppy disk to boot.
   
   And what i've tryed is:
   -renaming /dev/hda* to /dev/hda*.bak
   -ln -s /dev/hda /dev/hde (and so on)
   and setting the startup hd to either hda or hde  8?
   
   Any idea??  Thanks!!  ;)
  
   probably  lilo search /boot/boot.b at a wrong place - edit
   /etc/lilo.conf, make changes, then type lilo
   if no, it's a problem with the geometry of your disk(s)
  
   bye
   jipe

 --
 Joan Tur. Ibiza - Spain
 [EMAIL PROTECTED][EMAIL PROTECTED]  ICQ 11407395
   Joan.Tur.pagina.de  www.ClubIbosim.org
   Linux: usuari registrat 190.783




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Re: [expert] Changing mounts and partitions

2001-09-15 Thread ddcharles

Hi,

To delete a directory, with everything in it, WITHOUT confirmation (not to
be done lightly), type:

rm -Rf /dir

-R = recursive, -f = force

As for problems, from what you're saying (used cp -a =
permissions/ownership good) then I don't think so.

HTH,
David Charles

On Sat, 15 Sep 2001, ryan_steffes wrote:

 Well by just trying it, the answers seems to be, Yes, Yes you can.


 I did:

 cd /usr
 cp -a . /new
 vi /etc fstab
 (changed the mount point for hdb3 from /new to /usr)
 mv /usr /usr2
 mkdir /usr


 Then I rebooted and everything came up fine.  Can anyone give me
 anything that may cause a problem in the future before I delete the old
 /usr2?


 Also, is there a way to turn off confirmation on rm -r?  I can't imagine
 having to hit a 'y' for every file in /usr2!

 Ry





Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] Fwd: Re: [newbie] filenames with spaces causing errorin script

2001-09-14 Thread ddcharles

Hi,

what is going on here is that the for loop is iterating over EACH element
in `ls -Q *.wav`, which returns each song title surrounded by quotes,
which don't make a difference, as it is seperating the list into
elements by splitting on spaces.

David Charles

On Fri, 14 Sep 2001, bascule wrote:

 i have posted this on newbie but had no repsonse,
 after playing around i have found that the section in my little script that
 says `ls *.wav` is probably my problem, reading 'man ls' i changed it to `ls
 -Q *.wav` but this didn't work, then i discovered something wierd,

 if i do:
 $ls -Q *.wav
 i get the following:
 snip
 11_move on.wav  26_i don't know why.wav
 12_leon.wav 27_a man's job.wav
 13_itch.wav 28_it's too bad.wav
 14_wake up.wav  29_do you love me.wav
 15_what generation are you.wav

 i.e. a list of filenames with the around them, job done i thought, but to
 test i did:
 $ for file in `ls -Q *.wav`;do echo $file;done
 and this gave me:
 snip
 26_i
 don't
 know
 why.wav
 27_a
 man's
 job.wav
 28_it's
 too
 bad.wav
 29_do
 you
 love
 me.wav

 as you can see, i get a list of each individual 'word' in the filenames, can
 someone help or explain this for me?

 bascule

 --  Forwarded Message  --

 Subject: Re: [newbie] filenames with spaces causing error in script
 Date: Thu, 13 Sep 2001 22:44:49 +0100
 From: bascule [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]

 i have also tried the following:
 $ for file in `ls *.wav`;do lame -b 256 -q 0 $file `basename $file
 .wav`.mp3;done

 i think this is fine apart from the first line, i think this is feeding each
 seperate word in a filename as a filename to the lame command, i think that
 it might actually be complicated to return a list of files that have
 spacenames and assign each whole filename to a variable
 am i wrong?

 bascule

 On Thursday 13 September 2001 10:18 pm, I wrote:
  hi,
  i have used the following to convert some homemade wavs into mp3s:
  $ for file in `ls *.wav`;do lame -b 256 -q 0 $file `basename $file
  .wav`.mp3;done
 
  it works fine except for file names with spaces, i can't work out how to
  rectify this, i have also tried:
  $ for file in `ls *.wav`;do lame -b 256 -q 0 $file `basename $file
  .wav`.mp3;done
 
  and
  $ for file in `ls *.wav`;do lame -b 256 -q 0 $file `basename $file
  .wav`.mp3;done
 
  as you can see i've tried using  around references to file names but this
  hasn't helped, could someone please help me out
 
  tia
 
  bascule

 ---






Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] Fwd: Re: [newbie] filenames with spaces causing errorin script

2001-09-14 Thread ddcharles

Hi,

I do all my scripting in perl, so you could try this:

snip here
use vars qw($dir @files @wavs);
$dir = $ARGV[0];
if (defined($dir)) { wav2mp3; }
elsif (!defined($dir)) {
print \nPlease enter the FULL path to the directory that CONTAINS the WAVS: ;
chomp($dir = STDIN);
wav2mp3;
}
sub wav2mp3 {
opendir (DIR, $dir) or die Can't open $dir for input;
@files = readdir DIR;
closedir DIR;

foreach (@files) {
next if !/wav$/;
push @wavs, $_;
}

foreach (@wavs) {
my $mp3name = $_ . \.mp3;
system(lame -b 256 -q 0 $_ $mp3name);
}
}
__END__
/snip here

by the way, for my version of lame the -q switch is -V, (I think), so I
tried it with that.

HTH,
David Charles

On Sat, 15 Sep 2001, jipe wrote:



 bascule wrote:

 i have posted this on newbie but had no repsonse,
 after playing around i have found that the section in my little script that
 says `ls *.wav` is probably my problem, reading 'man ls' i changed it to `ls
 -Q *.wav` but this didn't work, then i discovered something wierd,
 
 if i do:
 $ls -Q *.wav
 i get the following:
 snip
 11_move on.wav  26_i don't know why.wav
 12_leon.wav 27_a man's job.wav
 13_itch.wav 28_it's too bad.wav
 14_wake up.wav  29_do you love me.wav
 15_what generation are you.wav
 
 i.e. a list of filenames with the around them, job done i thought, but to
 test i did:
 $ for file in `ls -Q *.wav`;do echo $file;done
 and this gave me:
 snip
 26_i
 don't
 know
 why.wav
 27_a
 man's
 job.wav
 28_it's
 too
 bad.wav
 29_do
 you
 love
 me.wav
 
 as you can see, i get a list of each individual 'word' in the filenames, can
 someone help or explain this for me?
 
 bascule
 
 --  Forwarded Message  --
 
 Subject: Re: [newbie] filenames with spaces causing error in script
 Date: Thu, 13 Sep 2001 22:44:49 +0100
 From: bascule [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 
 i have also tried the following:
 $ for file in `ls *.wav`;do lame -b 256 -q 0 $file `basename $file
 .wav`.mp3;done
 
 i think this is fine apart from the first line, i think this is feeding each
 seperate word in a filename as a filename to the lame command, i think that
 it might actually be complicated to return a list of files that have
 spacenames and assign each whole filename to a variable
 am i wrong?
 
 bascule
 
 On Thursday 13 September 2001 10:18 pm, I wrote:
 
 hi,
 i have used the following to convert some homemade wavs into mp3s:
 $ for file in `ls *.wav`;do lame -b 256 -q 0 $file `basename $file
 .wav`.mp3;done
 
 it works fine except for file names with spaces, i can't work out how to
 rectify this, i have also tried:
 $ for file in `ls *.wav`;do lame -b 256 -q 0 $file `basename $file
 .wav`.mp3;done
 
 and
 $ for file in `ls *.wav`;do lame -b 256 -q 0 $file `basename $file
 .wav`.mp3;done
 
 as you can see i've tried using  around references to file names but this
 hasn't helped, could someone please help me out
 
 tia
 
 bascule
 

 write something like that:

 #!/bin/bash
 IFS=$(echo -e \n\r\t)
 for wav_name in (ls *.wav) ; do
 lame options ${wav_name} $(basename ${wav_name} .wav).mp3
 rm -f  ${wav_name}  #add this line only if u want to erase your wav
 file after encoding!
 done

 but r u sure about -q O? the version i run doesn't accept
 them(lame-3.22b-1)

 bye
 jipe








Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Re: [expert] Promise 'LI' at boot

2001-09-14 Thread ddcharles

Hi,

I had almost the exact same thing happen to me; It had to do with what was
master/slave on the ide controller, what was set to boot first in the
bios, and adding a line to LILO.  If you tell me what is set to boot first
in the bios, I might have an idea;

David Charles

On Sat, 15 Sep 2001, jipe wrote:



 Joan Tur wrote:

 Hallo!
 
 I've changed my K6-III-400 for a Gigabyte 7DXR with a Promise controller 
 1200 Athlon.  My system is on a scsi hd and ide has to boot first in order
 for win to boot so i've put lilo on hde.
 
 But i get 'LI' on startup.  I've checked the mail archive and found no
 sollution for this.  Now i'm using a floppy disk to boot.
 
 And what i've tryed is:
 -renaming /dev/hda* to /dev/hda*.bak
 -ln -s /dev/hda /dev/hde (and so on)
 and setting the startup hd to either hda or hde  8?
 
 Any idea??  Thanks!!  ;)
 
 probably  lilo search /boot/boot.b at a wrong place - edit
 /etc/lilo.conf, make changes, then type lilo
 if no, it's a problem with the geometry of your disk(s)

 bye
 jipe





Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



[expert] nfs mounting

2001-09-11 Thread ddcharles

Hello,

I have several machines at home; my main box is running LM 8.0/XF86 4, and
has several shares set up through both NFS and Samba.

The NFS share is set in /etc/exports like so:

/   10.0.0.0/255.255.255.0(rw,no_root_squash)

The Samba shares I set up using SWAT.

I am having a few problems with my setup;  The first (and I think the most
straightforward) is with the NFS.  I setup this share for my laptop, a NEC
Versa M/75 (486DX 75Mhz w/8MB RAM) running Slackware 4.0 (from what I
gather one of the most complete distros for minimal machines), and
made it on / so that I wouldhave access to any/all partitions/folders.  I have found 
that I can
connect with NO problem, and I can see everything on the / partition,
but NOTHING from any of the OTHER partitions that are mounted on / are
browseable (as if they don't exist/aren't mounted).  That means that I can
NOT get into my /home, /mnt/win98, /mnt/win2000, /mnt/suse (the last 3 are
where I have mounted folders from other machines on the LAN that I want
access to) which is a problem, because those folders hold most of what I
want to access from the laptop.  It seems that the folders that aren't
showing are all on seperate partitions; is that right? when I export /
it does NOT export the whole tree, but ONLY that partition?

The other major problem, is that even though I installed rshd on my LM8
box, and I have the client on the Slack4 box, when I try and connect I get
the following message:

hostname.domainname: Connection reset by peer

this, I have ABSOLUTELY NO IDEA about.

I hope someone can help with these questions.

Thanks,
David Charles




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com