LoginSignup
5
5

More than 5 years have passed since last update.

XephyrでXサーバを起動

Last updated at Posted at 2015-10-26
  • 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
5
5
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
5
5