1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Raspbian Lite に Xorg をインストール

Posted at

Raspbian Lite は CUI 用の OS イメージ。
でもちょっと X 上の動作確認がしたくて追加インストール

環境

  • 2020-05-27-raspios-buster-lite-armhf
  • RaspberryPi Model B+

何も考えずに失敗

何も考えずに


$ sudo apt install xorg


してみた。


$ startx

としても画面の操作ができない。ウィンドウマネージャが入ってないので当たり前か。

更に何も考えずに


$ sudo apt install mate

して


$ startx

すると起動したが、重たい・・・ほとんど使えなかった。やり直し。
IMG_20200929_173638397.jpg

先に raspi-config してみる


$ sudo raspi-config

して、

      3 Boot Options         Configure options for start-up  

から進めて

           B4 Desktop Autologin Desktop GUI, automatically logged in as 'pi' user      

を選ぶと


 Do 'sudo apt-get install lightdm' to allow configuration of boot to desktop                                       ```

と出てきた。なので


$ sudo apt-get install lightdm

としてから再起動。そうすると GUI のログオン画面が出てくるが、ここで pi ユーザーでログオンしようとしてもダメだった。
IMG_20200929_181713652.jpg

raspberrypi-ui-mods


$ sudo apt install raspberrypi-ui-mods
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  adwaita-icon-theme agnostics aspell aspell-en at-spi2-core bluealsa bubblewrap dbus dbus-user-session dconf-gsettings-backend dconf-service desktop-base
.
.
.
2 upgraded, 502 newly installed, 0 to remove and 38 not upgraded.
Need to get 246 MB of archives.
After this operation, 1182 MB of additional disk space will be used.

となる。
この後先のように raspi-config して、再起動すると X が使えるようになった。

IMG_20200929_191508100 (1).jpg

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?