Example of using Xnest to Display a SSH Remote Session

Moderator: Forum moderators

Post Reply
User avatar
rockedge
Site Admin
Posts: 5714
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 1994 times
Been thanked: 2097 times
Contact:

Example of using Xnest to Display a SSH Remote Session

Post 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 1510 times
user1111

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

Post 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
User avatar
rockedge
Site Admin
Posts: 5714
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 1994 times
Been thanked: 2097 times
Contact:

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

Post by rockedge »

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

I fixed the link above.

User avatar
wiak
Posts: 3627
Joined: Tue Dec 03, 2019 6:10 am
Location: Packing - big job
Has thanked: 56 times
Been thanked: 994 times
Contact:

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

Post 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.

https://www.tinylinux.info/
DOWNLOAD wd_multi for hundreds of 'distros' at your fingertips: viewtopic.php?p=99154#p99154
Αξίζει να μεταφραστεί;

Post Reply

Return to “Graphics/Video”