Technical article 105655

Can I start scologin for OpenServer 5.x on a console screen other than tty02?

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4OpenServer 5.0.5OpenServer 5.0.6OpenServer 5.0.7

Written · Last revised

Problem

I would like tty02 on the console to be non-graphical. What do I do to start scologin on another tty?

Solution

Scologin can be started automatically on a different tty by taking the following steps:

1. Stop scologin by typing the following from a _non-graphical_ screen on the console:

# scologin disable

You will see a message stating that scologin is being stopped.

2. cd into /usr/lib/X11/scologin where you will see the file "Xservers".

The file Xservers contains the following lines:

# This line will start a server named :0 on tty02
:0 local /usr/bin/X11/X :0 -crt /dev/tty02

3. Using the vi editor, change "/dev/tty02" to something else, such as "/dev/tty12".

4. Since this file is read-only by default, do ":wq!" to save your changes.

5. Now, from one of the _non-graphical_ console screens, log in as root and type "scologin enable".

You should see the message that scologin is starting on /dev/tty12 at this point.

Scologin will now automatically start on tty12 by default.

NOTE:     If you would like the console to not switch to the screen running
          scologin, using the vi editor, change the following lines in:
/etc/rc2.d/P86scologin
In the Main section from:
/usr/bin/X11/scologin > /dev/null 2>&1 &
switch_screen $2
to:
/usr/bin/X11/scologin > /dev/null 2>&1 &
echo "Starting scologin on /dev/tty`servers`." > /dev/console
# switch_screen $2

Then restart the server, scologin will start in the tty defined in Xservers above but the startup information will remain on the first console.

From the Xinuos technical article database, record 105655. Reproduced with permission. The original is at www.sco.com/ta/105655, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.