Date   

Re: Easy RPi headless configuration - enable SSH and WiFi before booting Stretch

Randy Hall <ku9cor@...>
 

I appreciate that it's a hobby and all that. Really, I do. 

But a website that conveniently creates the wpa_supplicant.conf for you by soliciting your wifi password (PSK) and network name in a web form? The security consultant in me cringes at this.

I would not suggest that anyone ever use such a site, even if the site owner swears that they don't store or use the information in any way. You are counting on the site operator having an impeccable security practice in place, which is not something you are likely to know. 

In short, don't transmit your passwords over the internet in the clear (ie. unencrypted), and especially don't transmit them to sites you don't know or trust. 

Okay, back to enjoying the hobby. 


On Fri, Apr 6, 2018, 6:30 AM w4oa@... <w4oa@...> wrote:

To enable wireless access on boot, create the “wpa_supplicant.conf” file (no quotes) for your wireless network using the pistar.uk Pi-Star Tools WiFiBuilder http://www.pistar.uk/wifi_builder.php on the pistar.uk website. Copy that file to the SD card /boot partition.


Re: Easy RPi headless configuration - enable SSH and WiFi before booting Stretch

 

Ah.  raspi-config.  I'd forgotten about that in this GUI world. 
raspi-config does this: 

    systemctl enable vncserver-x11-serviced.service
    systemctl start vncserver-x11-serviced.service

I guess I can have my instructions call for SSHing and then doing those commands.
Right now the instructions say to hook up a HDMI display or TV, and a mouse and keyboard. 
This is better.
Thanks!
   Tadd / KA2DEW


On Apr 05, 2018, at 08:00 PM, John D Hays - K7VE <john@...> wrote:

After you SSH in :)

On Thu, Apr 5, 2018 at 4:57 PM, w4oa@... <w4oa@...> wrote:
Yes, VNC can be enabled with raspi-config

Mitch W4OA







--


John D. Hays
Edmonds, WA
K7VE

   





Re: Easy RPi headless configuration - enable SSH and WiFi before booting Stretch

 

After you SSH in :)

On Thu, Apr 5, 2018 at 4:57 PM, w4oa@... <w4oa@...> wrote:
Yes, VNC can be enabled with raspi-config

Mitch W4OA




--


John D. Hays
Edmonds, WA
K7VE

   


Re: Easy RPi headless configuration - enable SSH and WiFi before booting Stretch

w4oa@arrl.net
 

Yes, VNC can be enabled with raspi-config

Mitch W4OA


Re: Easy RPi headless configuration - enable SSH and WiFi before booting Stretch

Ray Wells
 

Just a heads up for Linux users ......

For Linux users using dd (disk duplicate) to create the image on the SD card, dd will overwrite the file ssh created with the instructions below. dd creates the partitions and writes the data in a single step process. For Linux (probably Mac too) create the SD card first, and then add a blank file ssh to the /boot partition.

For the time being, at least, the Boot partition on the newly created SD card is FAT32 and readable by Windows or Linux.

The instruction is here ... https://www.raspberrypi.org/documentation/remote-access/ssh/

Ray vk2tv



On 06/04/18 01:42, w4oa@... wrote:
If you run your Raspberry Pi headless (no keyboard or monitor), you know what a pain it is to get it configured, now that SSH is disabled in Stretch. This especially true with the RPi Zero and Zero W, with no Ethernet port.
 
There has to be an easier way! With a little digging, there is an easier way.
 
Before writing your image to the SD card, your /boot partition is accessible on your Mac, Linux, or Win box. Create an empty file “ssh”, no extension (no quotes) in the /boot partition. This will enable SSH login for the first boot. On your Mac or Linux box, the command to create an empty file is “touch ssh” (no quotes).
 
To enable wireless access on boot, create the “wpa_supplicant.conf” file (no quotes) for your wireless network using the pistar.uk Pi-Star Tools WiFiBuilder http://www.pistar.uk/wifi_builder.php on the pistar.uk website. Copy that file to the SD card /boot partition.
 
Put the SD card in your RPi, wait for it to boot, find its wireless ip or Ethernet ip address, log in via SSH, (user pi password raspberry) and then run sudo raspi-config to finish your configuration.
 
Mitch W4OA
 


Re: Easy RPi headless configuration - enable SSH and WiFi before booting Stretch

AA0CB <kg5jup@...>
 

Sorry I got click happy.,,,





On Thu, Apr 5, 2018 at 10:42 AM, w4oa@... <w4oa@...> wrote:
If you run your Raspberry Pi headless (no keyboard or monitor), you know what a pain it is to get it configured, now that SSH is disabled in Stretch. This especially true with the RPi Zero and Zero W, with no Ethernet port.
 
There has to be an easier way! With a little digging, there is an easier way.
 
Before writing your image to the SD card, your /boot partition is accessible on your Mac, Linux, or Win box. Create an empty file “ssh”, no extension (no quotes) in the /boot partition. This will enable SSH login for the first boot. On your Mac or Linux box, the command to create an empty file is “touch ssh” (no quotes).
 
To enable wireless access on boot, create the “wpa_supplicant.conf” file (no quotes) for your wireless network using the pistar.uk Pi-Star Tools WiFiBuilder http://www.pistar.uk/wifi_builder.php on the pistar.uk website. Copy that file to the SD card /boot partition.
 
Put the SD card in your RPi, wait for it to boot, find its wireless ip or Ethernet ip address, log in via SSH, (user pi password raspberry) and then run sudo raspi-config to finish your configuration.
 
Mitch W4OA
 



Re: Easy RPi headless configuration - enable SSH and WiFi before booting Stretch

AA0CB <kg5jup@...>
 

There is also a free program out there called "pi-bakery" I have had success with this.  

On Thu, Apr 5, 2018 at 10:42 AM, w4oa@... <w4oa@...> wrote:
If you run your Raspberry Pi headless (no keyboard or monitor), you know what a pain it is to get it configured, now that SSH is disabled in Stretch. This especially true with the RPi Zero and Zero W, with no Ethernet port.
 
There has to be an easier way! With a little digging, there is an easier way.
 
Before writing your image to the SD card, your /boot partition is accessible on your Mac, Linux, or Win box. Create an empty file “ssh”, no extension (no quotes) in the /boot partition. This will enable SSH login for the first boot. On your Mac or Linux box, the command to create an empty file is “touch ssh” (no quotes).
 
To enable wireless access on boot, create the “wpa_supplicant.conf” file (no quotes) for your wireless network using the pistar.uk Pi-Star Tools WiFiBuilder http://www.pistar.uk/wifi_builder.php on the pistar.uk website. Copy that file to the SD card /boot partition.
 
Put the SD card in your RPi, wait for it to boot, find its wireless ip or Ethernet ip address, log in via SSH, (user pi password raspberry) and then run sudo raspi-config to finish your configuration.
 
Mitch W4OA
 



Re: Easy RPi headless configuration - enable SSH and WiFi before booting Stretch

 

Is VNC just as easy to enable?
Thanks!

On Apr 05, 2018, at 01:34 PM, "Arnold Harding. - KQ6DI" <kq6di@...> wrote:

From: w4oa@...
Sent: Thursday, April 5, 2018 8:42 AM
To: RaspberryPi-4-HamRadio@groups.io
Subject: [RaspberryPi-4-HamRadio] Easy RPi headless configuration - enable SSH and WiFi before booting Stretch

 

If you run your Raspberry Pi headless (no keyboard or monitor), you know what a pain it is to get it configured, now that SSH is disabled in Stretch. This especially true with the RPi Zero and Zero W, with no Ethernet port.

 

There has to be an easier way! With a little digging, there is an easier way.

 

Before writing your image to the SD card, your /boot partition is accessible on your Mac, Linux, or Win box. Create an empty file “ssh”, no extension (no quotes) in the /boot partition. This will enable SSH login for the first boot. On your Mac or Linux box, the command to create an empty file is “touch ssh” (no quotes).

 

To enable wireless access on boot, create the “wpa_supplicant.conf” file (no quotes) for your wireless network using the pistar.uk Pi-Star Tools WiFiBuilder http://www.pistar.uk/wifi_builder.php on the pistar.uk website. Copy that file to the SD card /boot partition.

 

Put the SD card in your RPi, wait for it to boot, find its wireless ip or Ethernet ip address, log in via SSH, (user pi password raspberry) and then run sudo raspi-config to finish your configuration.

 

Mitch W4OA

 


 


Re: Easy RPi headless configuration - enable SSH and WiFi before booting Stretch

Arnold Harding - KQ6DI
 

I’ve been using this method for quite a while on several Pi’s.  Works great.

 

Arnold

KQ6DI

 

From: w4oa@...
Sent: Thursday, April 5, 2018 8:42 AM
To: RaspberryPi-4-HamRadio@groups.io
Subject: [RaspberryPi-4-HamRadio] Easy RPi headless configuration - enable SSH and WiFi before booting Stretch

 

If you run your Raspberry Pi headless (no keyboard or monitor), you know what a pain it is to get it configured, now that SSH is disabled in Stretch. This especially true with the RPi Zero and Zero W, with no Ethernet port.

 

There has to be an easier way! With a little digging, there is an easier way.

 

Before writing your image to the SD card, your /boot partition is accessible on your Mac, Linux, or Win box. Create an empty file “ssh”, no extension (no quotes) in the /boot partition. This will enable SSH login for the first boot. On your Mac or Linux box, the command to create an empty file is “touch ssh” (no quotes).

 

To enable wireless access on boot, create the “wpa_supplicant.conf” file (no quotes) for your wireless network using the pistar.uk Pi-Star Tools WiFiBuilder http://www.pistar.uk/wifi_builder.php on the pistar.uk website. Copy that file to the SD card /boot partition.

 

Put the SD card in your RPi, wait for it to boot, find its wireless ip or Ethernet ip address, log in via SSH, (user pi password raspberry) and then run sudo raspi-config to finish your configuration.

 

Mitch W4OA

 

 


Easy RPi headless configuration - enable SSH and WiFi before booting Stretch

w4oa@arrl.net
 
Edited

If you run your Raspberry Pi headless (no keyboard or monitor), you know what a pain it is to get it configured, now that SSH is disabled in Stretch. This especially true with the RPi Zero and Zero W, with no Ethernet port.
 
There has to be an easier way! With a little digging, there is an easier way.
 
AFTER writing your image to the SD card, your /boot partition is accessible on your Mac, Linux, or Win box. Create an empty file “ssh”, no extension (no quotes) in the /boot partition. This will enable SSH login for the first boot. On your Mac or Linux box, the command to create an empty file is “touch ssh” (no quotes).
 
To enable wireless access on boot, create the “wpa_supplicant.conf” file (no quotes) for your wireless network using the pistar.uk Pi-Star Tools WiFiBuilder http://www.pistar.uk/wifi_builder.php on the pistar.uk website. Copy that file to the SD card /boot partition.
 
Put the SD card in your RPi, wait for it to boot, find its wireless ip or Ethernet ip address, log in via SSH, (user pi password raspberry) and then run sudo raspi-config to finish your configuration.
 
Mitch W4OA

- Corrected to state you create the empty ssh file and write the wifi config file AFTER you write the RPi image to the SD card.

 


Re: Replying to posts

Jim Higgins
 

It's probably an email client problem.

The headers in your message below contained a "Reply-To:" header that contained the address of the group. If an email client replies to that message using your email address (("From:" header) rather than the address in the "Reply-To:" header (if present), then that email client isn't behaving properly.

Jim H



Received from Max via Groups.Io at 4/3/2018 07:43 PM UTC:

Using Yahoo mail, when I reply to a comment, it puts the email address of the person who created the post, not the address of "RaspberryPi-4-HamRadio@groups.io", I have to do that manually.

Is this a Yahoo Mail, a groups.io or the sending party problem?

Max Harper


Re: Stratum One NTP server using a RPi

Perry Ogletree
 

You are correct for a straight time use like an NTP server but the previous poster was talking frequency standards. Pico seconds matter there.

Perry K4PWO 



Sent from my Sprint Samsung Galaxy S7 edge.

-------- Original message --------
From: w4oa@...
Date: 4/3/18 3:58 PM (GMT-06:00)
To: RaspberryPi-4-HamRadio@groups.io
Subject: Re: [RaspberryPi-4-HamRadio] Stratum One NTP server using a RPi

Very true, but the timing gps modules are much more expensive. A few nano seconds won't make much - any? difference for my use.

Mitch W4OA
ps check out the time-nuts mailing list if you want pico second accuracy, and be sure to compensate for the length of your gps timing antenna lead. :)


Re: Replying to posts

 

Not a problem, though it's not what most people expect to happen when dealing with a mailing list. This is actually proper behavior, according to the IETF standards.

Matthew Pitts
N8OHU


On April 3, 2018 3:43:36 PM EDT, "Max via Groups.Io" <kg4pid@...> wrote:
Using Yahoo mail, when I reply to a comment, it puts the email address of the person who created the post, not the address of "RaspberryPi-4-HamRadio@groups.io", I have to do that manually.

Is this a Yahoo Mail, a groups.io or the sending party problem?

Max Harper

--
Sent from my Android device with K-9 Mail. Please excuse my brevity.


Re: Stratum One NTP server using a RPi

w4oa@arrl.net
 

Very true, but the timing gps modules are much more expensive. A few nano seconds won't make much - any? difference for my use.

Mitch W4OA
ps check out the time-nuts mailing list if you want pico second accuracy, and be sure to compensate for the length of your gps timing antenna lead. :)


Re: Stratum One NTP server using a RPi

Perry Ogletree
 

You have to find a GPS module based on one of the “time standard” chips instead of plain navigation.  As an example, many of the cheap GPS modules are based on the U-Blox Neo 6M module which only support a 1 cps pulse.  The pin compatible Neo 6T supports a programable frequency out that can be set for 10 MHz or even higher (I believe it tops out around 20 MHz but I’d have to look at the spec sheet).  The time standards are built to tighter specs and have precision master clocks based on TCXO or OCXO.

 

Perry K4PWO

 

From: RaspberryPi-4-HamRadio@groups.io <RaspberryPi-4-HamRadio@groups.io> On Behalf Of Teton Amateur Radio Repeater Association (TARRA)
Sent: Tuesday, April 3, 2018 10:41 AM
To: RaspberryPi-4-HamRadio@groups.io
Subject: Re: [RaspberryPi-4-HamRadio] Stratum One NTP server using a RPi

 

Hello Group,

So along this same subject, is there any (reasonable) way to use one of these for a 10 MHz frequency standard for test equipment?

Mick - W7CAT

----- Original Message -----
From: "mathison ott"
To: RaspberryPi-4-HamRadio@groups.io
Sent: Tuesday, April 03, 2018 12:02:48 AM
Subject: Re: [RaspberryPi-4-HamRadio] Stratum One NTP server using a RPi

> not the least bit over kill. I use a rpi to keep time for all the computers
> on my network including the computer I use for wsjt-x modes. I use a Utart
> 3v/5v gps module, with a pps out. The setting up the server wasn't to bad,
> including compiling the NTPD with the pps support. FYI I still looked up
> and used local reference clock at my university and for my geographical
> region to further reference. No problems in 5 years!!!!
>
>
> 73
> mathison kj6dzb
>

--

Be sure to check out all the latest at our web site!

Image removed by sender.


Re: Replying to posts

Mark J Culross
 

Max:
 
If your Yahoo mail version has not removed it, you might be able to use the links in footer at the bottom of the message you are replying to . . . I am likewise using Yahoo mail (using firefox and/or IE as my browser) & mine gives me the choice of "Reply To Group" & "Reply To Sender" as well as others . . . hopefully that helps !!
 
Mark J Culross
KD5RXT


Replying to posts

Max
 

Using Yahoo mail, when I reply to a comment, it puts the email address of the person who created the post, not the address of "RaspberryPi-4-HamRadio@groups.io", I have to do that manually.

Is this a Yahoo Mail, a groups.io or the sending party problem?

Max Harper


Re: Stratum One NTP server using a RPi

Max
 

Personally I'd rather use a generic interface that is not Pi specific for some things. Sure it make for a nice (but pricey at $89.05) package. What happens in a few years when something better than a Pi come out and none of your interfaces will work? You can get a very nice interface for roughly half that.

On Tuesday, April 3, 2018, 11:17:20 AM CDT, John D Hays - K7VE <john@...> wrote:


You might be interested in the work being done at NW Digital Radio (http://nwdigitalradio.com/2018-state-of-the-union/) on their next generation Raspberry Pi HAT.  The HAT contains 2 DIN-6 connectors providing audio IN/OUT and PTT for operating modes such as WSJT-X, Direwolf (Packet with different modems with rates into the kilobits range), Fldigi, Digital Voice, etc.  and will contain a built-in GPS/RTC with PPS for high accuracy (STRATUM-1) time and location.

On Mon, Apr 2, 2018 at 10:31 PM, w4oa@... <w4oa@...> wrote:
Anyone using a RPi with a gps as a NTP server? Should work wonders for FT8, even if is total overkill. :)

I am working on one using an Adafruit gps, got it working today. Will be checking accuracy over the next few days. The biggest hassle so far is the wonky serial port/bluetooth port on the Pi.

Mitch W4OA


Re: Stratum One NTP server using a RPi

 

You might be interested in the work being done at NW Digital Radio (http://nwdigitalradio.com/2018-state-of-the-union/) on their next generation Raspberry Pi HAT.  The HAT contains 2 DIN-6 connectors providing audio IN/OUT and PTT for operating modes such as WSJT-X, Direwolf (Packet with different modems with rates into the kilobits range), Fldigi, Digital Voice, etc.  and will contain a built-in GPS/RTC with PPS for high accuracy (STRATUM-1) time and location.

On Mon, Apr 2, 2018 at 10:31 PM, w4oa@... <w4oa@...> wrote:
Anyone using a RPi with a gps as a NTP server? Should work wonders for FT8, even if is total overkill. :)

I am working on one using an Adafruit gps, got it working today. Will be checking accuracy over the next few days. The biggest hassle so far is the wonky serial port/bluetooth port on the Pi.

Mitch W4OA
_._,_._,_

--


John D. Hays
Edmonds, WA
K7VE

   


Re: Stratum One NTP server using a RPi

w4oa@arrl.net
 

Looks like some interest! I am using the Adafruit Ultimate GPS Breakout - 66 channel w/10 Hz updates - Version 3 https://www.adafruit.com/product/746 and beta-tester's RPi-GPS-PPS-StratumOne github install script https://github.com/beta-tester/RPi-GPS-PPS-StratumOne/blob/master/install-gps-pps.sh which is almost plug 'n play. I had problems because I was using my new RPi 3+. Communicated with beta-tester who identified my problem as BT interfering with the serial port, which is used by the gps. He promptly made a script change and added instructions to fix. But if you have a RPi 2 which is now unused, it is perfect. I have now successfully installed the software on a RPi 2, 3+, and 0. The 0 also required disabling the BT. The Adafruit Ultimate v3 seems a little deaf compared with my 2 qrp-labs QLG1 GPS Receivers. Beware that the RPi gpio pins are 3.3v, NOT 5v, and the rx/tx pins from the gps to the gpio pins must be connect rx to tx. Connect accordingly! A very simple and worthwhile project!!

Mitch W4OA

5541 - 5560 of 13409