0
0

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.

GCE + Ubuntu 20.14LTS + MATE + XRDPでリモートデスクトップ環境を作る

Last updated at Posted at 2022-01-17

GCE インスタンス作成

webコンソールで。↓は記録のために同等のコマンドラインをメモ。

gcloud compute instances create rdp \
--project=myproj \
--zone=asia-northeast1-b \
--machine-type=e2-medium \
--network-interface=network-tier=PREMIUM,subnet=default \
--can-ip-forward \
--no-restart-on-failure \
--maintenance-policy=TERMINATE \
--preemptible \
--service-account=xxx \
--scopes=https://www.googleapis.com/auth/devstorage.read_only,https://www.googleapis.com/auth/logging.write,https://www.googleapis.com/auth/monitoring.write,https://www.googleapis.com/auth/servicecontrol,https://www.googleapis.com/auth/service.management.readonly,https://www.googleapis.com/auth/trace.append\
--enable-display-device \
--create-disk=auto-delete=yes,boot=yes,device-name=rdp,image=projects/ubuntu-os-cloud/global/images/ubuntu-2004-focal-v20220110,mode=rw,size=10,type=projects/myproj /zones/asia-northeast1-b/diskTypes/pd-balanced \
--no-shielded-secure-boot \
--shielded-vtpm \
--shielded-integrity-monitoring \
--reservation-affinity=any

いろいろインストール

apt update
apt upgrade 
apt install mate-desktop-environment
apt install lightdm lightdm-gtk-greeter
 -> lightGDBを選択
reboot 
apt install xrdp
reboot

エラー

startx でエラー

(==) Log file: "/var/log/Xorg.0.log", Time: Mon Jan 17 02:26:03 2022
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE) 
Fatal server error:
(EE) AddScreen/ScreenInit failed for driver 0
(EE) 
(EE) 
Please consult the The X.Org Foundation support 
         at http://wiki.x.org
 for help. 
(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
(EE) 
(EE) Server terminated with error (1). Closing log file.
/var/log/Xorg.0.log
[  1867.739] (EE) FBDEV(0): FBIOPUT_VSCREENINFO succeeded but modified mode
[  1867.739] (EE) FBDEV(0): mode initialization failed
[  1867.739] (EE) 
Fatal server error:
[  1867.739] (EE) AddScreen/ScreenInit failed for driver 0

解決

/etc/X11/xorg.conf がなかったのが悪かったようなので下記で解決。
諸々入れる前にX環境を入れておけば問題なかったのかもしれない。
設定ファイルがないならないと言ってほしい。

# ln -s /etc/X11/xrdp/xorg.conf /etc/X11/xorg.conf
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?