Thread View: news.software.misc
1 messages
1 total messages
Started by Curtis [Jewell] Whalen
Thu, 18 Dec 1997 00:00
NoCeM (the CancelMoose Perl Client) on Windows systems
Author: Curtis [Jewell] Whalen
Date: Thu, 18 Dec 1997 00:00
Date: Thu, 18 Dec 1997 00:00
381 lines
11946 bytes
11946 bytes
I decided to try and install the CancelMoose NoCem Client on my Windows 95
system, just as an exercise. Getting the main portions debugged took two
days... but here's how I did it.
If you want these directions sent to your e-mailbox, send a message to
curtis_whalen+nocemwindows@geocities.com.
It will automatically reply to you.
-----------------
OK. Let's go through how I installed NoCeM on my Windows 95 system.
I'm installing the CancelMoose perl NoCeM client, version 0.93,
which can be got from http://www.cm.org/
******************
Locations:
******************
BTW, Visual C++ 4.0 is what I run for a C compiler.
Original NoCeM unpacking: C:\Programs\Internet\slrn\nocem-0.93
SLRN.exe: C:\Programs\Internet\slrn\slrn.exe
Lynx.exe: C:\Programs\Internet\Lynx\lynx.exe
Visual C++: C:\MSDev
which means cl.exe: C:\MSDev\Bin\cl.exe
Perl.exe: C:\Programs\Perl\Bin\Perl.exe
PGP.exe: C:\Programs\Pgp\pgp.exe
******************
Where to get: (just in case you don't have)
******************
PGP: http://web.mit.edu/network/pgp.html (US/Canada)
PGP keyserver: http://pgp.mit.ai.edu/
(also contains links for non-US/Canada PGP)
Lynx: http://www.fdisk.com/doslynx/wlynx/lynx_w32.zip
Perl: ftp://ftp.activeware.com/Perl-Win32/Release/Pw32i3??.zip
http://www.perl.com/CPAN/ports/win32/ActiveState/Release/Pw32i3??.zip
[or whichever CPAN mirror you prefer to use.]
(Up-to-date version on activeware is 314. However, I'm testing with 307
and it is working. So any 300 version should do.)
Slrn: http://www.vex.net/~cthuang/slrn/slrn0.9.4.3-w32b.zip
gcc: (Just in case...)
Get djgpp, which is at ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/
Files needed: v2/copying.dj, v2/djdev201.zip, v2/faq210b.zip, v2/readme.1st,
v2apps/rhide14b.zip, v2gnu/bnu281b.zip, v2gnu/gcc2721b.zip, v2gnu/mak3761b.zip,
v2gnu/txi390b.zip
Of course, any simtel.net mirror (look at
http://www.simtel.net/simtel.net/mirrors.html for a list) is usable as well.
******************
Version output:
******************
------------------
PERL: (perl -v)
------------------
This is perl, version 5.003_07
Copyright 1987-1996, Larry Wall
+ suidperl security patch
Win32 port Copyright (c) 1995-1996 Microsoft Corporation.
All rights reserved.
Developed by ActiveWare Internet Corp., http://www.ActiveWare.com
Perl for Win32 Build 307 - Built 10:11:54 Jul 15 1997
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5.0 source kit.
------------------
Visual C++ (4.0, by the way) (cl)
------------------
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 10.00.5270 for 80x86
Copyright (C) Microsoft Corp 1984-1995. All rights reserved.
usage: cl [ option... ] filename... [ -link linkoption... ]
------------------
slrn: (slrn)
------------------
slrn 0.9.4.3 (Nov 16 1997 15:35:06)
------------------
Lynx: (lynx -version)
------------------
Lynx Version 2.7.1ac-0.20 (1997)
Copyrights held by the University of Kansas, CERN, and other contributors.
Distributed under the GNU General Public License.
See http://lynx.browser.org/ and the online help for more information.
------------------
PGP: (pgp)
------------------
Pretty Good Privacy(tm) 2.6.2 - Public-key encryption for the masses.
(c) 1990-1994 Philip Zimmermann, Phil's Pretty Good Software. 11 Oct 94
...
******************
MY Installation directions:
******************
1) Unpacked NoCeM 0.93 using WinPack
2)a) MS-DOS prompt time...
b) cd C:\Programs\Internet\slrn
c) md nocem
3) cd C:\Programs\Internet\nocem-0.93\
4) copy con C:\cr.txt
Enter
Ctrl-Z
Replies: 1 file(s) copied
5)a) copy install install.txt
b) edit these one line in install.txt
(Remember, we ARE a Win32 system - this changes the script accordingly)
Line 102:
From:
`chmod +x $writef`;
To:
#`chmod +x $writef`;
Line 118-120:
change / to \\
Line 126:
From:
print `cp $cfile-$x $nfile-$x`;
To:
print `command /c copy $cfile-$x $nfile-$x`;
Line 134:
From:
print W `date`;
To:
print W `date <C:\cr.txt`;
Line 141:
From:
system "$ncmdir/reset-state -override >/dev/null" unless $testmode;
To: (one line please.)
system "C:\Programs\Perl\Bin\Perl.exe $ncmdir/reset-state
-override >/dev/null" unless $testmode;
6) C:\Programs\Perl\Bin\Perl.exe install.txt
Here's how I answered: (the first answer should be all on one line, but
because of news limits, had to be wrapped)
-------------------------------------------------------------------
Welcome to No See 'Em.
.....
-------------------------------------------------------------------
If you have previously configured NoCeM, where is the config file?
(If you haven't just accept the default.)
[C:\Windows\Desktop\slrn/.ncm/.oldconfig] C:\Programs\Internet\
Slrn\nocem\.oldconfig
C:\Programs\Internet\Slrn\nocem\.oldconfig seems not to exist. Sorry.
Can't read previous configuration-- using builtin defaults
Where does perl live?
[/usr/local/bin/perl] C:\Programs\Perl\Bin\Perl.exe
C:\Programs\Perl\Bin\Perl.exe seems to exist. Good.
Where should the NoCeM scripts and data files live? (It may not exist yet!)
[~/.ncm] C:\Programs\Internet\slrn\nocem
C:\Programs\Internet\slrn\nocem seems to exist. Good.
Where does your .newsrc file live?
[~/.newsrc] C:\Programs\Internet\slrn\jnews.rc
C:\Programs\Internet\slrn\jnews.rc seems to exist. Good.
Should I only use NNTP to retrieve news information? (using NOV is faster)
[no] yes
Where is the root directory of your news spool? ++
[/usr/spool/news]
Where is the root directory of your news database? ++
[/usr/spool/newsdb/nov]
/usr/spool/newsdb/nov seems not to exist. Sorry.
What name does your system give to the nov overview files? ++
[.overview]
What is the full path to the system history file? (include the file itself) ++
[/usr/lib/news/history]
/usr/lib/news/history seems not to exist. Sorry.
What is the full path to the active file? (include the file itself) ++
[/usr/lib/news/active]
/usr/lib/news/active seems not to exist. Sorry.
What is the full hostname of your news machine? **
[news] news.domain.org
Does your NNTP server support the xover command? **
[yes]
Is your system an SVR4 (with an incorrect SOCK_STREAM in sys/sockets?) **
[no]
Does your NNTP server require <CR><LF>? **
[no]
Where is your text WWW browser? (must accept the -dump parameter)
[/usr/local/bin/lynx] C:\Programs\Internet\Lynx\lynx.exe
C:\Programs\Internet\Lynx\lynx.exe seems to exist. Good.
Where is your copy of PGP?
[~/bin/pgp] C:\Programs\Pgp\pgp.exe
C:\Programs\Pgp\pgp.exe seems to exist. Good.
Where is your copy of cc? (or gcc if you have it.)
[/usr/local/bin/gcc] C:\MSDev\Bin\cl.exe
C:\MSDev\Bin\cl.exe seems to exist. Good.
Do you need any special arguments to the C compiler?
[ ]
Where should I put the executable 'nocem' script?
[~/bin] C:\Programs\Internet\Slrn\nocem
Then let it go.
7) edit C:\Programs\Internet\Slrn\nocem\nocem
Line 9:
Change all \ to \\
Lines 10, 14, 29-31:
Change all / to \\
Then change this: (Lines 29-31)
$stage1="$ncmdir\\ncm.s1";
$stage2="$ncmdir\\ncm.s2";
$stage3="$ncmdir\\ncm.s3 ".$quickstr;
to this:
$perlexe="C:\\Programs\\Perl\\Bin\\Perl.exe";
$stage1="$perlexe $ncmdir\\ncm.s1";
$stage2="$perlexe $ncmdir\\ncm.s2";
$stage3="$perlexe $ncmdir\\ncm.s3 ".$quickstr;
8) edit C:\Programs\Internet\Slrn\nocem\ncm.head
Line 20, 77, 103, 132: Change \ to \\.
Line 23-26, 30-32, 110, 144: Change / to \\.
9) Edited the ncm.s1, s2, s3, reset-state, and spot-check files.
ncm.s1 (Line 29), ncm.s2 (Line 29), ncm.s3 (Line 29), reset-state (Line 8),
spot-check (Line 29):
Line 29:
($hdrfile) || ($hdrfile="C:\Programs\Internet\slrn\nocem/ncm.head");
To:
($hdrfile) || ($hdrfile="C:\\Programs\\Internet\\slrn\\nocem\\ncm.head");
10) Edit ncm.s1 again:
Line 103:
&openNNTP("S",$site,"nntp");
To:
&openNNTP("S",$site,119);
11) Edit ncm.s3 again:
Line 128:
&openNNTP("S","$nntpserver","nntp");
To:
&openNNTP("S","$nntpserver",119);
12) Edit ncm.head again:
Line 250 and 266:
&openNNTP("OVSOCK",$server,"nntp");
To:
&openNNTP("OVSOCK",$server,119);
Line 304:
&openNNTP("ACTSOCK",$nntpserver,"nntp");
To:
&openNNTP("ACTSOCK",$nntpserver,119);
Line 325:
($ret,$num,$first,$last)=split(/ /,$read);
To: (insert this)
($ret,$num,$first,$last)=split(/ /,$read);
# Uncomment this code if you are using a server that requires
# authentication.
# Then replace username and password with the username and password used.
# if ($ret==480)
# {
# &printSOCK ($SOCK,"authinfo user username");
# $read=<$SOCK>;
# &printSOCK ($SOCK,"authinfo pass password");
# $read=<$SOCK>;
# &printSOCK ($SOCK,"group $group");
# $read=<$SOCK>;
# ($ret,$num,$first,$last)=split(/ /,$read);
# }
Of course, if you need this code, uncomment it.
13) copy con C:\Programs\Internet\slrn\nocem\nocem.bat
@C:\Programs\Perl\bin\perl.exe nocem
Ctrl-Z
14) copy con C:\Programs\Internet\slrn\nocem\addkey.bat
@C:\Programs\Pgp\pgp.exe -ka %1 +PUBRING=ncmring.pgp
Ctrl-Z
15) edit config-1 to configure the way you like.
NOTE: This has only been tested with an nntp connection.
For a small test, subscribe to about 10 sfnet.* groups and put
nntp<TAB>sfnet.nocem<TAB>@@NCM<TAB>news.domain.org<TAB>keep/xover
in the file. (and get the keys needed from the MIT keyserver.)
16) cd ..\nocem
17) Create your keyring using addkey <file>
18) nocem (You are ready to go!)
It is now easy to run it.
Be forewarned, the first time running through news.lists.filters
WILL take about 4 hours on a 28.8.
******************
My Mileage:
******************
It seems to work. (Your Mileage May Vary)
******************
In The Future:
******************
OK... First things first...
Make ncm.s1 ncm.s1.c and work from there.
We can hook a normal Windows .exe in and work from there.
We can also speed it up by only downloading those NoCeMs from people
we want to check in stage 1, and then verify in stage 2.
Then make an "Install.exe" and run that.
--
Due to circumstances beyond your control, you are master of your fate
and captain of your soul.
curtis underline whalen plus email at geocities dot com
change the address in the header to this to write to me
This is because of spam.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads