2019年7月20日 

lightdm ログインマネージャーをインストール
root@roco-FMVCE:~# apt install lightdm

 

ディスプレイマネージャでのログインを有効化・表示する
root@roco-fmv:~# systemctl set-default graphical.target
Created symlink /etc/systemd/system/default.target → /lib/systemd/system/graphical.target.

lightdm を有効化
root@roco-fmv:~# systemctl enable lightdm
Synchronizing state of lightdm.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable lightdm
The unit files have no installation config (WantedBy, RequiredBy, Also, Alias
settings in the [Install] section, and DefaultInstance for template units).
This means they are not meant to be enabled using systemctl.
Possible reasons for having this kind of units are:
1) A unit may be statically enabled by being symlinked from another unit's
.wants/ or .requires/ directory.
2) A unit's purpose may be to act as a helper for some other unit which has
a requirement dependency on it.
3) A unit may be started when needed via activation (socket, path, timer,
D-Bus, udev, scripted systemctl call, ...).
4) In case of template units, the unit is meant to be enabled with some
instance name specified.

lightdm.serviceの状態をSysVサービススクリプトと/ lib / systemd / systemd-sysv-installで同期します。
実行:/ lib / systemd / systemd-sysv-install enable lightdm
ユニットファイルにはインストール設定がありません(WantedBy、RequiredBy、Alias、
[Install]セクションの設定、およびテンプレートユニットのDefaultInstance
これは、それらがsystemctlを使って有効にされることを意味していないことを意味します。
この種のユニットを持つことの考えられる理由は次のとおりです。
1)ユニットは他のユニットのシンボリックリンクによって静的に有効にされるかもしれません
.wants /または.requires /ディレクトリ。
2)ユニットの目的は、他のユニットを手助けすることです。
それに対する要求依存性。
3)起動時に必要なときにユニットを起動することができます(ソケット、パス、タイマー、
Dバス、udev、スクリプトsystemctl呼び出し、...)。
4)テンプレートユニットの場合、ユニットはいくつかの
インスタンス名が指定されました。

 

ユーザーroko をlightdmグループに登録
root@roco-FMVCE:~# gpasswd -a roco lightdm
Adding user roco to group lightdm

root@roco-FMVCE:~# reboot

 
投票数:5 平均点:10.00

 
Back to Top