Notifications
Clear all

Headless raspberry pi.

5 Posts
3 Users
4 Likes
437 Views
(@sj_h1)
Member
Joined: 4 years ago
Posts: 167
Topic starter  

I would like to see a video on making a headless raspberry pi. There are some video out there but they are all old, out of date, and have errors. Please use window remote desktop connection.


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

@sj_h1 I just googled that question and here is the instructions. It is waaaaay easier now with the new imager.

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, and 360, fairly knowledge in PC plus numerous MPU's and 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.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


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

@sj_h1 I just noticed you want to use RDP, here is a link https://pimylifeup.com/raspberry-pi-remote-desktop/

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and 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.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
Inq
 Inq
(@inq)
Member
Joined: 2 years ago
Posts: 1900
 

Posted by: @sj_h1

I would like to see a video on making a headless raspberry pi. There are some video out there but they are all old, out of date, and have errors. Please use window remote desktop connection.

I can't do a nice video like @dronebot-workshop, but here is what I'm doing...

I've just run through doing this about a dozen times in the last couple of weeks.  If you're hard set about using Windows Remote Desktop, you'll have to use one of the tutorials where you have to install xrdp on the Pi.  In the OS Bullseye (one back from current) they have built-in support using VNC Server (nothing to load) expecting us to use the free version of VNC Viewer on our Windows boxes.  It works about the same as Windows Remote Desktop.  I've had no complaints.  

Also, the process seems to now be in a state of flux since the RasPi5 is such a different hardware beast that it has broken a lot of things.  The newest OS Bookworm no longer supports VNC Server and has gone to something more obscure and less mature.  https://forums.raspberrypi.com/viewtopic.php?t=357582

As my primary target is a Raspberry Pi Zero-W and Bookworm will not run on it, I've backed up to using Bullseye anyway.  Setting up headless on it is pretty simple, even for the case where you have to use headless during the install phase and don't have ethernet (Pi Zero W).

  1. I'll assume you've done some installs before and don't need a "press this button with pictures" for every step.
  2. Use the Raspberry Pi Imager.  I have v 1.8.3 
  3. Select your Raspberry Pi Device
  4. Choose OS:  Pick Bullseye Desktop or Full
  5. Choose Storage:  pick your SD - If you want something fancy... like SSD, Dongle or boot over ethernet... I can't help you.
  6. Hit Next
  7. At the Use OS customisation? (sic) dialog, select Edit Settings
    1. Fill out all sections.  I like not having to use Pi, raspberry.
      image

       

    2. On services tab, Enable SSH and Use password authentication
    3. Save... and back at sic, press YES to Would you like to apply OS customisation settings?
  8. Install loaded SD into RasPi - It'll take a while before it lets you in depending on your RasPi's speed and SD size.  At least 3 minutes for my Pi-Zero and RasPi4.
  9. Connect using some kind of SSH terminal.  I typically use PuTTY, but I understand Windows Power Shell will work also: SSH <computer name> -l <user name>
  10. Once in run:  sudo raspi-config
  11. Change the following items:
    1. Display / VNC Resolution : to your desired screen resolution.
    2. Interface Options : I3 VNC : Enable
    3. Finish
  12. Probably should do:
    1. sudo apt-get update
    2. sudo apt-get upgrade
  13. Reboot if it tells you.
  14. Install and run VNC Viewer - https://www.realvnc.com/en/connect/download/viewer/
    1. To setup a connection, File / New connection...
    2. Fill out VNC Server:
    3. Name (friendly name)
      image

       

    4. All the rest of the defaults will work fine.
  15. Double click your new entry 
  16. It'll prompt you for saving a certification (just to confirm you're talking to the computer you think you are) your username, password
  17. Should get your desktop.
    image

 

3 lines of code = InqPortal = Complete IoT, App, Web Server w/ GUI Admin Client, WiFi Manager, Drag & Drop File Manager, OTA, Performance Metrics, Web Socket Comms, Easy App API, All running on ESP8266...
Even usable on ESP-01S - Quickest Start Guide


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

@inq Excellent tutorial Dennis. I have bookmarked it as you have a few twists in there I was not using. As far as step 5, I use an SSD connected to my USB port and it is no different from an SD card. Of course the big advantage is they last a lot longer than a normal SD, don't know about the endurance line of SD's which is advisable. If you are insistent on an SD, check out how to minimize wear, The Swiss Guy has a video HERE

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and 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.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
Inst-Tech reacted
ReplyQuote