Xorg

Xorg 简介

参考:

Xorg 是 X window system 的一种实现

Xephyr 设置第二个 x server

使用步骤:

  1. 使用 Xephyr 启动一个 x server

    • Xephyr -screen 1600x900 :1
  2. 启动 gui 程序

    • DISPLAY=:1 gvim

在 ssh x11 forward 时使用 Xephyr

  1. ssh -X remote
  2. 在 remote 上启动 Xephyr
  3. 在 remote 上启动 gui 程序

git attributes

关于 git attributes 的误解说明

gitattributes 的作用:

  1. 在提交 commit 时,把本地的 换行符替换成和 已有 commit 中一致
  2. git clone 时,换成和本机兼容的换行符

gitattributes 没有的功能:

  1. 把已有 commit 中文件的换行符替换成新规定的换行符