4
4

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 5 years have passed since last update.

systemctlでvncserverを自動起動

Last updated at Posted at 2014-07-30

参考: Fedora16 入れたはいいが… | okkyの日記 | スラッシュドット・ジャパン

  • 一度rootでvncserverを起動しpasswordの設定を済ませておく。
  • /root/.fonts/にttfを置いておく
  • setxkbmap -model jp106 -layout jp
    • vnc接続先からさらにvnc接続した時、キー配列がおかしくなることを防ぐ。
/root/.vnc/xstartup
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#
setxkbmap -model jp106 -layout jp
awesome &
virt-manager
cp /lib/systemd/system/vncserver.service /etc/systemd/system/vncserver@:1.service
/etc/systemd/system/vncserver@:1.service
 [Unit]
 Description=vncserver

 [Service]
-User=
+User=root
 ExecStart=/usr/bin/vncserver %i

 [Install]
 WantedBy=multi-user.target
systemctl enable vncserver@:1
systemctl start vncserver@:1
4
4
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
4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?