📄 642.html
字号:
<STYLE type=text/css>
<!--
body,td { font-size:9pt;}
hr { color: #000000; height: 1px}
-->
</STYLE>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD><TITLE>FAQ汇萃 >> solaris 专栏 >> 钱飞老师的solaris技术问答(13)-Solaris 2.X上的调制解调器之tty设备名</title>
</head>
<body >
<p><IMG SRC="../image/jsp001_middle_logo.gif" WIDTH="180" HEIGHT="60" BORDER=0 ALT=""></p>
<table width=100% bgcolor="#cccccc" align=center cellpadding="2" cellspacing="0" border=1 bordercolorlight="#000000" bordercolordark="#FFFFFF">
<tr bgcolor="#EFF8FF"><td>
<a href=http://www.jsp001.com/list_thread.php?int_attribute=1>FAQ汇萃</a>
>> <a href=http://www.jsp001.com/list_thread.php?forumid=39&int_attribute=1>solaris 专栏</a>
>> 钱飞老师的solaris技术问答(13)-Solaris 2.X上的调制解调器之tty设备名 [<a href=http://www.jsp001.com/forum/showthread.php?goto=newpost&threadid=642>查看别人的评论</a>]<br>
<hr><p>由 fei 发布于: 2001-03-06 14:32</p><p> </p><p>问: 请就Solaris 2.X上的调制解调器之tty设备名回答一下以下两个问题: <br><br>1. 在SunOS4.1.x系统上,接收用设备名一般为/dev/ttya或/dev/ttyb之别名. 在Solaris 2.X上应该怎样生成相应的设备名? <br>2. 在SunOS4.1.x系统上,可以用mknod cua0 c 12 128命令来生成发送用设备 ,在Solaris 2.X上命令是否相同,major号和minor号应该如何来定? <br>答: <br>1. 在Solaris 2.X上接收用设备文件与发送用设备文件分别存放在不同的目录下. (元文件相同) 接收用设备文件: <br><br><br> /dev/cua/a<br> /dev/cua/b<br><br> % ls -l /dev/cua/a /dev/cua/b<br> lrwxrwxrwx 1 root root 35 12 27 18:34 <br> a -> ../../devices/obio/zs@0,100000:a,cu<br> lrwxrwxrwx 1 root root 35 12 27 18:34 <br> b -> ../../devices/obio/zs@0,100000:b,cu<br><br> 发送用设备文件<br> /dev/term/a<br> /dev/term/b<br><br> % ls -l /dev/term/a /dev/term/b<br> lrwxrwxrwx 1 root root 32 12 27 18:34 <br> a -> ../../devices/obio/zs@0,100000:a<br> lrwxrwxrwx 1 root root 32 12 27 18:34 <br> b -> ../../devices/obio/zs@0,100000:b<br><br>在Solaris 2.X上生成调制解调器用设备时,可以利用系统所提供的admintool. <br>设定例(Solaris 2.5): <br><br><br> (1) 起动admintool并选择Serial Port Manager.<br> 在Port list上选择相应的接口(例:a)<br> <br> 在Modify Serial Port"上之"Detail:"处选择Expert.<br> 在"Template"上选择Modem - Bidirectioanal.<br><br> 在"Poer a"栏 <br> Service: Enabled<br> Baud Rate: 9600<br> Terminal type: vt100<br><br> 在"Options"栏 <br> Bidirectioanal<br> Login Prompt: login:<br> Comment: Modem - Bidirectioanal<br> Port Monitor Tag: zsmon<br><br> 在"Expert Options"栏 <br> Create utmp entry<br> Service: /usr/bin/login<br> Streams Modules: ldterm,ttcompat<br> Timeout(secs): Never<br><br> 选择Apply.<br><br> (2) 编辑/etc/remote文件<br><br> 追加以下内容:<br> a:\<br> :dv=/dev/cua/a:br#9600:el=^C^S^Q^U^D:ie=%$:oe=^D:<br> b:\<br> :dv=/dev/cua/b:br#9600:el=^C^S^Q^U^D:ie=%$:oe=^D \<br> :pn=111111111 <--- 需要自动拨号时填入电话号码<br><br> (3) 用tip命令测试设定结果<br><br> % tip a<br> connetted<br> at<br> atdt34199990<br><br>2. 在Solaris 2.X上生成发信用设备文件时命令格式与在SunOS4.1.x系统相同. <br>设备文件之major号一般为12(需要确认/dev/ttya之major号), minor号为128. <br><br><br> % ls -la /dev/ttya<br> crw--w--w- 1 root 12, 0 Nov 13 10:33 ttya<br><br> % mknod cua0 c 12 128<br> % chmod 777 /dev/cua0<br><br>(钱飞/fei@come.or.jp)<br></p></td>
</tr>
</table>
<p>
<CENTER><a href="http://www.jsp001.com/forum/newreply.php?action=newreply&threadid=642">点这里对该文章发表评论</a></CENTER>
<p>该文章总得分是 <font color=red>0</font> 分,你认为它对你有帮助吗?
[<a href=javascript:void(0) onclick=window.open("http://www.jsp001.com/forum/codeVote.php?threadid=642&intVote=4","","menubar=no,toolbar=no,location=no,directories=no,status=no,resizable=no,scrollbars=no,width=70,height=40,top=0,left=0")>非常多</a>](<font color=red>0</font>)
[<a href=javascript:void(0) onclick=window.open("http://www.jsp001.com/forum/codeVote.php?threadid=642&intVote=2","","menubar=no,toolbar=no,location=no,directories=no,status=no,resizable=no,scrollbars=no,width=70,height=40,top=0,left=0")>有一些</a>](<font color=red>0</font>)
[<a href=javascript:void(0) onclick=window.open("http://www.jsp001.com/forum/codeVote.php?threadid=642&intVote=1","","menubar=no,toolbar=no,location=no,directories=no,status=no,resizable=no,scrollbars=no,width=70,height=40,top=0,left=0")>无帮助</a>](<font color=red>0</font>)
[<a href=javascript:void(0) onclick=window.open("http://www.jsp001.com/forum/codeVote.php?threadid=642&intVote=-1","","menubar=no,toolbar=no,location=no,directories=no,status=no,resizable=no,scrollbars=no,width=70,height=40,top=0,left=0")>是灌水</a>](<font color=red>0</font>) </p>
<script language="javascript" src="http://www.jsp001.com/include/read_thread_script.php?threadid=642"></script>
<p><CENTER>
Copyright © 2001 - 2009 JSP001.com . All Rights Reserved <P>
<IMG SRC="../image/jsp001_small_logo.gif" WIDTH="85" HEIGHT="30" BORDER=0 ALT="">
</CENTER></p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -