Page 1 of 1

Example of using Xnest to Display a SSH Remote Session

Posted: Fri Aug 14, 2020 6:16 pm
by rockedge

How to begin exploring some interesting possibilities using Xnest -> https://www.linuxtoday.com/blog/using-xnest.html

http://oldforum.puppylinux.com/viewtopic.php?t=118645

xnest-ssh-2.png
xnest-ssh-2.png (132.08 KiB) Viewed 2050 times

Re: Example of using Xnest to Display a SSH Remote Session

Posted: Sun May 01, 2022 12:32 am
by user1111

Not sure where to post this (here seems as good as any given the old link is dead), but sampler includes a option to show the likes of 'top' on a remote system using ssh (along with other cli 'graphical' things)

Image

Basically you run sampler with a -c <file>

where the sampler config file contains whatever things you want to draw, such as ...

Code: Select all

sparklines:
  - title: CPU usage
    position: [[1, 18], [53, 18]]
    rate-ms: 500
    scale: 0
    sample: ps -A -o %cpu | awk '{s+=$1} END {print s}'
asciiboxes:
  - title: time
    position: [[0, 0], [60, 18]]
    rate-ms: 500
    color: 43
    sample: date +%X
    border: false
    font: 2d

You can also select and move/resize each item.

Installation is easy

Code: Select all

wget https://github.com/sqshq/sampler/releases/download/v1.1.0/sampler-1.1.0-linux-amd64 -O /usr/local/bin/sampler
chmod +x /usr/local/bin/sampler

Re: Example of using Xnest to Display a SSH Remote Session

Posted: Sun May 01, 2022 3:50 am
by rockedge

@rufwoof very cool! I installed and am playing around with it.

I fixed the link above.


Re: Example of using Xnest to Display a SSH Remote Session

Posted: Sun May 01, 2022 5:41 am
by wiak

I really like facilities such as Xnest. I wonder what can be done in Wayland world, which is so very different?

Yes, I know, you can always use a mixed X/Wayland environment via XWayland and I guess use Xnest or Xephyr in there, but if going pure Wayland, eventually, would like to keep it that way.