dettus
Bicycle User
since i was unable to find this anywhere on the interwebs, i thought i'd just leave this here...
so... the thing is... i switched back from FreeBSD to OpenBSD on my number cruncher. because: why not?
since that machine (12 cores, 24gig ram, 3tb harddrive) was a bit too loud for my living room, i moved it back to the "server room" a couple of months back. i got used to working with it via xrdp.
needless to say, when i migrated back to my favourite operating system (sorry freebsd! personal preference) i was not able to install xrdp from the ports anymore. who cares, right?
so, what i did was installing x11vnc together with xdm authentication and an Xvfb server. it works like a charm.
-----------------
i am not sure how important that is, but i installed ALL the packages during the installation phase.
so, on my new openbsd box, i installed x11vnc, which was straightforward:
after a bit of reading, i figured out that x11vnc needs xdm for authentifcation purposes. so i added
to rc.conf.
this caused some trouble since i did not want to use my crappy old graphic card anymore. so i edited /etc/X11/xdm/Xservers
i changed it so that it looked like this:
you guessed it, 1024x768x24 is the resultion. and 24 bit color depth.
at this point, i REBOOTED my OpenBSD box. just in case.
------------
after the reboot, i checked to see if xdm was working:
niiice.
so all that was left was running the x11vnc server.
i set up a password
and ran the x11vnc server
i tried connecting from a linux box
and i saw the familiar openbsd login.
pretty simple once you got round to it!
keywords: OpenBSD vnc headless no graphic card xvfb xdm x11vnc ssvnc tightvnc xrdp rdesktop virtual server xorg.conf
so... the thing is... i switched back from FreeBSD to OpenBSD on my number cruncher. because: why not?
since that machine (12 cores, 24gig ram, 3tb harddrive) was a bit too loud for my living room, i moved it back to the "server room" a couple of months back. i got used to working with it via xrdp.
needless to say, when i migrated back to my favourite operating system (sorry freebsd! personal preference) i was not able to install xrdp from the ports anymore. who cares, right?
so, what i did was installing x11vnc together with xdm authentication and an Xvfb server. it works like a charm.
-----------------
i am not sure how important that is, but i installed ALL the packages during the installation phase.
so, on my new openbsd box, i installed x11vnc, which was straightforward:
Code:
# cd /usr/ports/x11/x11vnc/
# make
after a bit of reading, i figured out that x11vnc needs xdm for authentifcation purposes. so i added
Code:
xdm=""
this caused some trouble since i did not want to use my crappy old graphic card anymore. so i edited /etc/X11/xdm/Xservers
i changed it so that it looked like this:
Code:
# :0 local /usr/X11RR6/bin/X :0 vt05
:0 local /usr/X11R6/bin/Xvfb -screen 0 1024x768x24
at this point, i REBOOTED my OpenBSD box. just in case.
------------
after the reboot, i checked to see if xdm was working:
Code:
# ps auxww | grep xdm
root 24969 0.0 0.0 880 1912 ?? Is 11:55PM 0:00.04 /usr/X11R6/bin/xdm
root 28665 0.0 0.1 20728 23976 ?? Ss 11:55PM 0:03.34 /usr/X11R6/bin/Xvfb -screen 0 1024x768x24 -auth /etc/X11/xdm/authdir/authfiles/A:0-tEzsZf
so all that was left was running the x11vnc server.
i set up a password
Code:
# vncpasswd
and ran the x11vnc server
Code:
# x11vnc -xkb -noxrecord -noxfixes -noxdamage -display :0 -auth /etc/X11/xdm/authdir/authfiles/* -usepw
i tried connecting from a linux box
Code:
% vncviewer kaffeekanne:0
pretty simple once you got round to it!
keywords: OpenBSD vnc headless no graphic card xvfb xdm x11vnc ssvnc tightvnc xrdp rdesktop virtual server xorg.conf