LoginSignup
2
1

More than 5 years have passed since last update.

xvfb on ubuntuで自動起動させる

Posted at

Ubuntu16.04とかだと/etc/init.d/につくるのはダサイのでsystemdでやるような感じで。

/etc/systemd/system/xvfb.service
[Unit]
Description=X Virtual Frame Buffer Service
After=network.target

[Service] 
ExecStart=/usr/bin/Xvfb :99 -screen 0 1024x768x24

[Install]
WantedBy=multi-user.target

をつくって

sudo systemctl enable /etc/systemd/system/xvfb.service
sudo service xvfb start

これでOK。

参考:
Configure xvfb for Vivid (15.04) as a service using systemd

2
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
2
1