Re: [cdesktopenv-devel] crashing on Manjaro Linux

2022-11-04 Thread thinkunix via cdesktopenv-devel

Antonis,

I always use dtlogin to start CDE and have no problems.
caveat:  I'm running and older version of CDE.

Add this to the end your boot scripts, after rpcbind is started,
networking and DNS are up, etc.:

/usr/dt/bin/dtlogin -daemon

Then login graphically to CDE.  When you exit CDE, it should prompt
you to save your session.  The next time you login, it should restore
any clients you had open when you last exited.  If you use dtlogin,
it starts Xsession for you.


To the best of my knowledge, startx is for running X outside of a
session manager.  You login on a text console and just type 'startx'.
While it can take arguments, I've never had to give it any.  See
startx(1) about the arguments.  startx processes your ~/.xinitrc
if you want to start some clients automatically, and finally should
execute your preferred window manager.

If you want to use dtwm with the startx method, just change
/usr/X11R6/bin/mwm to /usr/dt/bin/dtwm in ~/.xinitrc, as below.
If doing this, do *not* start dtlogin (as above).


Example:

cut here
# $HOME/.xinitrc
# Commands in this file are run when you run 'startx'.
# startx runs xinit, which starts the X Windows System when you are
# not using a display manager, e.g. xdm(1).
#
# start some xclients
xclock &
xterm &
#
# exec window manager last and not in background
if [ -x /usr/X11R6/bin/mwm ]; then
exec /usr/X11R6/bin/mwm
else
exec /usr/X11R6/bin/twm
fi
cut here



Xsession, on the the hand, is used with a login manager like xdm(1).
To use xdm, you would start it at the end of your boot scripts:

exec /usr/X11R6/bin/xdm > /var/adm/xdm.log 2>&1 &

Then you should be presented with a graphical login.  xdm will
process ~/.xsession and takes the place of .xinitrc used in the
startx method.


cut here
# $HOME/.xsession
# X session startup
# When logging into X via xdm, /usr/X11R6/lib64/X11/xdm/Xsession
# (global) is run, then this script is run.
# This is an executable shell script.
# All commands should be run in the background except the
# window manager which is started last.
#
# start some xclients
xclock &
xterm &
#
# Exec window manager last and not in the background
exec /usr/X11R6/bin/mwm > $HOME/xsession.log 2>&1
cut here



dtlogin works like xdm, only you start it with

/usr/dt/bin/dtlogin -daemon

instead of

/usr/X11/bin/xdm &


Choose one method:  startx --OR-- xdm or dtlogin.



Do you have ~/.xinitrc and/or ~/.xsession files?
Try renaming or removing them.

Other places to check for errors:
* Xorg log, usually /var/log/Xorg.$DISPLAY.log
* Dtlogin.errorLogFile, usually /var/dt/Xerrors


On the hung/frozen process thing, try strace(1):

$ ps -ef | egrep 'X|Xsession|dtlogin|dtwm'   ## depending on what is running
$ strace -p pid_of_process


When I'm logged into CDE using dtlogin, I have these processes running:

$ ps -ef | egrep 'X|Xsession|dtlogin|dtwm' | grep -v egrep
root  3775 1  0 Oct28 ?00:00:00 /usr/dt/bin/dtlogin -daemon
root  3783  3775  0 Oct28 tty1001:23:21 /usr/bin/X :0 -auth 
/var/dt/authdir/authfiles/A:0-ZZAhRD

root  3971  3775  0 Oct28 ?00:00:00 dtlogin <:0>-daemon
user1 4055  3971  0 Oct28 ?00:00:00 /bin/ksh 
/usr/dt/bin/Xsession

user1 4091  4075  0 Oct28 ?00:02:11 dtwm

scot


Antonis Tsolomitis wrote:


Steps:
while in mate-desktop
rm -rf .dt/
rm -f .dtprofile

logout and login to CDE. Everything looks OK. It auto starts Help and 
Filemanager

logout and login again. It starts the Filenamager but not the Help. Also the cde
bar does not display the name of the month now.
Everything is frozen.

Switched to console.

.dt/errorlog remains empty.

in .dt/sessionlogs/   there is only one entry called 'damo_DISPLAY=:0' (damo is
the name of the machine)

This file if cat says to enable logging in .dtprofile

pkill -9 Xsession

Enable loging in .dtprofile and login one more time. Same behavior. No Help,
everything frozen.

switch to console.

cat .dt/sessionlogs/damo_DISPLAY\=\:0
:170:58: warning: missing terminating ' character
XIO:  fatal IO error 104 (Connection reset by peer) on X server ":0.0"
after 5571 requests (5565 known processed) with 0 events remaining.
X connection to :0.0 broken (explicit kill or server shutdown).
PipeRead: broken pipe, ppid=1 pid=2880598 fd=11

After the XIO is the fact I killed the Xsession. The previous line says 
something:
if a terminating character is missing someplace the CDE waits for something to
complete.
But what is this :170:58:  ???

top shows nothing interesting. The system is idle. Most probably waiting for
something to terminate...

If there maybe something interesting in the sessions folder please advice.

ls -R .dt/sessions
sessions/:
current/  dtwmfp.session  system/

sessions/current:
dtCT3zeg  dt.resources  dtsession.d

Re: [cdesktopenv-devel] Resource use

2022-12-26 Thread thinkunix via cdesktopenv-devel

cyrus torros wrote:

Given that CDE has been given many a modern patch and is now used on beefy
machines mostly, how is its resource use?


I can't speak to the bleeding edge versions of CDE as I'm still
running version 2.2.3, well before the switch to the autotools
build system.

Why haven't I upgraded?  Because for me, it does what I need it to.

That said:
In 2015 I ran CDE 2.2.3 on an old ThinkPad Pentium III 1.0 GHz with
1 GB RAM (32-bit system) on Slackware Linux.  I ran 4 virtual desktops,
lots of dtterms, firefox, seamonkey, etc. all without any issues.
That system was recently "retired" due to aging hardware.

At one point I also ran CDE (probably same version) on the same
ThinkPad running FreeBSD 9.x with no issues.  I used whatever version
that was in the FreeBSD ports/binary packages at that time.

I'm currently running CDE 2.2.3 on a desktop Pentium 4 3.0 GHz with
4 GB RAM (64-bit system) on a highly modified/updated version of
Slackware Linux.  I built CDE from source.  The system is from about
2005 and I have no issues.  I am able to run multiple copies and
versions of web browsers (firefox, seamonkey), watch youtube videos,
and run audacity all at the same time.

I would think CDE itself should run OK on your machine.  The 512 MB
RAM limit is definitely going to be a problem if you plan to run a
modern web browser or an huge IDE like Eclipse though.  How does the
stock fvwm desktop perform on your machine?  Are there other processes
or daemons running that you don't need that you can shutdown?


___
cdesktopenv-devel mailing list
cdesktopenv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel


Re: [cdesktopenv-devel] Resource use

2022-12-27 Thread thinkunix via cdesktopenv-devel

Here are my actual stats, well under 200 MB.

CDE 2.2.3 on Slackware 14.1 x86_64
IBM desktop with Intel Pentium 4 CPU 3.00GHz, 4 GB RAM

After a clean boot:
* dtlogin started, CDE login screen shown on X display
* no users logged into desktop yet
* RSS total:  38676

$ ps -efly | egrep 'RSS|dt' | grep -v grep
S UIDPID  PPID  C PRI  NI   RSSSZ WCHAN  STIME TTY 
TIME CMDS root 18096 1  0  80   0  3120 11320 -  03:39 ? 
   00:00:00 /usr/dt/bin/dtlogin -daemon
S root 18105 18096  0  80   0 22252 24386 -  03:40 tty10 
00:00:13 /usr/bin/X :0 -auth /var/dt/authdir/authfiles/A:0-3sHMuA
S root 19249 18096  0  80   0  3436 12913 -  17:20 ? 
00:00:00 dtlogin <:0>-daemon
S root 19262 19249  0  80   0  9868 21604 -  17:20 ? 
00:00:00 dtgreet -display :0



After a user logs into CDE desktop:
* 4 virtual desktops configured on front panel
* 3 dtterms open
* nothing else running
* RSS total:  104364

$ ps -efly | egrep 'RSS|dt' | grep -v grep
S UIDPID  PPID  C PRI  NI   RSSSZ WCHAN  STIME TTY 
TIME CMDS root 18096 1  0  80   0  3120 11320 -  03:39 ? 
   00:00:00 /usr/dt/bin/dtlogin -daemon
S root 18105 18096  0  80   0 24372 24898 -  03:40 tty10 
00:00:13 /usr/bin/X :0 -auth /var/dt/authdir/authfiles/A:0-3sHMuA
S root 19249 18096  0  80   0  3532 12913 -  17:20 ? 
00:00:00 dtlogin <:0>-daemon
S user119329 19249  0  80   0  3176  2742 -  17:30 ? 
00:00:00 /bin/ksh /usr/dt/bin/Xsession
S user119349 19329  0  80   0  9760 20620 -  17:30 ? 
00:00:00 /usr/dt/bin/dtsession
S user119354 1  0  80   0  4332 10259 -  17:30 ? 
00:00:00 /usr/dt/bin/ttsession -s
S user119366 19349  0  80   0 12400 21049 -  17:30 ? 
00:00:00 dtwm
S user119377 19349  0  80   0 11032 20948 -  17:30 ? 
00:00:00 /usr/dt/bin/dtterm -session dtpPakqC -geometry 80x24+4+210 
-name root -n root -title root -e /usr/bin/su -
S user119378 19349  0  80   0 11164 20947 -  17:30 ? 
00:00:00 dtterm -session dtIQJS3C
S user119379 19349  0  80   0 11144 20947 -  17:30 ? 
00:00:00 dtterm -session dtPJSmRC
S user119380 19349  0  80   0 10332 19060 -  17:30 ? 
00:00:00 dtpad -server




___
cdesktopenv-devel mailing list
cdesktopenv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel


Re: [cdesktopenv-devel] MS style alt tabbing

2022-12-29 Thread thinkunix via cdesktopenv-devel

cyrus torros wrote:

Hello,  I am wondering if anyone has devised any hacks to have MS style alt
tabbing in CDE?


Add this to your ~/.dt/dtwmrc.
Alt+Tab switches between applications on the current workspace/desktop.
Use Alt+F[1-4] to switch between workspaces.

You can choose different key strokes in the first column if you
prefer something else.

cut here
Keys DtKeyBindings
{
# Alt+Tab or Alt+up arrow = next window
AltTab root|icon|windowf.circle_up
AltUp  root|icon|windowf.circle_up

# Alt+Shift+Tab or Alt+down arrow = previous window
Alt ShiftTab   root|icon|windowf.circle_down
AltDownroot|icon|windowf.circle_down

# Alt+Fn key to move to specific workspace
AltF1  root|icon|windowf.goto_workspace One
AltF2  root|icon|windowf.goto_workspace Two
AltF3  root|icon|windowf.goto_workspace Three
AltF4  root|icon|windowf.goto_workspace Four
}
cut here



also, I am wondering if it is possible to use enhanced motif window manager
with it instead of mwm
It is an enhanced fork of MWM that has support for hints and other cool
stuff (can be found here https://fastestcode.org/emwm.html) (site does not
require javascript)


Good luck and let us know how it goes.



___
cdesktopenv-devel mailing list
cdesktopenv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel


Re: [cdesktopenv-devel] Resource use

2022-12-29 Thread thinkunix via cdesktopenv-devel

Matthew R. Trower wrote:
Those numbers are still higher than I would hope for (I’m guessing 64-bit compilation isn’t helping; even ksh is taking 3MB). Maybe they shrink down some on a 32-bit machine, and depending on compiler options.  


My ksh is AT&T ksh93u compiled with libm so maybe that's why it is
larger.  Bash 4.2 on the same system uses 2988, so not much better.
bash does not use libm.


One thing I’d like to point out though, is that the Xserver itself is taking 
over 20MB, and it’s not fair to count that against CDE.


That's true but you need X to run CDE so you really can't avoid it.





___
cdesktopenv-devel mailing list
cdesktopenv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel