JCDwight
Posts: 1
Joined: Tue Nov 07, 2017 5:21 am

Cool-retro-term

Tue Nov 07, 2017 5:53 am

I have very fond memories from when I was a child in the late '80s and '90s. My dad had a commodore 16 that he gave me along with an old green CRT monitor. I spent hours and weeks and months in front of that thing teaching myself to program in basic. I've always had it in the back of my mind that I want a dedicated text display that functioned similarly.

When the first raspberry pi came out I attempted to get something going. I bought a old green CRT with a VGA input on ebay and tried everything I could to get it to connect to that display. I bought an active HDMI to VGA converter and nothing worked. I banged my head against the wall trying different things to get it to work, and I got something to display, but it was crazy unfocused. i chalked this up to the display being old and bad and gave up.

About a week ago this video: Fanciest Looking Terminal Emulators on the Planet popped up in my Youtube feed and I saw a demo of Cool-retro-term and realized that its what Ive been looking for. I have a desire to learn how to use a terminal extensively in linux and this would be perfect for that. Yea, I could just load up any distro and learn with the default terminal, but that's not the dream.

Anyways, I've spent a few hours every day trying to get this working in any way I could. This is what I've tried:

1) I tried installing debian dependencies in raspbian, then building it from source via the instructions on the Cool-retro-term github. Dependencies installed fine from what I can tell but when I did the qmake && make command it ran into what looked like exceptions and failed.

2) I tried installing Ubuntu Mate on the pi, but I wound up not being able to update any software because the boot partition was only like 60Mb. I bashed my head against the wall for a while trying to fix that error and eventually gave up.

3) I installed arch linux via PINN and followed the instructions for Arch, but I apparently installed a super barebones arch and after hours of figuring out how to install the missing pieces to try and follow the instructions on the site, I had to give up on that one too. I got as far as actually trying to install all the QT dependencies but it failed to find the host for the download.

4) I also have a lattepanda windows 10 SBC, so I tried getting ubuntu on that, but for some reason it wont boot to the usb boot drive. I tried different usb drives and even different distros of linux, but the only thing I could get to load was gparted, which crashed after selecting any of the options on the menu.

5) I used PINN to install fedberry distro then tried following the fedora instructions, but they are I guess for x86 64 and it wouldnt let me install those rpm files.

I'm coming at this with almost no linux knowledge, and its kind of insane to me that installing a simple program is so hard. I kind of wish there was some easy way to install it, like an exe on windows based PCs, but apparently each distro requires a different version of the program.

The hardware I have for this project is a Raspberry pi 3, raspberry pi zero W, or a lattepanda with windows 10. I'd even be willing to get a different SBC that's more suited to this task if there is one.

Any help would be greatly appreciated. If not a walkthrough maybe point me in the direction to where I can learn about even a broad topic of what im trying to do.

Thanks!

fruitoftheloom
Posts: 27226
Joined: Tue Mar 25, 2014 12:40 pm

Re: Cool-retro-term

Tue Nov 07, 2017 11:13 am

JCDwight wrote:
Tue Nov 07, 2017 5:53 am
I have very fond memories from when I was a child in the late '80s and '90s. My dad had a commodore 16 that he gave me along with an old green CRT monitor. I spent hours and weeks and months in front of that thing teaching myself to program in basic. I've always had it in the back of my mind that I want a dedicated text display that functioned similarly.

When the first raspberry pi came out I attempted to get something going. I bought a old green CRT with a VGA input on ebay and tried everything I could to get it to connect to that display. I bought an active HDMI to VGA converter and nothing worked. I banged my head against the wall trying different things to get it to work, and I got something to display, but it was crazy unfocused. i chalked this up to the display being old and bad and gave up.

About a week ago this video: Fanciest Looking Terminal Emulators on the Planet popped up in my Youtube feed and I saw a demo of Cool-retro-term and realized that its what Ive been looking for. I have a desire to learn how to use a terminal extensively in linux and this would be perfect for that. Yea, I could just load up any distro and learn with the default terminal, but that's not the dream.

Anyways, I've spent a few hours every day trying to get this working in any way I could. This is what I've tried:

1) I tried installing debian dependencies in raspbian, then building it from source via the instructions on the Cool-retro-term github. Dependencies installed fine from what I can tell but when I did the qmake && make command it ran into what looked like exceptions and failed.

2) I tried installing Ubuntu Mate on the pi, but I wound up not being able to update any software because the boot partition was only like 60Mb. I bashed my head against the wall for a while trying to fix that error and eventually gave up.

3) I installed arch linux via PINN and followed the instructions for Arch, but I apparently installed a super barebones arch and after hours of figuring out how to install the missing pieces to try and follow the instructions on the site, I had to give up on that one too. I got as far as actually trying to install all the QT dependencies but it failed to find the host for the download.

4) I also have a lattepanda windows 10 SBC, so I tried getting ubuntu on that, but for some reason it wont boot to the usb boot drive. I tried different usb drives and even different distros of linux, but the only thing I could get to load was gparted, which crashed after selecting any of the options on the menu.

5) I used PINN to install fedberry distro then tried following the fedora instructions, but they are I guess for x86 64 and it wouldnt let me install those rpm files.

I'm coming at this with almost no linux knowledge, and its kind of insane to me that installing a simple program is so hard. I kind of wish there was some easy way to install it, like an exe on windows based PCs, but apparently each distro requires a different version of the program.

The hardware I have for this project is a Raspberry pi 3, raspberry pi zero W, or a lattepanda with windows 10. I'd even be willing to get a different SBC that's more suited to this task if there is one.

Any help would be greatly appreciated. If not a walkthrough maybe point me in the direction to where I can learn about even a broad topic of what im trying to do.

Thanks!


All Raspberry Pi and Compute Module models use an ARM CPU and therefore the Operating Systems are ARMHF.

You appear to be trying to installed packages for x86 CPU Architecture which are incompatible !



LattePanda is irrelevant and issues should be discussed on their support forums, but it does have x86 CPU Architecture, also this is a Raspberry Pi Foundation hosted Forum so you will not get any help with competitor recommendations.
Take what I advise as advice not the utopian holy grail, and it is gratis !!

User avatar
RaTTuS
Posts: 10808
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Cool-retro-term

Tue Nov 07, 2017 11:42 am

1) I tried installing debian dependencies in raspbian, then building it from source via the instructions on the Cool-retro-term github. Dependencies installed fine from what I can tell but when I did the qmake && make command it ran into what looked like exceptions and failed.
this will be the way to go but you'll have to post the errors to see if there is any way it can be made to work

or just play with the setterm options to make your terminal green on black etc....
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

User avatar
bertlea
Posts: 311
Joined: Wed Dec 07, 2016 6:33 am
Location: Hong Kong

Re: Cool-retro-term

Thu Jun 21, 2018 7:53 am

1) I tried installing debian dependencies in raspbian, then building it from source via the instructions on the Cool-retro-term github. Dependencies installed fine from what I can tell but when I did the qmake && make command it ran into what looked like exceptions and failed.
Yes, this should work. I tried that last night using my new 3B+. The first time "qmake && make" did ends up with an error saying "out of memory". Then I increased the swap file size to 1G and try again. It worked.

rricharz
Posts: 80
Joined: Tue Apr 19, 2016 8:46 am
Location: Switzerland
Contact: Website

Re: Cool-retro-term

Sat Feb 16, 2019 8:41 pm

Cool-retro-term works now well on Raspbian. See my installation instructions at https://github.com/rricharz/pidp11-2.11 ... r/Cool.pdf

munocat
Posts: 28
Joined: Wed Jan 16, 2019 12:28 am

Re: Cool-retro-term

Fri May 10, 2019 8:18 am

rricharz wrote:
Sat Feb 16, 2019 8:41 pm
Cool-retro-term works now well on Raspbian. See my installation instructions at https://github.com/rricharz/pidp11-2.11 ... r/Cool.pdf
Thank you so much. The changing of the gl driver enabled cool retro term to run on my pi zero smoothly.

kgc60
Posts: 7
Joined: Sat Jul 11, 2020 11:45 pm

Re: Cool-retro-term

Sat Jul 11, 2020 11:59 pm

rricharz wrote:
Sat Feb 16, 2019 8:41 pm
Cool-retro-term works now well on Raspbian. See my installation instructions at https://github.com/rricharz/pidp11-2.11 ... r/Cool.pdf
First, thanks for these instructions. I got a lot further with them, but I'm not quite there yet.

I changed the swap file size from 100 to 1024, and that allowed qmake && make to complete.

I followed the instructions in the PDF to the letter, but whenever I attempt to run cool-retro-term, I get the following sequence of messages:

libEGL warning: DRI2: failed to authenticate
QQmlApplicationEngine failed to load component
qrc:/main.qml:137 Type TerminalContainer unavailable
qrc:/TerminalContainer.qml:23 Type PreprocessedTerminal unavailable
qrc:/PreprocessedTerminal:24 module "QMLTermWidget" is not installed
Cannot load QML interface

I'm brand new to Raspberry Pi and to Linux, and my one and only goal is to run cool-retro-term on it and use it as a serial terminal for some vintage computers in my collection. I am running the latest Raspbian full 32-bit OS, with the latest updates.

Any advice on how to troubleshoot and get past this would be much appreciated. Thanks.
Last edited by kgc60 on Sun Jul 12, 2020 11:53 pm, edited 1 time in total.

pidd
Posts: 2983
Joined: Fri May 29, 2020 8:29 pm
Location: Wirral, UK
Contact: Website

Re: Cool-retro-term

Sun Jul 12, 2020 2:41 am

The answer is here but you also have to look through multiple answers after this one https://pi3d.github.io/html/FAQ.html#egl-no-surface

The bit later on telling you to set up multiple links is probably the bit you need to do but I have no knowledge of any of this.

kgc60
Posts: 7
Joined: Sat Jul 11, 2020 11:45 pm

Re: Cool-retro-term

Sun Jul 12, 2020 5:25 am

pidd wrote:
Sun Jul 12, 2020 2:41 am
The answer is here but you also have to look through multiple answers after this one https://pi3d.github.io/html/FAQ.html#egl-no-surface

The bit later on telling you to set up multiple links is probably the bit you need to do but I have no knowledge of any of this.
Thanks for your reply.

I read through a lot of the items at the link you supplied, and I have to admit that I'm completely overwhelmed and lost as I continue to read it, not quite knowing what applies to my issues and what doesn't, and there's quite a bit of terminology that I've never encountered before...I suspect referring to specific libraries or applications that I either don't have or am not aware of.

I did try applying the section entitled "GLX DRI2 not supported or failed to authenticate", but it had no effect. I still get the same sequence of error messages when I attempt to run cool-retro-term.

If you have some advice on the specific entries that might apply to my situation, that would be great.

Sorry for being such a newbie.
Last edited by kgc60 on Sun Jul 12, 2020 11:37 pm, edited 1 time in total.

VoodooFan
Posts: 6
Joined: Sun Jul 12, 2020 6:45 am

Re: Cool-retro-term

Sun Jul 12, 2020 10:36 am

JCDwight wrote:
Tue Nov 07, 2017 5:53 am
I bought a old green CRT with a VGA input on ebay and tried everything I could to get it to connect to that display.
Are you really sure your CRT monitor supports VGA native? Most old "green" CRT were EGA monitors, some of them had also a VGA port, but this VGA port needed an EGA compatible VGA-Card (usually very old ISA/PCI-VGA-Cards). So what you need besides an active HDMI/VGA converter, is also an active VGA/EGA adapter, or what ever graphic standard is supported by your old CRT natively.

PS I see this OP is from 2017 -.-

hippy
Posts: 11222
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: Cool-retro-term

Sun Jul 12, 2020 11:38 am

These are my notes for getting cool-retro-term working on my Pi 3B (non-plus) under Raspberry Pi OS Buster 32-bit a few weeks ago -

Code: Select all

sudo apt install build-essential qmlscene qt5-qmake qt5-default qtdeclarative5-dev qml-module-qtquick-controls qml-module-qtgraphicaleffects qml-module-qtquick-dialogs qml-module-qtquick-localstorage qml-module-qtquick-window2 qml-module-qt-labs-settings qml-module-qt-labs-folderlistmodel
git clone --recursive https://github.com/Swordfish90/cool-retro-term.git
cd cool-retro-term
qmake && make
cp -r qmltermwidget/src/qmldir qmltermwidget/lib/kb-layouts qmltermwidget/lib/color-schemes qmltermwidget/src/QMLTermScrollbar.qml qmltermwidget/QMLTermWidget
./cool-retro-term

kgc60
Posts: 7
Joined: Sat Jul 11, 2020 11:45 pm

Re: Cool-retro-term

Sun Jul 12, 2020 4:51 pm

hippy wrote:
Sun Jul 12, 2020 11:38 am
These are my notes for getting cool-retro-term working on my Pi 3B (non-plus) under Raspberry Pi OS Buster 32-bit a few weeks ago -

Code: Select all

sudo apt install build-essential qmlscene qt5-qmake qt5-default qtdeclarative5-dev qml-module-qtquick-controls qml-module-qtgraphicaleffects qml-module-qtquick-dialogs qml-module-qtquick-localstorage qml-module-qtquick-window2 qml-module-qt-labs-settings qml-module-qt-labs-folderlistmodel
git clone --recursive https://github.com/Swordfish90/cool-retro-term.git
cd cool-retro-term
qmake && make
cp -r qmltermwidget/src/qmldir qmltermwidget/lib/kb-layouts qmltermwidget/lib/color-schemes qmltermwidget/src/QMLTermScrollbar.qml qmltermwidget/QMLTermWidget
./cool-retro-term
Thanks for this post. It got me further still.

I went through your sequence, and found that the only thing I was missing was the cp at the end. I did that, and when I ran cool-retro-term, I got a bunch of warnings, then got the window, and then it took about 10 minutes for the command prompt to arrive. When I issue a command, it takes a couple of minutes before the command I typed displays, another several minutes before the results of the command are displayed. I suspect my Pi isn't powerful enough for cool-retro-term, or I have misconfigured something along the way. The Pi is inside a case, so I'll have to open things up to see what version of hardware I'm actually running.

Is there a minimum Pi board version recommended for cool-retro-term?
Last edited by kgc60 on Sun Jul 12, 2020 11:37 pm, edited 1 time in total.

hippy
Posts: 11222
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: Cool-retro-term

Sun Jul 12, 2020 6:03 pm

kgc60 wrote:
Sun Jul 12, 2020 4:51 pm
when I ran cool-retro-term, I got a bunch of warnings, then got the window, and then it took about 10 minutes for the command prompt to arrive. When I issue a command, it takes a couple of minutes before the command I typed displays, another several minutes before the results of the command are displayed. I suspect my Pi isn't powerful enough for cool-retro-term, or I have misconfigured something along the way.
That was pretty much my experience of cool-retro-term on my Pi 3B (non-plus); 'as slow as continental drift'. I never investigated further, deleted it as soon as I had it running, as "not for me".

pidd
Posts: 2983
Joined: Fri May 29, 2020 8:29 pm
Location: Wirral, UK
Contact: Website

Re: Cool-retro-term

Sun Jul 12, 2020 6:49 pm

hippy wrote:
Sun Jul 12, 2020 6:03 pm
kgc60 wrote:
Sun Jul 12, 2020 4:51 pm
when I ran cool-retro-term, I got a bunch of warnings, then got the window, and then it took about 10 minutes for the command prompt to arrive. When I issue a command, it takes a couple of minutes before the command I typed displays, another several minutes before the results of the command are displayed. I suspect my Pi isn't powerful enough for cool-retro-term, or I have misconfigured something along the way.
That was pretty much my experience of cool-retro-term on my Pi 3B (non-plus); 'as slow as continental drift'. I never investigated further, deleted it as soon as I had it running, as "not for me".
Strange, there isn't anything hugely processor intensive doing things like that.

There used to be a program called rainbowfont in the days of EGA/VGA screens, it would curve your lines and change colour in bars so your type ended up looking like a rainbow.

User avatar
scruss
Posts: 4580
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON
Contact: Website

Re: Cool-retro-term

Sun Jul 12, 2020 7:07 pm

It's doing quite a bit of graphics processing. I think it inherited some of xscreensaver display models, one of which includes a full simulation of an analogue NTSC display
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.
Pronouns: he/him

pidd
Posts: 2983
Joined: Fri May 29, 2020 8:29 pm
Location: Wirral, UK
Contact: Website

Re: Cool-retro-term

Sun Jul 12, 2020 7:58 pm

scruss wrote:
Sun Jul 12, 2020 7:07 pm
It's doing quite a bit of graphics processing.
Why? does it put a ripple on the screen or something like that?

kgc60
Posts: 7
Joined: Sat Jul 11, 2020 11:45 pm

Re: Cool-retro-term

Sun Jul 12, 2020 11:36 pm

pidd wrote:
Sun Jul 12, 2020 7:58 pm
scruss wrote:
Sun Jul 12, 2020 7:07 pm
It's doing quite a bit of graphics processing.
Why? does it put a ripple on the screen or something like that?
By default, cool-retro-term generates a "glow line" crawling down the display. It was taking nearly an hour for the glow line to get from the top of the screen to the bottom. The effect can be turned off using the context menu in Settings | Effects. But I didn't bother, because...

I opened up the case and discovered that I was working with an original Raspberry Pi. So, I switched to using a Raspberry Pi 4 B, got it working, and the performance is great...very usable and very realistic effects. A keeper.

Here are the commands that got me from a fresh copy of the OS on a Raspberry Pi 4 B to a working cool-retro-term:

STEP 0:
Increasing the swapfile size from the default size is required to get the build operations to complete in a later step.

Code: Select all

sudo nano /etc/dphys-swapfile
and then comment out CONF_SWAPFACTOR, uncomment CONF_SWAPSIZE and set it to 4096, and uncomment CONF_MAXSWAP and set it to 4096. (The Pi I have has 4GB RAM.) Then,

Code: Select all

sudo /etc/init.d/dphys-swapfile stop
sudo /etc/init.d/dphys-swapfile start
STEP 1:

Code: Select all

sudo raspi-config
and then Advanced Options | GL Driver | G2 GL (Fake KMS) OpenGL desktop driver. (Note: There was no "G1-GL Full KMS" option listed on my system, so I just chose "G2 GL (Fake KMS).")

STEP 2:

Code: Select all

sudo apt-get update
sudo apt-get upgrade
sudo apt install build-essential qmlscene qt5-qmake qt5-default qtdeclarative5-dev
sudo apt install qml-module-qtquick-controls qml-module-qtgraphicaleffects
sudo apt install qml-module-qtquick-dialogs qml-module-qtquick-localstorage
sudo apt install qml-module-qtquick-window2 qml-module-qt-labs-settings
sudo apt install qml-module-qt-labs-folderlistmodel
You need to answer Y to each prompt.

STEP 3:

Code: Select all

cd
git clone --recursive https://github.com/Swordfish90/cool-retro-term.git
cd cool-retro-term
qmake && make
(Note: There were lots of warnings, but I ignored them all and kept a positive attitude.)

STEP 4:

Code: Select all

chmod +x cool-retro-term
cp -r qmltermwidget/src/qmldir qmltermwidget/lib/kb-layouts qmltermwidget/lib/color-schemes qmltermwidget/src/QMLTermScrollbar.qml qmltermwidget/QMLTermWidget
./cool-retro-term
(Note: Some warning-ish messages came up, but I ignored them and hoped for the best.)

At the end of all this, I have a working cool-retro-term on a Raspberri Pi 4 B.

Thanks for the posted suggestions that helped me get to this point. I really appreciate it.
Last edited by kgc60 on Mon Jul 13, 2020 1:08 pm, edited 1 time in total.

hippy
Posts: 11222
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: Cool-retro-term

Mon Jul 13, 2020 9:59 am

kgc60 wrote:
Sun Jul 12, 2020 4:51 pm
I went through your sequence, and found that the only thing I was missing was the cp at the end.
Just to note; credit for that goes to 'WolfgangBlack' - viewtopic.php?p=1682413#p1682413

Return to “Advanced users”