NsCDE 2.0 desktop new version Slackbuild for Slackware curent
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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:
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?
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/
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.