Raspberry Pi Remote...
 
Notifications
Clear all

Raspberry Pi Remote Access - 3 Methods

11 Posts
3 Users
0 Reactions
1,100 Views
(@dronebot-workshop)
Workshop Guru Admin
Joined: 6 years ago
Posts: 1130
Topic starter  

Let’s look at three methods of Remote Access for the Raspberry Pi. Forget the keyboard, mouse, and monitor!

Welcome back to the workshop (yes, it’s been a while)!

Today, we will examine three remote access methods for the Raspberry Pi. Whether your Pi is in the same room or in another country, whether you need full GUI access or just a terminal, we have a method for you.

We will look at SSH, which provides a secure shell for terminal access. Perfect if you need to update the Pi, restart it, or run a Python script.

Then, we will move to VNC to get a full GUI screen that we can use as if we were directly connected to the Raspberry Pi.

Finally, we’ll examine the newest remote access method, Raspberry Pi Connect. This product provides either terminal or GUI access from anywhere in the world using a web browser. You’ll need a free Raspberry Pi account to use Pi Connect.

Here is the Table of contents for today's video:

00:00 - Introduction
02:15 - Pi Networking
07:34 - Raspberry Pi Boards
08:41 - Getting your IP Address
09:44 - SSH
14:25 - VNC
17:36 - Raspberry Pi Connect
22:42 - Conclusion

I hope you find the video useful. Be sure to check out the accompanying article on the DroneBot Workshop website

This topic was modified 11 months ago by DroneBot Workshop

"Never trust a computer you can’t throw out a window." — Steve Wozniak


   
Quote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 5 years ago
Posts: 8047
 

@dronebot-workshop Maybe I missed the point, if so these remarks are pointless and can be ignored, but at least on my Mac I log in from the terminal app with user@hostname.local. NO need to know the IP. The user/password and hostname are all set up in RaspberryPiImager as well as enabling the ssh service. Couldn't be easier. I am confident Windows users can do the same. From there enabling VNC and/or Pi Connect is a snap and all done headless.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, 360, fairly knowledge in PC plus numerous MPU's & MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
ReplyQuote
(@dronebot-workshop)
Workshop Guru Admin
Joined: 6 years ago
Posts: 1130
Topic starter  

@zander That works for you because your router has a modern DNS server. It doesn't work for everyone.  The IP address will work for everyone.

And yes, setting up SSH in the imager and doing it all headless is indeed the way to go.

😎

Bill

This post was modified 11 months ago 2 times by DroneBot Workshop

"Never trust a computer you can’t throw out a window." — Steve Wozniak


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 5 years ago
Posts: 8047
 

@dronebot-workshop Thanks Bill, I did not know that about the router. Is there a feature missing, or some other way of identifying which routers will work?

Now I don't remember how to get the IP if I am flashing a new board like a Pi ZERO 2. Is that the old style empty ssh and wpa_supplicant trick?

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, 360, fairly knowledge in PC plus numerous MPU's & MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 5 years ago
Posts: 8047
 

@dronebot-workshop I just discovered the following resource, it shows a few more options like USB and ethernet. Always good to have choices!

https://www.tomshardware.com/reviews/raspberry-pi-headless-setup-how-to,6028.html

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, 360, fairly knowledge in PC plus numerous MPU's & MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
ReplyQuote
(@cristishor201)
Member
Joined: 4 years ago
Posts: 30
 

Posted by: @zander

@dronebot-workshop Maybe I missed the point, if so these remarks are pointless and can be ignored, but at least on my Mac I log in from the terminal app with user@hostname.local. NO need to know the IP. The user/password and hostname are all set up in RaspberryPiImager as well as enabling the ssh service. Couldn't be easier. I am confident Windows users can do the same. From there enabling VNC and/or Pi Connect is a snap and all done headless.

On my Windows 7, I login as well with

user@hostname.local

through using ssh with a passphrase.
I installed the bonjour app for printers, and voilla.

I am planning to use a headless Linux on Raspberry Pi machine, so VNC is useless for me, as not having GUI on Pi.

I didn't heard of Pi Connect... is it a network protocol like Esp Now between Peers ?
... I watched Bill's video, and it's seems it's an easier way than port forwarding to connect to Pi from any PC.

Acordingly to the documentation, it doesn't let you choose another external web server, so I expect it will come with a subscription (paid) plan soon. So I keep my pessimistic point of view about it. 😐 

 


   
ReplyQuote
(@cristishor201)
Member
Joined: 4 years ago
Posts: 30
 

Posted by: @zander

https://www.tomshardware.com/reviews/raspberry-pi-headless-setup-how-to,6028.html

I tried using that sharing internet option on my windows 7 machine, which didn't work.
Short things short, it may need a reboot right after you select the adapter, but I didn't successed for my Pi to receive internet from my laptop, so I gave up at it.
I could connect through ssh at it, but

sudo apt update

didn't work.

 


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 5 years ago
Posts: 8047
 

@cristishor201 They actually do NOT want you using their server, they encourage direct connections.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, 360, fairly knowledge in PC plus numerous MPU's & MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 5 years ago
Posts: 8047
 

@cristishor201 It worked for me the first time. I hope you noticed you need to be running 64-bit Bookworm.

Here is a reminder about the complete installation procedure.

Screenshot 2024 07 15 at 20.22.19

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, 360, fairly knowledge in PC plus numerous MPU's & MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
ReplyQuote
(@cristishor201)
Member
Joined: 4 years ago
Posts: 30
 

Posted by: @zander

@cristishor201 It worked for me the first time. I hope you noticed you need to be running 64-bit Bookworm.

Here is a reminder about the complete installation procedure.

-- attachment is not available --

 

On my second post, I commented about this sharing internet option, from the link you posted it above; not the Raspberry Pi Connect described by Bill.  

Right-click on the adapter that's connected to the Internet, and select properties.

 

3. Enable "Allow other network users to connect" on the "Sharing" tab.

 

4. Select the Ethernet port that is connected to the Raspberry Pi from the "Home networking connection" menu, and click Ok.

 


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 5 years ago
Posts: 8047
 

@cristishor201 That is totally different.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, 360, fairly knowledge in PC plus numerous MPU's & MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
ReplyQuote