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?

ubuntuにrootユーザでvnc接続できるようにする

Last updated at Posted at 2024-09-28

インストール

apt install xfce4 xfce4-goodies
apt install tightvncserver
apt install dbus-x11

パスワード設定

vncpasswd
Password:
Verify:
Would you like to enter a view-only password (y/n)? n
A view-only password is not used

root接続許可設定

vi /etc/gdm3/custom.conf
[security]
AllowRoot=true
AllowRemoteRoot=true

[xdmcp]
Enable=true

起動

tigervncserver -xstartup /usr/bin/gnome-session -geometry 1024x768 -localhost no :2

起動確認

vncserver -list

停止

vncserver -kill :*

WindowsPCからの接続は
TigerVNC Viewerがお勧めです
https://github.com/TigerVNC/tigervnc/releases

vncviewer64-x.xx.x.exe をダウンロード

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?