Created
September 22, 2014 22:01
-
-
Save sjorge/4319f87f6eebc1540c91 to your computer and use it in GitHub Desktop.
Enable Serial Console on OmniOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Just for reference, how I enabled login on SoL for me. | |
| As this ticket pops up as first hit for me when searching for OmniOS serial console. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # add definitions for com0 and com1 (change 115200 if using different speed) | |
| sttydefs -a com0 -i '115200 hupcl opost onlcr ofill' -f '115200' | |
| sttydefs -a com1 -i '115200 hupcl opost onlcr ofill' -f '115200' | |
| # only do this if you want root login on serial ports | |
| sed -i 's/^CONSOLE=/#CONSOLE=/' /etc/default/login | |
| # export the current service, patch it and import it (see patch below) | |
| svccfg export console-login > console-login.xml | |
| patch < console-login.patch | |
| svccfg import console-login.xml && rm console-login.xml console-login.patch | |
| # enable com1 (my SoL port, using supermicro board) | |
| svcadm enable vtdaemon:default console-login:com1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- console-login.xml 2014-08-31 17:51:26.074514551 +0200 | |
| +++ console-login.xml 2014-08-31 17:55:06.599390359 +0200 | |
| @@ -225,6 +225,42 @@ | |
| <propval name='value_authorization' type='astring' value='solaris.smf.value.vt'/> | |
| </property_group> | |
| </instance> | |
| + <instance name='com0' enabled='false'> | |
| + <dependency name='system-console' grouping='require_all' restart_on='none' type='service'> | |
| + <service_fmri value='svc:/system/console-login:default'/> | |
| + </dependency> | |
| + <dependency name='vtdaemon' grouping='require_all' restart_on='none' type='service'> | |
| + <service_fmri value='svc:/system/vtdaemon:default'/> | |
| + </dependency> | |
| + <property_group name='ttymon' type='application'> | |
| + <propval name='device' type='astring' value='/dev/ttya' /> | |
| + <propval name='label' type='astring' value='com0'/> | |
| + <propval name='modules' type='astring' value='ldterm,ttcompat'/> | |
| + <propval name='nohangup' type='boolean' value='true'/> | |
| + <propval name='prompt' type='astring' value='`uname -n` com0 login:'/> | |
| + <propval name='terminal_type' type='astring' value='vt100'/> | |
| + <propval name='timeout' type='count' value='0'/> | |
| + <propval name='value_authorization' type='astring' value='solaris.smf.value.vt'/> | |
| + </property_group> | |
| + </instance> | |
| + <instance name='com1' enabled='false'> | |
| + <dependency name='system-console' grouping='require_all' restart_on='none' type='service'> | |
| + <service_fmri value='svc:/system/console-login:default'/> | |
| + </dependency> | |
| + <dependency name='vtdaemon' grouping='require_all' restart_on='none' type='service'> | |
| + <service_fmri value='svc:/system/vtdaemon:default'/> | |
| + </dependency> | |
| + <property_group name='ttymon' type='application'> | |
| + <propval name='device' type='astring' value='/dev/ttyb' /> | |
| + <propval name='label' type='astring' value='com1'/> | |
| + <propval name='modules' type='astring' value='ldterm,ttcompat'/> | |
| + <propval name='nohangup' type='boolean' value='true'/> | |
| + <propval name='prompt' type='astring' value='`uname -n` com1 login:'/> | |
| + <propval name='terminal_type' type='astring' value='vt100'/> | |
| + <propval name='timeout' type='count' value='0'/> | |
| + <propval name='value_authorization' type='astring' value='solaris.smf.value.vt'/> | |
| + </property_group> | |
| + </instance> | |
| <stability value='Evolving'/> | |
| <template> | |
| <common_name> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment