Other CDE in 2025

Which version of cde are you running? 2.3.2 or 2.4.0?
I have installed x11/cde-devel and followed the messages from cde-devel-2025.02.03_4. As I have used sysrc I did not use the servic. I have 14.2-STABLE and used startx from user account after inserting in ~/.xinitrc the following line,
Code:
exec /usr/local/dt/bin/Xsession
The CDE desktop started fine with an error bar for missing ToolTalk. The above thread indicated the error due to missing ttsession. My environment have C.UTF-8 for LANG. But when I started ~ $ . /usr/local/dt/bin/ttsession -s from terminal, the error is
Code:
/usr/local/dt/bin/ttsession: 1: Syntax error: "(" unexpected
Thanks,
 
I have installed x11/cde-devel and followed the messages from cde-devel-2025.02.03_4. As I have used sysrc I did not use the servic. I have 14.2-STABLE and used startx from user account after inserting in ~/.xinitrc the following line,
Code:
exec /usr/local/dt/bin/Xsession
The CDE desktop started fine with an error bar for missing ToolTalk. The above thread indicated the error due to missing ttsession.

Your $PATH must include /usr/local/dt/bin.

My environment have C.UTF-8 for LANG. But when I started ~ $ . /usr/local/dt/bin/ttsession -s from terminal, the error is
Code:
/usr/local/dt/bin/ttsession: 1: Syntax error: "(" unexpected

That won't work because ttsession is a binary, not a shell script. Type in,

file usr/local/dt/bin/ttsession

It will tell you it's not a shell script.
 
Code:
 ~ $ echo $PATH
/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/home/naths/bin:/usr/local/dt/bin
naths@gnltfbsd:~ $
There was 'Action required message' box on top of beautifully loaded DE with a 'OK' button. Nothing was allowed.
Code:
~ $
ps alxww | grep ses
1001 49878 48339 4  20  0    24044 11124 select S     -  0:00.04 sshd-session: naths@pts/0 (sshd-session)
1001  5125  3869 1  20  0    15408  4344 wait   I    v0  0:00.01 /usr/local/bin/ksh93 /usr/local/dt
/bin/Xsession
1001  8721  5125 1  20  0    29992 16048 select I    v0  0:00.05 /usr/local/dt/bin/dtsession
1001 59303 49933 7  20  0    13836  2368 piperd S+    0  0:00.00 grep ses
Am I missing something ?
 
Code:
 ~ $ echo $PATH
/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/home/naths/bin:/usr/local/dt/bin
naths@gnltfbsd:~ $
There was 'Action required message' box on top of beautifully loaded DE with a 'OK' button. Nothing was allowed.

What do you mean "action required message?"

Code:
~ $
ps alxww | grep ses
1001 49878 48339 4  20  0    24044 11124 select S     -  0:00.04 sshd-session: naths@pts/0 (sshd-session)
1001  5125  3869 1  20  0    15408  4344 wait   I    v0  0:00.01 /usr/local/bin/ksh93 /usr/local/dt
/bin/Xsession
1001  8721  5125 1  20  0    29992 16048 select I    v0  0:00.05 /usr/local/dt/bin/dtsession
1001 59303 49933 7  20  0    13836  2368 piperd S+    0  0:00.00 grep ses
Am I missing something ?
Probably.

Without more information it's nearly impossible to know what is happening on your laptop. The information you have provided is sketchy.

How about not using startx and doing service dtlogin enable; service dtlogin start.

It is recommended people use dtlogin to start CDE as it does all the things necessary to get it up and running properly. I don't recommend people using startx (xinit) or xdm for CDE unless they thoroughly know what they're doing. And looking over people's configs to teach how to properly use startx (xinit) or xdm is outside of the scope of a developer.

Remember, startx (xinit) is the ancient way to start any X session. Xdm requires a .xsession just as startx (xinit) requires you create .xinitrc. This is 2025. We're beyond that. This is why we use gdm, sddm, lightdm, kdm, and dtlogin. There is little to no configuration required. It just works. Avoid startx.
 
cy@ Thanks. I see that there is a /usr/local/dt/bin/Xsession, can that be copied to $HOME/.xinitrc and run with startx or is dtlogin setting up other things?
 
It looks like it is part of the cde package (this DE tends to be fairly unique in that it doesn't usually get split up into lots of little packages like the others):

https://cgit.freebsd.org/ports/tree/x11/cde-25/pkg-plist#n2535
This is because it comes from one source. Whereas the others are a collection of various sources bundled together. CDE is one source like the FreeBSD base is a single source. The other windowing environments are multiple sources like Linux distros multiple sources packaged as a single distribution. This is why the other Windowing environments are multiple packages because they are. This is also why Red Hat, Debian, Ubuntu, and the other Linux distros are a collection of different packages. Because they are.
 
cy@ Thanks. I see that there is a /usr/local/dt/bin/Xsession, can that be copied to $HOME/.xinitrc and run with startx or is dtlogin setting up other things?
I don't know. I've never tried it that way. You should be able to simply run it from your .xinitrc. Again, I haven't tried CDE using startx (xinit). I haven't used xinit for ~30 years, using xdm, dtlogin, gdm, kdm, and sddm at various times over those 30 years. I think the last time I used startx, it was with fvwm2. That's a long time ago.
 
"action required message?
Thank you for the interest shown. I had used it on HP-UX long back as user. Then some one ported CDE on FreeBSD and was working. I am not fan of DE,s and don't use login manager much. I have tried few DE's and KDE for my spare time but left due to some reason. Now have only Xfce4 as a backup/trial on my .xinitrc. Please forget that message box. The error message of ' ttsession (ToolTalk) not found' was below the box. From message #3 it seems that path was correct and other sessions were started as usual. Today I tried from user terminal
Code:
To start the Common Desktop Environment:
% env LANG=C startx /usr/local/dt/bin/Xsession
with all three services running in order but the error in daemon.log was
Code:
Mar 20 10:46:41 gnltfbsd /usr/local/dt/bin/ttsession[92972]:clnt_create
for rpc.ttdbserverd on localhost failed:RPC:Program not registered
Order is important here. Always (re)start rpcbind first, then the others to get them to register.
May be I should try the dtlogin manager now . Thanking all.
 
Like you, I started using CDE in the early 1990's when I moved from the IBM MVS (mainframe) group to the Open Systems Group in the organization. Shortly after I joined the group the DEC tech plopped a DEC Alpha 3000 on my desk, replacing an old Sun 1. I was hooked ever since. IMO it was better than OpenLook and simple mwm or twm.

Later on (many years later) we replaced the various vendor workstations, which were long in the tooth, with IBM PC clones running Linux. My preference was FreeBSD. At the time Sun had replaced CDE with Gnome2. So I installed Gnome2 on FreeBSD, because there was no CDE for FreeBSD yet. It was ok but eventually I came back to CDE.

Looking at my .xinitrc, looks like I may have played around with CDE using startx.

sh:
echo calling ~/.xsession
. ~/.xsession
echo ~/.xinitrc terminating

I'm calling .xsession (the xdm rc file) from .xinitrc. It should work.

Having said that, at $JOB I installed a 13-RELEASE with CDE (now 14.2-RELEASE with CDE). I use dtlogin there. At home I use 15-CURRENT and a higly customized .xsession with xdm. It's certainly more work than using dtlogin. xdm and startx will work but you need to make sure all the bits and pieces are in your .xinitrc or .xsession. At work I use 14.2-RELEASE and binary packages with dtlogin because I don't have time to fiddle around. I'm not a developer there, just another user who needs to get stuff done.
 
I have installed x11/cde-devel and followed the messages from cde-devel-2025.02.03_4. As I have used sysrc I did not use the servic. I have 14.2-STABLE and used startx from user account after inserting in ~/.xinitrc the following line,
Code:
exec /usr/local/dt/bin/Xsession
The CDE desktop started fine with an error bar for missing ToolTalk. The above thread indicated the error due to missing ttsession. My environment have C.UTF-8 for LANG. But when I started ~ $ . /usr/local/dt/bin/ttsession -s from terminal, the error is
Code:
/usr/local/dt/bin/ttsession: 1: Syntax error: "(" unexpected
Thanks,
What is the hostname on your machine. On mine, I had to change it from freebsd.com to freebsd to work. The period was somehow stopping the file manager from opening
 
I know you are the maintainer of this port. I am not coder. I have tried this on a working system at home without reboot, Till now it was working. I have rebooted and started with simple dtlogin manager. It worked but error with file manager. Then above thread have pointed me toward the solution. I have set my host name as "xxxxx", without domain.com and . It is working now with some issues on a box having mouse. I shall look into .xinitrc for my own interest and see the tapping problem on laptop. It was a good at that time, why not now with good firewall.

Edit: I have followed your thread above, More users will encourage the developer in further improvement.
 
Back
Top