LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-02-2022, 08:29 AM   #1
adcdam
Member
 
Registered: Aug 2020
Location: Berisso, Argentina
Distribution: Slackware
Posts: 255

Rep: Reputation: 205Reputation: 205Reputation: 205
NsCDE 2.0 desktop new version Slackbuild for Slackware curent


Hi, i made a Slackbuild for the new version of NsCDE desktop.
Version 2.0 was releases 4 days ago.
IT lookS the same as CDE but its doesn t run in unsafe mode like CDE.

https://github.com/NsCDE/NsCDE
https://imgur.com/gallery/nHkw35X
https://www.youtube.com/watch?v=P9Lo...wmBxux&index=1
https://www.youtube.com/watch?v=NDHW...wmBxux&index=2
https://www.youtube.com/watch?v=8s4r...wmBxux&index=3
you ll need FVWM window manager (already installed in Slackare or version3 fvwm3 available in sbopkg )
It work with both and xdotool its available in sbopkg im using xdotool-3.20160805.1-x86_64-3ponce from Ponce.

Download the tar.gz source code from here https://github.com/NsCDE/NsCDE/releases/tag/2.0
copy the source code, the slackbuild and the slack-desc to a directory it can be in /home
make the slackbuild executable with chmod +x NsCDE.SlackBuild
Run the Slackbuild as root
./NsCDE.SlackBuild this will build the package in /tmp you can install the package as root with installpkg /tmp and the name of the package.

NsCDE.SlackBuild:

Code:
#!/bin/sh

# Slackware build script for NsCDE

# Copyright 2021 adcdam Berisso,Argentina
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
#
#  THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
#  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
#  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO
#  EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
#  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
#  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
#  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
#  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
#  OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
#  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# |-----------------------------------------------------------------| #

PRGNAM=NsCDE		
VERSION=${VERSION:-2.0}	
BUILD=${BUILD:-1}
TAG=${TAG:-_adcdam}		

# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH=i586 ;;
    arm*) ARCH=arm ;;
       *) ARCH=$( uname -m ) ;;
  esac
fi

CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}	
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}	

if [ "$ARCH" = "i586" ]; then
  SLKCFLAGS="-O2 -march=i586 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O2 -march=i686 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  LIBDIRSUFFIX="64"
else
  SLKCFLAGS="-O2"
  LIBDIRSUFFIX=""
fi

set -e 

rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
 \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
  -o -perm 511 \) -exec chmod 755 {} \; -o \
 \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
  -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;


CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
  --prefix=/usr \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --mandir=/usr/man \
  --docdir=/usr/doc/$PRGNAM-$VERSION \
  --disable-static \
  --build=$ARCH-slackware-linux

# Compile the application and install it into the $PKG directory
make
make install DESTDIR=$PKG

# Strip binaries and libraries - this can be done with 'make install-strip'
# in many source trees, and that's usually acceptable if so, but if not,
# use this:
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
  | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true


mkdir -p $PKG/etc/X11/xinit
cat $CWD/xinitrc.NsCDE > $PKG/etc/X11/xinit/xinitrc.NsCDE
chmod 0755 $PKG/etc/X11/xinit/xinitrc.NsCDE

# Remove perllocal.pod and other special files that don't need to be installed,
# as they will overwrite what's already on the system.  If this is not needed,
# remove it from the script.
# Remove 'special' files
find $PKG -name perllocal.pod \
  -o -name ".packlist" \
  -o -name "*.bs" \
  | xargs rm -f


# Copy the slack-desc (and a custom doinst.sh if necessary) into ./install
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}


Code:
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description.
# Line up the first '|' above the ':' following the base package name, and
# the '|' on the right side marks the last column you can put a character in.
# You must make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':' except on otherwise blank lines.

    |-----handy-ruler------------------------------------------------------|
NsCDE: 
NsCDE:Modern and functional CDE desktop based on FVWM  
NsCDE: 
NsCDE: 
NsCDE: 
NsCDE: 
NsCDE:
NsCDE:https://github.com/NsCDE/NsCDE 
NsCDE:
NsCDE:
NsCDE:

xinitrc.NsCDE

Code:
#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# Merge in defaults and keymaps
[ -f $sysresources ] && /usr/bin/xrdb -merge $sysresources
[ -f $sysmodmap ] && /usr/bin/xmodmap $sysmodmap
[ -f $userresources ] && /usr/bin/xrdb -merge $userresources
[ -f $usermodmap ] && /usr/bin/xmodmap $usermodmap

# Start NsCDE
if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
    exec ck-launch-session dbus-launch --exit-with-session /usr/bin/nscde
else
    exec /usr/bin/nscde
fi

best regards

Last edited by adcdam; 01-03-2022 at 08:35 PM.
 
Old 01-03-2022, 04:57 AM   #2
dchmelik
Senior Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, Illumos, NetBSD, DragonflyBSD, Plan9, Inferno, OpenBSD, FreeDOS, HURD
Posts: 1,075

Rep: Reputation: 149Reputation: 149
It didn't build, because I think you have an error in your post of NsCDE.SlackBuild at the end (cut off) and you don't say what the next file is. After I concatenated the part you cut off it built. What other advantages does this have over CDE?
 
Old 01-03-2022, 08:48 AM   #3
adcdam
Member
 
Registered: Aug 2020
Location: Berisso, Argentina
Distribution: Slackware
Posts: 255

Original Poster
Rep: Reputation: 205Reputation: 205Reputation: 205
Thanks it will work now, the problem was when i pasted the slackbuid, the last part of the slackbuild was left out.
 
Old 01-03-2022, 12:50 PM   #4
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,196

Rep: Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386
I successfully built the package in --Current and installed it - but there is no entry in xwmconfig for NsCDE....

Click image for larger version

Name:	VirtualBox_Slackware --Current_03_01_2022_12_48_13.png
Views:	56
Size:	13.8 KB
ID:	37981Click image for larger version

Name:	VirtualBox_Slackware --Current_03_01_2022_12_48_36.png
Views:	38
Size:	14.2 KB
ID:	37982
 
Old 01-03-2022, 02:35 PM   #5
qunying
Member
 
Registered: Jun 2002
Distribution: Slackware
Posts: 258

Rep: Reputation: 147Reputation: 147
If you add the following file as /etc/X11/xinit/xinitrc.NsCDE, then you would be able to select it from xwmconfig.

Code:
#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# Merge in defaults and keymaps
[ -f $sysresources ] && /usr/bin/xrdb -merge $sysresources
[ -f $sysmodmap ] && /usr/bin/xmodmap $sysmodmap
[ -f $userresources ] && /usr/bin/xrdb -merge $userresources
[ -f $usermodmap ] && /usr/bin/xmodmap $usermodmap

# Start NsCDE
if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
    exec ck-launch-session dbus-launch --exit-with-session /usr/bin/nscde
else
    exec /usr/bin/nscde
fi
 
Old 01-03-2022, 02:42 PM   #6
adcdam
Member
 
Registered: Aug 2020
Location: Berisso, Argentina
Distribution: Slackware
Posts: 255

Original Poster
Rep: Reputation: 205Reputation: 205Reputation: 205
i was about to post a xinitrd.NsCDE i didnt made one, i did one a few minutes ago but you were faster than me.
with login managers it work well also as there is a NsCDE.dektop in /usr/share/Xsessions.
i recommend if someone looking for something small written in bash tbsm it work with both X and Wayland and its available in sbopkg.
http://loh-tar.github.io/tbsm/
 
Old 01-03-2022, 02:51 PM   #7
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,196

Rep: Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386
Quote:
Originally Posted by qunying View Post
If you add the following file as /etc/X11/xinit/xinitrc.NsCDE, then you would be able to select it from xwmconfig.

Code:
#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# Merge in defaults and keymaps
[ -f $sysresources ] && /usr/bin/xrdb -merge $sysresources
[ -f $sysmodmap ] && /usr/bin/xmodmap $sysmodmap
[ -f $userresources ] && /usr/bin/xrdb -merge $userresources
[ -f $usermodmap ] && /usr/bin/xmodmap $usermodmap

# Start NsCDE
if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
    exec ck-launch-session dbus-launch --exit-with-session /usr/bin/nscde
else
    exec /usr/bin/nscde
fi
This worked. Can that script then be incorporated somehow when Slackbuild makes the package?

Last edited by Jeebizz; 01-03-2022 at 02:54 PM.
 
Old 01-03-2022, 03:04 PM   #8
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,196

Rep: Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386
This is interesting, I wonder what is the file manager name for CDE (if thats even included) , also what if I want to rerun the setup script again? I mean I can always just remove the .NsCDE/ directory from my /home - but I would hope there is a more elegant solution, but it is not a total deal breaker. CDE always looked interesting, the color scheme and the backdrops is what attracted me; but to be honest the dock itself - is just butt ugly.


-edit

I also do like the implementation of showing contents while dragging windows - that is always irked me about more minimal WMs, like MWM and others. I just prefer seeing window contents along with the window moving, instead of an outline - to me that is more helpful visually.

Last edited by Jeebizz; 01-03-2022 at 03:15 PM.
 
1 members found this post helpful.
Old 01-03-2022, 03:13 PM   #9
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,196

Rep: Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386
I think I am already going to also answer this next question, about the login manager should I want to try runlevel4 - though I could have sworn CDE had it's own, then again I think it is dtlogin which was a Solaris thing - and probably will default to XDM - which is fine, of course if you want something like that - but XDM isn't very 'flexible' if you wanted to have a different session other then NsCDE , or say a wayland session - then again I could be wrong, but to me it is like MWM - you can customize it - but I gave up when I was browsing through the man pages - which is why (tangent) - I would like to try EMWM, but I don't see any slackbuilds for that, and hell if I know how to write one.
 
Old 01-03-2022, 04:29 PM   #10
adcdam
Member
 
Registered: Aug 2020
Location: Berisso, Argentina
Distribution: Slackware
Posts: 255

Original Poster
Rep: Reputation: 205Reputation: 205Reputation: 205
Quote:
Originally Posted by Jeebizz View Post
- I would like to try EMWM, but I don't see any slackbuilds for that, and hell if I know how to write one.
i ll try to make a Slackbuild for EMWM, i didnt know that EMWM existed.
 
Old 01-03-2022, 04:35 PM   #11
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,196

Rep: Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386
Quote:
Originally Posted by adcdam View Post
i ll try to make a Slackbuild for EMWM, i didnt know that EMWM existed.
I saw it here https://fastestcode.org/emwm.html - and the only reason I know about it was from a youtuber (Robonuggie - he does FreeBSD stuff). I just like EMWM because it just looks like a better way of configuring it, for lazy shits like myself.

Also speaking of lazy - because I only glanced at the manual - what resolution does NsCDE run , and can you even change the display resolution? How? I am poking around in screens but see nothing of the sort....

-edit

yes I am still in a VM, and I have installed GuestAddtions.
 
Old 01-03-2022, 04:58 PM   #12
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,196

Rep: Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386
Also I hope NsCDE is submitted to slackbuilds.org soon.
 
1 members found this post helpful.
Old 01-03-2022, 05:58 PM   #13
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,196

Rep: Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386
Found the answer to my resolution question - edit the Xset.conf file in .NsCDE/ and uncomment the desired resolution - in my case:
Code:
xrandr -s 1920x1080
 
Old 01-03-2022, 07:48 PM   #14
adcdam
Member
 
Registered: Aug 2020
Location: Berisso, Argentina
Distribution: Slackware
Posts: 255

Original Poster
Rep: Reputation: 205Reputation: 205Reputation: 205
Quote:
Originally Posted by Jeebizz View Post
This worked. Can that script then be incorporated somehow when Slackbuild makes the package?
yes ill include that tomorrow ill try to post the EMWM slackbuilds you were asking. im really tired now.
edit: its included in the slackbuild now.

Last edited by adcdam; 01-03-2022 at 08:32 PM.
 
1 members found this post helpful.
Old 02-02-2022, 12:27 AM   #15
dchmelik
Senior Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, Illumos, NetBSD, DragonflyBSD, Plan9, Inferno, OpenBSD, FreeDOS, HURD
Posts: 1,075

Rep: Reputation: 149Reputation: 149
I built/installed/ran NsCDE: it looks good, but I don't use workspaces and don't know what pages in workspaces are... I set those all to zero then it ruined the taskbar. Will there be option to omit workspaces/pages?

I also use fullscreen backgrounds, not tiled backgrounds, but fullscreen doesn't seem possible yet.

When you start and select colour themes, there's no indication what each colour will be for.

When I ran CDE in the past, I couldn't use KDE Dolphin, and the CDE file manager wasn't very good in contrast. I hope NsCDE lets you use Dolphin or has something as powerful.

Last edited by dchmelik; 02-02-2022 at 12:28 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] slackware 64 curent: question on official ffmpeg slack build jr_bob_dobbs Slackware 2 08-24-2020 03:24 PM
Not so Common Desktop Environment (NsCDE) JWJones Slackware 12 03-25-2020 11:59 AM
Openvpn in Slackware -curent: easy-rsa scripts missing xj25vm Slackware 6 11-03-2016 03:52 AM
slackware-curent and kernel 2.6.6 Menestrel Slackware 4 06-15-2004 07:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration