Linux-Misc Digest #755, Volume #21               Fri, 10 Sep 99 18:13:09 EDT

Contents:
  Re: URGENT - tar question ("Art S. Kagel")
  Re: W98 removed lilo (Cameron L. Spitzer)
  Compiling KDE apps; Linker error ([EMAIL PROTECTED])
  Linux, Windows, and cars (Peter Schaffter)
  Re: General Rant from a Linux Newbie (John Thompson)
  Re: new to linux ([EMAIL PROTECTED])
  /dev/ttyp6: Operation not permitted (Lee Kang Won)
  xterm broken? (Artit J)
  Re: Absurd Linux mentality ! ([EMAIL PROTECTED])
  Re: How to protect Telnet users? (William Wueppelmann)
  Re: FREE EAST TIMOR!!! STOP THE KILLING!!! (James Knott)
  Unable to load interpreter (Humphrey Zhang)
  Re: CPU utilization breakdown (Dustin Puryear)
  Re: Absurd Linux mentality ! (Robert Krawitz)
  Re: Copying to a physical location on a hd (Leonard Evens)
  Re: Setting prompt in BASH (Floyd Davidson)

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

From: "Art S. Kagel" <[EMAIL PROTECTED]>
Subject: Re: URGENT - tar question
Date: Fri, 10 Sep 1999 11:46:13 -0400
Reply-To: [EMAIL PROTECTED]

Try:

mt -f /dev/nst0 fsf     #Forward space file

to move the tape to the second tape file.  Then you can either use tar to 
extract the archive or dd to copy it to disk.

(Note: BSD used to put two EOF markers at the end of a tape file requiring 
one to use mt -f /dev/nst0 fsf 2 instead, but, IMS, I do not think that 
Linux does that, FWIW.)

Art S. Kagel


Stephen Waite wrote:
> 
> I am running RH 5.1 on an Intel system.
> 
> There were many tar files on a scsi tape, however a small tar file was
> written over the beginning of the tape thus corrupting a large tar file
> that should have been the first tar file on the tape.  I do not need to
> recover this large tar  file but I would like to have access to the rest
> of the tar files on the tape.
> 
> The problem was created by these commands in a script:
> 
> cd dir1
> tar cv file1 file2 .... > /dev/nst0
> 
> cd dir2
> tar cv file1 file2 .... > /dev/nst0
> 
> .
> .
> .
> 
> cd dir25
> tar cv file1 file2 .... > /dev/st0     <--------   NOTE the mistake here
> 
> cd dir26
> tar cv file1 file2 .... > /dev/st0
> 
> Thank you for your time.

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

From: [EMAIL PROTECTED] (Cameron L. Spitzer)
Subject: Re: W98 removed lilo
Date: 10 Sep 1999 16:06:34 GMT

In article <7rajb9$g3a$[EMAIL PROTECTED]>, Peter Scully wrote:
>I upgraded to W98 (dual boot) and now I can't get back into Linux.  If I use
>a boot disk it complains because it looks for /boot on hdc5 (it's on hda5) -
>any of you helpful people know how I can get lilo back in place?

This is described in detail in the Boot Prompt HOWTO, and mentioned in
the Ethernet and SCSI HOWTOs.  I suppose I should add it to this week's
rev of LILO mini HOWTO.

boot prompt: linux root=/dev/hda5

You can't use a "raw" bootimage floppy for this.  You need a loader
that will prompt for a boot command line.  If your distribution made a
raw bootimage disk, use your installation disk or a Debian Rescue Disk.

Cameron


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

From: [EMAIL PROTECTED]
Subject: Compiling KDE apps; Linker error
Date: Fri, 10 Sep 1999 15:44:05 GMT

Greetings gurus.
I'm trying to install the K-debugger on my RH6 box from tarballs but I'm
getting a very annoying error messages from the configure scripts (in
fact from __every__ configure script that links with kde and qt.)

"checking for KDE libraries installed... configure: error: your system
fails at linking a small KDE application!
Check, if your compiler is installed correctly and if you have used the
same compiler to compile Qt and kdelibs as you did use now"

This I have done; downloaded the KDE library sources (both 1.1 and
1.1pre2), compiled and installed them without trouble, downloaded,
compiled and installed Qt (both 1.44 and 2.0) without trouble, set the
KDEDIR, QTDIR, QTLIBDIR etc. etc. env.variables, and messed with the
configure script till I was blue in the face. Following is the error
part of the config.log:
configure:3879: checking for KDE libraries installed
configure:3882: /bin/sh ./libtool --mode=link g++ -o conftest -O2 -Wall
-I/usr/include -I/usr/local/qt/include  -I/usr/X11R6/include  -s
-L/usr/lib  -L/usr/X11R6/lib conftest.C  -lkdecore -lqt -lXext -lX11
-rpath /usr/lib -rpath /usr/X11R6/lib  1>&5
g++ -o conftest -O2 -Wall -I/usr/include -I/usr/local/qt/include
-I/usr/X11R6/include -s -L/usr/lib -L/usr/X11R6/lib conftest.C -lkdecore
-lqt -lXext -lX11 -Wl,--rpath -Wl,/usr/lib -Wl,--rpath
-Wl,/usr/X11R6/lib
/usr/lib/libkdecore.so: undefined reference to
`QComboBox::insertItem(char const *, int)'
/usr/lib/libkdecore.so: undefined reference to `darkMagenta'
/usr/lib/libkdecore.so: undefined reference to `QDir::exists(char const
*, bool)'
/usr/lib/libkdecore.so: undefined reference to `QFont::QFont(char const
*, int, int, bool)'
/usr/lib/libkdecore.so: undefined reference to `darkBlue'
/usr/lib/libkdecore.so: undefined reference to `QString::contains(char,
bool) const'

etc. etc.

Any hints as to what might be wrong ?


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

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

From: [EMAIL PROTECTED] (Peter Schaffter)
Subject: Linux, Windows, and cars
Date: 10 Sep 1999 21:02:38 GMT
Reply-To: [EMAIL PROTECTED]

I've been following the "Rant From A Linux Newbie" thread.  I've
decided to add my comments under a new header.

First things first.  I'm wondering if someone should create a
newsgroup called comp.os.linux.newbie.rant.  My first couple of
months with Linux were incredibly frustrating.  There was so
goddamned much to learn!  Seemed like for every simple task
I wanted to accomplish, I had to wade through twenty
incomprehensible man pages.  More than once, I wanted to post
to this newsgroup, calling Linux all sorts of nasty names.

Of course, now that I've been doing Linuxing for a while, I read
rants from newbies (the same rants I might have been tempted to
write myself) and smile with fond indulgence.  Oh yes, I still
remember.  Linux isn't easy on newbies.  They need to blow off
steam every once in a while.

Secondly, I'm getting tired of the Linux vs Windows debate (who
isn't?).  Linux doesn't exist in order to "kill Windows."  Linux
exists to offer an alternative OS for those who require (or
would simply prefer to have) the tools it provides.  You can do
some amazing things in Windows, or so I've heard.  (Never used
it myself. <g>)  You can do some amazing things in Linux.  For
that matter, you can do some amazing things with a Mac or an
Amiga.  Why do so many people measure Linux's success by it's
"better-ness" instead of by its innate "terrific-ness"?

Lastly, I read a lot of posts likening OSs to cars.  I think
it's time we dropped the analogy, especially in reference to
Linux.  A much better analogy (if not so neat) is that of
carpentry.

Say, for example, you decide you want to remodel your kitchen.
If you have money, you pay someone to do it for you.  No
problem.  It's a luxury you can afford, and no one expects you
to understand everything the carpenter does just in order to
store canned truffles in your new cupboards.

But say you don't have money to spare, and you still need to
redo the kitchen.  Well, then, you bite the bullet, learn
everything you can about carpentry, find some wood (cut it
yourself?), and set to work.  In the end, you've got a kitchen
probably just as nice as the one built by a pro, and you haven't
been forced to lay out cash you don't have.  As an added bonus,
if something isn't quite right, you know how to fix it.

Windows is for those who have the money to pay for services
(and, by extension, to pay more money to get things fixed).
Linux offers an alternative, opening up the possibility of
"doing it yourself."  Linux puts the power of the computer into
the hands of those who might otherwise not have access to it.
The issue isn't whether Linux is "better" than Windows, but
whether it provides users with the tools to do the same things,
at a fraction of the cost (or none at all, if you choose a
distro like Debian).

-- 
PTPi
(Peter Schaffter)

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

From: John Thompson <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.advocacy
Subject: Re: General Rant from a Linux Newbie
Date: Fri, 10 Sep 1999 14:50:47 -0600

"K. Bjarnason" wrote:

> > Repeat after me: Linux is not Windows. Linux is not Windows. Linux is not
> > Windows.
 
> And the former is...
> 
> Oh, yeah, *that's* why it's going to take over.  Missed that point, did
> you?

Um, why exactly do you think it is so important that linux
"take over?"  That's not why I use linux, anyway.

-- 

-John ([EMAIL PROTECTED])

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

From: [EMAIL PROTECTED]
Subject: Re: new to linux
Date: Fri, 10 Sep 1999 15:46:35 GMT

Hey there.

What kind of video was that on the Presario 9234? I just upgraded my
friend's Presario 9234 to Win98, and now the video is all screwed up? It
says it's an S3 Trio64V+, but I'm not sure of that.

Thanks for any help!

-H

In article <[EMAIL PROTECTED]>,
  [EMAIL PROTECTED] wrote:
> > Be warned, though, there's a lot of PC hardware out there that
simply WON'T
> > work with Linux. Check out RedHat's Hardware compatibility list
> >
[http://www.redhat.com/corp/support/hardware/intel/60/rh6.0-hcl-i.ld.htm
l].
> > It's pretty much applicable to most current versions of Linux.
>
> I've done quite a few installs and haven't run across a system yet
where
> it didn't work eventually...well, except that old 386 laptop that only
> has 2MB RAM...
> I could be just lucky...
>
> > If you're soundcard is not listed at compatible, don't even try to
install
>
> (soundcard ?  surely you meant to say video card)
>
> > Linux. You'll note that I'm posting this from my Windows machine.
That's
> > because my main production machine has the SiS 6326 video adapter ON
THE
> > MOTHER BOARD! [I would not have purchased this model had I known
that the
> > video was not on a card...] Until I find out how to disable the
on-board
> > video so I can slap in the 8MB Matrox Mystique card I have handy,
I'm stuck
> > using Windows.
>
> XFree86 3.3.4 now includes support for SiS 6326.
> I haven't tried it, but is listed as new in 3.3.4.
> 3dfx Voodoo and Trio3D too (I've tried them, they work!)
>
> My Compaq Presario 9234 has a built-in video card.  I checked the mb
> jumpers, but none disabled the built-in video.  I searched the ng's
and
> someone suggested that most mb's with built in video cards will
> automatically disable the built-in card if you plug another card in.
I
> tried this and it worked.  (The built-in card worked okay with Linux,
> but not with my fixed-freq monitor.)
>
> Your advice to check the hardware compat list is very good - I'm just
> saying if it's not on the list, don't let that stop you!
> DO use the list as a "shopping guide" though when buying new hardware.
>


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

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

From: Lee Kang Won <[EMAIL PROTECTED]>
Subject: /dev/ttyp6: Operation not permitted
Date: Fri, 10 Sep 1999 16:33:00 GMT

I opened 5 terminals and tried to run xxgdb from one of them.
but it says '/dev/ttyp6: Operation not permitted'.
What's wrong?

If my linux box limits numbers of ttyp[..], how can I change that?

but I can still open far more terminals.

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

From: Artit J <[EMAIL PROTECTED]>
Subject: xterm broken?
Date: Fri, 10 Sep 1999 20:52:22 GMT

After upgrading to glibc 2.11, xterm no longer runs. It dies with a "No
available ptys". Any ideas? I tried to compile wterm, but it died with
an undefined reference to something in libX.

Artit J.

PS. I think I installed glibc right, because i followed the HOWTO and
was able to compile gcc, wmaker, gtk, glib, and xmms without any
problems...

--
Even the smartest person will never understand the stupidest emotions.


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

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

From: [EMAIL PROTECTED]
Subject: Re: Absurd Linux mentality !
Date: 10 Sep 1999 20:28:44 GMT

So let's say you have 1000 names in a list which need to be added
as new users to a duplicate server.  With a command line and an 
ad hoc script that's about 15 minutes out of your life with no
errors.

With a GUI it's about 3 days and potentially lots of errors.  Not
to mention extreme boredom.

Both a command line and a GUI have their place.  

[EMAIL PROTECTED] wrote:
> 
> My heading is a bit extreme - perhaps ?
> 
> Linux users who are proud that they learned what:
> "     cd /home; tar cvpf - * | ( cd /newhome; tar xvpf - )     "
>  means; don't yet realise that knowledge of this arbitrary syntax, will be of
>  no use to them in 10 years time.
> 
> Those of you who spent resources learning a dozen different asmbl-langs:
> mov h,p;  lod h,p ; ldx h,p ....etc.   Where all of these were 'explained'
> in a more universal syntax. eg.  N -> [p]  , might have realised the
> waste of their time/effort.    Apparently most just accept this method.
> 
> Certain skills/knowledge is universally applicable.  Knowing/remembering
> Peter's , John's, Abdull's..... current telephone number is NOT !!
> 
> If you want to move your coffee cup from the left side to the right side,
> you use what I'll call a 'visual method': you look at the cup and at your
> hand manipulating the cup, until the task is completed.  Linux mentality
> prefers to wear a blindfold and manipulate the cup via the telephone
> using a necessarily arbitrary syntax.
> 
> The originally M$DOS utility 'Norton Commander', is cloned and
> extended for Linux as Midnight Commander.  Whereas I could not
> tolerate Linux's school-boy's syntax, having several MidntCmdrs
> (in different VTs), makes Linux somewhat usable.  Not only can you
> visually navigate thru the dir-tree, and see files in the current dir
> (with size, date, etc.), you can move, copy, delete....etc. without
> remembering arbitrary syntax.  Knowledge/progress means having
> CONCEPTS not WORDS. ie. you don't want to have to remember
> is it 'big' or is it 'large'.  Extending the principle of working with ideas
> instead of 'strings of chars'. I don't know and DON'T WANT to know
> how to mount my B: drive.  MdntCmd allows eg. to make a dir for
> often used scripts; call one script: 'mount B:' and call another:
> 'unmount B:' . Then in future, easily/visually goto the 'Script' dir
> visually scroll down to the 'well named script', hit enter - done !
> 
> Forget the school-boy mentality of being proud of acrobatically
> remembering  the 'correct syntax'.         A further example:
>  files have permission: read, write, execute; for owner, ........etc.
>  the command is chmod or modch, or dog-shit or some-thing ?!?
>  Using MdntCmdr I don't need to remember the arbitrary syntax.
>  All is done via menu and results are visually confirmed !!
> 
> In summary: whereas M$win insults one by talking via 'cartoons',
> the 1950's method of 'communicating with the little man in the box
> via shorthand syntax' is absurdly outdated.
> 
> My motivation for this post is the realisation that the post bellow is made
> redundant by using Midnight Commander. MC doesn't answer the question,
> it eliminates the need for the question(s) !!
> -------------------------
> On Tue, 07 Sep 1999 23:31:11 GMT, Ted wrote:
>  >I just cleared a partition from my hard drive, so now I have two ext2
>  >partitions, and I want to move the /home and /misc to the new partition.
>  >How should I go about doing that?
>  >
> I've seen reports that cp -a /home/* /newhome will work, but I use
> 
> cd /home; tar cvpf - * | ( cd /newhome; tar xvpf - )
> 
> This is after creating an ext2 file system on the partition using
> mke2fs, doing
> 
> mkdir /newhome
> 
> and mounting the partition on /newhome.  When you're satisfied that the
> files under /newhome are OK, you can
> 
> rm -rf /home
> 
> and then
> 
> mv /newhome /home.
> 
> You will then want to add a line to /etc/fstab to mount /home on bootup.
> 
> Bob T.

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

From: [EMAIL PROTECTED] (William Wueppelmann)
Subject: Re: How to protect Telnet users?
Date: Fri, 10 Sep 1999 20:34:11 GMT

In our last episode (Thu, 9 Sep 1999 22:14:40 +0200),
the artist formerly known as HPK said:
>Hi!
>
>How can I protect a dir so Telnet users cannot access that dir? (using the
>chmod command)  ..But, all files in the directory must me accessable through
>the web... Is this possible?

I don't think that you can protect a directory based on where a user is
coming from.  If this is what you're looking for, chmod isn't the right
place to search.   You could consider using a restricted shell of some sort
for certain users that need access to your machine but whom you want to
keep a tight reign on.  A restricted shell would limit users to running
certain programs and doing certain things, for example, by presenting a
menu-driven interface.  You may even be able to find (or build) something
that started a regular shell like bash or tcsh if the login was from the
console but a menued restricted shell if the login is from a remote
terminal.

-- 
It is pitch black.
You are likely to be spammed by a grue.

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

From: [EMAIL PROTECTED] (James Knott)
Crossposted-To: comp.os.linux.hardware,comp.os.linux.m68k
Subject: Re: FREE EAST TIMOR!!! STOP THE KILLING!!!
Date: Fri, 10 Sep 1999 12:47:18 -0400
Reply-To: James Knott <[EMAIL PROTECTED]>


In article <[EMAIL PROTECTED]>, "Pedro RA" <[EMAIL PROTECTED]> wrote:
>Sorry to post off topic but this is EXTREMELY important!
>
>FREE EAST TIMOR NOW!
>STOP THE KILLING KNOW!
>
>Please take a look at the nearest
>internacional news broadcast.
>
>Remember KOSOVO, RUANDA,
>BOSNIA, CAMBODJA, KURDISTAN,
>or the HOLOCAUST. Or remember all
>of them. You may as well add
>EAST TIMOR to this list.
>
>DO SOMETHING!
>
>Do what ever you can.
>
>Better even:
>STOP SOMETHING THAT SHOULD NEVER HAVE HAPPENED!
>
>    FREE EAST TIMOR

Let's all send them our old Linux CDs!!!


-- 
E-mail [EMAIL PROTECTED]
_________________________________________________________________________
The above opinions are my own and not those of ISM Corp., a subsidiary of
IBM Canada Ltd.

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

From: Humphrey Zhang <[EMAIL PROTECTED]>
Subject: Unable to load interpreter
Date: Fri, 10 Sep 1999 13:49:19 -0400

This is Mandrake 6.0, kernel of which has been upgraded to 2.2.10. Each
time
the system boot, after the line
 INIT: version 2.76
there is a line read exactly like the subject of this message. The
system doesn't have
major problems after coming up, but, what is it?

Jun


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

From: [EMAIL PROTECTED] (Dustin Puryear)
Subject: Re: CPU utilization breakdown
Date: Fri, 10 Sep 1999 21:22:12 GMT

On 08 Sep 1999 00:08:03 GMT, [EMAIL PROTECTED] (geoff) wrote:
>across both processors.  I'm looking for
>something that will give me something along
>the lines of:
>
>       SYS     USR     TOTAL
>
>CPU1:  30%     50%     86%
>CPU2:  22%     30%     60%

One day sar will find it's way..

---
Dustin Puryear
[EMAIL PROTECTED]

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

From: Robert Krawitz <[EMAIL PROTECTED]>
Subject: Re: Absurd Linux mentality !
Date: 10 Sep 1999 16:47:53 -0400

(There's actually a comment on the original question...)

[EMAIL PROTECTED] writes:

> Linux users who are proud that they learned what:
> "     cd /home; tar cvpf - * | ( cd /newhome; tar xvpf - )     "
>  means; don't yet realise that knowledge of this arbitrary syntax, will be of 
>  no use to them in 10 years time.

Why not?  It's been useful already for a lot longer than that.

> Those of you who spent resources learning a dozen different asmbl-langs:
> mov h,p;  lod h,p ; ldx h,p ....etc.   Where all of these were 'explained'
> in a more universal syntax. eg.  N -> [p]  , might have realised the 
> waste of their time/effort.    Apparently most just accept this method.

Which works well most of the time, which is why most people write most
code in high level languages of one kind or another.  It doesn't
always work.

> Certain skills/knowledge is universally applicable.  Knowing/remembering
> Peter's , John's, Abdull's..... current telephone number is NOT !!

And just why not?  For that matter, why is knowing English as opposed
to an abstract syntax tree so universally applicable?

> The originally M$DOS utility 'Norton Commander', is cloned and
> extended for Linux as Midnight Commander.  Whereas I could not 
> tolerate Linux's school-boy's syntax, having several MidntCmdrs
> (in different VTs), makes Linux somewhat usable.  Not only can you
> visually navigate thru the dir-tree, and see files in the current dir
> (with size, date, etc.), you can move, copy, delete....etc. without
> remembering arbitrary syntax.  Knowledge/progress means having
> CONCEPTS not WORDS. ie. you don't want to have to remember
> is it 'big' or is it 'large'.  Extending the principle of working with ideas
> instead of 'strings of chars'. I don't know and DON'T WANT to know
> how to mount my B: drive.  MdntCmd allows eg. to make a dir for 
> often used scripts; call one script: 'mount B:' and call another:
> 'unmount B:' . Then in future, easily/visually goto the 'Script' dir
> visually scroll down to the 'well named script', hit enter - done !

Why is scrolling down a menu any easier than remembering a command?
People are hard wired to understand language.  After a while the name
of the command becomes part of one's vocabulary, and at that point
it's a lot easier just to remember the name of the command than to
have to scroll down through a list of choices.  At least that's the
case for me, and to judge by the number of people who have no trouble
using Unix, it's the case for a lot of people.

> Forget the school-boy mentality of being proud of acrobatically
> remembering  the 'correct syntax'.         A further example:
>  files have permission: read, write, execute; for owner, ........etc.
>  the command is chmod or modch, or dog-shit or some-thing ?!?
>  Using MdntCmdr I don't need to remember the arbitrary syntax.
>  All is done via menu and results are visually confirmed !!

OK, using Midnight Commander, please find and compress all files in
the the root directory and all subdirectories recursively that live on
the local machine (i. e. not over NFS) bigger than 1 MB whose name
ends in ".tif".  You're entitled to assume that a command named
"compress" exists.

Now let's change the rules slightly.  You're to arrange that this is
done every day at 4 AM.  Oh, and this is only to be done if the
filesystem is more than 90% full and if the file has not been accessed
in more than 7 days.

A little harder, yes?  If you know the basic Unix commands, and
understand the rudiments of shell script, it's really very easy.  And
this example's not particularly contrived; it's a very typical task
that people perform to maintain free disk space.

> In summary: whereas M$win insults one by talking via 'cartoons',
> the 1950's method of 'communicating with the little man in the box
> via shorthand syntax' is absurdly outdated.

It's not (just) a matter of insulting one's intelligence; it's also a
matter of having sufficient expressive power for arbitrary nontrivial
tasks.

> My motivation for this post is the realisation that the post bellow is made 
> redundant by using Midnight Commander. MC doesn't answer the question,
> it eliminates the need for the question(s) !!

Not at all.  mc makes it easy to move a directory tree from one place
to another (for that matter, I could write an mvtree command quite
trivially if I cared, and still quite easily if I wanted to make it
robust), but that is not the entire task.

Ted did already have the new ext2 partition, so that's already out of
the way, but after copying the directory there's still the little
matter of clearing out the old /misc and /home (after ensuring that
all files have been copied -- presumably mc is sane enough to copy
everything, but the Windows recursive copy seems to like to avoid
"system" and "hidden" files, if I recall, which is disastrous).  Then
there's the matter of fixing up the mounts (and creating the
appropriate symlinks).

> On Tue, 07 Sep 1999 23:31:11 GMT, Ted wrote:
>  >I just cleared a partition from my hard drive, so now I have two ext2 
>  >partitions, and I want to move the /home and /misc to the new partition. 
>  >How should I go about doing that?
>  >
> I've seen reports that cp -a /home/* /newhome will work, but I use
> 
> cd /home; tar cvpf - * | ( cd /newhome; tar xvpf - )
> 
> This is after creating an ext2 file system on the partition using
> mke2fs, doing 
> 
> mkdir /newhome 
> 
> and mounting the partition on /newhome.  When you're satisfied that the 
> files under /newhome are OK, you can 
> 
> rm -rf /home 
> 
> and then 
> 
> mv /newhome /home.
> 
> You will then want to add a line to /etc/fstab to mount /home on bootup.

This isn't quite right, for two reasons:

1) The original poster wanted to relocate both /home and /misc, so
   it won't really do to put them in a filesystem mounted under /home.

2) You can't rename a mount point.

A better sequence, after copying everything to /newhome, verifying,
and removing the old /home and /misc, is to create symlinks from /home
and /misc pointing to /newhome/home and /newhome/misc.

-- 
Robert Krawitz <[EMAIL PROTECTED]>      http://www.tiac.net/users/rlk/

Tall Clubs International  --  http://www.tall.org/ or 1-888-IM-TALL-2
Member of the League for Programming Freedom -- mail [EMAIL PROTECTED]

"Linux doesn't dictate how I work, I dictate how Linux works."
--Eric Crampton

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

From: Leonard Evens <[EMAIL PROTECTED]>
Subject: Re: Copying to a physical location on a hd
Date: Fri, 10 Sep 1999 09:37:03 -0500

MBr wrote:
> 
> Hi, I was wondering how I could copy a file to the 1st sector of a
> volume under Linux?
> (Like putting the NT bootloader back into sector 0 of the NT volume...)
This you can probably do by something like
dd if=where_your_copy_is /dev/hda1 bs=512 count=1
(assuming your NT partition is /dev/hda1).
> Or like manually copying a backup superblock on a EXT2 fs to the proper
> location?
If you knew the locations of the superblock and the copy and
the size of the superblock and you didn't get messed up by
not knowing if the counting started at zero or one, you could
in principle do that for a partition not mounted.  But there
is an alternative which seems much simpler.  See the e2fsck
man page.

> 
> Manuel Beunder
> 
> --
>                 "It may hurt my pride to be wrong once in a while, but I
>                 rather be flamed with better information than to be left
>                 blissfully ignorant." /-- Manuel Beunder, maintainer of:
>                 http://www.euronet.nl/~mailme - The SB Live!-Linux page

-- 

Leonard Evens      [EMAIL PROTECTED]      847-491-5537
Dept. of Mathematics, Northwestern Univ., Evanston, IL 60208

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

From: [EMAIL PROTECTED] (Floyd Davidson)
Subject: Re: Setting prompt in BASH
Date: 10 Sep 1999 20:32:06 GMT
Reply-To: [EMAIL PROTECTED]

<[EMAIL PROTECTED]> wrote:
>I would like to set my prompt in the BASH shell to have reverse video
>similar to using %S and %s in the prompt variable for tcsh.  Right now
>my PS1 variable is set to \h:\w\$.  Is there any way I can get my pompt
>to be shown in revers video?
>
>Thanks,
>Jim Johnke

Here are a few things to try.  The descriptions are of what happens
using the particular xterm that I have, and may vary form one terminal
to another.


  export PS1='\[\033[1m\]\h:\w$\[\033[m\]'

     Sets the prompt to be bright.

  export PS1='\[\033[5m\]\h:\w$\[\033[m\]'

     Sets the prompt to be bold.

  export PS1='\[\033[7m\]\h:\w$\[\033[m\]'

     Sets the prompt to be inverse video.


You can also set the forground color, the background color, or
both, plus any of the above!  There can be 1, 2, or 3 parameters
listed, such as these three,

  export PS1='\[\033[31m\]\h:\w$\[\033[m\]'
  export PS1='\[\033[31;47m\]\h:\w$\[\033[m\]'
  export PS1='\[\033[1;31;47m\]\h:\w$\[\033[m\]'

The first one sets the foreground color only.  The second one
sets foreground and background, and the last one also sets one
of the bright, bold, or inverse attributes (some terminals may
also have dim and underline attributes).

The colors are,

    Color      Foreground    Background

    black          30           40
    red            31           41
    green          32           42
    yellow         33           43
    blue           34           44
    magenta        35           45
    cyan           36           46
    white          37           47

I personally like a color prompt rather than an inverse video
prompt.  My xterms use a black background and a goldenrod
forground (it looks something like an amber monochrome screen),
and I use a cyan colored foreground in the prompt.  Here is the
actual setting from my bashrc file,

    export PS1='\[\033[36m\]\h:\u \w >\[\033[m\]'



  Floyd

-- 
Floyd L. Davidson                          [EMAIL PROTECTED]
Ukpeagvik (Barrow, Alaska)


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


** FOR YOUR REFERENCE **

The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:

    Internet: [EMAIL PROTECTED]

You can send mail to the entire list (and comp.os.linux.misc) via:

    Internet: [EMAIL PROTECTED]

Linux may be obtained via one of these FTP sites:
    ftp.funet.fi                                pub/Linux
    tsx-11.mit.edu                              pub/linux
    sunsite.unc.edu                             pub/Linux

End of Linux-Misc Digest
******************************

Reply via email to