Kitz ADSL Broadband Information
adsl spacer  
Support this site
Home Broadband ISPs Tech Routers Wiki Forum
 
     
   Compare ISP   Rate your ISP
   Glossary   Glossary
 
Please login or register.

Login with username, password and session length
Advanced search  

News:

Author Topic: Reconnect to remote persistent DSLstats session using Xpra (seamless window)  (Read 1366 times)

BigJ

  • Member
  • **
  • Posts: 83

Hi

Unfortunately we can't run DSLstats over SSH with X11-Forwarding without leaving the client SSH session up constantly. I came across Xpra which allows you to reconnect to DSLstat running on another machine. One advantage over VNC is that it can show just the DSLstats window, not necessarily the whole remote desktop. MS Windows clients are available too

The following instructions assume you can SSH into the remote machine. Xpra can run without SSH according to the Xpra webiste but I've not tried it.

Install Xpra on both machines eg. server and desktop. I'm using a Mint 18 desktop and Ubuntu 16.04 server
Code: [Select]
$ wget -nv https://xpra.org/gpg.asc -O xpra_gpg.asc

$ sudo apt-key add - < xpra_gpg.asc

$ sudo sh -c "echo 'deb https://xpra.org/ xenial main' > /etc/apt/sources.list.d/xpra.list"

$ sudo apt update

$ sudo apt install xpra

The user starting a xpra session on the server needs to be in the xpra group

Code: [Select]
$ sudo adduser YourUserName xpra
I needed to install some dependancies on the my server. You may not need to or have different ones.

Code: [Select]
$ sudo apt install dbus-x11
$ sudo apt install python-dbus

I also needed to install GTK2 on the server to get DSLstats running

Code: [Select]
$ sudo apt install gtk2.0
You should be good to go now.

On the desktop you can remotely start DSLstats

Code: [Select]
$ xpra start ssh:YourUserName@RemoteServerName --start-child=dslstats
Make a note of the remote display from the information displayed in the terminal
e.g. "Actual display used: :0"

"Disconnect" using the xpra GUI tool in the system try or Ctrl-c on the terminal. To reconnect,

Code: [Select]
$ xpra attach YourUserName@RemoteServerName:DisplayNumber
Hope it's helpful to someone
« Last Edit: February 11, 2017, 06:22:45 PM by BigJ »
Logged

roseway

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 43568
  • Penguins CAN fly
    • DSLstats
Re: Reconnect to remote DSLstats session using Xpra
« Reply #1 on: February 11, 2017, 04:36:27 PM »

Thank you for that information BigJ.
Logged
  Eric
 

anything