Hello,

I was little unhappy with Xnest and I wanted
to take some screenshots of dtlogin with
a forthcoming FreeBSD branding.

Here's how I got a fully working environment
(including proper fonts):

1) I set up xfs (X font server) to serve
all fonts I have. I started it to listen
on TCP port 7100 (the default).

2) I have created /etc/dt/config/Xservers file with
the following line:

   :1   Local local@console /usr/bin/env DISPLAY=:0 /usr/local/bin/Xephyr :1 
-screen 1024x768 -fp tcp/localhost:7100

3) Allow all applications and all hosts
to access your primary display :0
This is very insecure (allows remote sniffing
of your keyboard for example)

   xhost +

4) I opened another terminal, switched to root
   there and started dtlogin as usual:

   /usr/dt/bin/dtlogin -nodaemon

After a while a 1024x768 window should pop up
with the dtlogin greeting screen.

Troubleshooting: check /var/dt/Xerrors file.
"Server died" usually means wrong command line
options are specified to Xephyr in the Xservers
file.

Possible improvements: 

- It should be possible to specify full font server
  path in the -fp argument to Xephyr. In this case
  it is not necessary at all to use the font server

- It is possible to prepare authentication tokens
  ($HOME/.Xauthority) so that doing "xhost +"
  is not necesary.

//Marcin

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel

Reply via email to