You are not logged in.
Ycalc is a light-weight programmable calculator for X based on the TI-58/59 which allows you to create keypress macros. An example of how to program ycalc is here. But what really sets ycalc apart is its binary mode. When you press the Bin key, a window appears with three rows of binary numbers where you can toggle bits, shift bits and perform logical operations such as Xor (exclusive or).
Since Ycalc is not packaged, we need to build it from source.
As root, issue the following command.
apt-get install build-essential libx11-dev
wget http://pet.orbin.se/ycalc-mob-1.09.1-src.tar.gz
tar -xvzf ycalc-mob-1.09.1-src.tar.gz
cd ycalc-mob-1.09.1-src
make
./ycalc-mob
Ycalc was written at a time when high resolution displays were 640x480. As such, ycalc may appear too small for you. To make ycalc larger, issue the following commands.
sed -i '225s/.*/#define DEFAULTFONT "9x15"/' main.c
make
Run ycalc again and ./ycalc-mob to see if you like the size better. If not, repeat the last two steps with a different fond size.
To get a list of possible fonts and font sizes, issue the following command.
xlsfonts | grep '^[6-9]x'
As root, issue the follow commands
cp ycalc-mob /usr/local/bin/ycalc
mkdir /usr/local/man/man1
gzip -c ycalc-mob.1 > /usr/local/man/man1/ycalc.1.gz
The following was tested with a clean Devuan Beowulf installation with the LXQt desktop. In theory, this should work with XFCE as well. As root, use your favorite text editor to create text file /usr/share/applications/ycalc.desktop with the following contents.
[Desktop Entry]
Version=1.0
Type=Application
Name=Calculator
Exec=ycalc
Icon=accessories-calculator
Categories=Utility;Calculator
You should now have an entry named Calculator in your Accesories menu.
Last edited by Vernon (2020-07-26 01:27:29)
Offline
Since Ycalc is not packaged, we need to build it from source
No, we need to package it up
I've built versions for stable, testing & unstable in various architectures:
https://software.opensuse.org//download … =ycalc-mob
They were built in Debian containers but should be fully compatible with Devuan, probably best to just grab the .deb package and install that — the software is ancient and unlikely to be updated.
EDIT: updated to v1.09.1-2 with added man page
Last edited by Head_on_a_Stick (2020-07-26 11:41:14)
Brianna Ghey — Rest In Power
Offline
I've built versions for stable, testing & unstable in various architectures:
https://software.opensuse.org//download … =ycalc-mob
They were built in Debian containers but should be fully compatible with Devuan, probably best to just grab the .deb package and install that — the software is ancient and unlikely to be updated.
Thanks for doing this. The only packages I know how to make are for Slackware.
Offline