Stephenlewis1905
Posts: 1
Joined: Sun Apr 26, 2020 9:49 am

Build solution using Windows PC

Sun Apr 26, 2020 10:04 am

Hi Guys

sorry if this is a NOOB question, but I'll give it a go anyway.

What I'd like to be able to do is build PI projects directly on the SD card whilst still in my Windows PC instead of plugging it into the PI after formatting and loading the OS via the PC. Reason is that working directly on the PI means moving my monitor, mouse and keyboard from the desktop to the PI. If SSH was out of the box I could do it headless and connect using Putty, but as far as I can see it isn't.

I tried running a VM using VMWare Workstation on my PC, but that doesn't allow you to save the VM as an .iso to install onto the SD card. I then tried a Linux emulator (cygwin), and mounted the SD drive, but that didn't seem to do what I want either.

Any advice would be welcome

thanks

User avatar
thagrol
Posts: 3077
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK
Contact: Website

Re: Build solution using Windows PC

Sun Apr 26, 2020 3:19 pm

Stephenlewis1905 wrote:
Sun Apr 26, 2020 10:04 am
If SSH was out of the box I could do it headless and connect using Putty, but as far as I can see it isn't.
It isn't but it's trivial to enable. Just create a file called "ssh" or "ssh.txt" in the boot partition (that's the only one windows will be able to access) and reboot.

I'm surprised you missed that when checking the Help pages (https://www.raspberrypi.org/help/). You did do that before posting?
Arguing with strangers on the internet since 1993.

fruitoftheloom
Posts: 23337
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Build solution using Windows PC

Sun Apr 26, 2020 3:55 pm

Stephenlewis1905 wrote:
Sun Apr 26, 2020 10:04 am
Hi Guys

sorry if this is a NOOB question, but I'll give it a go anyway.

What I'd like to be able to do is build PI projects directly on the SD card whilst still in my Windows PC instead of plugging it into the PI after formatting and loading the OS via the PC. Reason is that working directly on the PI means moving my monitor, mouse and keyboard from the desktop to the PI. If SSH was out of the box I could do it headless and connect using Putty, but as far as I can see it isn't.

I tried running a VM using VMWare Workstation on my PC, but that doesn't allow you to save the VM as an .iso to install onto the SD card. I then tried a Linux emulator (cygwin), and mounted the SD drive, but that didn't seem to do what I want either.

Any advice would be welcome

thanks

VMWare / VirtualBox and similar can not emulate ARM CPU Architecture, the only option is Qemu, time for a Google !
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...

User avatar
neilgl
Posts: 2183
Joined: Sun Jan 26, 2014 8:36 pm
Location: Near Aston Martin factory

Re: Build solution using Windows PC

Sun Apr 26, 2020 4:37 pm

Yes and if you also enable VNC server on your pi via raspi-config, you can put VNCviewer on your PC to look at and control the pi desktop GUI.

TheFireman
Posts: 23
Joined: Wed Apr 01, 2020 12:41 am

Re: Build solution using Windows PC

Tue Apr 28, 2020 11:43 pm

thagrol wrote:
Sun Apr 26, 2020 3:19 pm
Stephenlewis1905 wrote:
Sun Apr 26, 2020 10:04 am
If SSH was out of the box ..., but as far as I can see it isn't.
... Just create a file called "ssh" or "ssh.txt" in the boot partition (...) and reboot.
I'm surprised you missed that when checking the Help pages (https://www.raspberrypi.org/help/). You did do that before posting?

:geek: I'll see your "I'm surprised you missed that" and raise you
, SSH can be enabled by placing a file named ssh, without any extension, onto the boot partition of the SD card from another computer.
https://www.raspberrypi.org/documentati ... /README.md
;)

klricks
Posts: 7154
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: Build solution using Windows PC

Wed Apr 29, 2020 1:09 am

TheFireman wrote:
Tue Apr 28, 2020 11:43 pm
thagrol wrote:
Sun Apr 26, 2020 3:19 pm
Stephenlewis1905 wrote:
Sun Apr 26, 2020 10:04 am
If SSH was out of the box ..., but as far as I can see it isn't.
... Just create a file called "ssh" or "ssh.txt" in the boot partition (...) and reboot.
I'm surprised you missed that when checking the Help pages (https://www.raspberrypi.org/help/). You did do that before posting?

:geek: I'll see your "I'm surprised you missed that" and raise you
, SSH can be enabled by placing a file named ssh, without any extension, onto the boot partition of the SD card from another computer.
https://www.raspberrypi.org/documentati ... /README.md
;)
At first only ssh was accepted but because Windows Notepad or whatever has a habit of automatically appending .txt to the filename, the ssh enabling was changed to accept both ssh and ssh.txt
Unless specified otherwise my response is based on the latest and fully updated RPiOS Buster w/ Desktop OS.

TheFireman
Posts: 23
Joined: Wed Apr 01, 2020 12:41 am

Re: Build solution using Windows PC

Wed Apr 29, 2020 3:15 am

https://www.raspberrypi.org/documentati ... /README.md
;)
At first only ssh was accepted but because Windows Notepad or whatever has a habit of automatically appending .txt to the filename, the ssh enabling was changed to accept both ssh and ssh.txt
So we can't rely on even the Official Raspberry Pi Organization for up-to-date corrected documentation.

Oh, the horrors...

User avatar
DougieLawson
Posts: 39120
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Build solution using Windows PC

Wed Apr 29, 2020 9:45 am

TheFireman wrote:
Wed Apr 29, 2020 3:15 am
https://www.raspberrypi.org/documentati ... /README.md
;)
At first only ssh was accepted but because Windows Notepad or whatever has a habit of automatically appending .txt to the filename, the ssh enabling was changed to accept both ssh and ssh.txt
So we can't rely on even the Official Raspberry Pi Organization for up-to-date corrected documentation.

Oh, the horrors...
You can send updates for RPF/RPT docs. That stuff is ALL on github. Write your update as a pull request.
https://github.com/raspberrypi/document ... /README.md
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

GlowInTheDark
Posts: 683
Joined: Sat Nov 09, 2019 12:14 pm

Re: Build solution using Windows PC

Wed Apr 29, 2020 10:20 am

TheFireman wrote:
Wed Apr 29, 2020 3:15 am
https://www.raspberrypi.org/documentati ... /README.md
;)
At first only ssh was accepted but because Windows Notepad or whatever has a habit of automatically appending .txt to the filename, the ssh enabling was changed to accept both ssh and ssh.txt
So we can't rely on even the Official Raspberry Pi Organization for up-to-date corrected documentation.

Oh, the horrors...
It's not like the documentation was incorrect in any way. It is and always will be the case that if you put out a file called "ssh" WITHOUT ANY EXTENSION, it will work.

It's just that other things might also work.

I'm still assuming, of course, that any day now, it will also work if you put out a file called "ssh.xlsx".
That is necessary in order to keep the Excel users happy.

And, of course, "ssh.docx" for the Word crowd.
GitD's list of things that are not ready for prime time:
1) IPv6
2) 64 bit OSes
3) USB 3
4) Bluetooth

User avatar
thagrol
Posts: 3077
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK
Contact: Website

Re: Build solution using Windows PC

Wed Apr 29, 2020 10:34 am

TheFireman wrote:
Tue Apr 28, 2020 11:43 pm
:geek: I'll see your "I'm surprised you missed that" and raise you
I see you've taken that out of context and entirely missed the point.

It was a hint to the OP (and anyone else reading this thread) that if they'd read the documentation before posting they would have found the answer themself.

Asking without checking the docs, searching the forum, or searching the internet is quite common around here. And often quite annoying.

I could have responded with four letters (RTFM) but that would have been insulting, unhelpful, and aggressive. But maybe if I had you'd have got my point.
Arguing with strangers on the internet since 1993.

bjtheone
Posts: 862
Joined: Mon May 20, 2019 11:28 pm
Location: The Frozen North (AKA Canada)

Re: Build solution using Windows PC

Wed Apr 29, 2020 11:48 am

thagrol wrote:
Wed Apr 29, 2020 10:34 am
I could have responded with four letters (RTFM) but that would have been insulting, unhelpful, and aggressive. But maybe if I had you'd have got my point.
and I find it a sad commentary on society that RTFM is viewed that way. In just 4 letters, you have assured the questioner there is a solution, and told them how to discover it themselves. If they actually did read the fine manual they might even acquire further knowledge, in the process of answering their question. And even further they would have discovered a way to answer most of their future critically important, must be answered right now questions in a timely matter, rather than continuing to have to rely on the fickleness of the internet, and subject matter experts sleep habits.

User avatar
HawaiianPi
Posts: 5838
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: Build solution using Windows PC

Wed Apr 29, 2020 12:02 pm

Stephenlewis1905 wrote:
Sun Apr 26, 2020 10:04 am
If SSH was out of the box I could do it headless and connect using Putty, but as far as I can see it isn't.
thagrol wrote:
Sun Apr 26, 2020 3:19 pm
It isn't but it's trivial to enable. Just create a file called "ssh" or "ssh.txt" in the boot partition (that's the only one windows will be able to access) and reboot.
I'd also like to add that you can even configure WiFi before first boot, so it is possible, and quite simple to set up a completely headless Raspberry Pi with SSH and wireless network, without ever connecting it to a keyboard or screen.
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

User avatar
DougieLawson
Posts: 39120
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Build solution using Windows PC

Wed Apr 29, 2020 12:53 pm

thagrol wrote:
Wed Apr 29, 2020 10:34 am
I could have responded with four letters (RTFM) but that would have been insulting, unhelpful, and aggressive. But maybe if I had you'd have got my point.
Nothing wrong with "read the fine manual", although I prefer RTFWP (read the fine web page) these days.

It's up to the reader whether they want to read those "F"s as expletives.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

User avatar
thagrol
Posts: 3077
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK
Contact: Website

Re: Build solution using Windows PC

Wed Apr 29, 2020 3:10 pm

@ bjtheone and DougieLawson:

There's nothing worng with referring folks to the documentation, I've done it and will continue to do so. The problem, as I see it, is with that particular acronym especially when it's the sole contents of a reply.

But perhaps I'm still tainted by my experiences with usenet. Back them RTFM was often the respone of someone who knew the answer but chose not to provide it or often to even say where the FM could be found.
Arguing with strangers on the internet since 1993.

User avatar
DougieLawson
Posts: 39120
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Build solution using Windows PC

Wed Apr 29, 2020 3:31 pm

thagrol wrote:
Wed Apr 29, 2020 3:10 pm
@ bjtheone and DougieLawson:

There's nothing worng with referring folks to the documentation, I've done it and will continue to do so. The problem, as I see it, is with that particular acronym especially when it's the sole contents of a reply.

But perhaps I'm still tainted by my experiences with usenet. Back them RTFM was often the respone of someone who knew the answer but chose not to provide it or often to even say where the FM could be found.
It's a good thing the days of Lusenet are done.
RTFM or RTFWP without a link is just rude. It's almost as rude as LMGTFY (If I were an American, I'd plead the 5th on that).

Although, as ever, this comes down to new posters not bothering with that ever so simple Google search before they post on here. It's amazing how many threads are already answered on here or on StackOverflow/StackExchange.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

User avatar
rpdom
Posts: 17172
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Build solution using Windows PC

Wed Apr 29, 2020 3:33 pm

DougieLawson wrote:
Wed Apr 29, 2020 3:31 pm
It's a good thing the days of usenet are done.
Not completely. Some parts of it are still active(ish). I still occasionally read and sometimes post to a group I've been on for some time.
Unreadable squiggle

W. H. Heydt
Posts: 12648
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: Build solution using Windows PC

Wed Apr 29, 2020 4:22 pm

GlowInTheDark wrote:
Wed Apr 29, 2020 10:20 am
I'm still assuming, of course, that any day now, it will also work if you put out a file called "ssh.xlsx".
That is necessary in order to keep the Excel users happy.

And, of course, "ssh.docx" for the Word crowd.
"ssh.odt" would make more sense...given that OpenOffice is a standard part of the full Raspbian.

W. H. Heydt
Posts: 12648
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: Build solution using Windows PC

Wed Apr 29, 2020 4:25 pm

thagrol wrote:
Wed Apr 29, 2020 10:34 am
I could have responded with four letters (RTFM) but that would have been insulting, unhelpful, and aggressive. But maybe if I had you'd have got my point.
I once saw a post in comp.unix.questions that (after describing the problem) said, "Don't tell be to RTFM if you WTFM." It was pertinent, because some of the regulars there had not only written the manual, but the programs as well.

GlowInTheDark
Posts: 683
Joined: Sat Nov 09, 2019 12:14 pm

Re: Build solution using Windows PC

Wed Apr 29, 2020 6:05 pm

W. H. Heydt wrote:
Wed Apr 29, 2020 4:22 pm
GlowInTheDark wrote:
Wed Apr 29, 2020 10:20 am
I'm still assuming, of course, that any day now, it will also work if you put out a file called "ssh.xlsx".
That is necessary in order to keep the Excel users happy.

And, of course, "ssh.docx" for the Word crowd.
"ssh.odt" would make more sense...given that OpenOffice is a standard part of the full Raspbian.
Irrelevant.

The whole point of the "drop a file in the FAT32 partition" hack is that it is Windows-centric.
It's all based on making it as easy as possible for the non-Unix/non-Linux "I am a Windows person only" type of user.
GitD's list of things that are not ready for prime time:
1) IPv6
2) 64 bit OSes
3) USB 3
4) Bluetooth

TheFireman
Posts: 23
Joined: Wed Apr 01, 2020 12:41 am

Re: Build solution using Windows PC

Wed Apr 29, 2020 7:59 pm

from a terminal, execute the following very complicated, very long command

touch ssh

User avatar
thagrol
Posts: 3077
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK
Contact: Website

Re: Build solution using Windows PC

Wed Apr 29, 2020 8:32 pm

TheFireman wrote:
Wed Apr 29, 2020 7:59 pm
from a terminal, execute the following very complicated, very long command

touch ssh
And how precosely are you going to do that when no keyboard, mouse, and monitor are connected?

And you forgot the reboot.
Arguing with strangers on the internet since 1993.

jahboater
Posts: 5759
Joined: Wed Feb 04, 2015 6:38 pm
Location: West Dorset

Re: Build solution using Windows PC

Wed Apr 29, 2020 8:43 pm

TheFireman wrote:
Wed Apr 29, 2020 7:59 pm
from a terminal, execute the following very complicated, very long command

touch ssh
I just type:

>ssh
Pi4 8GB running PIOS64

GlowInTheDark
Posts: 683
Joined: Sat Nov 09, 2019 12:14 pm

Re: Build solution using Windows PC

Wed Apr 29, 2020 11:26 pm

jahboater wrote:
Wed Apr 29, 2020 8:43 pm
TheFireman wrote:
Wed Apr 29, 2020 7:59 pm
from a terminal, execute the following very complicated, very long command

touch ssh
I just type:

>ssh
C:\Documents And Settings\YourUserNameHere>>ssh
The syntax of the command is incorrect.
C:\Documents And Settings\YourUserNameHere>echo>ssh

The later command works.

P.S. Yes, I know, you're doing it from a Unix/Linux perspective, but the whole point is to be able to do it from WinBlows.
GitD's list of things that are not ready for prime time:
1) IPv6
2) 64 bit OSes
3) USB 3
4) Bluetooth

bjtheone
Posts: 862
Joined: Mon May 20, 2019 11:28 pm
Location: The Frozen North (AKA Canada)

Re: Build solution using Windows PC

Thu Apr 30, 2020 12:15 pm

W. H. Heydt wrote:
Wed Apr 29, 2020 4:25 pm
thagrol wrote:
Wed Apr 29, 2020 10:34 am
I could have responded with four letters (RTFM) but that would have been insulting, unhelpful, and aggressive. But maybe if I had you'd have got my point.
I once saw a post in comp.unix.questions that (after describing the problem) said, "Don't tell be to RTFM if you WTFM." It was pertinent, because some of the regulars there had not only written the manual, but the programs as well.
Given that I predate the lovely chaos and anarchy that usenet became, I remember quite fondly when you could ask questions and have interactions with the folks that wrote the software. Did a lot of work with Perl and Larry Wall, Randal Schwartz, and Tom Christiansen to name but a few were on comp.lang.perl all the time. I remember getting grief about one project we were developing, as Perl was "unsupported", and politely pointing to the discussion I had with Larry to resolve a bug, and contrasted that to the interactions we were having at the time with Cadence (who we were paying vast tracks of money for both software licenses and yearly maintenance), and the timeliness of both interactions.

I also actually quite liked that you were required to do you "homework" first and ask well crafted questions, or at best you would just be ignored. As more and more folks got access the signal to noise ratio went south, and now folks are chastised for even suggesting the equivalent of RTFM, when you can find most answers inside of minutes with Google. I have sympathy for the folks that don't even know enough to describe the issue to ask the right question, but the constant, answer my very important question RIGHT NOW, when it is obvious the OP has done zero homework, is rather grating.

Return to “Beginners”