Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
Help us understand the problem. What is going on with this article?

XephyrでXサーバを起動

More than 5 years have passed since last update.
  • xubuntu15.10にて確認
  • vnc版はこっち

メリット

  • vncでは解像度の変更が起動後にできなかったが、Xephyrではできる。

Xサーバ起動

Xサーバ起動
Xephyr -ac -br -noreset -screen 1280x1024 :1
# 解像度を簡単に変更したい場合
Xephyr -ac -br -noreset -screen 1280x1024 :1 -resizeable

session設定

~/.vnc/xstartup
#!/bin/sh

unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
#exec /etc/X11/xinit/xinitrc

# 環境変数
export LANG=ja_JP.UTF-8
export SHELL=/bin/bash

setxkbmap -model jp106 -layout jp

# Imput Method
export GTK_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx
export QT_IM_MODULE=fcitx
fcitx-autostart
# クリップボード用
killall vncconfig
vncconfig -nowin &
# xfce4
xfce4-session

Xサーバでsession開始

Xサーバでsession開始
export DISPLAY=:1
sh ~/.vnc/xstartup
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away