RE: AWK: adds "^M" at the end of line?

2002-06-25 Thread Schoppitsch Dieter
Maybe a small utility called "flip" can help?
Dieter

> Von:  Ramesh Pathak [SMTP:[EMAIL PROTECTED]
> Gesendet am:  Dienstag, 25. Juni 2002 06:27
> 
> One more thing can be tried if its a pb with DOS files.
> Use dos2unix  to convert the dos files to unix  and then try this awk !!
> 
> RCP
> 
> 
> Chris Kenrick <[EMAIL PROTECTED]> on 06/25/2002 07:47:54 AM
> 
> 
> On Tue, Jun 25, 2002 at 12:08:34PM +1000, Matthew Dalton wrote:
> > > On Mon, Jun 24, 2002 at 05:10:15AM -0400, Abdul Latip wrote:
> > > > > What file are you trying to read.  If it is mail coming from
> fetchmail,
> > > > > there were some change which causes ^M in mail file.
> > > >
> > > > It is ftp://ftp.isi.edu/in-notes/rfc-index.txt
> > > > I believe that that file does not have ^Ms.
> > > > Basically, what I am doing (once in a while), to get
> > > > a recent rfc-index file, and merging each rfc description
> > > > (1-3 lines) into one line. The script is actually simple
> > > > and stupid.
> >
> > The original file is a dos format text file. Dos text files have CR-LF
> > at the end of every line, whereas unix files only have LF. The extra CR
> > is the ^M you're seeing. Obviously awk (mawk?) is not handling the text
> > format properly, instead assuming it is a unix format file. Your belief
> > that the original file does not have ^Ms is incorrect. It does have
> > them, but they just don't show up on most editors. If you edit it with
> > nvi, you'll see them there.
> >
> > I'd suggest one of two things:
> > 1. If your awk is mawk, try installing gawk (GNU awk) and see if that
> > handles dos text files better.
> > 2. Convert the files by removing the ^Ms before running awk on them.
> >
> > This is basically a compatibility problem, not a bug in awk.
> >
> > Matthew
> 
> I'd add a third option.  Assuming the FTP server is configured properly,
> transfer the file as ascii rather than binary, and it should do the
> conversion properly for you.  I tested with this particular file
> transferring as ASCII, and it worked transparently.
> 
> - Chris
> 
> 
> --
> 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]


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



AW: low memory installation 4mb 386sx

2002-06-03 Thread Schoppitsch Dieter
Hi,

I guess you need at least more than 8MB for Debian >2.0.
Maybe you could try 2.0.
Also as far as I know is an odd version (ie 2.1) unstable.

I did it 2 years ago with lowmem.bin (Minix) to install Debian 2.0.
per floppydisk installation method (486/25/4/90).
I had to trick a lot - finally I had success with:
* make 4 partitions:
- native linux (66MB)
- linux swap (8MB)
- 2nd native linux for Minix (8MB)
- 2nd linux swap partition (8MB)
* start lowmem (Minix) and specify 2ndSwap as swap
* install debian 2.0 (defining first native linux and first native swap)
* repartition last small partitions to a (useful) DOS drive

Hope this helps
Dieter

> Von:  Rick Dawson [SMTP:[EMAIL PROTECTED]
> 386SX-25
> 4mb ram
> I have Debian 2.1 (2_1_11.1-1) on cd.  I read the low memory installation
> instructions and I tried using lowmem.bin as the initial installation
> floppy


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



RE: Fonts on an LCD Flat Panel

2002-04-17 Thread Schoppitsch Dieter
I got similar problems setting up Linux on my (2nd) Laptop:

This ugly fonts came from the wrong XServer (and maybe) the
'stretch'-funcionallity of my monitor.

I made good experience with:
* install XF86Setup (needs VGA16-XServer)
* running xviddetect (shows the right XServer, ie SVGA)
* running/trying XF86Setup (choosing right resolution and depth)
* testing with command 'X' or 'xinit' before 'startx' may help

greetings
dieter


> Is there anything else about LCDs that I could be
> missing which would make fonts appear jagged and fuzzy?
> -Rick
> 
> 


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



AW: debian on old notebook

2002-04-08 Thread Schoppitsch Dieter
I would suggest:

* Debian 2.0
* textbased webbrowser ... links (made in .cz)
* xwindow manager ... wm2
* use in addition a totally shrinked down kernel (<400k) to save RAM

* good link
http://ldp.atnet.at/HOWTO/4mb-Laptops.html

Regards
Dieter

> -Ursprüngliche Nachricht-
> Von:  Mirek Dobsicek [SMTP:[EMAIL PROTECTED]
> Gesendet am:  Freitag, 5. April 2002 19:05
> An:   debian-user@lists.debian.org
> Betreff:  debian on old notebook
> 
> Hi all,
> 
> I have few question. Most of time I'm at college and twice a months
> I go home for a weekend. I dont have computer at home, and sometimes
> I need to continue at my work (coding and writing articles in VIM).
> 
> I'd like to buy some old notebook and install Debian on in.
> Right now I can buy i486 at 66Mhz, 8MB RAM, 500MB HDD
> for $10 US dolars.
> 
> Is it good idea to try install Debian on it? Is it possible with 8MB of
> RAM?
> 
> I need it just for VIM writting, man pages displaying, and Lynx offline
> browsing.
> 
> What could be the way to install Debian? I'm thinking that easist way
> is to connect notebook with my computer with parallel cable and
> install from internet.
> 
> 
> Or should I forget it and save $10?
> 
> 
>   Please share your opinion, sincerely Mirek
> 
> 
> -- 
> 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: Setting Port and Baud_Rate/Base

2002-03-14 Thread Schoppitsch Dieter
Thanks, but ...

.. curiously (and against all man pages) I got:
   stty: invalid argument '-F'
I use stty (GNU sh-utils) 1.16

Beside this - do you know:
> * How can I tell gkermit to use this serial port?

TIA Dieter

> Le 2002.03.13 16:56, Schoppitsch Dieter a écrit :
> > connecting my HP48gx to my PC works fine with DO$
> > (kermit). All I have to do is "set port 1" and "set baud 9600".
> > "Receive" receives all files I send from my HP.
> > 
> > Unfortunately this procedure doesn't work so simple
> > from linux (or I'm to dumb) - using gkermit (or lrzsz).
> > 
> > Gkermit doesn't support "portsetting and baudsetting".
> > I assume this has to be done from the linux command line
> > (with setserial).
> > 
> > * How do I set the port (/dev/ttyS0) and the speed (9600)?
> > * How can I tell gkermit to use this serial port?
> 
 Von:   Romuald DELAVERGNE [SMTP:[EMAIL PROTECTED]
> Use 'stty' to modify or get parameters of a terminal
> > stty -F /dev/ttyS0 9600



Setting Port and Baud_Rate/Base

2002-03-13 Thread Schoppitsch Dieter
Hi,

connecting my HP48gx to my PC works fine with DO$
(kermit). All I have to do is "set port 1" and "set baud 9600".
"Receive" receives all files I send from my HP.

Unfortunately this procedure doesn't work so simple
from linux (or I'm to dumb) - using gkermit (or lrzsz).

Gkermit doesn't support "portsetting and baudsetting".
I assume this has to be done from the linux command line
(with setserial).

* How do I set the port (/dev/ttyS0) and the speed (9600)?
* How can I tell gkermit to use this serial port?

TIA
Dieter





Gkermit/Baudrate (WAS: Connecting to a HP48gx)

2002-03-11 Thread Schoppitsch Dieter
Thanks for all hints - gkermit seems to be suitable.

Unfortunately the Linux-box and the HP don't seem to
'understand' each other - this could be a different
baudrate.

* How can I change the baudrate of gkermit (or Debian?)
to 9600 baud (= HP48-rate)?
* How can I change other parameters (ie CRC, parity xlat)?

TIA Dieter


> Von:  David Z Maze [SMTP:[EMAIL PROTECTED]
> 
> Schoppitsch Dieter <[EMAIL PROTECTED]> writes:
> > Does anyone have an idea (or a source) how to connect
> > a LinuxBox to a HP48gx calculator in a simple (maybe
> > with modemu, pppd, minicom), slim (C-Kermit is too big)
> > and foolproof (I am not a 'Connection-Specialist') way.
> > 
> > The HP48 supports Kermit or Xmodem and a so called
> > 'Server Mode' - it works fine with Window$ and DO$
> > (Cable-Connectivity-Kit).
> 
 Von:   David Z Maze [SMTP:[EMAIL PROTECTED] 
> I haven't actually used my HP48 in a bit, but...IIRC, the "server
> mode" is a standard Kermit server mode.  As far as command-line
> programs you can use to move things around, you might try gkermit
> (like ckermit, but with only send and receive functionality), or maybe
> rx and sx (szrz package).  Setting up things to talk correctly to
> serial lines is always tricky, though; I'd use minicom (can do xmodem
> transfers) or ckermit myself.  (ckermit ran under DOS...it can't be
> *that* bloated... :-)
> 



Connecting to a HP48gx

2002-03-06 Thread Schoppitsch Dieter
Hi!

Does anyone have an idea (or a source) how to connect
a LinuxBox to a HP48gx calculator in a simple (maybe
with modemu, pppd, minicom), slim (C-Kermit is too big)
and foolproof (I am not a 'Connection-Specialist') way.

The HP48 supports Kermit or Xmodem and a so called
'Server Mode' - it works fine with Window$ and DO$
(Cable-Connectivity-Kit).

TIA and greetings
Dieter



RE: Need Help to Program Text Draw Utility

2002-01-07 Thread Schoppitsch Dieter
> But it seems that there is no Linux-utility to draw simple
> ascii-figures (lines, text, rectangles, circles) with
> cut/copy/paste-capacity in textmode.

Hi - thanks for all comments and hints

* I heard of Emacs in ascii-art mode, but I don't want/use Emacs
(nano is my favorite editor)
* As I am a new (textbased) user of Linux (and don't have the
knowledge of dman, Karsten & Co.) I am not familiar with
programming, libraries, converters - I can handle .deb-packages
or binaries only (sorry for my DOS-orientation)
* To give you a feeling what kind of utility I am searching for
I can send you the DOS-program 'textdraw' (I don't want to post
it to the whole list)

Greetings
Dieter



Need Help to Program Text Draw Utility

2002-01-04 Thread Schoppitsch Dieter
Hi all!

I searched the web and asked in some lists.

But it seems that there is no Linux-utility to draw simple
ascii-figures (lines, text, rectangles, circles) with
cut/copy/paste-capacity in textmode.

Such a program would perfect my
'Textbased-M$-Office-on-a-Linuxbox-World' to easily draw
(more or less) simple ascii-pictures for presentations and
sketches.

But I am neither firm in programming C/C++ on Debian-Linux
nor able to organize a programming project efficiently.

* Is there any programmer interested to program such
an utility?

All I can contribute is a vision and a Turbo-Pascal-DOS-Program
I wrote years before.

Thanks
Dieter




Text Draw Utility

2001-12-20 Thread Schoppitsch Dieter
Hi all!

I wonder, if there is a simple Ascii-Text-Draw-Utility for
drawing (more or less) simple ascii-pictures.

As improvement to an editor it should support drawing
rectangles, circles, lines and text *with*
cut/copy/paste-capacity.

Years before (my linux-times) I wrote a small (10k) utility
for DOS (with Turbo-Pascal) called textdraw.

Can you recommend anything similar?

Thanks
Dieter








AW: mutt/ssmtp From:

2001-12-19 Thread Schoppitsch Dieter
Great - it's working! (I did't have the idea that it's ssmtp)
Peter - thank you very much.

BTW:
As I am doing a lot of e-mailing off line (and postponig my mails in mutt) -

does anyone have an idea how to send all postponed mails with
one command? - or is there any other possibility to 'spool'
my mails (it seems that neither mutt nor ssmtp support spooling)?

Thanks
Dieter

> Von:  Peter Ross [SMTP:[EMAIL PROTECTED]
> Dieter wrote:
> > What can I do/try?
> > 
> In the configuration file ssmtp.conf add the following line
> 
> FromLineOverride=YES
> 



mutt/ssmtp From:

2001-12-19 Thread Schoppitsch Dieter
Hi!

I'm running ssmtp (MTA) and mutt (MUA) which works fine for a
'single user dial up'.

Unfortunately the one who receives mail from me is seeing in the
'From:-line' my <[EMAIL PROTECTED]> and not a
'replyable' email address like <[EMAIL PROTECTED]> (which is
'reserved' for/at my ISP.

Dealing with an explicit From:-line (ESC+f) 
or the my_hdr-statement (.muttrc) shows
again <[EMAIL PROTECTED]> at the receiver or
gives me following messages:

* Error sending message, child exited1 ().
* ssmtp: didn't get initial OK message from smtp server.

Does the ISP refuse 'his reserved' email address?
What can I do/try?

Thanks for any help.
Dieter









RE: pppconfig still not working

2001-11-22 Thread Schoppitsch Dieter
Maybe wvdial (which is smaller and more simple than
pppd/pppconfig) is able to find the right port?
ds

I've been trying to get pppconfig set up to run with my ISP
it probes ttyS0 and ttyS1 withut finding the
modem,



AW: X won't allow display export...

2001-07-31 Thread Schoppitsch Dieter
I do it this way:
* start xterm (or any X-shell) on the client box
* xhost +
* ssh -X -l user server_name
* type xterm
and you are in your server.

Dieter



> I am unable to successfully export the display from one of my Debian
> boxen to another. I tried the following on the box I was using X on:
> 
>   xhost +
> 
> and the following on the box I was trying to export the display from:
> 
>   export DISPLAY=10.1.1.33:0.0
> 
> Normally, this has worked under other distros and Unices (I have a
> Mandrake box and two SPARC's running Solaris 8 here), but I can't get it
> to work under Debian. Is there some package I've forgotten to install??
> 
> --Aaron Traas
> 
> 
> -- 
> To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



fetchmail, mutt, masqmail

2001-07-20 Thread Schoppitsch Dieter
This sounds smart, small and fast - since Heather told me to use a
lot of customized fetchmail-scripts.

Can you tell me (newbie) how to configure and command masqmail to read
and send mails while on a dialled-in-connection (pppd, pop3, smtp).
As MUA I use mutt.

1k-thanks
Dieter

> Hi all,
> 
> Get rid of fetchmail and use masqmail to fetch your mails as well as to 
> que and deliver them.  I do this and have no problems retrieving mail from 
> two different mail servers.  Masqmail also supports apop which does not 
> send your mail password unencrypted like pop3 does.  You can use 
> authenticated smtp with cram-md5 encryption to send mails to your 
> smarthost, thus minimizing the possibility of someone sniffing your 
> password and misusing your mail account.
>   Paul T Wright <[EMAIL PROTECTED]>
>   
> 



Thin-X-Client-Laptop

2001-07-20 Thread Schoppitsch Dieter
Hi folks - thanks for all of your hints regarding my problem.
I think I am close to the solution - maybe you can help me again?

>I want to run X-Applications on my (old) laptop (486; Debian 2.0) 
while 
>connected (via PLIP) to the Server (Pentium, Suse 7.1).

Some data of my configuration:
* laptop name: boneless
* PC name: freeze
* username on PC: nutzer

What I tried (and many variations of that):
* start on the laptop (in text mode) "ssh -l nutzer freeze",
than change to root with "su" and "cd /root"
* in this ssh-channel I tried "export DISPLAY=boneless:0",
than "xhost +boneless"
* than I got the message "unable to open display "boneless:0"" (?)
* starting "X" in this ssh-channel starts X on the PC

My questions:
* Do I need a ssh-login via xterm (I did not install a window mgr resp.
xterm on my laptop (moving x-cursor on the laptop only))?
* What causes the display-export-error?
Could it be because the Xserver-configuration of the PC does not
fit to the hardware of the laptop?

As thera are many similar questions on this list now I tried a lot hints
(maybe to many) - as newbie I am a little bit confused (most hints are
too professional for me).

1k-thanks in advance
Dieter



AW: Thin-X-Client-Laptop

2001-07-19 Thread Schoppitsch Dieter
Hi Cajus,
thanks for your hints - but it did not work - what did I do wrong?

* On the PC I checked /etc/X11/xdm/Xaccess there was a "*"
* On the PC I started xdm (login window)
* On the Laptop I started X with "X -query 192.168.0.1"
* On the Laptop I had the x-cursor only
* After C-A-backspace on the laptop I saw the message "XDM: too many 
retransmissions"

Dieter



> Am Mittwoch 11 Juli 2001 12:27 schrieb Schoppitsch Dieter:
> > Hi,
> >
> > I want to run X-Applications on my (old) laptop (486; Debian 2.0) while
> > connected (via PLIP) to the Server (Pentium, Suse 7.1).
> >
> > On the laptop I installed the X-server - that means - I am able to move the
> > mouse-cursor on the screen only (no menues, no window). On the server I
> > installed the whole X-stuff (KDE, applications).
> > In textmode I am able to ping and telnet the server.
> 
> You've to tell the client that it should use the server, by typing something 
> like this:
> 
> # X  -query 
> 
> On the server side you must look up an Xaccess file (don't know where it is 
> on SuSE systems) and either allow everyone to get a loginwindow, by putting
> a "*" in there or simply specify the laptop name.
> Also there's (on debian and redhat) a line to comment out in the xdm-config.
> There's a comment about the access stuff in this file.
> A restart of xdm/gdm/kdm/whatever is needed.
> 
> Hope it helps,
> -Cajus
> 
> 
> --  
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



fetchmail, mutt, masqmail

2001-07-19 Thread Schoppitsch Dieter
Hi,

due to your hints to a similar question (thanks) two weeks ago I am now able to 
send myself (root) a mail - but fetching mails form my ISP does not work.

I am using fetchmail, mutt as MUA and finally as MTA (I tried many) masqmail.

My data:
* hostname: boneless
* local mailaddress: [EMAIL PROTECTED]
* command: fetchmail -v -S boneless
* error message after "... reading message 1 of 2 (25915 octets)":
- SMTP connect to boneless failed
- This message is in MIME format. Since your mail reader does not understand.

Due to a similar problem in another mailing-list the answer should be "the MTA 
is not listening while fetchmail tries to contact it" - but masqmail is running 
(and hopefully listening) on my PC.

Thanks in advance for any help
Dieter



fetchmail, mutt, mail

2001-07-13 Thread Schoppitsch Dieter
Hi,
what is going wrong?

Dialing in to my ISP (with pppd) and fetching mails (with fetchmail) works well.
But then I get the message "SMPT connect to localhost failed" respectively 
(using fetchmail -S hostname)
"This message is MIME format. Since your mail reader does not understand".

* Where can I see/set my local smtphostname (or should I set my domainname)?
* Sending myself a mail (with mutt) doesn't work - which address should I use 
(root or [EMAIL PROTECTED] doesn't work)?

Thanks for any help
Dieter



Thin-X-Client-Laptop

2001-07-11 Thread Schoppitsch Dieter
Hi,

I want to run X-Applications on my (old) laptop (486; Debian 2.0) while 
connected (via PLIP) to the Server (Pentium, Suse 7.1).

On the laptop I installed the X-server - that means - I am able to move the 
mouse-cursor on the screen only (no menues, no window).
On the server I installed the whole X-stuff (KDE, applications).
In textmode I am able to ping and telnet the server.

What do I have to do now? - as I am a beginner in Linux please send me 
'foolproof`' instructions and hints.

BTW: Is there any chance for a lowmem.bin for Debian 2.2?

Thanks in advance for any help and greetings from Vienna
Dieter