forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: guoyanyan <guoyanyan3@huawei.com> Co-committed-by: guoyanyan <guoyanyan3@huawei.com>
20 lines
2.9 KiB
HTML
20 lines
2.9 KiB
HTML
<a name="EN-US_TOPIC_0083023007"></a><a name="EN-US_TOPIC_0083023007"></a>
|
|
|
|
<h1 class="topictitle1">x86: Ubuntu 14.04/Debian</h1>
|
|
<div id="body1510192927807"><ol id="EN-US_TOPIC_0083023007__en-us_topic_0094568804_ol207801446123910"><li id="EN-US_TOPIC_0083023007__en-us_topic_0094568804_li32811659152210">Use the vi editor to open the <strong id="EN-US_TOPIC_0083023007__en-us_topic_0094568804_b670414132079">/etc/default/grub</strong> file and add the following information after the <strong id="EN-US_TOPIC_0083023007__en-us_topic_0094568804_b1070615136710">GRUB_CMDLINE_LINUX</strong> field:<pre class="screen" id="EN-US_TOPIC_0083023007__en-us_topic_0094568804_screen24881998235">consoleblank=600 console=tty0 console=ttyS0,115200</pre>
|
|
</li><li id="EN-US_TOPIC_0083023007__en-us_topic_0094568804_li1436671174015">Run the following commands to update the configuration:<p id="EN-US_TOPIC_0083023007__en-us_topic_0094568804_p1040761912422"><a name="EN-US_TOPIC_0083023007__en-us_topic_0094568804_li1436671174015"></a><a name="en-us_topic_0094568804_li1436671174015"></a><strong id="EN-US_TOPIC_0083023007__en-us_topic_0094568804_b4115182917423">stty -F /dev/ttyS0 speed 115200</strong></p>
|
|
<p id="EN-US_TOPIC_0083023007__en-us_topic_0094568804_p1440721914427"><strong id="EN-US_TOPIC_0083023007__en-us_topic_0094568804_b088114534713">grub-mkconfig -o /boot/grub/grub.cfg</strong></p>
|
|
</li><li id="EN-US_TOPIC_0083023007__en-us_topic_0094568804_li20908113582320">Create the <strong id="EN-US_TOPIC_0083023007__en-us_topic_0094568804_b198839285712">/etc/init/ttyS0.conf</strong> file and use the vi editor to modify the file as follows:<pre class="screen" id="EN-US_TOPIC_0083023007__en-us_topic_0094568804_screen78973915260">start on stopped rc RUNLEVEL=[12345]
|
|
stop on runlevel [!12345]
|
|
respawn
|
|
exec /sbin/getty -L 115200 ttyS0 vt102</pre>
|
|
</li><li id="EN-US_TOPIC_0083023007__en-us_topic_0094568804_li576833813264">Run the following command to start ttyS0:<p id="EN-US_TOPIC_0083023007__en-us_topic_0094568804_p1950715577261"><a name="EN-US_TOPIC_0083023007__en-us_topic_0094568804_li576833813264"></a><a name="en-us_topic_0094568804_li576833813264"></a><strong id="EN-US_TOPIC_0083023007__en-us_topic_0094568804_b1375715162714">sudo start ttyS0</strong></p>
|
|
</li><li id="EN-US_TOPIC_0083023007__en-us_topic_0094568804_li1471810911408">To allow user <strong id="EN-US_TOPIC_0083023007__en-us_topic_0094568804_b32801222171111">root</strong> to log in to the BMS using a serial port, modify the security configuration file. Add <strong id="EN-US_TOPIC_0083023007__en-us_topic_0094568804_b138954314119">ttyS0</strong> to the end of the <strong id="EN-US_TOPIC_0083023007__en-us_topic_0094568804_b6683103915112">/etc/securetty</strong> file.</li></ol>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0081116594.html">Configuring Remote Login to a BMS</a></div>
|
|
</div>
|
|
</div>
|
|
|