Setting up Octoprint

GAP

G Scale Trains, HO Trains, 1:1 Sugar Cane trains
14 Jun 2011
4,063
947
Bundaberg Queensland, Australia
Country
Australia
ringbalin-light-railway.blogspot.com
Best answers
0
Country flag
Has anybody set up Octoprint using an Ethernet cable directly between a computer and a raspberry pi?
I have downloaded the imager and put octoprint onto an SD card but not enabling the wifi settings.
I have connected the 3D printer, loaded the image to my pi by turning it on with the SD card in its spot and waiting 5 minutes for it to do its thing; but when I try to find the pi on the Ethernet so I can connect the 2 computers together I cannot for the life find the pi.
I am using Win11 but most of what I can find is for older versions of windows.
I have downloaded "PUTTY" but just do not know what to look for IP settings etc.
Has anybody done this or give me some directions on how to get the 2 computers talking to each other?
 

Cobalt6700

Registered
2 Jul 2020
125
33
UK - Oxfordshire
Best answers
0
Country flag
You will need to manually set IP addresses on both the PC and the Pi.

Have a look here: How to Connect to a Raspberry Pi Directly with an Ethernet Cable

A small cheap router would allow you to run DHCP and automatically configure the network (it doesn't need to be connected to the internet). Some old router from an auction site or similar would do.
 

Gtarling

Registered
26 Aug 2019
76
8
74
Grantham
Best answers
0
Country flag
When you burnt the image to the SD card for the Pi, did you enter all your network details before you started the burning?

G.
 

GAP

G Scale Trains, HO Trains, 1:1 Sugar Cane trains
14 Jun 2011
4,063
947
Bundaberg Queensland, Australia
Country
Australia
ringbalin-light-railway.blogspot.com
Best answers
0
Country flag
I have installed "PuTTY" and I am able to log in to the pi and get a Linux type screen but after that I am stuck on how to open octoprint.

Below is the screen I am looking at.

Linux raspberrypi 6.1.21-v7+ #1642 SMP Mon Apr 3 17:20:52 BST 2023 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Sep 22 02:33:53 2022 from fe80::4d11:b8a6:7d2e:4ccb%eth0

------------------------------------------------------------------------------
Access OctoPrint from a web browser on your network by navigating to any of:

http://raspberrypi.local
http://169.254.74.226

https is also available, with a self-signed certificate.
------------------------------------------------------------------------------
This image comes without a desktop environment installed because it's not
required for running OctoPrint. If you want a desktop environment you can
install it via

sudo /home/pi/scripts/install-desktop
------------------------------------------------------------------------------
OctoPrint version : 1.9.3
OctoPi version : 1.0.0
------------------------------------------------------------------------------


pi@raspberrypi:~ $------------------------------------------------------------
 

Gizzy

A gentleman, a scholar, and a railway modeller....
26 Oct 2009
36,175
2,288
63
Cambridgeshire
www.gscalecentral.net
Best answers
0
Country flag
http://169.254.74.226 is the IP address of the device I believe?

Try clicking on that link and the other one above it....
 
  • Like
Reactions: 1 user

PhilP

G Scale, 7/8th's, Electronics
5 Jun 2013
33,652
3,534
Nottingham
Best answers
0
Country flag
Also, does the above address make sense, to the address/subnet of the Windows machine?

Open a Command Prompt on the Windows machine, type the command 'ipconfig /all' (without the quotes) then press return /enter.
You may have to scroll back up the window, to find the IP address of the ethernet port in your Windows machine.

You should also be able to use the diagnostic command ping, to get a response on each device, from the others IP address.

PhilP
 
  • Like
Reactions: 1 user

GAP

G Scale Trains, HO Trains, 1:1 Sugar Cane trains
14 Jun 2011
4,063
947
Bundaberg Queensland, Australia
Country
Australia
ringbalin-light-railway.blogspot.com
Best answers
0
Country flag
Well after the pi had a little lie down overnight I switched everything on and typed http://169.254.74.226 into the search/ address bar at the top of my browser and Octoprint opened.
The address bar changed to the host name I had given the pi.

I did try the ipconfig /all on the command prompt and found the ethernet thing but I have no idea waht I am looking at.

Ethernet adapter Ethernet:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Realtek PCIe GBE Family Controller
Physical Address. . . . . . . . . : D8-C4-97-C1-C3-3E
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::4d11:b8a6:7d2e:4ccb%9(Preferred)
IPv4 Address. . . . . . . . . . . : 10.0.0.2(Preferred)
Subnet Mask . . . . . . . . . . . : 255.0.0.0
Default Gateway . . . . . . . . . : 10.0.0.1
DHCPv6 IAID . . . . . . . . . . . : 64537751
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-26-61-0A-29-D8-C4-97-C1-C3-3E
DNS Servers . . . . . . . . . . . : 8.8.8.8
NetBIOS over Tcpip. . . . . . . . : Enabled

Thanks for the help if I get stuck again I'll holler.

I am going to attempt multiple instances of octoprint on the pi so I can run the 2 printers I have, but that is for another time.
 
Last edited:

GAP

G Scale Trains, HO Trains, 1:1 Sugar Cane trains
14 Jun 2011
4,063
947
Bundaberg Queensland, Australia
Country
Australia
ringbalin-light-railway.blogspot.com
Best answers
0
Country flag
Success!!!!!
I now have octoprint working :party::party::party::party::party:

I have tested a print and it worked just need to tweak the bed level now.
One thing, as the pi is not connected to the internet auto updates will not be available but I think I can live with that for a while.

Thanks for all the help
 

GAP

G Scale Trains, HO Trains, 1:1 Sugar Cane trains
14 Jun 2011
4,063
947
Bundaberg Queensland, Australia
Country
Australia
ringbalin-light-railway.blogspot.com
Best answers
0
Country flag
Another question what do people do with the raspberry pi in an octoprint set up; power down the pi or leave it running?

As I have no monitor/keyboard connected (a headless config) I cannot go to the "shut down" command and shut down my pi prior to powering down not doing this can and most likely will lead to SD card corruption.
 

The Shed

Citizen of the Republic of the North East.
8 Mar 2020
1,073
239
Darlington, County Durham.
Country
England
Best answers
0
Last edited: