Linux-Misc Digest #4, Volume #27                  Fri, 2 Feb 01 21:13:03 EST

Contents:
  Re: removing partition with data in it (Floyd Davidson)
  Re: hard link question ([EMAIL PROTECTED])
  Linux Newbie Help!!!! ("Gerry")
  Re: How burn wav files to cd audio ? (Bill Unruh)
  Re: What/where are ALL the startup files in Linux/GNU? ("OpenMind")
  Re: MS to Enforce Registration - or Else (Steve Mading)
  Re: MS to Enforce Registration - or Else (Steve Mading)
  Re: How to change screen size in RH6.2 (KDE)?? ([EMAIL PROTECTED])
  Re: Video Capture: mpeg (1 frame every 2 sec) ([EMAIL PROTECTED])
  default PATH for new user loaded from where? ([EMAIL PROTECTED])
  How to map a tty port to another tty port ("Jean-Pierre Dub�")
  Re: How to change screen size in RH6.2 (KDE)?? ([EMAIL PROTECTED])
  Re: hard link question ([EMAIL PROTECTED])
  Re: hard link question ([EMAIL PROTECTED])
  Re: Video Capture: mpeg (1 frame every 2 sec) ([EMAIL PROTECTED])
  Re: hot-swap on IDE disk (Dances With Crows)

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

From: Floyd Davidson <[EMAIL PROTECTED]>
Subject: Re: removing partition with data in it
Date: 02 Feb 2001 14:04:07 -0900

"doug edmunds" <[EMAIL PROTECTED]> wrote:
>I have 2 linux partitions, /dev/hdc2 and /dev/hdc5, both have data in them.
>/dev/hdc5 is /home

I assume that means /dev/hdc5 is mounted on /home, right?  And
that /dev/hdc2 is the root partition...

>I want to merge the data all into one partition, so the
>other will be empty. 
>My idea --
>1- make a new directory in the first partition i.e., /newhome.
>2- copy everything from /home to /newhome

  cp -a /home/* /newhome

will do that nicely for you.

Up to this point you could be doing this as root while in
multiuser mode, but before you can do the next step all
normal users must be logged out and no processes that will
use anything (such as shell history files or whatever) in
the /home directory must be disabled.  You might well be
able to just log all normal users out and proceed.  But
if any normal users have cron jobs, or if the machine allows
user to access it via a network you'll want to go to single
user mode to finish up the rest.

>3- unmount /dev/hdc5
>4- rename /newhome to /home
>5- edit /etc/fstab to remove /dev/hdc5
>6- reboot

No need to reboot.  If you don't have other users and have
done this while in multiuser mode, you can now resume normal
operations.  If you went to single user you can now go back
to multiuser.

You can of course go ahead and reboot, just to make sure that
when it does reboot you got /etc/fstab right and the system will
come up properly.

-- 
Floyd L. Davidson         <http://www.ptialaska.net/~floyd>
Ukpeagvik (Barrow, Alaska)                 [EMAIL PROTECTED]

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

From: [EMAIL PROTECTED]
Subject: Re: hard link question
Date: Fri, 02 Feb 2001 23:56:18 GMT

Paul Kimoto <[EMAIL PROTECTED]> wrote:
> Each document in the filesystem is uniquely identified by something called
> an "inode".  Directory contents ("hard links") tell which inode goes with
[...]
> When you use emacs, apparently it is opening a new file, with a new inode,
> then changing the directory so that the filename points to the new inode.
> Then the edited file will differ from the other links (that used to share
> the inode).  You will probably find that the emacs backup file (suffixed
> with "~") points to the old inode.

Exactly.

To demonstrate:

jbuchana@zaphod$ ls -li
total 4
2015294 -rw-r--r--    1 jbuchana jbuchana       21 Feb  2 18:53 foo
jbuchana@zaphod$ ln foo bar
jbuchana@zaphod$ ls -li
total 8
2015294 -rw-r--r--    2 jbuchana jbuchana       21 Feb  2 18:53 bar
2015294 -rw-r--r--    2 jbuchana jbuchana       21 Feb  2 18:53 foo

[... edit foo with emacs ...]

jbuchana@zaphod$ ls -li
total 12
2015294 -rw-r--r--    2 jbuchana jbuchana       21 Feb  2 18:53 bar
2015486 -rw-r--r--    1 jbuchana jbuchana       25 Feb  2 18:53 foo
2015294 -rw-r--r--    2 jbuchana jbuchana       21 Feb  2 18:53 foo~
jbuchana@zaphod$

The -i switch to ls displays the inode number, the third column shows
how many links exist for the file.


-- 
Jim Buchanan        [EMAIL PROTECTED]     [EMAIL PROTECTED] 
=================== http://www.buchanan1.net/ ==========================
"A women came up to me and said, I'd like to poison your mind
 with wrong ideas that appeal to you, though I am not unkind."
 -They Might be Giants
================= Visit: http://www.thehungersite.com ==================

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

From: "Gerry" <[EMAIL PROTECTED]>
Subject: Linux Newbie Help!!!!
Date: Fri, 2 Feb 2001 19:26:50 -0500

I have a SparcStation 10 on which I would like to install Linux. It is
aclean system with no OS and a 1Gig HD.
I've tried in vain here in Toronto to locate a copy of Linux for Sparc that
I could use. These things are either nonexistent or unavailable here. I have
Linux RedHat 5.4 (Manhatten) and Open Linux 2.3 (Caldera). Both of these
appear to be i-3/486 packages.

Can anyone please tell me how to get either one of my above editions loaded
into a Sparc OR can they help me with locating one of these mysterious Linux
for Sparc varieties?

Gerry



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

From: [EMAIL PROTECTED] (Bill Unruh)
Crossposted-To: alt.os.linux.mandrake,comp.os.linux.setup
Subject: Re: How burn wav files to cd audio ?
Date: 3 Feb 2001 00:40:06 GMT

In <[EMAIL PROTECTED]> root <[EMAIL PROTECTED]> writes:

>I got ecawave 0.3.3 development files with ecasound 1.8.5 and
>qtecasound... as needed. I recorded
>2 *.wav files.  They are 2 sides of a tape.  I want to paste them
>together.  I tried copy and paste in 2 gnoise windows but that did
>not do anything.

No it will not. gnoise buffers do not trasfer from one session to the
other.

You could use sox to write a raw files, then cat then together through
sox asgain to get one long .wav

sox file1.wav -t .sw -r 44100  file1.raw
sox file2.wav -t .sw  -r 44100 file2.raw
cat file1.raw file2.raw|sox -t .sw -r 44100 - file3.wav
should give you a single .wav file containing both of the other two
files, which you can edit with gnoise (although gnoise with more than
about 15 min of file can get very slow.)


....
>I tried cat file1.wav file2.wav > file3.wav before and that did not
>work. It just played the file1.wav I think.  I am guessing their must
>be markers so it won't work that easy??

a .wav file contains the length of the file in the header. Also the
second files header would get messed up with the music.

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

From: "OpenMind" <**Mail Free America**>
Subject: Re: What/where are ALL the startup files in Linux/GNU?
Date: Fri, 2 Feb 2001 16:44:31 -0800

Thanks for the starting point.  Good place to begin studying.

> /etc/sysconfig/ directory contains system configuration settings :

[...]






====== Posted via Newsfeeds.Com, Uncensored Usenet News ======
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
=======  Over 80,000 Newsgroups = 16 Different Servers! ======

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

From: Steve Mading <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.advocacy
Subject: Re: MS to Enforce Registration - or Else
Date: 3 Feb 2001 00:57:15 GMT

In comp.os.linux.advocacy Aaron R. Kulkis <[EMAIL PROTECTED]> wrote:
: Ian Davey wrote:
:> 
:> You've still not managed to convince me. But perhaps it's just a matter of
:> semantics, Atheism is a lack of *religious* beliefs (theism), but not a lack
:> of belief. Does that work better for you? So an Atheist believes something
:> other than religion.

: There's an old law of military command:

: Failure to come to a decision is a decision in itself.

: Do the math.

"Failure to come to a decision is a decision"  is self
contradictory.  It fits the patern: X == not(X).

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

From: Steve Mading <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.advocacy
Subject: Re: MS to Enforce Registration - or Else
Date: 3 Feb 2001 00:58:20 GMT

In comp.os.linux.advocacy Dan Mercer <[EMAIL PROTECTED]> wrote:
: Could you please take this conversation private or at least to
: a more appropriate newsgroup.  While I believe God advocates Linux
: (Bill Gates being the antiChrist) comp.os.linux.misc,comp.os.linux.advocacy
: are not appropriate forums for this discussion.

When insults are made in public, the responses must be equally public.


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

From: [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.help
Subject: Re: How to change screen size in RH6.2 (KDE)??
Date: Sat, 03 Feb 2001 01:23:54 GMT

I have the same problem. The CTRL+ALT+PLUS/MINUS does not work.

I am using the "OpenLinux In 24 Hours" book and CD.
If you look in the index under Screen/Resolution, I think its on page
147, it mentions the problem of a screen that is too big. It says that
if you add a pound sign (#) to the line on the previous page the screen
size default will be shut off.

The is not possible when you cannot navigate around a 2 acre image on a
15" screen in order to access variou functions, let alone learn the most
basic proceedures.

If you do not have this version of the program or the book I will be
happy to send details. If you DO have this version please feel free to
HELP ME!!!!!!!!!!!!!!!!!!!



In article <[EMAIL PROTECTED]>,
  [EMAIL PROTECTED] wrote:
> I have my screen set to 800x600 from the initial RH installation but
> many applications display windows which do not fit on this screen.
> Often the buttons are inaccessible outside the screen limits even!
>
> So I need to change the size of the screen, but I cannot find where.
> If I rightclick the background and select 'Display properties' a
> multi-tabbed dialog pops up. It contains much the same window stuff as
> in Win95 except there is no sign of a resolution setting page!
>
> So I am just curious if this setting is a one-shot during system
> installation or if it can be changed later? If it can be changed, do I
> have to install some special program for this?
>
> And another thing:
> Is there some setting somewhere that can make the programs use only
> the existing size of the screen instead of displaying windows and
> buttons outside the actual screen limits?
>
> Bo Berglund
> [EMAIL PROTECTED]
>


Sent via Deja.com
http://www.deja.com/

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

From: [EMAIL PROTECTED]
Subject: Re: Video Capture: mpeg (1 frame every 2 sec)
Date: Sat, 03 Feb 2001 01:32:00 GMT

Chris Webster <[EMAIL PROTECTED]> wrote:
> What I'm looking for:  I would like to come off a 10 flight with a 10
> minute "fast forward" looking video (mpeg) of the flight (1 frame every
> 2 seconds?).

> I have a Hauppaugge WinTV card working with XawTV.  The "streamer"
> program can produce a series of jpegs or an AVI (RIFF?) file.

> 1)  Is there a linux program which I can view that AVI/RIFF file with?

> or

> 2) Is there a program that can take a string of jpegs and make an mpeg?

> or

> 3)  I'm going about this all wrong and I should try.....

> --Chris

I choose number 3...  Take a look at Broadcast2000, a free video capture
program... The author also has programs that takes the quicktime output
from bcast2000 and converts to mpeg.

http://www.heroinewarrior.com/index.php3

Adam


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

From: [EMAIL PROTECTED]
Subject: default PATH for new user loaded from where?
Date: Sat, 03 Feb 2001 01:30:24 GMT

After I assigned a new user (default is /bin/csh), the user login, I do
an
env | grep PATH
PATH=/usr/kerberos/bin:/usr/bin ....

What file get loaded to set-up PATH for this new user?

Thanks in advance,

Hoang


Sent via Deja.com
http://www.deja.com/

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

From: "Jean-Pierre Dub�" <[EMAIL PROTECTED]>
Subject: How to map a tty port to another tty port
Date: Fri, 2 Feb 2001 20:44:49 -0500

Hi,

I just installed a new Linux system where users will connect to it using
telnet. On this server I installer a Digi port server (16 ports RS-232).
These 16 ports are connected to another Unix system that is maintained by
another company. I have no access whatsover to administrate this system. I
would like to have my users to connect directly through a telnet session to
one of the ports on my port server. For example how can I redirect input and
output from /dev/pts/2 to /dev/ttyd0.

Thanks for your time
--
/*
 *
 * Infocom enr.
 * Jean-Pierre Dub�
 *
 */



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

From: [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.help
Subject: Re: How to change screen size in RH6.2 (KDE)??
Date: Sat, 03 Feb 2001 01:38:43 GMT



Part of my problem may be that I don't have any specs on my monitor
(Princeton Graphics EO15) and it is not listed on the list of choices on
the configuration screens.

Any help on THIS out there?

Thanks guys.....






In article <95fmj5$2vv$[EMAIL PROTECTED]>,
  [EMAIL PROTECTED] wrote:
> I have the same problem. The CTRL+ALT+PLUS/MINUS does not work.
>
>


Sent via Deja.com
http://www.deja.com/

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

From: [EMAIL PROTECTED]
Subject: Re: hard link question
Date: Sat, 03 Feb 2001 01:36:20 GMT

In article <[EMAIL PROTECTED]>,
  [EMAIL PROTECTED] wrote:
> In article <95f3sr$ian$[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote:
> > I have a file that I hard linked to a different location on the
> > same filesystem.  When I edit the file from the command line such as
> > "cat - >> file.txt
> > Bla bla
> > C-d
> >
> > The files in both locations get updated.  When I edit one of them
using
> > emacs and write, the files get out of sync, i.e. I can run diff on
them
> > from the command line and they are different.  How is this possible.
> >
> > I ran sync a couple of times and the files are still different.
>
> Each document in the filesystem is uniquely identified by something
called
> an "inode".  Directory contents ("hard links") tell which inode goes
with
> each filename.
>
> When you use the shell (with ">>"), apparently the document
corresponding
> to a particular inode is being updated.  Then each of your hard links
still
> points to the same inode, and hence the same file contents.
>
> When you use emacs, apparently it is opening a new file, with a new
inode,
> then changing the directory so that the filename points to the new
inode.
> Then the edited file will differ from the other links (that used to
share
> the inode).  You will probably find that the emacs backup file
(suffixed
> with "~") points to the old inode.
>
> The behavior of emacs can be changed.  See the emacs info pages for
the
> node called "Copying vs. Renaming", where it documents an emacs
variable
> called "backup-by-copying".
>
> P.S. Running "sync" should usually not matter at all.
>
> --
> Paul Kimoto
> This message was originally posted on Usenet in plain text.  Any
images,
> hyperlinks, or the like shown here have been added without my consent,
> and may be a violation of international copyright law.
>


Ahh. Yes.  I now have a backup that is nicely hard liked to a backup in
the other location.  I will check the documentation as you recommend to
change/correct Emacs behavour.
--
MM


Sent via Deja.com
http://www.deja.com/

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

From: [EMAIL PROTECTED]
Subject: Re: hard link question
Date: Sat, 03 Feb 2001 01:38:05 GMT

In article <COHe6.73820$[EMAIL PROTECTED]>,
  [EMAIL PROTECTED] wrote:
> Paul Kimoto <[EMAIL PROTECTED]> wrote:
> > Each document in the filesystem is uniquely identified by something
called
> > an "inode".  Directory contents ("hard links") tell which inode goes
with
> [...]
> > When you use emacs, apparently it is opening a new file, with a new
inode,
> > then changing the directory so that the filename points to the new
inode.
> > Then the edited file will differ from the other links (that used to
share
> > the inode).  You will probably find that the emacs backup file
(suffixed
> > with "~") points to the old inode.
>
> Exactly.
>
> To demonstrate:
>
> jbuchana@zaphod$ ls -li
> total 4
> 2015294 -rw-r--r--    1 jbuchana jbuchana       21 Feb  2 18:53 foo
> jbuchana@zaphod$ ln foo bar
> jbuchana@zaphod$ ls -li
> total 8
> 2015294 -rw-r--r--    2 jbuchana jbuchana       21 Feb  2 18:53 bar
> 2015294 -rw-r--r--    2 jbuchana jbuchana       21 Feb  2 18:53 foo
>
> [... edit foo with emacs ...]
>
> jbuchana@zaphod$ ls -li
> total 12
> 2015294 -rw-r--r--    2 jbuchana jbuchana       21 Feb  2 18:53 bar
> 2015486 -rw-r--r--    1 jbuchana jbuchana       25 Feb  2 18:53 foo
> 2015294 -rw-r--r--    2 jbuchana jbuchana       21 Feb  2 18:53 foo~
> jbuchana@zaphod$
>
> The -i switch to ls displays the inode number, the third column shows
> how many links exist for the file.
>
> --
> Jim Buchanan        [EMAIL PROTECTED]
[EMAIL PROTECTED]
> =================== http://www.buchanan1.net/
==========================
> "A women came up to me and said, I'd like to poison your mind
>  with wrong ideas that appeal to you, though I am not unkind."
>  -They Might be Giants
> ================= Visit: http://www.thehungersite.com
==================
>
Cool!  I like the ls -li trick.  Thank you. :-)
--
MM


Sent via Deja.com
http://www.deja.com/

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

From: [EMAIL PROTECTED]
Subject: Re: Video Capture: mpeg (1 frame every 2 sec)
Date: 02 Feb 2001 17:53:08 -0800

Chris Webster <[EMAIL PROTECTED]> writes:

> What I'm looking for:  I would like to come off a 10 flight with a 10
> minute "fast forward" looking video (mpeg) of the flight (1 frame every
> 2 seconds?).
> 
> I have a Hauppaugge WinTV card working with XawTV.  The "streamer"
> program can produce a series of jpegs or an AVI (RIFF?) file.
> 
> 1)  Is there a linux program which I can view that AVI/RIFF file with?
> 
> or
> 
> 2) Is there a program that can take a string of jpegs and make an mpeg?
> 
> or
> 
> 3)  I'm going about this all wrong and I should try.....
> 
> --Chris

There has been a rather primitive set of programs out for awhile,
one is called 'stream'.  I've used it and you have to pass arguments
giving a start and stop time for video capture (using bttv chip driver,
I suppose the Hauppage has a bttv video chipset doesn't it?), then a
program called mpeg2encode to convert the output of stream to mpeg2
which can be played with, for instance mtv or that player from loki (GTV?).
Only thing is, I never got sound to work.  The encantations are as shown
in this snippet from the output of a history command.

  615  stream -start 19:40:00 -end 19:40:05 200 180 audio1 video1
  617  mpeg2encode str2ppm.par out.m2v
  618  mtv out.m2v

I got these programs a long time ago, so probably better to do a fresh
search than me trying to dig out where I found them.  As I recall I got
source and had to do a bit of tweaking to get them to compile.
-- 
Replace ragwind.localdomain with rahul for a working email address

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

From: [EMAIL PROTECTED] (Dances With Crows)
Subject: Re: hot-swap on IDE disk
Date: 3 Feb 2001 02:08:05 GMT
Reply-To: [EMAIL PROTECTED]

On Fri, 2 Feb 2001 16:04:58 +0100, Natanael Copa staggered into the
Black Sun and said:
>I have installed linux on an ide disk. I wonder how I change the slave 
>without turning off the power. I tried with scsi disks and that worked 
>fine. (just unmounted the fs, rmmod scsi-diver, plugged out the disk, 
>insmod scsi-driver and mount fs)
>But I cant just unload the IDE driver since I've got the os on the other 
>IDE disk.
>
>Isnt there a command for forcing the kernel to rescan the idebus? or the 
>slave?

"change the slave"?  Um, without special mounting hardware, it's
*UNWISE* to unplug an IDE device from its ribbon cable when it's powered
on.  The IDE bus was never designed to allow for hot-swapping of
peripherals.  SCSI was, so it's reasonably easy with SCSI.

If you have your Linux root partition on a removable IDE device, you
cannot remove that device while Linux is running.  If you have a
removable device on /dev/hdb and your Linux / is on /dev/hda, you should
be able to umount every filesystem on /dev/hdb and swap devices,
provided your removable IDE kit is working properly.  There is something
that will re-scan the partition table on any IDE disk that doesn't
contain / , but I forget what exactly it is.  Look in the fdisk source?

-- 
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin /  Workin' in a code mine, hittin' Ctrl-Alt
http://www.brainbench.com     /   Workin' in a code mine, whoops!
=============================/    I hit a seg fault....

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


** 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 by posting to comp.os.linux.misc.

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