Ubuntu Server 16.04 ttyが機能しない

Ubuntu Server 16.04 ttyが機能しない

オフィスサーバーをUbuntu Server 16.04にアップグレードしましたが、仮想端末に問題があるため開かれません。

システムが正しく起動し、sshが機能していてもサーバーのキーボードを介してコンソールを使用したい場合は、ログインプロンプトが表示されないため不可能です。

ホーム画面に緑色の「OK」リストが表示されます。他の端末(ctrl + alt + F2など)に変更すると、黒い画面が表示されます。

このコマンドを使用してgettyを有効にしようとしています。

systemctl enable [email protected]

しかし、うまくいきません。次のコマンドを使用してgettyをtty1で強制的に起動しようとすると(たとえば)

systemctl start getty@tty1

何も起こらず、エラーも表示されません。

仮想端末を起動する唯一の方法は、このコマンドを使用することです。

service getty@tty1 start

サーバーを制御するにはsshを使用する必要があります。また、/etc/systemd/logind.confファイルを編集しましたが、何も変更されませんでした。

logind.conf ファイルの内容です。

#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as
published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See logind.conf(5) for details.

[Login]
NAutoVTs=6
ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
#HandleLidSwitch=suspend
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
#UserTasksMax=12288

コンソール端末にログインプロンプトを自分で表示させるにはどうすればよいですか?

ベストアンサー1

私のUbuntu 16.04サーバーはTTY7をロードできませんが、TTY1-6は機能します。systemctl start動作している場合は、アクティベーションを使用できます。

sudo systemctl enable getty@tty1

おすすめ記事