Subject: Trumpet winsock 2.0B 自動login各大server(HOW-TO)

From: [email-masked] (hongseng)
Date: Fri, 03 Feb 1995 18:03:49 -0500

*****************************************************
          有關 Trumpet winsock 2.0 B 自動 login 各大Server
          SEEDnet,HInet PPP server及台大,中研院 等Slip server
         *****************************************************

            一.前言:
            二.有關Trumpet winsock 2.0 B 
            三.有關Winsock 應用程式
            四.以Trumpet winsock連 SEEDnet PPP server
            五.以Trumpet winsock連 HInet PPP server
            六.以Trumpet winsock連 台大 SLIP server
            七.以Trumpet winsock連 中研院 SLIP server
            八.以Trumpet winsock連 東南工專 SLIP server
            九.有關login.cmd 中modem setup 部份
            十.後記
            十一.附註

                                 hongseng,薛宏昇  1995/02/03
                                 E-Mail:[email-masked]

一.前言:

 1.本文主要討論:以 Trumpet winsock 2.0 B (Shareware!)連SEEDnet,HInet PPP 
   server,及 台大,中研院 ,東南工專 SLIP server 自動login file修改法.
   (技術學院的 login.cmd 已try出,但年假期間似乎server有問題,待確定無誤後,
    將於下次修改時放入本文!)

 2.本次修訂,主要針對dialup SLIP server的login.cmd ,其 IP address 部份,
   已經可已自動keyin,不必自己修改!

 3.Winsock應用程式相關說明,請依底下指示,另找說明文件.

 4.本文並刊登在台大Gopher: gopher.ntu.edu.tw
    *5.綜合文件資料 (Documentation/) => *2.網路電腦專題文件 (Topic: network
    & Computer/) => *1.Trumpet winsock自動login各大Server(how-to)
    或是 gopher://drake.ntu.edu.tw:70/00/doc/net/p1  

二.有關Trumpet winsock 2.0 B :

  1.Trumpet winsock 2.0 B 支援modem speed 到 115200 !
   只要你的RS-232 有16650 ,將trumpet winsock modem speed setup 成你的
   modem speed加1.5倍以上,如modem14400, trumpet speed 設38400 or 57600,
   (somebody says: modem speed x 4 !)並選Hardware Handshake,那麼就可以
   dialup上SEEDnet,Hinet,..的high speed modem server了.

  2.Trumpet winsock 2.0 B, FTP site: (請用archi,就近找ftp site)
    
    -----------------------------------------
    ftp.nsysu.edu.tw  /pub2/winsock    twsk20b.zip

    ftp.tem.nctu.edu.tw /Msdos/windows/winsock  twsk20b.zip
    
    以及 三.有關Winsock 應用程式 所提之 FTP site.

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

  3.Trumpet winsock 可說是目前,全世界最popular的winsock kernel,所有的
    winsock application shareware/freeware 應該都能與其相容,且其為
    shareware (just $25),想使用windows PPP,SLIP環境的user,只要懂得使用
    Trumpet winsock,再加上後文所述之winsock application shareware/freeware,
    就可構築成一套價廉,但功能及相容性,卻比commercial sofeware更強的Windows 
    PPP,SLIP 環境!

三.有關Winsock 應用程式

  1.本文寫作目的,只限定於Trumpet winsock dialup 各server的部份,
    有關Winsock applicaton 中文介紹文件,請看: 資策會林軍鼐先生文章:
    (林先生 E-mail: [email-masked] )
    FTP: 139.175.1.10
    name:  anonymous
    passwd : your e-mail address
    locate:  UPLOAD/WINKING/jnlin_個人文章及程式  目錄下

  2.國內存放winsock application主要FTP site:
    ftp.nctu.edu.tw 140.113.250.2  
       ( 或 iiiafs.iii.org.tw  140.92.1.65 ) 
    name : anonymous
    passwd : your e-mail address
    locate: /PC/windows/winsock

    至於少數較新版次的 winsock application,可到底下 ftp site 找找:
    FTP:139.175.1.10     
    name:  anonymous
    passwd : your e-mail address
    locate:  /UPLOAD/WINKING/Winsock_AP  目錄下

  3.個人目前較偏好winsock application檔名如下:

    [winsock]: trumpet: twsk20b.zip
    [file search]: wsarch07.zip    
    [ftp]:ws_ftp.zip    
    [Mail]: eudor144.exe,winpm122.zip
    [News]: wnv9311.zip (?)
    [Telnet]:ewan1052.zip,qvtw3988.zip(?)  
    [WWW]: ns16-100.exe(the best),
           wmos20a2.zip,wmos20a7.zip ( a7 need win32s115a.zip)
           (mosaic a8,mosaic a9 均須 win32sOLE,但win32sOLE 與
            中文windows 3.1 不相容!)
    [gopher]: wsg-11.exe, wsg-12.exe(與中文有點衝碼?)
    [ping]: ws_ping.zip
    [finger]: wsfngr14.zip       
    [NSLOOKUP]: nslookup.zip
    [IRC]: wsirc14e.zip 
    [util]: winzip55.exe,wzbeta56.exe(winzip 5.6), wncode26.zip  
    [viewer]: mpegw32h.zip,lviewp1a.zip 
    [sound]:speak.exe, wplny11.zip  
    [win32s]: win32s115a.zip (ver1.1.5a)
             (win32s 1.2 與中文windows 3.1不相容!)

    以上除了twsk20b.zip,qvtw3988.zip為shareware外,其餘幾乎為freeware!

    最新版的Winsock application介紹,請見[The Winsock client listing] 
    winterxx.zip, (84.02版為winter09.zip),亦可在上述位置找到!

    若要在offline時setup 各winsock application,請先將 trumpet winsock
    叫出來,並最小化,(不用撥號),並將modem開關打開,才能叫出Netscape,ws_ftp,
    等 winsock application!

四.以Trumpet winsock連SEEDnet PPP server:
  
  1.從"File"選setup: (以台北SEEDnet server為例)

   IP address:192.72.xx.xxx Name server:139.175.1.10
       (gateway:139.175.1.9 , Net mask: 255.255.255.0)
   DOMAIN suffix:seed.net.tw
   選取: internal PPP, 選你的modem (SLIP Port) com2 or com1..., 
   and Baud Rate speed,選Hardware Handshake

  2.然後在"FILE" PPP option:
   選使用PAP功能,並輸入 ID, PPP passwd,

  3.從"Dialler"選 setup.cmd :
    keyin 7377410 or 7377850, ID,Passwd(mail passwd)

  4.在login.cmd 中 (從dialler選Edit scripts=>login.cmd )
   
   依照本文 九.有關login.cmd 中modem setup 部份:
   修改modem setup

  5.重新進trumpet winsock,選dialler login,
    就可自動連上SEEDnet!

  6.畫面在connect SEEDnet後出現幾行亂碼,最後會出現 PPP enable,accepted,
   恭喜你,這時已經連上了!
   將Trumpet winsock最小化,就可執行其它winsock application!
   (如 Telnet, mail, WWW, FTP......等)

五.以Trumpet winsock連HInet PPP server:
   
   大致上,同SEEDnet方法,其差異處在:

   1.在login.cmd 中 (從dialler選Edit scripts=>login.cmd )

     #
     # we are now logged in
     #
       底下,加入以下三行: 

     sleep 1
     input 30 ===>
     output 1\13

   2.並且在FILE PPP option: 不要選PAP功能

   3.連上後,只會出現PPP enable,而不會出現accepted.

   4.Trumpet winsock 只適用於 PPP account user!
     (HInet 會將IP,Gateway,....等資料與ID,Passwd一併寄給你)
     申請HInet Terminal mode account user 不適用!

六.以Trumpet winsock連台大 SLIP server:
   
   1."File" : setup:
      Domain suffix: ntu.edu.tw
      Name server: 140.112.2.2

   2.若你是利用3676981連上網路,則所用的segment 為140.112.186.xxx
         其gateway設為 140.112.186.254
           netmask     255.255.255.0
           IP: 140.112.186.xxx

   3.若你是利用3689280連上網路,則所用的segment 為140.112.8.xxx
         其gateway設為 140.112.8.254
           netmask     255.255.255.0
           IP: 140.112.8.xxx
 
   4.在setup選取: internal SLIP,
      選你的modem (SLIP Port) com2 or com1...., and speed, 
      選Hardware Handshake
 
   5.在"FILE": PPP option: 不要選PAP功能.

   6."dialler": setup.cmd
      keyin 3676981 or 3689280. 至於 ID, Passwd 兩項都要空白!

   7.再將下面虛線內文字( if ! ......  到最後的 end ),另外save成
     login.cmd 檔,(當然,也可save成任何 *.cmd檔名!),放到 \trumpet 目錄下.

     並依照本文 九.有關login.cmd 中modem setup 部份: 修改modem setup

---------------------------------------------------------
if ![load $number]
  if [query $number "Enter your dial up phone number"]
    save $number
  end
end
if ![load $username]
  if [username "Enter your login username"]
    save $username
  end
end
if ![load $password]
  if [password "Enter your login password"]
    save $password
  end
end
$modemsetup = "E1Q0V1X4&C1&D0&K3S0=0"    <==請參考本文 九.modem setup 部份
$prompt = "login:"
$userprompt = "sername:"
$passprompt = "assword:"
$slipcmd = "slip"
$addrtarg = "IP address ="
$pppcmd = "ppp"
%attempts = 10
output "atz"\13
if ! [input 10 OK\n]
  display "Modem is not responding"\n
  abort
end
output "at"$modemsetup\13
input 10 OK\n
%n = 0
repeat
  if %n = %attempts
    display "Too many dial attempts"\n
    abort
  end
  output "atdt"$number\13
  %ok = [input 60 CONNECT]
  %n = %n + 1
until %ok
input 10 \n
wait 30 dcd
output \13
input 30 $prompt
output $slipcmd\13
input 30 $addrtarg
output \13
input 30 $addrtarg
address 30
input 30 \n
display \n
display Connected.  Your IP address is \i.\n
end
--------------------------------------------------------------------

   8.重新進trumpet winsock,選dialler login(或是前面你save的*.cmd),就可自動dialup,
    login!

   9.當接通台大SLIP server時,會出現如下畫面:

----------------------------------------------------------
atdt3676981
CONNECT 14400/ARQ/V32/LAPM/V42BIS
  Welcome to dial-up service at Computer Center of National Taiwan University
-------------------------------------------------------------------------------
  Please type one of the following names to login :

     tulips  :    connect to NTU campus Library (140.112.192.1)
     ccms    :    connect to ccms (140.112.2.3)
     hp850s  :    connect to hp850s (140.112.2.86)
     ccsun   :    connect to Sun workstation
     cray    :    connect to Cray supercomputer (192.83.175.1)
     ntu     :    Guest account, connect to whichever not list above.
     slip    :    Enter SLIP packet mode.
-------------------------------------------------------------------------------
     New line Tel: 3690727   is available for ccms and ccsun users...

dialup2 login: slip
prompt slip-21 "Entering SLIP mode.\012\012IP address = $pool\012Maximum Transmit 
Unit (MTU) = $mtu bytes\012Gateway = 140.112.186.254"

Entering SLIP mode.

IP address = 140.112.186.202
Maximum Transmit Unit (MTU) = 1500 bytes

Connected.  Your IP address is 140.112.186.202.

Script completed
SLIP ENABLED

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

   10.將Trumpet winsock最小化,就可執行其它winsock application!
      不須再 修改IP address了!

七.以Trumpet winsock連中研院 SLIP server

   1. IP address is 140.109.247.XX 
      Name Server : 140.109.1.10 
      Gateway IP : 140.109.1.101  
      Net mask: 255.255.255.0
      Domain suffix: sinica.edu.tw      
      Telephone:(02)6513920

   2.其setup方法請,參照上述 六. dialup 台大之方式,其login.cmd為:
      
     (並依照本文 九.有關login.cmd 中modem setup 部份: 修改modem setup)

-----------------------------------------------------------
if ![load $number]
  if [query $number "Enter your dial up phone number"]
    save $number
  end
end
if ![load $username]
  if [username "Enter your login username"]
    save $username
  end
end
if ![load $password]
  if [password "Enter your login password"]
    save $password
  end
end
$modemsetup = "E1Q0V1X4&C1&D0&K3S0=0"    <==請參考本文 九.modem setup 部份
$prompt = "login:"
$userprompt = "sername:"
$passprompt = "assword:"
$slipcmd = "slip"
$addrtarg = "Your IP address is"
$pppcmd = "ppp"
%attempts = 10
output "atz"\13
if ! [input 10 OK\n]
  display "Modem is not responding"\n
  abort
end
output "at"$modemsetup\13
input 10 OK\n
%n = 0
repeat
  if %n = %attempts
    display "Too many dial attempts"\n
    abort
  end
  output "atdt"$number\13
  %ok = [input 60 CONNECT]
  %n = %n + 1
until %ok
input 10 \n
wait 30 dcd
output \13
input 30 $prompt
output $slipcmd\13
input 30 $addrtarg
output \13
input 30 $addrtarg
address 30
input 30 \n
display \n
display Connected.  Your IP address is \i.\n
end
-----------------------------------------------------------

   3.當接通中研院SLIP server時,會出現如下畫面:

-----------------------------------------------------------
atdt6513920
CONNECT 9600/ARQ/V32/LAPM/V42BIS
                 =======================================
                   COMPUTING CENTER OF ACADEMIA SINICA
                       Dial-up number : 651-3920
    
                     1.login : <slip> <ppp>
                     2.Gateway IP : 140.109.1.101
                     3.Name Server : 140.109.1.10
                     4.terminal user please dial 
                       782-6851 or 789-9702

                 ======================================
sluice3 login: slip
prompt slip-16 "Entering Slip mode.\012Your IP address is $pool\012Default
 Gateway : 140.109.1.101"

Entering Slip mode.
Your IP address is 140.109.247.33
Default Gateway : 140.109.1.101

Connected.  Your IP address is 140.109.247.33.

Script completed
SLIP ENABLED
-----------------------------------------------------------

   4.將Trumpet winsock最小化,就可執行其它winsock application!
     不須再 修改IP address了!

八.以Trumpet winsock連 東南工專 SLIP server

   1. IP address is : 140.129.140.125
      Netmask= 255.255.255.0
      Gateway= 140.129.142.254
      Name server= 140.129.142.200
      Domain suffix= tnjc.edu.tw
      Telephone:(02)6623422

   2.其setup方法請,參照上述 六. dialup 台大之方式,其login.cmd為:
      
     (並依照本文 九.有關login.cmd 中modem setup 部份: 修改modem setup)

-----------------------------------------------------------
if ![load $number]
  if [query $number "Enter your dial up phone number"]
    save $number
  end
end
if ![load $username]
  if [username "Enter your login username"]
    save $username
  end
end
if ![load $password]
  if [password "Enter your login password"]
    save $password
  end
end
$modemsetup = "E1Q0V1X4&C1&D0&k3&F1S0=0"   <==請參考本文 九.modem setup 部份
$prompt = "login:"
$userprompt = "sername:"
$passprompt = "assword:"
$slipcmd = "phtncc"
$addrtarg = "Your IP address is"
$pppcmd = "ppp"
%attempts = 10
output "atz"\13
if ! [input 10 OK\n]
  display "Modem is not responding"\n
  abort
end
output "at"$modemsetup\13
input 10 OK\n
%n = 0
repeat
  if %n = %attempts
    display "Too many dial attempts"\n
    abort
  end
  output "atdt"$number\13
  %ok = [input 60 CONNECT]
  %n = %n + 1
until %ok
input 10 \n
wait 30 dcd
output \13
input 30 $prompt
output $slipcmd\13
input 5 enabled
display \n
display Connected.  Your IP address is \i.\n
display \n
end
-----------------------------------------------------------

   3.當接通 東南工專 SLIP server時,會出現如下畫面:

-----------------------------------------------------------
atl0dt6623422
CONNECT 14400/ARQ/V32/LAPM/V42BIS
Telebit's NetBlazer Version 2.0
PH-TNCC login: phtncc
Packet mode enabled
Your IP address is 140.129.140.125.
-----------------------------------------------------------

   4.將Trumpet winsock最小化,就可執行其它winsock application!

九.有關login.cmd 中modem setup 部份:
  
   1.user必須針對自己modem,修改login.cmd中有關modem setup!
     否則有些modem不會撥號!不過,這部份我參考 "SUCCESS" 內定值,
     就可以了! ( my old modem : USRobotic sportster 14400 )
     內容如下:

     $modemsetup = "E1Q0V1X4&C1&D2&K3S0=0"

     或者不改這,只改以下內容 :
         #output "atz"\13
         output "atz E1Q0V1X4&C1&D2&K3S0=0"\13       <===
     也是一樣的意思!
 
   2.碰到網路不穩定,不用&D2,而改用&D0 ,應可避免網路走走停停時,自動hang 
     up!但若網路真的當機,就可能必須自己hang up! (執行"Dialler" "Bye")
     有些user dialup SLIP server時,在修改IP address後,欲關掉Trumpet時,
     電話會斷線,也請改用&D0.(我建議,不管PPP,SLIP都使用 &D0 )

   3.有關 USRobotic V.34 28800 modem:
     modem setup值,廠商建議用 &F1&W,但我習慣用&F1&D0&W,所以上述內容成為:

      $modemsetup = "&F1&D0&W"  

     在Trumpet setup中,Baud Rate speed可設57600 or 115200 !
     (若115200無法連上,請改回57600!並找廠商幫忙解決問題)

   4.若要充份運用高速RS-232卡上的16550,請將windows的comm.drv換成
     cybercom.drv!

     ftp.linkease.com.tw /pub/dos/windows/cyberdrb.exe (ver 1.1.0) or

     info.dkrz.de  /pub/msdos/ppp/cybercom.drv  and cybercom.txt

     在凌怡公司BBS中另有cybc114.zip,為 Ver1.1.4 (須在windows中install)!

     將cybercom.drv copy進 \windows\system 目錄,並將system.ini中:
     [BOOT]     
     comm.drv=comm.drv => 改成  comm.drv=cybercom.drv

     [386Enh] 中加入:
     COMnFIFO=1     (其中n是modem所接的com port)
             ( 我的modem在com2,所以是COM2FIFO=1 )
     
     USRobotic V.34 28800 modem setup,及cybercom.drv 部份,感謝 凌怡公司 
     游允毅先生提供協助!
     游先生E-mail: [email-masked],凌怡公司 TEL: (02)7591319
   
   5.要知道主機板上是否有16550,請在 \DOS 或 \windows 目錄下,執行:
     MSD, 然後按 C ,就可在最底下一行看見 UART Chip !
     若仍是 16450 UART,而擔心傳檔時出問題,建議將Trumpet Baud Rate 改為 38400 !
     若是 8250 UART,則建議改為19200 !

   6.若只是你的Windows當掉,通常只需以"Ctrl+Alt+Del"重開機,
     (非電腦主機上的"Reset"按鈕!),進Windows,叫出Trumpet,
     再將Trumpet winsock最小化,通常仍在連線狀態,不需重撥電話!
     (可以Ping測主機反應,確定是否仍在連線狀態)

   7.若因個別不同廠牌modem setup仍有問題,請直接找廠商,或將問題post到 
     seed.forum.service,hinet.newuser, tw.bbs.comp.winsock 或 
     tw.bbs.comp.network,tw.bbs.comp.modem,有許多熱心人士會幫助你!

十.後記:

   1.dialup 其它server,若不會改login.cmd,可用dialler manual login !
     然後直接下 atdt電話號碼 指令,待連上後,照畫面指示,keyin所需資料,餘法同上.
     然後將login畫面,copy下來,post到newsgroup上,請大家幫忙吧!
  
   2.setup Trumpet winsock時,先不要選 internal PPP or SLIP,就可以keyin
     Gateway的 數字了!

   3.請避免在進Windows前,載入不必要驅動程式,除Sound card driver外,其餘
     如MO,Scanner..等driver最好拿掉,若仍有問題,甚至連Sound card driver也要
     犧牲了! (但仍可以用前面所提到的speak.exe,聽到音效)

     並建議在dos環境中,執行memmaker.exe,(若增減driver之後已做過,就不需要
     再執行此步驟了)

   4.Winsock application 相關newsgroup:
    
     台灣BBS,中文:tw.bbs.comp.winsock,
                  tw.bbs.comp.www,
                  tw.bbs.comp.network

     國外,英文:  alt.winsock
                comp.infosysstems.www.users                
                comp.infosystems.www.providers
                comp.infosystems.www.misc     
  
   5.以上所提Server,只有台大,中研院不需申請帳號!
     沒有帳號的dialup user 透過各地BBS account,仍可收發mail!
  
     SEEDnet 仍未重新開放個人用戶申請,
              Service Tel: (02)7338779,7336454 (035)773311=>518
                           (07)3394105

     HInet 試用期即將結束,快要開始收費了!
              電信總局數據所企劃室 Tel: (02)3443143
  
   6.for SEEDnet user:

     將"Success"目錄下, red.ini中加入:
      tw.bbs.comp.winsock:0
      tw.bbs.comp.network:0
      tw.bbs.comp.www:0     
      .................... 等
     就可用"SUCCESS"將你的news,question丟過去!

   7.以上內容若有謬誤,敬請各位先進們不吝指正!

十一.附註: 本文感謝以下仁兄提供協助:

   凌怡公司 游允毅先生 ,E-mail: [email-masked]
   東南工專 徐啟宏先生 ,E-mail: [email-masked]
   淡江大學建築系 謝百毅 先生  ,E-mail: [email-masked]

--
  ---------------------------------------------------------
   hongseng ,薛宏昇  E-mail: [email-masked]
    http://www.seed.net.tw/~jenwen/hongseng/hongseng.htm
         (139.175.251.50)
   A happy user of YARN,YES,UQWK
   the article written in YARN,post by UQWK
  -----------------------------------------------------------