Remove lfs-uefi.txt symlink
[linux_from_scratch_hints.git] / PREVIOUS_FORMAT / ckermit+lrzsz.txt
blob3cefbeb7ac5e733b39e32751e80906721f80c743
1 TITLE:          C-Kermit & lrzsz
2 LFS VERSION:    All versions
3 AUTHOR:         Marcos Zapata <zeta11@yahoo.com>
5 SINOPSIS:
6     How to compile C-Kermit and lrzsz, and use them to connect your HP48/49
7     calculator.
9 HINT:
10 The first thing I tried to do when I installed my first linux, was to connect my
11 brand new HP48 (rather old now). After a couple of hours I found C-Kermit, which
12 I already knew from DOS. In my opinion this is the best kermit server/client
13 application there is out there. It's free but sadly not released under the GPL.
14 I know I could use gkermit, since I'm already using lrzsz, but if you wish to
15 build your very own LFS, you'll choose the best, right?
16 lrzsz is X/Y/Zmodem communication program built from the public-domain version
17 of Chuck Forsberg's rzsz package and it's released under the GPL.
19 I wrote this hint to help people to install the packages needed to connect their
20 HP48/49 calculators but of course it could be use to connect two computers with a
21 null-modem cable. Also, C-Kermit is not just a file transfer program, it's a
22 modem program, telnet/ftp/http/X.25 client, and server, can accept incoming
23 dialed and network connections, etc. It's a very powerfull application, by the
24 way, I'm not from Columbia University. ;)
27 You can get C-Kermit at ftp://kermit.columbia.edu/kermit/archives/cku201.tar.gz
28 I'm going to use version 8.0.
30 You can get lrzsz at: http://www.ohse.de/uwe/releases/lrzsz-0.12.20.tar.gz
31 I tried the one in debian.org but it gave me too much trouble.
34 lrzsz-0.12.20:
36 tar -zxvf lrzsz-0.12.20.tar.gz
37 cd lrzsz-0.12.20
38 ./configure --prefix=/usr
39 make
40 make install
42 #Now, we are going to have to make some symlinks to avoid trouble with C-Kermit.
43 #These are done to make lrzsz function like the old rzsz package.
45 cd /usr/bin
46 ln -s lrb rb
47 ln -s lrx rx
48 ln -s lrz rz
49 ln -s lsb sb
50 ln -s lsx sx
51 ln -s lsz sz
54 C-Kermit-8.0 (cku201.tar.gz):
55 #This package doesn't create a new directory for it's files so make sure to
56 #create one and copy the .tar.gz to it, before decompressing it.
58 tar -zxvf cku201.tar.gz
60 #You have to manually change the options you like in makefile, there isn't
61 #a configure script. For example I'm going to install it in '/usr' and
62 #don't want to use termcap, I only have ncurses. If you built LFS, you should
63 #probably do the same.
65 cp makefile makefile.bak
66 sed -e "s/\/usr\/local/\/usr/g" -e "s/-ltermcap//g" makefile.bak > makefile
68 #Now choose the option wich better reflect your system, take a look at makefile.
69 #In my case:
71 make linux+openssl
73 #You could 'make install' now but I prefer to manually install this package:
75 cp krbmit /usr/bin/kermit
76 cp ckermit.ini /etc
77 mkdir /usr/doc/C-Kermit-8.0
78 cp *.txt /usr/doc/C-Kermit-8.0
79 cp ckuker.nr /usr/man/man1/kermit.1
82 The /etc/ckermit.ini is a configuration file for kermit, should be named .kermrc,
83 but it's very complex for the purposes of this hint. So I'll make a simple one:
85 cat > ~/.kermrc << "EOF"
86 ; This can be used to write comments
88 set modem type direct
90 ; change it to point to where the calc is connected
91 set port /dev/ttyS1
93 set speed 9600
94 set carrier-watch off
95 set flow none
96 set parity none
97 set block 3
98 set protocol kermit
100 ; End
103 Most of the options are self explanatory so you can't have any touble.
105 Ok. We are ready. Type 'kermit', if everything went fine you should be able to
106 send and receive files from your HP48/49. Remember to set your calc to use the
107 appropriate protocol.
108 If you need to use xmodem for faster transfers, just type inside ckermit:
109 'set protocol xmodem'. if your wish to use kermit: 'set protocol kermit'.
110 I advise you to read the documentation installed in /usr/doc/C-Kermit-8.0,
111 specially ckututor.txt. Good luck.
113 Zeta