FacetTerm  
 
FacetCorp
 

Adding PTS Lines to UnixWare Platform


{Note: The origin of this information may be internal or external to Novell. Novell makes every effort within its means to verify this information. However, the information provided in this document is FOR YOUR INFORMATION only. Novell makes no explicit or implied claims to the validity of this information}

TITLE: Increasing number of windows in X/Adding more pseudo terminals
DOCUMENT ID#: FYI.U.0163
DATE: 16MAR93
PRODUCT: Application Server, Personal Edition
PRODUCT VERSION: 1.O (U8)
SUPERSEDES: None

SYMPTOM

N/A

ISSUE/PROBLEM

How can I add more pseudo terminals under UnixWare?

SOLUTION

Under UnixWare there is a default limit of 16 pseudo-terminals (that is, there are 16 pts nodes under /dev) which correspond to the number of windows which can be opened simultaneously. If you try to open more than 16 windows within this configuration, the window will briefly appear, then disappear.

To add more pseudo terminal devices (say, 32), perform the following steps;

  1. Edit /etc/conf/mtune.d/io and change the first value on the NSTREAM row from 32 to 64.
  2. Edit /etc/conf/sdevice.d/ptm and change the first numeric value from 16 to 32:

    ptm Y 16 0 0 0 0 0 0 0 -1

    to:

    ptm Y 32 0 0 0 0 0 0 0 -1

  3. Edit /etc/conf/sdevice.d/ptem and change the first numeric value from 16 to 32:

    ptem Y 16 0 0 0 0 0 0 0 -1

    to:

    ptem Y 32 0 0 0 0 0 0 0 -l

  4. Edit /etc/conf/sdevice.d/consem and change the first numeric value from 16 to 32:

    consem Y 16 0 0 0 0 0 0 0 -l

    to:

    consem Y 32 0 0 0 0 0 0 0 -l

  5. Next you need to tell the system to create the proper device nodes when the kernel is reboot. To do this, create the following shell script (i.e., node.sh):

    for i in 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
    do
    echo "pts pts/$i c $i" >> /etc/conf/node.d/pts
    done

  6. Make sure that node.sh is executable (chmod 755 node.sh) before running it. Also, note the spacing between the strings within the quotes; between the strings 'pts' and 'pts' there is a space, between '$i' and 'c' there is a tab, and between 'c' and '$i' there is also a tab.

  7. After you have run the scripts, run /etc/conf/bin/idbuild -B to rebuild your kernel, then reboot.
Keywords: FileSystems, XWindows, Other