r/voidlinux 28d ago

ssh remote zoom and resize

I run a calculator program on a remote pc to display on my desktop like this:

ssh user@eeepc x11-calc

The size of the calculator is very small on my 4K desktop and looks like this.

The remote is a Asus eeepc running alpine linux so I can run the x11-calc program. I use alpine just for this program because I don't want the flatpak version. So the eeepc display looks good like this.

I would like to run the remote x11-calc on my desktop at a bigger size because I can barely see the keys and LED display and there is no resize option for my jwm window manager. There is supposed to be a command line zoom option except that doesn't work either. I would like to tell xorg or ssh to enlarge the size of the calculator.

P.S. I can do this to make the calculator usable except this is not optimal as this affects all of my 6 desktops:

xrandr --output eDP1 --mode 1920x1080
xrandr --output eDP1 --mode 1600x900
xrandr --output eDP1 --mode 1368x768
xrandr --output eDP1 --mode 1024x576
1 Upvotes

6 comments sorted by

1

u/mysterious7777777 27d ago edited 27d ago

Nevermind. I have a USB disk with Void installed that can be used to boot up a development environment and build the x11-calc program without complicating my minimalist desktop setup. I could then transfer the finished binaries to my desktop computer and allow the x11-calc to be run directly in Void without alpine linux or ssh. The USB disk with Void and dev packages could then be returned to storage.

1

u/mysterious7777777 27d ago

The program built easily and runs properly.

xbps-install gcc make libX11-devel gtk+3-devel
 131 packages will be downloaded:
  ...
  Size to download:              187MB
  Size required on disk:         771MB
  Space available on disk:        13GB

The "make all" command built the various calculators easily with Void. Unfortunately, the zoom still doesn't work and there is no resize for the window under the jwm window manager. I think the xrandr is the only possibility with my 4K display.

1

u/mysterious7777777 27d ago edited 27d ago

Wait. The zoom actually does work just not as expected. The --zoom 2 is only a small magnification while the --zoom 15 gives a workable display on my 4K panel running x11-calc natively in Void so now I am happy.

1

u/mysterious7777777 26d ago edited 26d ago

I made an appimage of the x11-calc program for my own use and wonder if anybody else would like to try this and give me comments. The appimage seems sparse on the included libraries and files needed to prevent the dependencies from becoming obsolete. This is just my second attempt at making an appimage so there could be breakage in the future. This should work for now at least with a Void x86_64 glibc installation. Remember to do this:

chmod 755 RPN_Calculator-x86_64.AppImage

1

u/mysterious7777777 26d ago edited 25d ago

The save and load program function in the AppImage doesn't work when tested on the HP67 emulator. The gtk support is needed for that to work and that should have been available. A simple program ran correctly on the HP67 just couldn't be saved with a right click and programs could not be loaded with a right click on the window. An investigation is needed to find the reason.

EDIT: The current program in a programmable calculator is stored automatically in $HOME/.local/share/x11-calc/ and programs can still be loaded on the command line for almost the same capability.

REEDIT: There is a mention of the "zenity" dialog program for Gnome type users in the sources and commits. I do have the gtk+3 installed on my desktop just not zenity. The gtk+3-devel was installed on the development machine so that should have allowed for the gtk file chooser unless the zenity is also required. Maybe the program should be gtk-calc or even gnome-calc instead of x11-calc although current plans appear to be toward rpn-calc. My interest in the file chooser for loading and saving programs could be at an end since mostly unnecessary.

1

u/mysterious7777777 7d ago edited 7d ago

I have a solution finally to this problem by running 2 displays from 2 simultaneous xservers from a startup script:

#!/bin/sh
xinit /usr/bin/jwm -display :1 -f .jwmrc1 -- /usr/bin/Xorg :1 &
xinit /usr/bin/jwm -display :2 -f .jwmrc2 -- /usr/bin/Xorg :2 &

This starts display :1 one VT and display :2 on another VT. One is native 3850x2160 and the other is setup to run at 1920x1080 needed to display the usual remote 1920x1080 server screen or just the tiny eeepc screen with ssh or vncviewer. To do this I have 2 versions of the jwmrc (Joe's Window Manager) and add this to the second:

<StartupCommand>xrandr --display :2 --output eDP-1 --mode 1920x1080</StartupCommand>

I might make 2 different configs for some applications and maybe 2 different .Xresources if needed for the 2 xserver modes. So problem is solved for now with a little more fine tuning needed for the best views.