¿ªÔÆÌåÓý

#sbitx A cool (kludgy) way to remotely use the sbitx #sBitx


 

First, enable ssh on the sbitx.
1. From the main menu, Choose Preferences > Raspberry Pi Configuration
2. Click on the Interfaces tab
3. On the tab and enable SSH if not enabled, Click OK
4. From a terminal on the sbitx, type ifconfig and note the IP address of the sbitx. In my case it was 192.168.1.142

Second, from your linux laptop (yeah, it wont work with windoze, it might work on a mac, let us know)
1. Open a terminal window
2. Enable remote x clients to connect with the command "xhost?+" (without quotes)
3. Next, ssh to your sbitx with a special option like this :
 ssh [email protected] -X
Enter your password (by default it is hf12345).
4. Now you are connected to the sbitx. Go into the sbitx directory 
and execute the program like this:
cd sbitx
./sbitx


 

Farhan,

The Raspberry Pi OS has VNC built in.? That will open an X-window environment on any operating system.? Here is a link on how to set up to use VNC on a Raspberry Pi:


73
Evan
AC9TU


 

Oh thanks?


On Mon, Sep 5, 2022, 7:25 PM Evan Hand <elhandjr@...> wrote:
Farhan,

The Raspberry Pi OS has VNC built in.? That will open an X-window environment on any operating system.? Here is a link on how to set up to use VNC on a Raspberry Pi:


73
Evan
AC9TU


ecc
 

Mac users will need to be running an X11 server (see )

On Mon, Sep 5, 2022 at 12:37 AM Ashhar Farhan <farhanbox@...> wrote:
First, enable ssh on the sbitx.
1. From the main menu, Choose Preferences > Raspberry Pi Configuration
2. Click on the Interfaces tab
3. On the tab and enable SSH if not enabled, Click OK
4. From a terminal on the sbitx, type ifconfig and note the IP address of the sbitx. In my case it was 192.168.1.142

Second, from your linux laptop (yeah, it wont work with windoze, it might work on a mac, let us know)
1. Open a terminal window
2. Enable remote x clients to connect with the command "xhost?+" (without quotes)
3. Next, ssh to your sbitx with a special option like this :
 ssh [email protected] -X
Enter your password (by default it is hf12345).
4. Now you are connected to the sbitx. Go into the sbitx directory 
and execute the program like this:
cd sbitx
./sbitx


 

That's not entirely accurate. VNC does not use the X Windows protocol, It uses its own Remote Frame Buffer protocol, which is a simple one that just sends the bitmap of the screen (compressed to keep the bandwidth requirement reasonable), along with handling keyboard and mouse information. VNC clients are available for just about any modern computing device, including Linux, Windows, Mac, iOS, and Android devices.

VNC DOES do the same job from the end user's point of view, which is to allow you to remotely operate a computer. That's the important takeaway here.

The X Windows protocol is complex and sends both text and graphics that?get?rendered on the user's system, requiring an X server to run on the destination computer to interpret. (The terminology of X server and client feels backwards to me: the end user sits in front of an X SERVER and the remote system being operated is a CLIENT.) X servers (remember the backwards designations) are also available for many OSes, but installing one on a system where X is not the native display method (like Windows) is more complex than installing a VNC client. One of the reasons it is designed that way is that it was meant to work back in the days of low bandwidth connections; just sending the descriptions of what will appear on the screen and letting the user's system render them often requires fewer bits to be sent.

On Mon, Sep 5, 2022 at 9:55 AM Evan Hand <elhandjr@...> wrote:
Farhan,

The Raspberry Pi OS has VNC built in.? That will open an X-window environment on any operating system.? Here is a link on how to set up to use VNC on a Raspberry Pi:


73
Evan
AC9TU


 

¿ªÔÆÌåÓý

Windows 10 and onward includes an SSH client. Just open a cmd window. Can't remember if it needs to be installed. It may be added when you install the Windows Subsystem for Linux. Remember, M$ and Linux are in bed together now ;-)

John K0JD

On 9/4/2022 11:36 PM, Ashhar Farhan wrote:

First, enable ssh on the sbitx.
1. From the main menu, Choose Preferences > Raspberry Pi Configuration
2. Click on the Interfaces tab
3. On the tab and enable SSH if not enabled, Click OK
4. From a terminal on the sbitx, type ifconfig and note the IP address of the sbitx. In my case it was 192.168.1.142

Second, from your linux laptop (yeah, it wont work with windoze, it might work on a mac, let us know)
1. Open a terminal window
2. Enable remote x clients to connect with the command "xhost?+" (without quotes)
3. Next, ssh to your sbitx with a special option like this :
 ssh [email protected] -X
Enter your password (by default it is hf12345).
4. Now you are connected to the sbitx. Go into the sbitx directory 
and execute the program like this:
cd sbitx
./sbitx


ecc
 

It's not the "ssh" part that's tricky, it's the "ssh -X" (enable X11 forwarding). No X11 on Windows without heroic measures.

As someone else said, an alternative approach that might work on more client platforms would be running a VNC server on the RPi.

On Mon, Sep 5, 2022 at 6:52 PM John Seboldt K0JD <k0jd-l@...> wrote:

Windows 10 and onward includes an SSH client. Just open a cmd window. Can't remember if it needs to be installed. It may be added when you install the Windows Subsystem for Linux. Remember, M$ and Linux are in bed together now ;-)

John K0JD

On 9/4/2022 11:36 PM, Ashhar Farhan wrote:
First, enable ssh on the sbitx.
1. From the main menu, Choose Preferences > Raspberry Pi Configuration
2. Click on the Interfaces tab
3. On the tab and enable SSH if not enabled, Click OK
4. From a terminal on the sbitx, type ifconfig and note the IP address of the sbitx. In my case it was 192.168.1.142

Second, from your linux laptop (yeah, it wont work with windoze, it might work on a mac, let us know)
1. Open a terminal window
2. Enable remote x clients to connect with the command "xhost?+" (without quotes)
3. Next, ssh to your sbitx with a special option like this :
 ssh [email protected] -X
Enter your password (by default it is hf12345).
4. Now you are connected to the sbitx. Go into the sbitx directory 
and execute the program like this:
cd sbitx
./sbitx


 

¿ªÔÆÌåÓý

Oops, yes, if you are running an X11 program on the sBITX, you would need to also install a FULL Linux distribution on your Windows machine, which is another step which I can't remember how to do.

But to do it more easily, I'd second the suggestion to use VNC - a server on the sBITX, a client on the Windows or Mac machine.

On 9/5/2022 5:51 PM, John Seboldt K0JD wrote:

Windows 10 and onward includes an SSH client. Just open a cmd window. Can't remember if it needs to be installed. It may be added when you install the Windows Subsystem for Linux. Remember, M$ and Linux are in bed together now ;-)

John K0JD

On 9/4/2022 11:36 PM, Ashhar Farhan wrote:
First, enable ssh on the sbitx.
1. From the main menu, Choose Preferences > Raspberry Pi Configuration
2. Click on the Interfaces tab
3. On the tab and enable SSH if not enabled, Click OK
4. From a terminal on the sbitx, type ifconfig and note the IP address of the sbitx. In my case it was 192.168.1.142

Second, from your linux laptop (yeah, it wont work with windoze, it might work on a mac, let us know)
1. Open a terminal window
2. Enable remote x clients to connect with the command "xhost?+" (without quotes)
3. Next, ssh to your sbitx with a special option like this :
 ssh [email protected] -X
Enter your password (by default it is hf12345).
4. Now you are connected to the sbitx. Go into the sbitx directory 
and execute the program like this:
cd sbitx
./sbitx


 

John,

I do not know the rationale behind needing a full Linux on a Windows PC to run an X-Windows server.? Before finding the VNC option on Raspian (one of the official Raspberry Pi OSes), I used Xming with SSH.? Here is the webpage for Xming:


I do not have it on my PC anymore, as VNC handles all of what I have wanted.? I remember I used Putty to start an SSH and then started Xming from it.

Unless there are reasons for having an actual X-Windows environment, VNC meets most needs.

73
Evan
AC9TU