Headless FreeBSD

From SysAdm
Jump to navigation Jump to search

20.04.2015
FreeBSD 10.1 amd64
XenServer 6.5
TigerVNC 1.4.3

Variants:
  1. Xorg-dummy, DM starts x11vnc
  2. Xorg-dummy, DM, x11vnc started by init after DM
  3. x11vnc -create started by DM
  4. Xvnc started by DM
  5. Xorg-dummy with XDMCP, DM, vncserver started by init and connects to XDMCP

1,2) /usr/local/etc/X11/xorg.conf:

Section "Monitor"
Identifier "Monitor0"
  HorizSync 10-200
  VertRefresh 20-90
  Modeline "1280x800"  83.46  1280 1344 1480 1680  800 801 804 828 -HSync +Vsync
 EndSection
 Section "Device"
  Identifier "Card0"
  Option "NoDDC" "true"
  Option "IgnoreEDID" "true"
  Driver "dummy"
  videoram 131072
 EndSection
 Section "Screen"
  DefaultDepth 24
  Identifier "Screen0"
  Device "Card0"
  Monitor "Monitor0"
  SubSection "Display"
   Depth 24
   Modes "1280x800"
   EndSubSection
 EndSection

KDE

1) work

install:

 /usr/ports/x11/xorg
 /usr/ports/x11/kde4
 /usr/ports/net/x11vnc

/etc/rc.conf:

 kdm4_enable="YES"
 hald_enable="YES"
 dbus_enable="YES"

/usr/local/share/config/kdm/Xsetup:

 /usr/local/bin/x11vnc -auth guess -display :0 -noxdamage -o /var/log/x11vnc.log -nevershared -forever -bg &
2) not tested
3) not tested
4) works

/usr/local/share/config/kdm/kdmrc:

 ServerCmd=/usr/local/bin/Xvnc -geometry 1024x758 -depth 24 -SecurityTypes=None

Lumina+PCDM

install /usr/ports/sysutils/pcbsd-utils-qt5
(02.04.15) port broken - have broken dependency /usr/ports/sysutils/pcbsd-utils

Lumina+Slim

1) dont work - looks like Slim have no means to run external scripts after staring Xserver
2) not tested
3) not tested
3) not tested