Linux-Misc Digest #219, Volume #27               Sun, 25 Feb 01 09:13:02 EST

Contents:
  how to repartition hard drive? ("Siemel Naran")
  Re: Curly brackets (Federico Bravo)
  Re: screensavers in redhat (andi smart)
  adding extensions to many files in a directory (Glitch)
  Re: Where to find these libs for licq? (Glitch)
  Re: I want to make a dual boot system, but don't know how to. (Glitch)
  open database file (Stefan =?ISO-8859-1?Q?R=FCttgers?=)
  Re: Newbie: Running On StartUp ("Scot Mc Pherson")
  Re: Now what to with sane? Help can't find the scanner (Robert Schweikert)
  Re: adding extensions to many files in a directory (Paul Colquhoun)
  Re: Curly brackets (Villy Kruse)
  kicq2 wont build (Dirk Groeneveld)
  Re: how to repartition hard drive? (Jimmy Navarro)
  licence loops (Dirk Groeneveld)
  Re: licence loops (Stefano Ghirlanda)
  HELP on /etc/passwd (ob1)
  data recover after mkfs (Adriano Algeri)

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

Reply-To: "Siemel Naran" <[EMAIL PROTECTED]>
From: "Siemel Naran" <[EMAIL PROTECTED]>
Subject: how to repartition hard drive?
Date: Sun, 25 Feb 2001 08:28:02 GMT

I have one partition that cosumes the entire hard drive.  I want to resize
it to about half its size in order to make room more more partitions, on
which will be Linux.  The total hard disk space is 41GB and the space being
used is 6GB.

GNU 'parted', the tool to resize and create partitions, cannot read the
device.  When I tell it to print the partitions it says "Unable to open
/dev/hda -- unrecognized disk label".  Is there a fix?

Could it be possible that the 6GB currently used lies at the start of the
disk.  Then if I just delete the partition and create a new one with the
same starting cylinder and new ending cylinder, it should work, right?  It
sounds risky though.

I also tried a program called PRESIZER.EXE but it doesn't work.  It doesn't
let me change the size of the partition.


Thanks.

--
+++++++++++
Siemel Naran



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

From: Federico Bravo <[EMAIL PROTECTED]>
Subject: Re: Curly brackets
Date: Sun, 25 Feb 2001 09:37:33 GMT



Lew Pitcher wrote:

>
> Sorry, Federico, but I don't know how to get your Italian keyboard to
> enter curly braces (I assume you mean these... { } ).
>
> However, since you are writing a C program, have you considered using
> digraphs or trigraphs to solve your problem? If these terms are new to
> you, they refer to the ability of an ANSI C compiler to treat certain
> contigious combinations of two or three characters as a single
> character.
>
> The egcs documentation includes this paragraph about digraphs:
>
>     The following digraph tokens are supported:
>         <:      :>      <%      %>      %:      %:%:
>     These behave like the following, respectively:
>         [       ]       {       }       #       ##
>
> The trigraphs for { and { are ??( and ??) respectively (I'm working from
> memory here).

Thank you, Lew. What I actually discovered is that I get {    if I press
AltGr + 7   and }  if I press AltGr + 0   ( I was looking for something like
the M$ OS's capability of entering all the ASCII chars with ALT + xxx ).

Federico.


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

From: [EMAIL PROTECTED] (andi smart)
Subject: Re: screensavers in redhat
Date: Mon, 26 Feb 2001 09:44:08 GMT

Feeling a bit embarassed here.....

Had just finished posting my message, went and got a cup of tea, and
when I came back the plain black screen had turned into the BSOD
saver! I have no idea what happened but its purred like a kitten ever
since!

Thanks for taking the time to reply though

andi


On Thu, 22 Feb 2001 17:03:39 -0500, Jean-David Beyer
<[EMAIL PROTECTED]> wrote:

>andi smart wrote:
>> 
>> I have just installed RH 6.1 (as 'gnome workstation')
>> 
>> I would really like it to use the BSOD screensaver, which displays
>> fine in the preview pane but won't actually run - I just get no image
>> at all on the monitor. Any movement from mouse or keyboard resumes
>> work so the screensaver element of this is working.
>
>I had that one working on RH 6.0, and I believe it works on 6.2.3.
>IIRC, you have to let it run at maximum speed or it does not run at
>all (which is a little faster than I prefer.  The first time the
>BSOD came up, I automatically reached for the panic button (but
>managed not to press it) before I remembered what a UNIX kernel
>panic looks like. I glanced at the Linux kernel source, and see is
>it quite similar to what I remember. I have never seen it come up,
>on a Linux system though.
>
>I actually prefer the rotating 4-dimensional hypercube.
>> 
>> I have a monitor which was not listed, so I am using 'generic
>> mulitsync' running at 800x600 with 16bit colour.
>> 
>> OK, so it's trivial but ......
>> "A single open mind, can open any door" Sonia Rutstein
>
>-- 
> .~.  Jean-David Beyer           Registered Linux User 85642.
> /V\                             Registered Machine    73926.
>/( )\ Shrewsbury, New Jersey
>^^-^^ 5:00pm up 2 days, 34 min, 3 users, load average: 2.11, 2.19,
>2.16

"A single open mind, can open any door" Sonia Rutstein

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

Date: Sun, 25 Feb 2001 02:29:36 -0500
From: Glitch <[EMAIL PROTECTED]>
Subject: adding extensions to many files in a directory

hello,

is it possible to easily add .zip (in this case) to all the files in a
directory even when none of the files already have an 'extension' as
well as some end with numbers and others end with letters?

is there any simple fast way of doing that?

i've tried shell scripts and Perl scripts and unless i'm doing it wrong
I can't quite get them to be renamed. One way i did it was using the
pattern matching Perl string of   s/[0-9]\b/.zip/ *     as an argument
to rename(), which I had to create first of course based on code in the
Perl Cookbook.
But for some reason that still skipped some files that ended with
numbers and i have no clue why. As it didn't even get all the right
files i didn't waste time on doing something similar for files that
ended with letters.


thanks
brandon

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

Date: Sun, 25 Feb 2001 02:30:44 -0500
From: Glitch <[EMAIL PROTECTED]>
Subject: Re: Where to find these libs for licq?

you can try rpmfind.net

i got tired of the stupid little errors of licq and just use gtkicq.
Works fine for my needs.

Chris Carlen wrote:
> 
> Hi:
> 
> I downloaded an licq RPM package for Suse 7.0.  It needs two libs that I
> don't have:
> 
> liblcms.so.1
> libmng.so.0
> 
> Anyone know where these come from and how to get them?
> 
> Thanks.
> --
> PLEASE REPLY TO THE NEWSGROUP OR REMOVE BOGUS FIELD FROM EMAIL
> ADDRESS!!!
> Christopher R. Carlen
> [EMAIL PROTECTED]

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

Date: Sun, 25 Feb 2001 02:33:23 -0500
From: Glitch <[EMAIL PROTECTED]>
Subject: Re: I want to make a dual boot system, but don't know how to.



"Bill B." wrote:
> 
> Hi Everybody!
> After my birthday I am going to have anough money to buy another harddrive
> to make my first RAID. I have decided I am going to format my drive then (I
> am pretty sure I have to to make a RAID) and I remebered I have a copy of
> TurboLinux Server 6.0 Lite that came with my NIC. So I am going to install
> this to see what Linux is all about. But I want to keep my Win98 for
> computing, and am installing Linux to see it. So I need info on making a
> dual boot system. I could also use info on Linux sence I have never used a
> Linux system or read anything about Linux.

i'd thinking dual booting and RAID would make your situation more
difficult. With that said I can't help you since you are throwing RAID
into the picture.

All dual booting is in the first place is telling LILO (boot loader)
where each of yoru OSes exist (what drives) and that's pretty much it.
You also decide where you want LILO placed: on a floppy, or on the MBR,
or whatever.

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

From: Stefan =?ISO-8859-1?Q?R=FCttgers?= <[EMAIL PROTECTED]>
Subject: open database file
Date: 25 Feb 2001 11:12:52 GMT

Hi,

I'm new to Linux. A colleague sent me his research results in a file
with a .db ending. A friend told me to use the file command and that
gave me:

Berkeley DB 1.85

What software do I need to open this?
I'm using Mandrake 7.2

thanks for help!

Stefan R�ttgers




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

From: "Scot Mc Pherson" <[EMAIL PROTECTED]>
Subject: Re: Newbie: Running On StartUp
Date: Sun, 25 Feb 2001 11:30:32 GMT

If you start automatically in a GUI, then you can put the command in your
.shell_profile file found in your home directory..

.bash_profile

--
Scot Mc Pherson
http://www.behomet.net
N27� 19' 56"
W82� 30' 39"



Cyber Dog <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> What's the necessary procedure for running a software program on a
Linux-Mandrake 7.2 system when I log into my account? For example: I have
AOL Instant Messenger installed on my account.  When I log in, I want the
program to be run automatically, rather than me having to run
/usr/local/bin/aim every time.  How can this be accomplished?  Thanks.
>
> --
> Posted via CNET Help.com
> http://www.help.com/



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

From: Robert Schweikert <[EMAIL PROTECTED]>
Subject: Re: Now what to with sane? Help can't find the scanner
Date: Sun, 25 Feb 2001 06:32:11 -0500

Thanks,

I got it going. Turns out that although the scsi card was getting picked up
the scannere wasn't. After removing the terminator from the scanner, which
appears weird to me everything started working.

Robert


Robert Schweikert wrote:

> Got it all set up and am all exited, but now what.
>
> I have a UMAX Astra 1220S scanner, I installed sane, sane-front ends and
> sane-backends and xsane. I am using an Adaptech 2940 SCSI card and was
> hoping to just connect everything and it would work. But well....
>
> When I booted the Adaptech card was picked up properly, the scanner is
> turned on but xsane reports "no devices available" and "scanimage
> --list-devices" shows nothing.
>
> What to do? Where to start? ????
>
> Any help is appreciated.
>
> Thanks,
> Robert
>
> --
> Robert Schweikert                      MAY THE SOURCE BE WITH YOU
> [EMAIL PROTECTED]                         LINUX

--
Robert Schweikert                      MAY THE SOURCE BE WITH YOU
[EMAIL PROTECTED]                         LINUX




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

From: [EMAIL PROTECTED] (Paul Colquhoun)
Subject: Re: adding extensions to many files in a directory
Reply-To: <[EMAIL PROTECTED]>
Date: Sun, 25 Feb 2001 11:48:03 GMT

On Sun, 25 Feb 2001 02:29:36 -0500, Glitch <[EMAIL PROTECTED]> wrote:
|hello,
|
|is it possible to easily add .zip (in this case) to all the files in a
|directory even when none of the files already have an 'extension' as
|well as some end with numbers and others end with letters?
|
|is there any simple fast way of doing that?
|
|i've tried shell scripts and Perl scripts and unless i'm doing it wrong
|I can't quite get them to be renamed. One way i did it was using the
|pattern matching Perl string of   s/[0-9]\b/.zip/ *     as an argument
|to rename(), which I had to create first of course based on code in the
|Perl Cookbook.
|But for some reason that still skipped some files that ended with
|numbers and i have no clue why. As it didn't even get all the right
|files i didn't waste time on doing something similar for files that
|ended with letters.


>From a Bourne/Korn/BASH shell prompt this should work:

for FILE in *
do
  mv $FILE ${FILE}.zip
done


-- 
Reverend Paul Colquhoun,      [EMAIL PROTECTED]
Universal Life Church    http://andor.dropbear.id.au/~paulcol
-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-
xenaphobia: The fear of being beaten to a pulp by
            a leather-clad, New Zealand woman.

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

From: [EMAIL PROTECTED] (Villy Kruse)
Subject: Re: Curly brackets
Date: 25 Feb 2001 11:50:07 GMT

On Sun, 25 Feb 2001 09:37:33 GMT, Federico Bravo <[EMAIL PROTECTED]> wrote:
>
>


>
>Thank you, Lew. What I actually discovered is that I get {    if I press
>AltGr + 7   and }  if I press AltGr + 0   ( I was looking for something like
>the M$ OS's capability of entering all the ASCII chars with ALT + xxx ).
>


You can do that as well

Try left-alt-123 and left-alt-125

Also, you proabably loaded one of the following keymaps, and
of you zcat one of them it may contain some more information.

/usr/lib/kbd/keytables/it-ibm.map.gz
/usr/lib/kbd/keytables/it.map.gz
/usr/lib/kbd/keytables/it2.map.gz

Villy

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

From: Dirk Groeneveld <[EMAIL PROTECTED]>
Subject: kicq2 wont build
Date: Sun, 25 Feb 2001 14:07:34 +0100

Hi!

I am trying to get kicq 2.0.0b to work on my kde 2.1 system. I untar it, 
enter the directory and do ./configure, make and get this:

cd . && make -f admin/Makefile.common configure.files
make[1]: Entering directory `/usr/src/kde/kicq-2.0.0b1'
make[1]: *** [configure.files] Error 1
make[1]: Leaving directory `/usr/src/kde/kicq-2.0.0b1'
make: *** [configure.files] Error 2

That is _all_ the output I get.
Well, I am completely stuck. I don't even know where to start searching for 
a bug. I assume it's somewhere in the makefiles, but he doesn't tell me 
where. There's no configure.files in my entire kicq-tree.

Dirk

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

From: Jimmy Navarro <[EMAIL PROTECTED]>
Subject: Re: how to repartition hard drive?
Date: Sun, 25 Feb 2001 04:29:00 -0800

I had the same question before.  I bought a Partition Commander (latest v6.2),
booted the Dell Inspiron 8000 with Partition Commander boot disk and was able
to resize a 30GB drive with W2K into 15GB for W2K and rest for Linux.  Somehow
the same program, System Commander for Turbo Linux 6.0 didn't work before
features to resize drive is disabled.

Siemel Naran wrote:

> I have one partition that cosumes the entire hard drive.  I want to resize
> it to about half its size in order to make room more more partitions, on
> which will be Linux.  The total hard disk space is 41GB and the space being
> used is 6GB.
>
> GNU 'parted', the tool to resize and create partitions, cannot read the
> device.  When I tell it to print the partitions it says "Unable to open
> /dev/hda -- unrecognized disk label".  Is there a fix?
>
> Could it be possible that the 6GB currently used lies at the start of the
> disk.  Then if I just delete the partition and create a new one with the
> same starting cylinder and new ending cylinder, it should work, right?  It
> sounds risky though.
>
> I also tried a program called PRESIZER.EXE but it doesn't work.  It doesn't
> let me change the size of the partition.
>
> Thanks.
>
> --
> +++++++++++
> Siemel Naran


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

From: Dirk Groeneveld <[EMAIL PROTECTED]>
Subject: licence loops
Date: Sun, 25 Feb 2001 14:49:18 +0100

Hi!

I just tried to download libgif and suddenly found myself threatened by a 
lawsuit for using the lzw algorithm.
That led me to the following idea. Can't I license the concept of a loop in 
a program and then start suing software companies? The attention the cases 
would get might be enough to make the government aware of the problem of 
licensing software.

What do you think?

Dirk

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

From: Stefano Ghirlanda <[EMAIL PROTECTED]>
Subject: Re: licence loops
Date: 25 Feb 2001 14:15:09 +0100

Dirk Groeneveld <[EMAIL PROTECTED]> writes:

> I just tried to download libgif and suddenly found myself threatened
> by a lawsuit for using the lzw algorithm.  That led me to the
> following idea. Can't I license the concept of a loop in a program
> and then start suing software companies? The attention the cases
> would get might be enough to make the government aware of the
> problem of licensing software.
> 
> What do you think?

Things to patent must be innovations, not only as yet unpatetented.

-- 
Stefano - Hodie quinto Kalendas Martias MMI est

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

From: ob1 <[EMAIL PROTECTED]>
Crossposted-To: 
alt.os.linux,alt.comp.linux,be.comp.os.linux,easynet.be.support,comp.os.linux.security
Subject: HELP on /etc/passwd
Date: Sun, 25 Feb 2001 14:34:35 +0100

Hello all

I have a LARGE LARGE pbrl, you know this small file which gathers
"user" under linux, and well I have modify the first word of " root "
in " ROOt ", wonder not how I made... Is somebody would have a remedy
has this kind of prbl???

I have tried to log me as "ROOt " or to change the config via
Webmin... etc NADA. It is on a small production server and this is
really tedious to reinstall it...

Thank you in advance for you help.

Eric 

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

From: Adriano Algeri <[EMAIL PROTECTED]>
Subject: data recover after mkfs
Date: Sun, 25 Feb 2001 13:25:31 GMT

I was installing a new hdd on my PC. After partitioning instead to issue
the command mkfs.ext2 /dev/hdc2 i wrote mkfs.ext2 /dev/hda2. I've
created a brand new 
filesystem on my data partion. This partition was unmounted so no
warning from mkfs.
Very big and stupid mistake! 
Is there any way to recover data from old hd partition ?

thanx a lot.
Adriano Algeri [EMAIL PROTECTED]

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


** 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