Help us understand the problem. What is going on with this article?

[Ubuntu 18.04] ログイン画面の背景を変える

More than 1 year has passed since last update.

はじめに

デスクトップの背景やロック画面は簡単に変えられますが、ログイン画面は少し特殊なのでまとめました。

デフォルトだとこんな感じです。
Screenshot from 2018-04-29 20-00-40.png

方法

まず、画像を用意します。(形式はpngかjpg)
ログイン画面の背景は全ユーザー共通なので、システムの背景画像フォルダ/usr/share/backgrounds/に置いておくのが適切でしょう。

$ sudo cp <用意した画像のPath> /usr/share/backgrounds/

次に、sudo viなどで設定ファイル/etc/alternatives/gdm3.css#lockDialogGroupを変更します。
デフォルトだとこうなっています。

/etc/alternatives/gdm3.css
/* <<< 省略 >>> */

#lockDialogGroup {                                                               
  background: #2c001e url(resource:///org/gnome/shell/theme/noise-texture.png); 
  background-repeat: repeat; }

/* <<< 省略 >>> */

これを以下のように変更してください。

/etc/alternatives/gdm3.css
/* <<< 省略 >>> */

#lockDialogGroup {
  background: #2c001e url(file:///usr/share/backgrounds/<用意した画像のファイル名>);         
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center; }

/* <<< 省略 >>> */

再起動で反映されます。

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした