HP t5515 Inside the t5515 Thin Client Linux: FAQs - Page 17

Reading Options from File, Variable, Description

Page 17 highlights

Variable [speed] [options] Description Set the baud rate to (a decimal number). On systems such as 4.4BSD and NetBSD, any speed can be specified. Other systems (e.g. SunOS) allow only a limited set of speeds. Read options from file name (the format is described below). The file must be readable by the user who has invoked pppd. Reading Options from File 1. Create a script file that contains the necessary modem commands to configure your modem. 2. Edit or create the file: /etc/ppp/chat_options" vi chat_options 3. Enter the following into the chat_options file. ABORT "BUSY" ABORT "NO CARRIER" ECHO OFF SAY "\n\n\nDialing to ... \n""" AT OK ATDT CONNECT "" SAY "Connected!\nGetting login informations... \n\n\n" 4. Save and exit the chat_options file. 5. You need to make the script file executable, with the chmod command: chmod +x /etc/ppp/ chat-options 6. To configure the modem login with a default username and password edit the /etc/ppp/ options file vi options. 7. Add two lines with the following information: user domain\\my_username password my_password 8. Save and exit the options file. 9. Now execute the pppd daemon and chat script file from the command line. The following exam- ple is using the com port 1 set at 115200 baud: pppd /dev/ttyS0 115200 nodetach crtscts modem connect "/usr/sbin/chat -f /etc/ppp/chat_options" 17

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25

17
Reading Options from File
1.
Create a script file that contains the necessary modem commands to configure your modem.
2.
Edit or create the file:
/etc/ppp/chat_options” vi chat_options
3.
Enter the following into the chat_options file.
ABORT “BUSY”
ABORT “NO CARRIER”
ECHO OFF
SAY "\n\n\nDialing to <Your
telephone number >... \n""" AT
OK ATDT<replace with telephone number no spaces>
CONNECT ""
SAY "Connected!\nGetting login informations... \n\n\n"
4.
Save and exit the chat_options file.
5.
You need to make the script file executable, with the chmod command:
chmod +x /etc/ppp/
chat-options
6.
To configure the modem login with a default username and password edit the
/etc/ppp/
options file
vi options
.
7.
Add two lines with the following information:
user domain\\my_username
password my_password
8.
Save and exit the options file.
9.
Now execute the pppd daemon and chat script file
from the command line. The following exam-
ple is using the com port 1 set at 115200 baud:
pppd /dev/ttyS0 115200 nodetach crtscts modem connect “/usr/sbin/chat -f
/etc/ppp/chat_options”
[speed]
Set the baud rate to <speed> (a decimal number). On systems
such as 4.4BSD and NetBSD, any speed can be specified. Other
systems (e.g. SunOS) allow only a limited set of speeds.
[options]
Read options from file name
(the format is described below).
The file must be readable by the user who has invoked pppd.
Variable
Description