linreadline error on new install

2003-12-08 Thread Mike Thompson
I know there is a more appropriate group if someone could pass this
info on.

On two net installs of stable from 
deb http://http.us.debian.org/debian stable main contrib non-free
I received a libreadline error after trying to install the base system.
The base system seemed to install until I received this error.
The install went fine when I installed from
mirror.direct.ca/pub/linux/debian
perhaps there is an error left over from the recent system reinstall.

Mike
-- 
Mike Thompson
-- 
If you always do
what you have always done.
You will always get
what you have always gotten.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



user group

2003-01-19 Thread Mike Thompson
I want to make some non-shell accounts and there is a group called user
in /etc/group.  Is this group used for this purpose?

-- 
Mike Thompson


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: power down and power off also?

2002-11-23 Thread Mike Thompson
Sandip,
You might be looking for the command
insmod apm
shutdown, and if this works edit /etc/modules and add apm on a line by itself.
Mike

On Sat, Nov 23, 2002 at 01:18:54PM +0530, Sandip P Deshmukh wrote:
> hello all!
> 
> i have a dual boot system. it is a compaq machine.
> 
> when i select shutdown in windows, the power indicator also goes off.
> when i do similarly in linux, it shuts down everything, finally says
> Power Down and stays there.
> 
> is there a way in which i can make linux work in a similar way? meaning,
> i select halt and just have to switch off the main switch?
> 
> -- 
> regards,
> 
> sandip p deshmukh
> --***
-- 
Mike Thompson
[EMAIL PROTECTED]
---


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: 386 or 486 machine

2002-10-23 Thread Mike Thompson
On Wed, Oct 23, 2002 at 11:41:31PM +0100, Rupert wrote:
> On Wed, 23 Oct 2002 20:24:01 +0400
> Andrei Smirnov <[EMAIL PROTECTED]> wrote:
> 
> > is it possible to put Debian on a 386 or 486?
> 
> I put Debian Woody on a 486sx/25 with 8mb ram. Actually I cheated: I
> installed by attaching the hard disk to a more powerful motherboard, and
> then attached it to the older box. I can apt-get things, but it tends to
> take about half an hour for new software to seep into the package
> database. If I ever want to upgrade, I can always reattach it to the
> more powerful system, or just get it started and wait a week ;)
> 
> Rupert

I have debian on a 486 with 20M memory using icewm for xwindow manager
to run gnumeric.  The complete install is ~450M.  I use mutt for email
and lynx for browsing.

Mike Thompson


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: gnu-chess

2002-10-19 Thread Mike Thompson

atp-get install gnuchess gnuchess-book crafty crafty-books-medium xboard

On Sat, Oct 19, 2002 at 04:09:25PM +0330, Arash Bijanzadeh wrote:
> Where can I find a gnu-chess package for Debian please?

-- 
Mike Thompson
[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Simple HTTP Server Recommendation

2002-10-16 Thread Mike Thompson

Boa - Small footprint, easy setup.

On Wed, Oct 16, 2002 at 02:41:55PM +, Doug MacFarlane wrote:
> Team:
> 
> I need to put up a simple, HTML-only site.  No database/CGI/anything.
> 
> Apache looks like overkill.  
> 
> Can you recommend a nice, compact, efficient alternative?
> 
> TIA
> 
> madmac
> 
> -- 
> Doug MacFarlane
> [EMAIL PROTECTED]

-- 
Mike Thompson
[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Debian on an old system

2002-05-19 Thread Mike Thompson
The flat file database "Nosql" is small and fast and uses very
little resources.  It runs using sed, awk and perl scripts.  If you use
it with a small shell like "ash" for example it should fulfill all the
requirements you have for your muffler shop.
Mike


On Sun, May 19, 2002 at 07:23:30PM -0500, dman wrote:
> On Sun, May 19, 2002 at 12:01:16AM -0500, Alex Malinovich wrote:
> | Thanks to everyone who's already responded. Rather than quote 5
> | differenet messages, I'll just spit out the questions here.
> | 
> | While a GUI would be nice in terms of ease of use, the primary use is
> | going to be in a muffler shop, so a mouse wouldn't survive long anyway.
> | That leaves me with ncurses and from what I've read on here so far, it
> | sounds like that should run ok, even on the 486 with 8 megs of RAM.
> 
> I've got a Debian box here -- 486SX, 25Mhz, 8MB RAM, 230MB hard drive,
> 2 10BaseT NICs.  It handles the routing and masquerading quite well.
> The only problem it has is with only 8MB of RAM it tends to thrash a
> lot when doing "real" work.  I can run vim, but it takes a noticeable
> amount of time to startup.  Running apt or dpkg requires taking a
> break :-).
>  
> | The remaining question is what can I do in terms of data storage/access.
> | MySQL would be easy enough to work with, but what about performance? Can
> | the systems handle MySQL? Unfortunately, my data storage experience is
> | limited so I'm looking at either a premade solution (e.g. MySQL) or a
> | flat file.
> 
> The 486s and PPros should work just fine for you as long as they have
> enough memory.  CPU speed isn't the real bottleneck, even though the
> CPU manufacturers would have consumers think otherwise.  The real
> bottleneck is memory.  I haven't tried running a SQL db on this 486,
> but I do know that exim can handle some load on it, but it can also
> take down the system (if I let it overload the system so that the
> kernel starts killing things to save itself).
> 
> -D
> 
> -- 
> 
> Microsoft encrypts your Windows NT password when stored on a Windows CE
> device. But if you look carefully at their encryption algorithm, they
> simply XOR the password with "susageP", Pegasus spelled backwards.
> Pegasus is the code name of Windows CE. This is so pathetic it's
> staggering.
> 
> http://www.cegadgets.com/artsusageP.htm
>  
> GnuPG key : http://dman.ddts.net/~dman/public_key.gpg
> 



-- 
Mike Thompson
[EMAIL PROTECTED]
--

"Discovery consists of seeing what everybody has seen
and thinking what nobody has thought."

Albert Szent-Gyorgyi (Hungarian biochemist, 1893-1986)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: mutt and my email address

2002-04-18 Thread Mike Thompson

at the end of /etc/exim/exim.conf write

[EMAIL PROTECTED]   "[EMAIL PROTECTED]" Ffr

or similar.

On Wed, Apr 17, 2002 at 12:09:28PM -0500, Brooks R. Robinson wrote:
> Greetings,
>   Okay, so I'm trying to transition off of pine and Microsoft Outlook and
> move to mutt.  I've got most things tweaked the way I like them, but the I
> can't seem to find a configuration that works for changing my 'from' email
> address.  I use a dyndns.org hostname for my machine, but I want people to
> see my address to be from another domain (that I have pointed at the same
> box).  According to the man page, it uses the EMAIL environment variable,
> but setting/changing it seems to make no difference.  I've also put "set
> use_domain=yes" and "set hostname = domainthatiwant.org" in my .muttrc, but
> those don't seem to help either.  What am I missing?
> 
> Thanks,
> 
> Brooks
> 
> 
> 
> 
> -- 
> To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

-- 
Mike Thompson
[EMAIL PROTECTED]
--
I have great faith in fools -- self-confidence my friends call it.
-- Edgar Allan Poe


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: NOSQL

2002-04-17 Thread Mike Thompson
NOSQL fills all my requirements, which are simple,  small table, 
sport player database eg.

A similar interesting database can be found below

Starbase: A User Centered Database for Astronomy
http://iraf.noao.edu/iraf/web/ADASS/adass_proc/adass_95/rollj/rollj.html

-- 
Mike Thompson
[EMAIL PROTECTED]

On Wed, Apr 17, 2002 at 12:55:33PM +0200, andrea gelmini wrote:
> On mar, apr 16, 2002 at 11:16:16 -0700, Xeno Campanoli wrote:
> > So it doesn't sound like anyone's actually used it for real work; at
> > least not recently?
> 
> the author of nosql is a friend of mine. he uses it for his work (usually
> db solution for big site)...
> on linux journal i've seen adverts of something like it (rdb and so on)...
> anyway, the development of nosql is going on. you can check
> www.linux.it/~carlos/nosql, and its mailing list.
> 
> ciao,
> andrea
> 
> 
> -- 
> To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Epson Stylus Color 800

2001-11-02 Thread Mike Thompson
The epson stylus depends upon
recode
do you have this installed?

On Thu, Nov 01, 2001 at 10:16:40AM -, [EMAIL PROTECTED] wrote:
> 
> debian-user-digest Digest Volume 101 : Issue 1923
> 
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe".  Trouble?  Contact [EMAIL PROTECTED]
> 
> Today's Topics:
>   Re: Epson Stylus Color 880[ Stephen Gran <[EMAIL PROTECTED]> ]
>   Re: Debugger DDD with gdb [ Aaron Brashears <[EMAIL PROTECTED]> 
> ]
>   What's the file system of root.bin?   [ "Yuwen Dai" <[EMAIL PROTECTED]> ]
>   Re: gnu make files[ Osamu Aoki <[EMAIL PROTECTED] ]
>   Re: gnu make files[ Matthew Dalton <[EMAIL PROTECTED] ]
>   Re: What's the file system of root.b  [ Cameron Matheson <[EMAIL PROTECTED] 
> ]
>   Re: Patches applied to stock kernel   [ Adam Warner <[EMAIL PROTECTED] ]
>   Re: Newbie comments & queries [ "Ian Balchin" <[EMAIL PROTECTED] ]
>   Re: What's the file system of root.b  [ "Karsten M. Self" <[EMAIL 
> PROTECTED] ]
>   Re: something wrong with my fonts [ "Karsten M. Self" <[EMAIL 
> PROTECTED] ]
>   Re: ooops.. I think I messed somethi  [ "Karsten M. Self" <[EMAIL 
> PROTECTED] ]
>   HELP: dselect whining about not enou  [ [EMAIL PROTECTED] (Bruno Boe ]
>   Re: mouse doesn't work with xdm   [ Ingo Hohmann <[EMAIL PROTECTED]> ]
>   Unable to umount filesystem whe shut  [ Vittorio <[EMAIL PROTECTED]> ]
>   Playmidi problem  [ =?iso-8859-1?q?Steve=20Kieu?=  ]
>   Re: XF86Setup for woody?  [ George Karaolides <[EMAIL 
> PROTECTED] ]
>   Re: Playmidi problem  [ Martin Kacerovsky <[EMAIL 
> PROTECTED] ]
>   Re: Playmidi problem  [ =?iso-8859-1?q?Steve=20Kieu?=  ]
>   Re: HELP: dselect whining about not   [ Colin Watson <[EMAIL PROTECTED]> ]
>   Re: "upgrade" vs "dist-upgrade"   [ Bob Koss <[EMAIL PROTECTED]> ]

> From: Stephen Gran <[EMAIL PROTECTED]>
> To: Debian-user 
> Subject: Re: Epson Stylus Color 880
> 
> Thus spake Alberto Cort?s:
> > 
> > I'm trying to use an Epson Stylus Color 880 with lpr (1:0.48-1) and
> > magicfilter (1.2-39).
> > 
> > I'm not sure what filter to use, i have tried with these:
> >  /etc/magicfilter/[EMAIL PROTECTED]
> >  /etc/magicfilter/[EMAIL PROTECTED]
> >  /etc/magicfilter/[EMAIL PROTECTED]
> >  /etc/magicfilter/StylusColor-generic-filter
> > 
> > With those filters the documents were printed OK, but the printer
> > do not let me take the paper out, may be there has been a change in
> > the interface with the 880, concerning the expulsion of the paper at
> > the end of the job.
> > 
> > Has anybody get the same problem?, am I not using the proper filter?
> > The printer is OK, I have made tests with other OS.
> > 
> >   Thanks in advance.
> 
> This site http://www.linuxprinting.org/show_printer.cgi?recnum=317801
> suggests the stp driver, althoug I don't see it listed in my
> /etc/magicfilter dir.  Perhaps chasing it around on the site will help.
> Good luck,
> Steve
> 
> -- 
> If your bread is stale, make toast.



dvisvga missing fonts

2001-09-29 Thread Mike Thompson
The fonts displayed by dvisvga are little squares and the following
error message is displayed.

preparing font:   cmti12 at  300.0  - TFMfile  - no PKfile 
preparing font:cmr12 at  300.0  - TFMfile  - no PKfile 
[0] 

  I have installed:
  
dvisvga 01.03-3
tetex-bin   1.0.7+20001218
tetex-base  1.0.2+2804
tetex-extra 1.0.2+2804

I haven't used dvisvga for some time but tkdvi displays the files fine
and zgv which uses the same libsvga libraries displays jpg files.

Any help would be appreciated.
Thanks Mike
--
Mike Thompson
[EMAIL PROTECTED]



Re: gnuchess (player vs. computer)

2001-09-29 Thread Mike Thompson
Install crafty and start up xboard from xterm with the command line
xboard -fcp crafty
the problem with gnuchess not working with xboard goes back
to the change from version 4.77 to version 5.0
 (when the opening book also disappeared).
One fix is that /usr/games/gnuchessx should be a symbolic link to
/usr/games/gnuchess but I believe the opening book is still missing in
the current version.  Crafty however is working well.

The xterm command:
xboard -ics -icshost freechess.org
get you connected to the free chess server where you can play chess with
human opponents.  See you there.

Mike Thompson
dogsbody at frechess.org

On Sat, Sep 29, 2001 at 11:21:08PM +0100, Ricardo Diz wrote:
> You have to pass some parameters to gnuchess when you start xboard (i can't
> remember the parameters).
> 
> Try check the manpage of gnuchess ('man gnuchess'). I had the same problem
> before and I read the solution from the mapage.
> 
> Regards,
> Ricardo Diz
> 
> - Original Message -
> From: "Titus Barik" <[EMAIL PROTECTED]>
> To: 
> Sent: Saturday, September 29, 2001 8:29 PM
> Subject: gnuchess (player vs. computer)
> 
> 
> > In my Slackware distribution, by default, when xboard was started, it
> > would allow you to play against the computer. How do I do this with
> > Debian? I'm assuming that I'm missing something really simple.
> >
> > Thanks.
> >
> > Titus Barik ([EMAIL PROTECTED])
> > AIM: TBarik  ICQ: 1604453
> >
> >
> > --
> > To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> > with a subject of "unsubscribe". Trouble? Contact
> [EMAIL PROTECTED]
> >
> >

-- 
Mike Thompson
[EMAIL PROTECTED]



Woody network download

2001-05-16 Thread Mike Thompson
After having made root, rescue and driver disks 1 thru 4, when my system
goes to download the base system if I choose network I get the
following: "id: unknown user name: 0" then "[: 0: unexpected operator"
Serveral messages later about "trying to get" I end up back at the
install base system screen.

I have successfully done this with "potato" but had problems with my
i810 motherboard and xserver so I thought I'd try "woody"

Any ideas for the newbie?
Thank you!



Is list active

2001-02-06 Thread Mike Thompson
I have not been getting debian-user-digest for over a week now.  Does
anyone know what has happened?
-- 
Mike Thompson
[EMAIL PROTECTED]
--
I can read MIME or uuencoded e-mail attachments in PDF, Postscript,
HTML, RTF, DVI or Latex, or text formats.
Please do not send Word, Excel or PowerPoint files. 
(Unless it is for soccer)



Re: xlibs error

2000-12-07 Thread Mike Thompson
Hi Gareth,
You need to create a directory /usr/X11R6/lib/X11/app-defaults
which must be an actual directory -- not a link.  Then run
dpkg --configure -a 

The install will then give you an error message saying this
directory should be removed.  Don't do this yet.  I know this sounds
strange but the error is required by the install script.
Mike

On Thu, Dec 07, 2000 at 11:32:03AM +, Gareth Bowker wrote:
> Hi,
>   I've recently done a dist-upgrade which I haven't done since before
> XFree4.01 went into woody - I was getting the packages from branden's
> repository before then. However, I've come up against an error which I'm
> not sure how to resolve. Something broke on the upgrade and now whenever
> I do "apt-get upgrade" it fails and suggests I run "apt-get -f install".
> When I do this, I get the following text:
> 
> pctgb:~# apt-get -f install
> Reading Package Lists... Done
> Building Dependency Tree... Done
> Correcting dependencies... Done
> The following extra packages will be installed:
>   xlibs 
> 1 packages upgraded, 0 newly installed, 0 to remove and 178 not
> upgraded.
> 10 packages not fully installed or removed.
> Need to get 0B/1161kB of archives. After unpacking 4989kB will be freed.
> Do you want to continue? [Y/n] 
> (Reading database ... 60850 files and directories currently installed.)
> Preparing to replace xlibs 4.0.1-0phase2v21 (using
> .../xlibs_4.0.1-10_i386.deb) ...
> Unpacking replacement xlibs ...
> dpkg: error processing /var/cache/apt/archives/xlibs_4.0.1-10_i386.deb
> (--unpack):
>  trying to overwrite `/usr/X11R6/lib/X11/app-defaults', which is also in
> package xpaint
> dpkg-deb: subprocess paste killed by signal (Broken pipe)
> Errors were encountered while processing:
>  /var/cache/apt/archives/xlibs_4.0.1-10_i386.deb
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> 
> Any help resolving this would be great as apt refuses to work until I
> fix this.
> 
> TIA,
> 
> Gareth
> -- 
> Gareth Bowker |  [EMAIL PROTECTED]
> PhD Research Student      |  http://users.aber.ac.uk/tgb96/
> Space Robotics Team   |  Office: (01970) 621528
> University of Wales, Aberystwyth  |  Mobile: (07971) 219986

-- 
Mike Thompson
[EMAIL PROTECTED]
--
I can read MIME or uuencoded e-mail attachments in PDF, Postscript, HTML,
DVI-Latex or text formats. Please do not send Word, Excel or PowerPoint files. 
(Unless it is for soccer)



Re: mail problems

2000-07-26 Thread Mike Thompson
David,
I am going through a dialup isp and have the following
at the end of my /etc/exim.conf file.  It only rewrites mail destined for
the Internet.
hth
mike

##
#  REWRITE CONFIGURATION #
##


# There are no rewriting specifications in this default configuration file.


# This is an example of a useful rewriting rule---it looks up the real
# address of all local users in a file

#
[EMAIL PROTECTED]   "[EMAIL PROTECTED]" Ffr
#
# End of Exim configuration file

On Wed, Jul 26, 2000 at 07:58:44PM +0930, David Purton wrote:
> I emailed about this a couple of days ago, and still haven't managed to solve
> the problem, so I thought I'd try again
> 
> I'm running exim, pine and potato on a dialup machine.
> 
> I want to my actual email address to be attached to messages on the way out
> and have put a line in /etc/email-addresses to do this.
> 
> this seems to work, with the following problems:
> when I send mail to my other accounts and read it with pine, in the index
> section the from field contains To: [EMAIL PROTECTED] rather than who the 
> mail is
> from.  I appears to be ok when I actually open the mail says FROM correct
> address, but when I reply to it, I just end up replying to myself, not the
> originating address.
> 
> any ideas?
> 
> 
> Today people in droves hurry up past Heumoz to Villars 
> on the road to the ski hills, so they can rush down them
> as fast as possible, so they can hurry up again in order
> to rush down again.  In a way this is funny,...
> 
>   Francis A Schaeffer
> 
> David Purton
> 
> [EMAIL PROTECTED]



Re: Database program

2000-07-08 Thread Mike Thompson
The spreadsheet "tsiag" the console version of siag spreadsheet from
the Siag Office Suite might fit your needs, I use it for my bookkeeping
applications.  It will save your data in a variety of formats and
has minimal memory needs.
A simple but fast database I use is NoSql, a flat
file database which saves data in a tab delimited text file.  Your
data can be edited with a text editor.
hope this helps
Mike

On Sat, Jul 08, 2000 at 09:35:29AM -0400, [EMAIL PROTECTED] wrote:
> I'm looking for some sort of database or spreadsheet application to use 
> as a personal filing system.  I'll be organising a lot of different 
> things that I own and so I anticipate that the file may become extremely 
> large.  I'm running debian on an Intel 486 with 16mg RAM.  I worried that 
> if I don't get a good program that can handle a large file I may run into 
> memory problems.  This may not be a problem since when I installed debian 
> I made a 64mg swap partition.  I'm not sure.  
> 
> Can anyone suggest a program, preferably one that does not run on X?  I 
> just want a plain text based app that gracefully deals with low memory.
> 
> Thanks in advance
> M.Henry

-- 
---
Mike Thompson
[EMAIL PROTECTED]



Re: how to start gnome

2000-06-29 Thread Mike Thompson
startx gnome-session

or

edit ~.xinitrc
and add
gnome-session 

On Thu, Jun 29, 2000 at 02:29:19PM -0700, Nick wrote:
> i loaded gnome a long time ago and forgot how to start it
> 
> i have tried
> gnome-sessionand not luck



Re: Debian 2.1 install

2000-06-01 Thread Mike Thompson
Tim;
This was a problem with the kernel scsi code and was fixed in
newer versions.  You need a newer kernel to install.
Mike
[EMAIL PROTECTED]  

On Wed, May 31, 2000 at 05:25:31PM -0500, Tim Willis wrote:
> > On Wed, May 31, 2000 at 11:55:50AM -0500, Tim Willis was only 
> >escaped alone to tell thee:
> > 
> > > The install gets to the line
> > > "(scsi0) Downloading sequencer code... 419 instructions downloaded"
> > > ...and hangs, or stops.  It never goes any further.
> > 
> > What kind of card?
> 
> Adaptec SCSI controller,
> DLink DFE-530TX Network Card
> S3Virge/DX Video card
> Intel Pentium 133
> 
> Tim Willis
> IS Technician
> Code Rite
> [EMAIL PROTECTED] 



Re: mailsystem configuration

2000-05-08 Thread Mike Thompson
Moritz,
Fetchmail and Exim are what I use for my home system.  The
configuration is fairly simple.
Mike Thompson 

#!/bin/sh
# Fetchmail configuration file
poll gmx.de
protocol pop3
username mjodeit
password "your-password"
flush
fetchall

For exim answer the install questions.
at the bottom of the /etc/exim.conf file you will have to 
add a rewrite configuration to change
[EMAIL PROTECTED] to [EMAIL PROTECTED]
eg.
[EMAIL PROTECTED]   "[EMAIL PROTECTED]"
or [EMAIL PROTECTED]"[EMAIL PROTECTED]"


Re: ppp check.

2000-04-13 Thread Mike Thompson
Kent perhaps you want something like this
#
#

###/etc/ppp/ip-up.d/up-time-sh

#!/bin/sh
rdate -s timelord.uregina.ca   #use your own timeserver
echo -e "#\nOnline: `date`" >> /var/log//online
echo -e "`date +%s%t`\c" >> /var/log//online
##

###/etc/ppp/ip-down/down-time-sh##
#!/bin/sh
echo -e "`date +%s%n`" >> /var/log/online
##

###/home/kent/online-time.pl##

#!/usr/bin/perl -w
$datestring = "Online:";
$logfile = "/var/log/online";
$logline = "";

open (LOG, $logfile) or die "Couldn't open $logfile: $!";

while(  ){
next if m/^#/;
chomp;
if ( m/^$datestring/){
@logline = split " ";
$month = $logline[2];
($logline = );
chomp $logline;
@logline = split "\t", $logline;
(@logline == 2) or die "time string error ";
$month{$month} +=int(($logline[1] - $logline[0] + 60) / 60);
}else{
print "\nerror in logfile";
}
}
foreach $month (keys %month){
$minutes = $month{$month};
print "Online time for $month: ", int($minutes / 60)," hours";
$minutes %= 60;
print " ", ($minutes), " minutes\n";
}
#

###add to your bash_profile##

perl ./online-time.pl
##



On Thu, Apr 13, 2000 at 05:18:05AM +0200, Kjetil Thuen wrote:
> Kent Nyberg <[EMAIL PROTECTED]> writes:
> 
> > Is there a program to check how long one have been on ppp ?
> > I used a program in windows to check how long i have been on internet.. so
> > that i do not get to expensive bills :)
> > So i would like one for linux :)
> 
> You might want to check out tcharge. It even calculates your phonebill
> for you. I don't think there are any debs available though..
> 
> URL:http://hix.physik.uni-bremen.de/pub/Linux/tcharge/
> 
> Kjetil
> -- 
> Quidquid latine dictum sit, altum viditur
> Finger [EMAIL PROTECTED] for public PGP key.


Printer not working after upgrade to 2.2 kernel

2000-03-10 Thread Mike Thompson
After I upgraded to kernel 2.2.14 from 2.0.38 my printer wouldn't work.
I had to:

cd /dev
rm lp*
MAKEDEV lp

to correct the problem.  Unfortunately I don't remember what the old major
and minor device numbers were, however there were four of them
lp0, lp1, lp2, lp3. After reinstalling them I only have
/dev/lp0 -- /dev/lp2 and now my printer works fine.
Also the printer changed from /dev/lp1 to /dev/lp0. I have been running the 
same devices since Debian 1.3.1.

I hope this helps anyone else with the same problem.

Mike Thompson
[EMAIL PROTECTED]

"Free-ware may contain bugs and is not as widely available as
commercial software"
Stan Dormer on Linux security.