CDE (Common Desktop Environment) on NetBSD ebvarm Pinebook

WordPress does strange formatting, so if the below text is hard to read use a link here
http://45.76.81.249/Pinebook64/NetBSD/CDE/

Not much time to post nicely formatted articles now, so hopefully the below format would 
do - if you are into some retro look on modern systems this might be for you :) 
 


   ---------------------------------------------- 
   Latest CDE 2.3.2 on NetBSD 9 evbarm Pinebooks           
   ----------------------------------------------  

- I have verified the build steps in a vanilla NetBSD 9 arm64 install inside qemu  
- And it works on real HW as well (Pinebook/PinebookPro) 

- Downloaded a Pinebook image from invisible.ca 

- http://www.invisible.ca/arm/netbsd-9/202005010840Z/NetBSD-evbarm-aarch64-202005010840Z-pinebook.img.gz

Installed in KVM accelerated qemu-system-aarch64  for verification process 

- Step 1 
  ------ 

First we need to install a few aarch64 packages that are essential for CDE 
We can use the pre-built aarch64 pkgsrc-2019Q4 binary packages on master 
ftp.netbsd.org for this 

arm64# export PKG_PATH="http://cdn.netbsd.org/pub/pkgsrc/packages"
arm64# export PKG_PATH="$PKG_PATH/NetBSD/aarch64/9.0_2019Q4/All"
arm64# export PATH PKG_PATH
arm64# pkg_add motif
arm64# pkg_add gmake 
arm64# pkg_add freetype2
arm64# pkg_add font-adobe-75dpi 
arm64# pkg_add font-adobe-100dpi 
amr64# pkg_add fontconfig 
arm64# pkg_add wget 
arm64# pkg_add meson  

- Step 2
 -------

- Lets create a working directory for CDE 

arm64# mkdir $HOME/CDE 
arm64# cd $HOME/CDE 

- We will first need to download and install ast (korn shell) 
- There were numerous issues in the past with the AST kornshell 
- on NetBSD, so I have tested my own way of getting in onto 
- evbarm      
- Original sources were git cloned on December 2019 from 
- https://github.com/att/ast  
- But the code kept chaning a lot so I have decided to keep my working
- version below which you can use  

arm64# wget http://45.76.81.249/Pinebook64/NetBSD/CDE/ast.tar.gz
arm64# gunzip ast.tar.gz 
arm64# tar -xvf ast.tar 
arm64# cd ast 
arm64# meson --prefix=/usr/pkg build 
arm64# ninja -C build
arm64# ninja -C build install  
arm64# ln -s /usr/pkg/bin/ksh /usr/pkg/bin/ksh93

arm64# /usr/pkg/bin/ksh93  --version
  version         sh (AT&T Research) 2020.0.0

- We are ready now for the CDE
- There are 2 options now, either download the complete DT binary set from me 
- or build it from source, both methods are described here 
- (Im working on a pkgsrc script to put all this together)  


- If you do not wish to compile the CDE sources you can download the /usr/dt 
- gzipped tarball for NetBSD 9 evbarm I have built  
- --------------------------------------------------------------------------

arm64# cd $HOME/CDE 
arm64# wget http://45.76.81.249/Pinebook64/NetBSD/CDE/dt-2.3.2.tar.gz 
arm64# mv dt-2.3.2.tar.gz /usr 
arm64# gunzip /usr/dt-2.3.2.tar.gz 
arm64# tar -xvf /usr/dt-2.3.2.tar   

- Now make sure you ger rpcbind enabled in /etc/rc.conf 
- by adding a following line 

rpcbind=YES rpcbind_flags="-l" 

- And start rpcbind 

arm64# /etc/rc.d/rpcbind start 

- Also make sure your hostname is properly set in /etc/hosts (CDE needs this) 

::1                     arm64 localhost localhost.
127.0.0.1               arm64 localhost localhost.

- Now we can finally start CDE by running the following command under your user 

arm64$ startx /usr/dt/bin/Xsession 

- And add these to your $HOME Xdefaults

Xdefaults 
*saveLines:32000 
*scrollBar:True  


- If you wish to build CDE from source 
- ------------------------------------

arm64# cd $HOME/CDE 
arm64# wget http://45.76.81.249/Pinebook64/NetBSD/CDE/cde-2.3.2.tar.gz
arm64# gunzip cde-2.3.2.tar.gz 
arm64# tar -xvf cde-2.3.2.tar.gz 
arm64# cd cde-2.3.2 
arm64# gmake World.dev 
arm64# cd admin/IntegTools/dbTools
arm64# ./installCDE -s $HOME/CDE/cdesktopenv-code/cde  
arm64# cd $HOME 

- Now make sure you ger rpcbind enabled in /etc/rc.conf
- by adding a following line

rpcbind=YES rpcbind_flags="-l"

- And start rpcbind

arm64# /etc/rc.d/rpcbind start

-Also make sure your hostname is properly set in /etc/hosts (CDE needs this)

::1                     arm64 localhost localhost.
127.0.0.1               arm64 localhost localhost.


- To start X with CDE run the following command under our user  

arm64$ startx /usr/dt/bin/Xsession

- And add these to your $HOME Xdefaults 
Xdefaults 
*saveLines:32000 
*scrollBar:True 


- As a bonus you also get the XNEDIT sources/binaries for NetBSD 9 evbarm 

http://45.76.81.249/Pinebook64/NetBSD/CDE/xnedit.tar.gz

About astr0baby

Please run Adblock or similar... we have been told to do so since Carl Sagan wrote the Contact .
This entry was posted in Uncategorized. Bookmark the permalink.

13 Responses to CDE (Common Desktop Environment) on NetBSD ebvarm Pinebook

  1. w 0xtrzy says:

    who today using bsd?
    Linux better and faster

  2. Jim Person says:

    BSD or bust!

  3. Pingback: TSR – The Server Room – Shownotes – Episode 25 | // aNONradio //

  4. Danny says:

    Love how you’ve covered up the camera on NetBSD and as for Linux the Kernel, it goes to Stable then all the Bugs get fixed in the Previous Version ie: 4.9.24 becomes 4.9.222, so then Linux updates like a Microsoft OS to Kernel 5.6 and the bugs come back and it’s only now they’re looking at RAP features from PaX and grSecurity going wow, that’s so neat if only we’d thought of it earlier. Then you get to laugh as the Dev’s email each other in a slagging contest about gr-security being bullshit ie: Linus vs Spengler.

  5. Danny says:

    People dont like grSecurity because there Metasploit for faggots no longer worx.

  6. Ronverbs says:

    Thank for this post. I need to update the ol’ Pinebook soon.

  7. John Doe says:

    This doesn’t work for me! When I use the NetBSD 9 image for the Pinebook, the furthest it gets into the boot is early on when the boot text is green-colored. Then, the screen goes entirely black and never comes back up.
    What could I be doing wrong?

    • astr0baby says:

      What image of NetBSD 9 are you using ? current or stable ? I have used an image from the late 2019 (Jared’s site) which was for NetBSD 9.0 pre release .. try it with NetBSD 9 stable.

  8. Jason Stevens says:

    I wish I was slick enough to port any BSD to the Lemote, but on the MIP64EL side, there surprisingly is no CPU definition in CDE for building. However while it does bomb out while building, I ran the installer anyways and got a working (enough?!) CDE system! I just told the config that MIPS64EL is the same thing as x86_64 …. Probably not quite exact but here we are.

    I know you’ve been building a bunch of stuff for the Pine64, so I’m going to try to follow in your steps for the MIPS!

    Thanks for paving the way!

    • astr0baby says:

      I wish I had a MIPS64EL device to help you :) The above steps are very NetBSD centric, but it might give you enough hints to do a successful CDE build I hope ! Good luck and thanks for the feedback !

  9. Pingback: The Server Room – Episode 25 – Arm Chips, RockPro64 , and ARM Development boxes – The Server Room Show

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.