Linux-Misc Digest #224, Volume #24 Fri, 21 Apr 00 14:13:05 EDT
Contents:
Re: Inappropriate ioctl / Printing problem (Steve Houseman)
convert num to string ([EMAIL PROTECTED])
Problems with Login - Need help (Matthew Rudderham)
root mail with shared /var/spool/mail (doug reeder)
Re: Drawing Program? (Bob Tennent)
Linux is Hard to Use: part 3 (Eric Y. Chang)
Re: Backup options? (Leonard Evens)
soundblaster pci128 (Gerald Pollack)
Re: Acrobat PDF files (Dave Brown)
Re: soundblaster pci128 ("David ..")
Re: Linux is Hard to Use: part 3 (Vincent Fox)
Re: Acrobat PDF files (John Hayward-Warburton)
Re: Looking for console version WordPerfect (Jeff Williams)
Two questions at startup: xtab and xfs (David Rabanus)
forced umount not supported yet?? ("Calvin")
Re: convert num to string (Leejay Wu)
Newbie question ([EMAIL PROTECTED])
Re: changing focus in enlightenment (Mark Kempster)
Re: help with tar
----------------------------------------------------------------------------
From: [EMAIL PROTECTED] (Steve Houseman)
Crossposted-To: comp.os.linux.networking,comp.os.linux.setup
Subject: Re: Inappropriate ioctl / Printing problem
Date: 21 Apr 2000 15:23:55 +0100
The nfs file system does not understand the concept of lsattr etc
so even though the underlying ext2 fs does, it cant cross the nfs
rpc system.
The spool dirs on my sys have the perms
drwxr-xr-x 17 root root 1024 Dec 20 16:50 /var/spool
drwxr-xr-x 3 lp root 1024 Dec 8 17:39 /var/spool/lp0
drwxr-xr-x 2 lp root 1024 Mar 15 11:33 /var/spool/lp0/unix
and the files in them have
-rw-rw---- 1 bin lp 104 Mar 8 16:34 cfA003rockhopper
-rw-rw---- 1 bin lp 84 Mar 15 11:33 cfA004rockhopper
-rw-rw---- 1 steve lp 25 Mar 8 16:34 dfA003rockhopper
-rw-rw---- 1 root lp 25 Mar 15 11:33 dfA004rockhopper
-rw-r----- 1 root root 4 Apr 21 09:25 lock
-rw-rw-r-- 1 root root 43 Apr 21 09:25 status
One key aspect is whether the various users (esp lp & bin) have the
same uids on all boxes and the same group memberships, but as
it is mounted from the server then I *guess* that all of that
is correct... presumably needs to be mounted with no_root_squash
to allow the lpd exe to write into dir.
The only other suggestion is to check with df that there is
space in the dir... the other one is to print using strace eg
strace -o/tmp/dbin -f -t lpr myfile
(or with whatever lpr options you use),
and check the open,write and close of the cf file.
I have a printing check that may be of use at
http://freespace.virgin.net/steve.houseman/printingcheck
Cheers,
Steve Houseman
--
currently steve.houseman at virgin net
------------------------------
From: [EMAIL PROTECTED]
Subject: convert num to string
Date: Fri, 21 Apr 2000 16:21:35 GMT
How can I convert num to string?
I could not find any documentation for stdc++ library in my RedHat 6.0,
can you help?
I searched thru Bruce Eckel second volume, but chapter about strings
does not mention safe type conversion...
Thanks!
--
Milos
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: Matthew Rudderham <[EMAIL PROTECTED]>
Subject: Problems with Login - Need help
Date: Fri, 21 Apr 2000 16:30:14 GMT
Hi,
I just started running linux about a week ago, and love it.
I am running Linux Mandrake 7.0 on a Pentium III - 450, 128mb RAM.
I've run into a problem with my login though. When a user logs in the Bash
shell which is default doesn't seem to beoperating properly. After the
user logging in enters their password, the following line is displayed:
/bin/bash: dircolors: command not found
When the user tried for example to execute /bin/ls or another command the
following is displayed:
/bin/bash: dircolors: command not found
/bin/bash: id: command not found
/bin/bash: tty: command not found
(Note running ls from an directory other than /bin will not do anything
(bad command returned) so I assume paths are not being set).
This only happens with accounts I've setup, and not the root account.
Onlogin with root I do get one error:
grep - command not found
I try executing grep after login completes, and it executed okay.
On another note, I was wondering where the login scripts are stored for
each user? Thanks for the help.
- Matthew Rudderham
[EMAIL PROTECTED]
--
Posted via CNET Help.com
http://www.help.com/
------------------------------
From: [EMAIL PROTECTED] (doug reeder)
Subject: root mail with shared /var/spool/mail
Date: 21 Apr 2000 16:47:13 GMT
We have several linux machines (RH 6.1) which all NFS mount /var/spool/mail
from one machine. Regular users can read mail from any machine. But only
root on the server can read root's email. Root on other machines gets
the error:
Cannot flock folder "/var/spool/mail/root"! [No locks available]
Is there a way to either allow root on all machines to read a (common)
mail spool file, or give them separate spool files? Root_squash
is on for that NFS volume.
--
P. Douglas Reeder Lecturer, Computer. Science. Dept., Ohio State Univ..
[EMAIL PROTECTED] http://www.cis.ohio-state.edu/~reeder/reeder.html
GE/S d+ s+:- a C+@$ UH+ P+ L E W++ N+ o? K? w !O M+ V PS+() PE Y+ PGP- t 5+ !X
R>+ tv+ b+++>$ DI+ D- G e+++ h r+>+++ y+>++
------------------------------
From: [EMAIL PROTECTED] (Bob Tennent)
Subject: Re: Drawing Program?
Date: 21 Apr 2000 16:36:17 GMT
Reply-To: [EMAIL PROTECTED]
On Thu, 20 Apr 2000 21:29:19 GMT, [EMAIL PROTECTED] wrote:
>Is there a drawing program similar in concept to SmartDraw or Visio
>available or soon to be available for Linux?
>
Dia is a program designed to be much like the Windows
program 'Visio'. It can be used to draw different kinds of diagrams. In
this first version there is support for UML static structure diagrams
(class diagrams) and Network diagrams. It can currently load and save
diagrams to a custom fileformat and export to postscript.
QCad is a professional CAD System. With QCad you can easily
construct and change drawings with ISO-texts and many other
features and save them as DXF-files. These DXF-files are the
interface to many CAD-systems such as AutoCAD(C) and many others.
Xcircuit is a general-purpose drawing program and also a specific-purpose
CAD program for circuit schematic drawing and schematic capture. Output
is PostScript.
Cycas is a complete 2D+3D CAD package for X11.
Some of its features: Easy to use GTK+ Interface, WYSIWYG display,
printing, plotting, import/export filters, photorealistic rendering,
special methods for architectural design, full HTML documentation,
tutorials, example drawings, fonts and symbols.
Sketch is an interactive X11 drawing program (similar to XFig or tgif).
It is written almost completely in Python, an object oriented
interpreted programming language.
Xfig is an X Window System tool for creating basic vector graphics,
including bezier curves, lines, rulers and more. The resulting
graphics can be saved, printed on PostScript printers or converted to
a variety of other formats (e.g., X11 bitmaps, Encapsulated
PostScript, LaTeX).
Bob T.
------------------------------
From: [EMAIL PROTECTED] (Eric Y. Chang)
Subject: Linux is Hard to Use: part 3
Date: 21 Apr 2000 16:50:08 GMT
Reply-To: [EMAIL PROTECTED]
Linux is Hard to Use: Part 3
Linux new user (NU) installation usage profile.
Expert comments are marked EX.
NU: I have heard a lot about Linux recently. It just seems like the
hottest thing around. I am going to install it on my machine. Can
it coexist with Windows 98? I don't want to give that up until I am
sure that Linux is working for me. What distribution should I use,
and how should I prepare my machine?
EX: You could try RedHat. Also, it is recommended that you purchase
a new hard disk. It is very likely that you have one hard disk, and
Windows is stored on one large partition taking up the whole disk,
and you will have to repartition the disk. There is a utility called
FIPS which you can use for this purpose, but it is risky. Are you
willing to risk your Windows data for a couple hundred dollars?
NU: No way! I can afford a new hard drive if it means that my
Windows data will be safe.
EX: OK, then, good luck!
(several days later)
NU: I've got a problem. Linux has destroyed Windows. I tried to
install to the second hard disk and now the computer just generates
010101010101010101010101010101010101010101010101010101010...
forever when it tries to boot. Also, I cannot boot Windows.
EX: Oh yes, the old lilo
010101010101010101010101010101010101010101010101010101010... bug.
You did make a boot disk? Why did you want to go back to Windows
anyway?
NU: Yes, I do have a boot disk, but I need to use Windows and it
is gone. Also, the reason that I need to use Windows is that Linux
will not do everything I need it to.
EX: Oh yes it will! What do you need? Games, office productivity
tools, graphics software, etc., just surf the web, and you will
find hundreds of applications for Linux.
NU: I need the video chip number. Autoprobe failed, and the
XFree86 configurator failed. I need a windowing system for some
applications. Windows can find out what video chip I have, but
Linux cannot. Do you have a www site for that?
EX: No, I can't think of one off hand. If you cannot boot
Windows, you could try opening the case and reading the chip
number.
(several days later)
NU: I could not find the video card. I think that video is
integrated into the motherboard. Why can Windows find it and
Linux cannot?
EX: That is caused by an old bug in Xconfigurator. It still
has not been fixed, but it has been reported. One wild guess:
Look for a chip with many pins that says SiS on the back, and
record the 4 digits after the SiS. This should help.
There is something that I should warn you about at this moment.
You will be tempted to return to Windows soon. And, you will
probably try to do something in a hurry, perhaps rashly. The
typical new user at this point will try to reinstall either
Windows or Linux, losing all kinds of data and configuration
time. This is complained about a lot on the 'net. Do not
rush back to windows. Fix the problems in your lilo
configuration file, and Windows will probably boot again.
Then, calm down, and take things slowly. You are asking for
Windows back, and the quick answer is to do fdisk /mbr, but
that is not what you really want. You want a dual boot
Windows/Linux system with Windows on the first hard drive and
Linux on the second.
(several days later)
NU: You were right. I paniced, and messed everything up. I
tried fdisk /mbr, and it did not work. It probably is not
supported anymore. Since it did not work, I tried to
reinstall Linux in a more conservative way. I opted for a
"Workstation" installation...
EX: Oh no! You can't do that! If you do that, you will
never be able to go back to Windows. The old "Workstation"
installation mode is too dangerous and it is old. You must
have an old CD-ROM.
NU: But it says nothing about not being able to go back to
Windows. I only found that out later when the Workstation
mode wrote two ext2 partitions over my first hard disk. The
manual does not say anything about this.
EX: Well, it should, and you should know better. This is a
typical new user profile.
NU: It gets worse. I tried to re-install Windows. It did
not work. There is a strange error. fdisk will not remove
the first partition since there is a second one. And it will
not remove the second one because there is a logical
partition in it. And, it will not remove the logical
partition, because it says that there is none.
EX: This is a well known bug in Windows.
NU: That information does not help me now! Why didn't it
warn me before I tried installing?
EX: A warning would not have helped. You were screwed from
the very beginning, and the installation process toyed with
your emotions until you had no choice but to mess up in
exactly this way. The authors of the installation program
should have forseen this and tailored the installation
process to suggest a different path.
NU: Well, that doesn't help either! How can I get Windows
back?
EX: You will have to get rid of those two partitions.
Unfortunately, this is not easy. I checked linuxnewbie.org,
www.redhat.com archives, FAQ, etc., and there was no info on
it. Someone on the newsgroups said that this is an FAQ and
you can check http://sunsite.auc.dk/linux-newbie/FAQ.htm.
Unfortunately, that link is dead. But here is how to do it.
Go to the store and buy a copy of Partition Magic...
NU: I don't want to buy anything else! Will this be
guaranteed to work, or will it be like the second hard disk
that I bought that "guaranteed" that I would not lose any
Windows data.
EX: Calm down. You probably didn't lose anything important
anyway. There is a way to do it with Linux fdisk. Just run
fdisk from Linux and restore these partitions.
(several days later)
NU: I tried what you suggested, and it didn't work. fdisk
will not work on a root partition that is currently being
used by the running system. Also, I have to do this in those
hard-to-read text consoles.
EX: Oh yeah, that's right. I forgot. I never had to do this.
You will have to go through the install all over again, and set
the partition types of the first hard disk to DOS 16 FAT. Then,
you should be able to reinstall Windows. Of course, you'll lose
all your data, but you did back it up, didn't you?
NU: How about the video? I tried your suggestion, and there
was a chip that said SiS on it. The number did not quite match
the one in the selection box, so I chose the nearest one, and it
did not work. The screen came up, but at very low resolution.
The font was huge and unusable.
EX: Oh yes, the old low resolution bug! That is strange.
Nobody wants low resolution, but you still seem to get it if
something went wrong.
NU: What went wrong?
EX: I don't know. This is a well known problem. Lets check the
XFree86 Installation HOWTO. Oops, nothing in here. How about the
www.XFree86.org site. Oops, there's nothing in here either.
Hmmmmm, this is strange, I seem to recall that this is a very
common bug. How about www.redhat.com. Ahh yes, searching the
archives finds a whold bunch of hits. Hey, wait a second! Most
of these links are dead. Here we go, here is one that works.
Yes, someone is reporting the problem once again, and there is
someone named Manuel (presumably a support person) saying that you
should bypass autoprobing and select 800x600 directly.
NU: I already tried that. It didn't work.
EX: Well, I guess that I am kind of out of ideas. Maybe I should
post the query on comp.os.linux.misc. Somebody should have seen
this problem before.
------------------------------
From: Leonard Evens <[EMAIL PROTECTED]>
Subject: Re: Backup options?
Date: Fri, 21 Apr 2000 12:13:16 -0500
Gururajan Ramachandran wrote:
>
> Hello,
>
> Is there anyway to backup a RedHat 6.1 Linux disk in such a way
> to a Travan 5 tape such that the disk can be restored without
> having to reload the OS? In other words, a disaster prevention backup.
>
> I know I can do this on HP's HP-UX system using COPYUTIL. Is such
> a capability available with RedHat 6.1 Linux?
>
> Right now we use "tar" but that is only good for data backup and
> not the installed OS backup.
>
> Thanks,
>
> Guru
I have restored a system from a tar archive as follows. I
first booted from a rescue system such as Tom's root boot disk.
I did what was necessary such as partitioning with fdisk.
Then I mounted the partition I wanted to contain the system
and I made a file system on it using mkfs or if not available
mke2fs. I then untar'd from the archive to the desired
partition. I then ran lilo from the mounted system using
lilo -r /a
where /a was the mount point. This should work, but there are
a few caveats. First, make sure you backup with a version of
tar similar to the version you will use to restore. For example.
the tar on tom's root boot disk does not have the z option.
(But if you work at it you can combine tar with gzip to do
the same thing.) Tom's root boot disk uses a 2.0.* kernel
so you could also have trouble using its fdisk with a partition
created with fdisk on a later kernel. If are not changing
partitions, you should be okay. Also, your system may be in
more than one partition, so you would have to restore each of
them separately.
--
Leonard Evens [EMAIL PROTECTED] 847-491-5537
Dept. of Mathematics, Northwestern Univ., Evanston, IL 60208
------------------------------
From: Gerald Pollack <[EMAIL PROTECTED]>
Subject: soundblaster pci128
Date: Fri, 21 Apr 2000 17:12:12 GMT
I've recently upgraded from Mandrake 6.5 to 7.0, and I've also=20
installed a pci128 sound card. I'm unable to get any sound-related=20
software (snack demo, xmixer) to work; both report "dev/mixer: no such=20
device", even though the file (and the target it points to)is there. I=20
gather, from what I've read on the MAKEDEV manpage, that this may=20
indicate a problem with the modules for the sound card. I believe that=20
I need the ensonique 1371-related modules, but I'm unable to get them=20
loaded. When I do "modprobe es1371" I get an error: device or resource=20
busy. I get a similar error when I modprobe snd-card-ens1371. Can=20
someone tell me what the relationships are between the various sound=20
modules, the order in which they need to be loaded, or anything else=20
that might help?
Thanks,
--=20
Gerald Pollack, [EMAIL PROTECTED]
Dept. Biology, McGill University
Tel:(514) 398-6418, Fax:(514) 398-5069=20
------------------------------
From: [EMAIL PROTECTED] (Dave Brown)
Crossposted-To: alt.os.linux,uk.comp.os.linux
Subject: Re: Acrobat PDF files
Reply-To: [EMAIL PROTECTED]
Date: 21 Apr 2000 12:11:34 -0500
In article <[EMAIL PROTECTED]>,
Charles Blackburn wrote:
>Hi all
>
>Is it possible to create an Acrobat PDF file in linux?
>
>I am asking this as I was wondering whether I need to buy Acrobat 4.0 for
><shudder> windopes to create them?
>
>I would be writing documents in staroffice most probably, but I will be
>burning the doc onto a CD for reading under linux and <shudder> windopes.
I wanted to create a few simple .pdf's without having to learn a new
application, such as latex. So I tried to use WordPerfect (for Linux) and
capture the printed output in a file (which is postscript), and then use
ps2pdf to create the pdf file. Unfortunately, the ps2pdf utility did not
like the ps file created by WordPerfect. (???)
So I reverted to Netscape, using its html "composer". After creating the
html document, I printed it from Netscape, got the printfile and converted it
with ps2pdf. Not very elegant, but it got me by that "emergency".
--
Dave Brown Austin, TX
------------------------------
From: "David .." <[EMAIL PROTECTED]>
Subject: Re: soundblaster pci128
Date: Fri, 21 Apr 2000 12:15:53 -0500
Gerald Pollack wrote:
>
> I've recently upgraded from Mandrake 6.5 to 7.0, and I've also
> installed a pci128 sound card. I'm unable to get any sound-related
> software (snack demo, xmixer) to work; both report "dev/mixer: no such
> device", even though the file (and the target it points to)is there. I
> gather, from what I've read on the MAKEDEV manpage, that this may
> indicate a problem with the modules for the sound card. I believe that
> I need the ensonique 1371-related modules, but I'm unable to get them
> loaded. When I do "modprobe es1371" I get an error: device or resource
> busy. I get a similar error when I modprobe snd-card-ens1371. Can
> someone tell me what the relationships are between the various sound
> modules, the order in which they need to be loaded, or anything else
> that might help?
>
> Thanks,
>
> --
> Gerald Pollack, [EMAIL PROTECTED]
> Dept. Biology, McGill University
> Tel:(514) 398-6418, Fax:(514) 398-5069
I use the SB 128 PCI sound card but use the es1370 which works for me.
--
Registered with the Linux Counter. http://counter.li.org
ID # 123538
------------------------------
From: [EMAIL PROTECTED] (Vincent Fox)
Subject: Re: Linux is Hard to Use: part 3
Date: 21 Apr 2000 17:16:33 GMT
In <8dq0s0$[EMAIL PROTECTED]> [EMAIL PROTECTED] (Eric Y. Chang)
writes:
> Linux is Hard to Use: Part 3
[deleted]
Troll, all you've proved is sometimes it's hard to install
an OS on some particular hardware combinations. This is true
of *ANY* OS. I've had hardware on which Windows (*particularly* NT)
and various other very nice OS were very difficult to get up and
running on. Linux is NOT harder to use on average than any other.
They all have glitches in certain areas.
Your NU's mistake was probably to try and setup
some complicated multi-boot situation.
Why not just do the EASY solution?
Pull the original Windows drive, put it on a shelf.
Now put in your new test drive and install Linux.
If it turns out to be so frightening due to hardware issues
then they can just plug the original drive back in!
Is that so tough to figure out?
Apparently it is for you.
--
"Who needs horror movies when we have Microsoft"?
-- Christine Comaford, PC Week, 27/9/95
------------------------------
From: John Hayward-Warburton <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,uk.comp.os.linux
Subject: Re: Acrobat PDF files
Date: Fri, 21 Apr 2000 12:24:06 +0000
Charles Blackburn wrote:
> Hi all
>
> Is it possible to create an Acrobat PDF file in linux?
>
> I am asking this as I was wondering whether I need to buy Acrobat 4.0 for
> <shudder> windopes to create them?
YES absolutely. LaTeX, using pdftex, will give you an appropriate file, and if you
use the hyperref package in LaTeX, your PDF file will be full of appropriate
references, hyperlinks, links to the index, a list of chapters and headings, etc.,
You can also convert a Postscript file to PDF using Ghostscript and its useful
companion script "ps2pdf". Can StarOffice do Postscript output? I should hope so.
Yours,
John HW
Used to live in Ombersley.
No spam accepted; I complain.
------------------------------
From: Jeff Williams <[EMAIL PROTECTED]>
Subject: Re: Looking for console version WordPerfect
Date: Thu, 20 Apr 2000 08:29:03 -0500
On Wed, 19 Apr 2000, Jonathan Gift wrote:
>I heard that a while back there was a console version of WordPerfect
>available for Linux. Was that the case and does anyone know where I could
>get hold of a copy?
Greetings!
The Word Perfect Server Edition has the console version available. The program
can be purchased from Corel or e-LINUX. I don't remember the cost, but it is
NOT free. :-)
jeff williams - [EMAIL PROTECTED]
------------------------------
From: David Rabanus <[EMAIL PROTECTED]>
Subject: Two questions at startup: xtab and xfs
Date: Wed, 19 Apr 2000 16:00:46 -0900
Hi folks,
When I start up my Compaq Presario 1215 with RedHat 6.0 and kernel
2.2.5-15 I always get this section of messages dealing with "xtab":
(...)
Feb 11 23:38:19 cancer exportfs[406]: could not open /var/lib/nfs/xtab
for locking
Feb 11 23:38:19 cancer exportfs[406]: can't lock /var/lib/nfs/xtab for
writing
Feb 11 23:38:19 cancer exportfs[406]: could not open /var/lib/nfs/xtab
for locking
Feb 11 23:38:19 cancer exportfs[406]: can't lock /var/lib/nfs/xtab for
writing
Feb 11 23:38:19 cancer exportfs: exportfs: could not open
/var/lib/nfs/xtab for locking
Feb 11 23:38:19 cancer exportfs: exportfs: can't lock /var/lib/nfs/xtab
for writing
Feb 11 23:38:19 cancer exportfs: exportfs: could not open
/var/lib/nfs/xtab for locking.
(...),
and these concerning "xfs":
(...)
Feb 11 23:38:32 cancer PAM_pwdb[599]: (su) session opened for user xfs
by (uid=0)
Feb 11 23:38:32 cancer pam_xauth[599]: do_file: could not create dir
/etc/X11/fs/.xauth
Feb 11 23:38:32 cancer PAM_pwdb[599]: (su) session closed for user xfs
Feb 11 23:38:32 cancer pam_xauth[599]: do_file: could not create dir
/etc/X11/fs/.xauth
Feb 11 23:38:32 cancer xfs: xfs startup succeeded
(...)
What do they mean? Can I ignore them?
Thanks in advance - David.
------------------------------
From: "Calvin" <[EMAIL PROTECTED]>
Subject: forced umount not supported yet??
Date: Sat, 22 Apr 2000 01:43:10 +0800
Hi,
I am using redhat 5.2. After i updated a few rpm packages, the following
error messages is shown everytime i shutdown my linux box.
Turning off swap [ok]
Turning off quotas [ok]
Unmounting file system umount: forced umount not supported yet [fail]
Unmounting file system umount: forced umount not supported yet [fail]
Unmounting file system umount: forced umount not supported yet [fail]
The rpm packages i updated are as following:
initscripts-5.09-1
e2fsprogs-1.18-5
console-tools-19990829-10
procps-2.0.6-5
modutils-2.3.9-6
sysklogd-1.3.31-16
setup-2.1.8-1
timeconfig-3.0.3-2
vixie-cron-3.0.1-40
I think the problem comes from the initscripts package. Do anyone know
how to solve it?? My kernel is 2.2.9
Best regards
Calvin
------------------------------
From: Leejay Wu <[EMAIL PROTECTED]>
Subject: Re: convert num to string
Date: Fri, 21 Apr 2000 13:27:17 -0400
Excerpts from netnews.comp.os.linux.misc: 21-Apr-100 convert num to
string by [EMAIL PROTECTED]
Hrm. This seems to be more of a C/C++ question than Linux...
> How can I convert num to string?
sprintf() will normally do the trick, for (char*). If you must
use the 'string' class, substitute 'stringvar.data()' for the
char* ptr. Be warned that there must be sufficient space in
the char*/string...
sprintf() is standard C, and should definitely have a man page.
> I could not find any documentation for stdc++ library in my RedHat 6.0,
> can you help?
I'll leave the C++ book recommendations to others. Never been fond
of the string class.
> I searched thru Bruce Eckel second volume, but chapter about strings
> does not mention safe type conversion...
It's not really a conversion, per se, in the usual sense. Changing
the base representation (say, 2's complement little endian, packed
in 32 bits) to a human-readable format (e.g. base 10, ASCII, bytes
in MSB->LSB order) is more drastic.
--
| [EMAIL PROTECTED] | the silly student |
|--------------------------| he writes really bad haiku |
| #include <stddiscl.h> | readers all go mad |
------------------------------
From: [EMAIL PROTECTED]
Subject: Newbie question
Date: Fri, 21 Apr 2000 17:27:20 GMT
Hi ,
I have installed linux 5.2 on my machine and tried to run the
linuxconf command but it gave me an error saying "remadmin (GUI
frontend) exiting abnormaly".
when I tried to start linuxconf from the start menu nothing comes up and
also I am unable to open the control panel.
I am new to linux programming and have no idea where to look
for in case of such problems.Any suggestions in this regard will be
gratefully received
Thanks
Neelima
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: Mark Kempster <[EMAIL PROTECTED]>
Subject: Re: changing focus in enlightenment
Date: Fri, 21 Apr 2000 13:43:48 -0400
> >> I was using the "Enlightenment" wm, (and was able to resize
> >> in either direction), but could not find a way to make the focus (active
> >> window) follow the mouse (instead of requiring a mouse click to make a
> >> window active)...
> >>
> >
> >
> >
> >You want the Focus Settings menu;
> >select either 'Focus follows pointer' or 'Focus follows pointer sloppily'.
> >Sounds like you currenty have 'Focus follows mouse clicks'.
> >
>
> Thanks... I was looking for this parameter... Where (under which
> menu item, etc.) is this set?
Right-click over the desktop, which should bring up Enlightenment's
'Settings' menu. The first entry there is 'Focus Settings',
which has everything you need.
Cheers
- Mark
------------------------------
Crossposted-To: linux.debian.user
Subject: Re: help with tar
From: <[EMAIL PROTECTED]>
Date: 21 Apr 2000 01:09:29 +0100
[EMAIL PROTECTED] (Otavio Exel) writes:
> I'm doing a tar.gz of my root partition for backup purposes;
> the exact command I'm using is:
>
> tar -clz / -f /whatever/root.tar.gz
You could also do a
tar -cPlz / -f ...
or a
tar -clzf /whatever/root.tar.gz -C / .
Either should avoid the creation of a record with a null file
name, corresponding to the root directory itself. (In the first
case, the name will be /, in the second it will be ./ . I think
the second is slightly preferable, as it makes it easier to unpack
in a separate subtree.)
> as you can see the first line shows an empty entry!
Consider filing a bug report against tar (it could use "." rather than
"" as the file name) and/or star (it should be more robust).
> in the case of a total HD crash I'll have to restore using 'zcat' and
> 'star' from the Debian boot disks; I guess 'tar' can handle this empty
> entry nicely but I remember 'star' choked on it the last time I needed
> it (I don't remember the exact error message);
>
> how do I exclude this empty entry for the tar file?
The following appears to do *exactly* what you asked for:
pax -w -X -s :^/:: / | gzip > /whatever/root.tar.gz
pax is a great tool; it even lets you use regular expressions to
select and/or rename files on the fly. (And of course it's standard
POSIX and supports both tar and cpio formats.) I'm surprised
no one ever thinks of using it (well, hardly anyone).
Consider writing your archives in cpio (or afio) format rather than tar.
This is particularly important if you have pathnames that cannot be
split 155+100 at a slash separator (and I wouldn't be surprised to
learn that star doesn't support file names longer than 100 characters
at all).
If necessary, prepare another floppy disk with pax, GNU tar, cpio or afio
just so you can restore things more easily.
------------------------------
** 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
******************************