Saturday, December 5, 2020
Raspberry Pi 400 Audio Issue Solved
Thursday, November 26, 2020
HAIKU OS
Since my studies in the nineties, I was an admirer of BeOS, the BeBox and everything close to this sort of technology. I never could afford a multi-processor machine like the BeBox, so it was remaining a dream, until BeOS and BeBox suddenly disappeared from the scene. This was long before Linux was a thing.
Beos, was resurrected by the company Yellowbites http://yellowbites.com/beos.html and never gained the success it might have deserved.
Some fans (no me though) persisted and created a binary compatible clone of BeOS, called HAIKU.
I followed that project on and off, until the Beta1 release. This is when I decided to try HAIKU on hardware myself. When saying on hardware, I mean on hardware, not in a virtual machine.
In my yard of "no longer used, but too good to be scrapped" computers, I found an AMD C-Series APU board with 4GB. This boardd, with a 500GB HDD was the perfect candidate for an installation of HAIKU OS R1/Beta1.
I played with it for a while, and put it aside when other stuff came up. That was many months ago.
Today, I remembered the little box and got it running again. A presumable simple software update, which I expected to have happened over the many months, failed. Hmmmm, strange! What's going on? Oh, there is a Beta2 version available, which does not install with the SoftwareUpdater provided in the GUI. If only I had read this https://www.haiku-os.org/get-haiku/r1beta2/ before ;-)
Anyway, this is what I am presently doing/waiting to finish. The manual upgrade from Beta1 to Beta2. I liked Beta1 a lot, so my expectations are high for Beta2.
When I was playing with Beta1 before, I had plans to port the f2c Fortran to C converter to HAIKU. The sources are still in my home directory. The intent is still present. I might need to check if there is a newer version of f2c before I start the project.
This post was written using the HAIKU machine with the browser WebPositive, while the machine was upgrading from Beta1 to Beta2.
UPDATE:
The machine is not running HAIKU R1/Beta2.
Wednesday, November 25, 2020
Old Laptop with Raspberry Pi Desktop
- press <ctrl><alt>t which will open a terminal
- now delete the directory ~/.config/lxpanel -- if you want to play it safe do this:
- cd .config
- rm -rf lxpanel
- now manually start lxpanel in the background by typing: lxpanel &
- you can now restart your computer by either typing reboot in the terminal of use the item in the menu
- sudo apt-get update - this updates the package manager's database
- sudo apt-get full-upgrade - this does what you believe it to do and may take a while
- reboot
Tuesday, November 24, 2020
Raspberry Pi 400 as Desktop Replacement
Saturday, November 14, 2020
Raspberry Pi 400 audio issues update
Friday, November 13, 2020
Raspberry Pi 400 audio problems - USB not the solution
Raspberry Pi 400 (audio issues)
- in a terminal type: sudo apt install pulseaudio-bluetooth-module
- add "Volume Control" to the TaskBar, next to "Volume Control (ALSA/BT)"
Wednesday, November 11, 2020
Raspberry Pi 3B+ USB Boot
Earlier, I describe the use of BerryBoot with an external USB HDD with a RPi (1) B+. To be honest, this was a terrible user experience. While everything worked, this setup was tantalisingly slow. I mean really really slow.
My assumption is that the USB2 implementation of the RPi1B+ does not reach USB2 speeds, not even close. Presumably the USB ports a run by the CPU, which in itself is relatively low power already. Consequently, I abandoned the idea of running the RPi1B+ from a USB drive.
As an experiment, I used the exact same external USB-HDD and microSD-card with my RPi3B+. What a difference! This setup really resembles a usable desktop computer.
In my experience, the Raspberry Pi 3 B+ appears to be able to run the USB2 ports at USB2 speeds.
While booting and running of the microSD-card appears to be a little bit more snappy, the combo of BerryBoot and the externally powered 3.5" HDD on USB2 delivers an acceptable user experience.
The obvious advantage of this particular install is the amount of storage available, in my case more than 300GB. The amount is only dependent on the HDD in the enclosure.
Monday, November 9, 2020
Raspberry Pi OS on USB
Lately, for various reasons, I got into using Raspberry Pis, in particular in combination with the GPIO.
What puts me off by a bit is the fact that the regular RPis used (micro) SD cards. While reading from an SD card might not be that bad, but writing to it, over and over again, will destroy over a short period of time. Thereby destroying the data you stored on it.
For my projects, therefore, another solution had to be found.
In this series of posts, I will document my experiences using various methods and devices to avoid the wear and tear of an SD card.
This first episode reflects on using BerryBoot to boot from and load the OS from USB connected devices.
Using and installing BerryBoot is very simple. Download the archive provided in the above mention link. Make sure you picked the file that fits your Raspberry Pi.
During writing this article, it appears that the BerryBoot image now changed to a single archive for all variants of the RPi. I have not tested this, since I just a few hours prior to the writing of this post, downloaded the archive for Pi0 to Pi3+ boards.
Anyway, I stick with what I have and what worked for me earlier.
In my present test, I am using a Raspberry Pi 1 B+ with a 2GB micro-SD card as a boot device and a USB-2 HDD enclosure with a 320GB 3.5" hard-disk. The enclosure came with a 2TB disk, which is used in something else by now.
Further, the enclosure is powered externally by a 12V wall-ward. This, of course, is important, since a Raspberry Pi would never be able to provide the power for any HDD.
Following the procedure as set out on the BerryBoot page, an OS will be written to the USB attached device. I opted for a full install of Raspberry Pi OS, as it is presently called.
After having booted "into" the HDD, the experience is certainly less snappy, compared to running the OS from the SD card. However, the mere difference is storage space should put up some questions: 8GB SD card vs. 320GB HDD.
Initially, no swap space was created. So, I decided for creating a swap-file on the root directory of the hard-drive. That did not work. It appears that under BerryBoot, using a swap file is impossible.
A solution to the missing swap-file is to install zram-tools, which will enable a virtual swap into compressed memory.
In following posts, I will discuss various other options for booting a Raspberry Pi from USB devices.
Wednesday, July 15, 2020
Microsoft Fortran quirks
In a previous post, I covered how to install Watcom F0RTRAN on FreeDOS. Eventually, this might be my compiler of choice anyway.
However, this post is dedicated to Microsoft Fortran and the bad memories about it returning.
Fist of all, there are some abandoned DOS versions of the compiler on the internet. I wont provide any links, since I am not aware of Microsoft officially abandoning this compiler.
I tested the following version on my genuine FreeDOS netbook
MS Fortran 2.0
MS Fortran 3.2
MS Fortran 5.0
First of all, have a look at this F0RTRAN77 code:
I=3
WRITE(6,100) I
100 FORMAT (I3.3)
All compilers had the same fault, which drive me crazy 30 years ago.
If you code:
I=3
WRITE(6,100) I
100 FORMAT (I3.3)
You would expect the compiler to print on the STDOUT an integer of 3 ciphers filled with 0. Something like:
003
Microsoft thinks differently!
MS Fortran 2.0 does not recognize this format at all. While the compiler in passes 1 and 2 wont create any errors, nor will the linker, the executable wont run.
You need to code:
I=3
WRITE(6,100) I
100 FORMAT (1X,I3)
__3
I=3
WRITE(6,100) I
_3
I=3
WRITE(6,100) I
This is what Microsoft thinks the output should look like, when compiling with MS Fortran 5.0:
03
I am not joking. decades ago, it took me days to understand that Microsoft starts counting at 0, while the rest of the F0RTRAN world uses 1 for the first character in a line.
So, contrary to all other F0RTRAN compilers, for MS, one needs to code
I=3
WRITE(6,100) I
100 FORMAT (1X,I3.3)
in order to obtain
003
MS Fortran 2.0 does not accept this type of F0RTRAN77 FORMAT.
MS Fortran 3.2 does accept it... and so does MS Fortran 5.0.
The old router to the rescue
Monday, May 25, 2020
FreeDOS I16GCC vs WATCOM-C
On my low powered ACER Aspire ONE I compiled the program listed below with both compilers...
No, I am not writing about the result, I want to encourage you to find out yourself which compiler will suite your needs.
Here is the code of my test program:
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
unsigned long int i,h[20];
int rnd;
srand(43558);
for (i=0;h[i]=0,i<19;i++);
for (i=0; i<10000000; i++){
rnd=rand()%20;
h[rnd]++;
if(i%10000==0)printf(".");
}
printf("\n");
for(i=0;printf("count of [%02ld] is %ld\n",i,h[i]),i<19;i++);
return 0;
}
Sunday, May 17, 2020
Open Source FORTRAN for DOS
With DOS, or FreeDOS, we got lucky. The Waterloo Compilers are now available as Open Source under the Open Watcom Project.
On the download page, you will find that a C/C++ compiler, an ASSEMBLER and a FORTRAN compiler are now available as open source.
The FreeDOS project included the C/C++ compiler in the distribution. I figure, the ASSEMBLE is included too. However, the FORTRAN compiler is not. I got in contact with Jim Hall asking him to include Watcom FORTRAN in the next distribution of FreeDOS.
In the meanwhile, I installed Watcom FORTRAN to the same tree as Watcom C/C++ in FreeDOS.
Here is how to do it:
Download open-watcom-f77-dos-1.9.exe as provided by the Open Watcom webpage.
Run the installer and select "\DEVEL\OW\" as install directory. This will install the FORTRAN compiler into the same environment as the C/C++ compiler provided in the FreeDOS distribution.
To use the compiler, first run the BATCH-scrip "\DEVEL\OW\OWSETENC.BAT", which will set the correct PATH and LIBRARY variables. This script is part of the FreeDOS installation.
In order to compile a simple FORTRAN program, call "wfl".
When I was taught FORTRAN in University, a system called WATFOR-77 was used in the classroom. This was an integrated system having an editor and a compiler. Same origin as Open Watcom, however, WATFOR-77 is not available as open source by today. If the authors are reading, it would be great if you would turn the DOS version of WATFOR-77 including the editor into open source!
Saturday, May 16, 2020
FreeDOS - Linux-MINT dual boot
So, I believe the easiest way would be to install a Linux distribution alongside FreeDOS. The 30GB HDD offers enough space for doing so.
With a Linux on the machine, it will be easy to boot into Linux when data-transfer is needed. Reading and writing from a DOS partition is something that Linux is able to do since a very long time.
I went for Linux MINT Tara i386, just because I had a USB thumb-drive with that particular distribution readily in my drawer.
Concerning the installation, nothing special to report. I decided to use 14GB for Linux and left 16GB for FreeDOS, plenty for both operation systems.
After installation, FreeDOS did not boot from GRUB. It turns out that one needs to boot FreeDOS from a thumb-drive and re-write the system files using the "sys" command.
What FreeDOS is concerned, that's it.
The native screen resolution of netbooks can be a low for your GUI on Linux.
However, resolution scaling works beautifully, should you need more real-estate on the screen.
Here are two tiny scripts I use to toggle scaling:
$ cat nb_scale1
#!/bin/bash
xrandr --output LVDS1 --scale 1x1 --panning 1024x600
$ cat nb_scale1_5
#!/bin/bash
xrandr --output LVDS1 --scale 1.5x1.5 --panning 1536x900
Enjoy toying with DOS and Linux on a small netbook.
Tuesday, May 12, 2020
As-Easy-As spreadsheet legally for free
Lotus 1-2-3 was certainly one of the most popular programs. Some versions of 1-2-3 are apparently available as abandonware, maybe I will some of those later.
There were, however, alternatives programs to Lotus 1-2-3. One of the shareware options was As-Easy-As.
The owner of As-Easy-As, TRIUS Inc., decided to release the DOS version of their spreadsheet by providing the necessary codes.
Here is a link to TRIUS Inc's very own forum post on their forum page, providing downloads for the program and the user manual, as well as license codes for the DOS version of As-Easy-As and the respective documentation for free!
Please note that the codes for the program and the manual are different.
Monday, May 11, 2020
MS WORD for DOS
In case you are not so lucky, or you could not be bothered keeping obsolete stuff, sometimes on get lucky, very lucky indeed.
Searching the internet about ways to legally obtain old DOS programs, here is a gem: MS WORD directly from Microsoft:
http://download.microsoft.com/download/word97win/Wd55_be/97/WIN98/EN-US/Wd55_ben.exe
The file is a PKSFX archive which self-extracts to the active directory. It creates a bunch of EX$, CS$, PR$ and so forth files. Some of the printer driver files appear to have long names, since I am not running DOSLFN.COM, I got a few warnings.
SETUP.EXE lets you install Microsoft Word 5.5A for DOS on your HDD in a directory of your liking. Nothing to report about that process, other than to manually edit the PATH settings in FDAUTO.BAT yourself, since the installer modifies AUTOEXEC.BAT, which is not relevant in FreeDOS.
Text and VGA modes work perfectly fine. Playing with both, I settled on using the graphics mode with 30 lines and 80 columns. 34 lines looked still OK on the screen, so maybe I will switch to that later. 43 lines looks pretty painful and 60 lines, while still working fine, feels pretty squeezed and unnatural.
Concerning printing, I mentioned the problem with the long file names before. I no longer have any of those printers. In order to have something for WORD to think about concerning fonts, I chose the POSTSCRIPT driver.
However, printing is not my main objective using the netbook on FreeDOS. I will create files, e.g. DOC, which will then be transferred to the cloud and used as such. Another option would be to write Postscript files and convert those in PDF.
Sunday, May 10, 2020
Running FreeDOS in QEMU
This latop, a HP/Compaq nx6110, was also able to run the FreeDOS live-CD.
Anyway, I installed FreeDOS on a virtual drive on this particular computer. Again, the hardware, i.e. keyboard, is just perfect for my regular use under Linux.
When installing the FreeDOS image, I encountered some minor problems getting the networking to up and running. Finally, I ended up with a script as follows:
#!/bin/bash
qemu-system-i386 -m 32M -drive file=drivec.img,media=disk,format=raw -net nic,model=pcnet -net user
With this script, I am able to browse the internet using Lynx. I am pretty sure that I will be able to use other network services too.
Saturday, May 9, 2020
Hardware to run FreeDOS
Using the FreeDOS 1.3 Live CD, I tried a different systems at my disposal. Most modern ones failed, one way or the other.
An IBM 380Z laptop booted the CD fine, however, only the center of the screen was used. The system would work, however, the experience would be disappointing since the real estate of the screen is severely underused. The mouse-nipple, or however the red thing in the middle of the keyboard is called, worked find under FreeDOS.
My HP/Compaq nx6110 booted the live CD fine, screen fully used. The touchpad did what it was supposed to do, right away. This could be the perfect candidate for running FreeDOS on bare silicon. However, this laptop is my goto-PC for Debian/LINUX. So, for now. FreeDOS will live in qemu on this one.
Actually, the first hardware I tried FreeDOS on was one of my Acer ASPIRE ONE 110 netbooks. One that I had given an HDD years ago. Here is a link to a post on my RF related blog, concerning the HDD in the Aspire ONE netbook. To the time, I had not thought about an IT related blog, so, it was called "off-topic", seen the radio-frequency electronics content of my other blog.
Here is the netbook during the install of OpenWatcom FORTRAN on FreeDOS.
Acer ASPIRE ONE 110 |
While the device is equipped with Ethernet, I had not set up or tested networking by the time of writing this post.
The touchpad on the Acer does not work with FreeDOS yet. I tried various options with the USB-mouse-driver, all of the attempts ended in crashes.
As a pure DOS computer, the netbook does a great job.
Several programming languages are available, through the FreeDOS-CD and also by installation using the USB thumb-drive and a USB floppy drive.
My old DOS version of Maple V runs just fine and so does a MathCAD student edition I happen to own.
Unfortunately, the Aspire ONE does is not fully supported in FreeDOS what APM is concerned. However, dictating processor speed does work fine.
I created the following aliases in fdauto.bat
alias slow=fdapm speed1
alias fast=fdapm speed8
Those commands set the processor speed to 1/8 and 8/8 (full) processor speed. In the case of the Aspire ONE, the native processor speed is 1.6GHz. Running the netbook at 1/8th of that, will still deliver a very decent 200MHz. This is plenty of fast for a DOS computer.
In fact, when editing code, I set my netbook to run at lowest speed. Only when I compile and run my programs, I will ramp the CPU up to max.
In conclusion, the Acer ASPIRE ONE 110 is the perfect DOS machine, I never was able to dream about.
In my nest post, I will compare the ASPIRE ONE to machines of that past, which I still own today.
Thursday, May 7, 2020
Taking every day computing a step back
So, that gives me the opportunity to reflect on how I did my personal computing in the eighties and nineties. At that time, computer mice were around, however, nobody really knew what to do with them, even CAD was done with console input. Many of the structures and devices designed that way are still standing and/or in operation.
Back in the day, I used an 8088 with two 5in floppy drives.
Later, I was able to buy a no-name 286/287 based PC with a 20MB hard-drive. OS of the time was MS-DOS, I believe it was version 4.01, not sure about that.
Remember those time? You switched the PC on and seconds later, you could start with your work.
Latest advances in the FreeDOS project got me back to those times. Jim Hall started the project in 1994 and still keeps improving this opensource MS-DOS compatible OS.
Some hardware support of modern hardware is present already.
While FreeDOS can run in a virtual machine, I am personally more interested in running a native DOS PC.
Why DOS, you might ask yourself. One reason I mentioned above already. But, there are additional reasons such as
- easy administration and programming
- tons of old freeware and shareware available
- abandonware
- some commercial software being turned into freeware, e.g. OpenWatcom and Borland compilers
- one or the other software one has bought back in the day