Здравствуйте!
Попал ко мне в руки нетбук с предустановленным линукс.
Похоже какая-то версияfedora. linput вроде бы.
Меня попросили поставить на него озвучку.
Для начала, нужно подключить мобильный интернет:
3g usb модем.
Есть инструкция, но что-то я не совсем её понимаю:
Насколько я понял нужно отредактировать файл options.ko, но где он
должен лежать, и что туда писать, как-то не совсем понял.
Поясните, пожалуйста, последовательность действий.
Вот инструкция, что мне дали:

Using MTS Connect CDMA EV-DO with AnyDATA modem under Linux

1. option.ko

First, you must get the kernel that supports the AnyDATA
modem. Since 2.6.22, the kernel's module option.ko (driver
for GSM modems) includes support for AnyDATA ADU-510A and
ADU-500A:

  $ /sbin/modinfo option
  filename:       /lib/modules/.../kernel/drivers/usb/serial/option.ko
  author:         Matthias Urlichs <[email protected]>
  description:    USB Driver for GSM modems
  ...
  alias:          usb:v16D5p6502d*dc*dsc*dp*ic*isc*ip*
  srcversion:     B848DF816DA5C4662897C6E

When you insert the modem into USB port, you should
see the next in kernel messages:

  option 3-1:1.0: GSM modem (1-port) converter detected
  usb 3-1: GSM modem (1-port) converter now attached to ttyUSB0
  option 3-1:1.1: GSM modem (1-port) converter detected
  usb 3-1: GSM modem (1-port) converter now attached to ttyUSB1
  option 3-1:1.2: GSM modem (1-port) converter detected
  usb 3-1: GSM modem (1-port) converter now attached to ttyUSB2

First endpoint's port (ttyUSB0) is usual modem port
for AT commands/data. The other 2 are AnyDATA's proprietary
endpoints.

You can query modem name and R-UIM ID by issuing "ATI" command
on ttyUSB0.

2. MTS Connect Setup

After the modem's serial port is OK, you may start configuring
pppd. Generally you need 3 things to do:

2.1. Obtain or Write a Chatscript

In Debian, you can use the "pap" script (/etc/chatscripts/pap),
it's perfectly OK for MTS Connect. It's part of "ppp" package.

For other GNU/Linux distributions, here are the contents of
the /etc/chatscripts/pap:

  ABORT         BUSY
  ABORT         VOICE
  ABORT         "NO CARRIER"
  ABORT         "NO DIALTONE"
  ABORT         "NO DIAL TONE"
  ""            ATZ
  OK            ATDT\T
  CONNECT               ""

2.2. Write login/password Entry in chap-secrets

You should place the next entry in /etc/ppp/chap-secrets:

  # user        remotename      password
  mobile        mtsconnect      internet

The mobile:internet is the defaul login:password for
MTS Connect. It's common to all users. Actual authentication
is performed by R-UIM HRPD_PASSWD.

2.3. Create pppd Peer File

I recommend to use the next configuration data in
the /etc/ppp/peers/mtsconnect file:

  /dev/ttyUSB0 230400 crtscts modem
  noccp novj
  connect "/usr/sbin/chat -e -v -f /etc/chatscripts/pap -T '#777'"
  noauth user mobile remotename mtsconnect
  usepeerdns defaultroute
  debug updetach

The "user mobile" and "remotename mtsconnect" refer
to the corresponding columns in /etc/ppp/chap-secrets
file.

If you don't specify remotename explicitly and rely on the
name provided by MTS Connect PPP server, you will need to
put several lines in /etc/ppp/chap-secrets file, one for
each of the PDSN names: "pdsn32", "pdsn25", "pdsn24",
"pdsn22", "pdsn12"

3. Using MTS Connect

To dial up MTS Connect in Debian, just run "pon mtsconnect".
To hang up, run "poff mtsconnect".

In other GNU/Linux distributions, "pppd call mtsconnect" and
"killall pppd" will suffice, when run from root. Most probably
you should use your favourite pppd frontend instead, but the
configuration procedure will differ.

-- 
Blinux-rus mailing list
[email protected]
http://www.a11ywiki.org/cgi-bin/mailman/listinfo/blinux-rus

Ответить