Installing Klipper Firmware On A Laptop Or Desktop (Pi Alternative)
Вставка
- Опубліковано 11 чер 2024
- Love the channel? Consider supporting me on Patreon:
www.patreon.com/user?u=806627
Join the official ModBotArmy discord server: / discord
In todays video we will go through the process of installing and running Klipper off of an old laptop or desktop. This is a great way to run Klipper if you do not have a raspberry pi and depending on your hardware will let you control multiple printers through multiple Klipper instances!
Previous video talking about Klipper:
• Is Klipper The Best Fi...
Video on OctoKlipper that goes over some of the board flashing:
• Installing OctoKlipper...
Klipper documentation on running on other machines:
www.klipper3d.org/FAQ.html#ca...
Linux Mint:
linuxmint.com/
balenaEtcher:
www.balena.io/etcher/
Enable SSH on Linux:
www.itzgeek.com/how-tos/linux...
Kiauh Github:
github.com/th33xitus/kiauh
Klipper example configs:
github.com/Klipper3d/klipper/...
Find out more or purchase the Kingroom KP3S Here (AFF):
amzn.to/3PIqX8E
Or Here (AFF):
ebay.us/yjGfVZ
(´∀`)♡ As an Amazon Associate I earn from qualifying purchases:
Buy now on Amazon: amzn.to/2jQAOgV
Subscribe To My 3d Printing Blog! :
Lets Get Social!
Facebook: / dopesoner930
Twitter: / dopesoner930
Instagram: / modbotarmy
Twitch: / dopesoner930
Time Stamps:
0:00 - Overview
1:22 - Creating Linux USB Image
4:15 - Installing Linux Onto Computer
7:38 - Enable SSH
8:37 - Installing KIAUH
9:34 - Configuring KIAUH For Your Computer
13:04 - Adding Multiple Printers To Mainsail
14:48 - SSH Into Klipper Computer
15:30 - Next Steps
16:21 - Outro
Music provided by Argofox:
NEREUS - Lotus
• NEREUS - Lotus [Argofo...
When using Linux Mint you will want to disable the helper applications:
sudo apt remove brltty
sudo systemctl disable ModemManager
sudo reboot
If you are having issues with Linux Mint, Ubuntu Server has been recommended as a better alternative.
"Ubuntu Server has been recommended as a better alternative" By who? I first tried installing kiauh on ubuntu and ran into problems with it saying "--allow-releaseinfo-change is not understood in combination with the other options" during the klipper install. I tried removing all of those flags from the install scripts but it just got another type of error so I gave up and am now installing mint
Can you install your 3d modeling software and slicer on this computer?
@@nongrata140 Bad idea
Is it related to the reason why mcu is not detected?
Might be even better to go with Debian directly instead of one of its flavours.
I started running klipper on a laptop over a year ago. I got a ton of crap for it back then. Now i find it funny that others are doing it.
I was running old PC laptop with octoprint somewhere around 2016-2017 and it was the best.
This is THE video I was waiting for for months!
Thank you so much for explaining so extremely well!
I really appreciate it a lot!
Happy to hear! I really hope it helps.
Thank you for the feedback!
@@ModBotArmy it does! You are the man!
Thank you a billion times over. Been looking for this tutorial for months as I have an old laptop that I wish to install Klipper on but all the other tutorial start by nigh impossible task of getting a raspberry pi.
Very in-depth thank you, a lot of it is very standard stuff for the install but that’s only because I have been fixing and customizing tech in general for years now, but once the install is complete you make sure to explain every detail and why it’s being done, plus 10:11 even reaching out to Klipper team for understanding what requirements are needed to run a Klipper machine.
Thank you very much for this instructional video. I found it enormously helpful. I wanted to run Klipper but Raspberry Pis are so expensive. I ended up buying a secondhand Lenovo M73 mini desktop running an i5 4460 for AUD$12.50. I use it to run 3 instances of Klipper. It seems to do the job pretty well. Thanks once again.
This is what I was waiting for. Thank you for making this detailed video.
[SOLVED] I couldn't access the mainsail GUI with IP or hostname. This is for the step at 12:47 of the video which is the most played part of the video, so possibly others are having the same issue. I disabled the Linux Mint firewall (Terminal/SSH command "sudo ufw disable") and it all worked as described in the video. This is December 2022 with Linux Mint 22.1 (Vera) so I am assuming that when this video was recorded, the firewall was off by default for a new install, or @ModBot had previously disabled it and omitted the step in the video. Hope this helps someone.
You, sir, are awesome. Came to the comments looking for this exact information because I followed every direction up to this point and couldn't log in. Evidently my firewall was still active, but once I ran that sudo prompt, all was good. Thanks!
Good catch, I got stuck there, too. Once I got in I wasn't faced with his screen though. I had 'klipper reports error, mcu unable to connect.' I clicked the restart option and klipper started up but reported printer not ready. Should I have a printer connected at this point, there was no mention of that in the video?
Been stuck for 3 days trying to figure out what went wrong..... going to give this a shot
Thanks !
anyone has any other suggestions? i have this problem.. i can connect from my pc via PuTTY ssh, but via browser nothing...
I've spent a lot of time looking for a klipper Ubuntu repository that doesn't even exist. Now I've learned that it wasn't necessary. Using KIAUH was much easier. Thanks a lot! 😀
Awesome tutorial! Excited to try this out, thanks!
I know this video has been out for a while. you helped me out so much when I upgraded by board and could no longer use my stock LCD screen.
One thing I did for my Octoprint Pi that probably could apply to this too. Found my machine in the list of devices on my router and assigned it a static IP in the router's DHCP server. This way the machine always gets the same IP address. Basically you find the MAC address and you can make sure that network device always gets the same IP. you can also just assign an IP static in Linux as long as its outside the range your router uses for DHCP. this just makes life easier especially if you assign your slicer to be able to export right to a printer you will never be trying to figure out the IP if the router decides to change what it gave out when you first set this up.
If I could replace the fan in this Intel Atom box I have in a closet id so use that for Klipper or similar if I built a Voron, Pis are basically impossible to find.
yes, good point, not everyone uses static IPs, with MAC address whitelists and forces the router to report the wrong gateway IP when an auto query is received.
looks like my long wait for a raspberry pi is over ;)
thanks buddy
THIS IS EVEN BETTER THAN RUNNING RPi wth... THANKS. Im setting something up some sooner than expected
is it Fate? Imagine my surprise after plugging in an old T420 and searching for how to Klipper on a laptop.
Great video.
Lots of amazing alts today! Orange PI, I've gotten a few to work, creality MKS, BTT cb1... I've tried them all, installed klipper and mainsail. Finally we can abandon Raspberry PI. Done!
Can you do a video for Klipper on old phones? They seem to be far cheaper than a Pi and are multicore ARM devices.
There are step-by-step instructions if you look around some. You'll need an otg adapter and some way to charge the phone while connected to the printer. I started this process and could ssh into kiauh on the phone but lacked the right cables to hook it up to the printer, so I ended up using an Ubuntu partition on my laptop instead
@@MrStoffzor hey i know im 2 months late but i cant find any instructions. Can you help?
@@DigerTorsk yeah....this seems like an awesome option
It would add also the camera
stest tutorial i have ever seen GOOD JOB BRO
Installing it right now
Using my old YOGA with an 11" touch screen, that's going to be awsome
Excellent video mate, good job & tnx & lot
Been looking for something like this for a while
Hello. If you could make a video about installing Klipper on the Inovato Quadra, that would be awesome. It's a fairly new Single Board Computer and only cost $30. I just bought 2 and installed Klipper on it. It was a very simple process and now it's working great. I hope more people could find and alternative to the overpriced Rasberry Pi in this chip shortage period. Thanks
thanks,
best and cheapest way to learn Klipper.
My old ThinkPad T60 is in use again
👍🤙💪
Great video as always 👍
I'm tempted to go the Klipper route 🤔
Thank you! DO IT!
Do it you won’t regret it
Perfect video. Many thanks
I ran Fluidd and klipperscreen on an old windows tablet, and mount it up, everything is perfectly fit!
whoa. Been contemplating moving to Klipper and conveniently I just setup a PC on the workbench with my Printer. Off I go. Wish me luck
Brilliant pal Thank You all installed a treat!!!
i have a laptop setup for my ender 3 and i love it planning on getting more printers and just gonna plug them into the laptop.
I've been prepping to do this on an old HP thin client with barebones ubuntu server. Pis being unobtainium has made a lot of projects more complicated.
I've got an old small form factor office computer I was given a while back I use as a bit of a server at home. It's got a 6th gen i5 and 16 GB of RAM so it's pretty beefy. It has Proxmox installed for the hypervisor and as Virtual Machines it runs OPNsense for my home firewall/router and Ubuntu server with mainsail installed on it. It also runs a container for my plex server, a container for my unifi server, and another container for my pi-hole instance.
Pretty cool how you can take old hardware thats destined for the junker and give it new purpose like this. I think using an old PC for klipper makes a ton of sense over a raspberry pi just for availability reasons. Also, regarding how much klipper you can run on a PC.... a lot is the answer. A print on my ender 3 with input shaper enabled loads the system like 5% or so? Which isn't much higher than idle which is around 2%. No doubt a PC from even 8 years ago has way more punch than a raspberry pi.
What mainboard are you using on your ender 3? I have ender 3 pro and upgraded to btt skr 3 v2.0. Not sure how I would go about installing klipper and connecting to my 3d printer. Didn't see that mentioned in this video. I also have a NAS with unraid and containers, I'd love to do opnsense at some point too if I can figure out how to multi boot 3 OS from 3 different bare metal hardwares. Anyway that's another rabbit hole haha.
Any recommendations on getting my ender 3 pro btt skr 3 v2.0 mainboard working with klipper via a docker container in the lowest cost effort would be appreciated. I put a decent amount of $ into these upgrades and the remote control and input shaping/klipper is the last I desire before I drop 1g on next bambu 300mm bed competitor.
That seems super handy, I may use it once I get enough printers to be worthy of such convenience.
Yeah for a stationary setup with multiple machines this really is ideal
I've been doing this since I first learned about Klipper. Im surprised nobody else really mentioned anything about it
Probably because it only works if you're lucky or very familiar with Linux. For many of us it is one issue after another, even following the instructions to the letter it gets stuck at some point and support is impossible to come by.
Thanks!! Just installed Kiauh and after my ender finishes printing I'll be flashing the firmware
Thank you so much!
I've some thin clients laying around that beg to be klippered!
Great tutorial!
Thank you Brotha, I feel as if I can accomplish harder task (easy for you).
whoohoo. nice video,man. i´ll try it when i have spare times. thx a lot👍
Sounds great! Absolutely :)
This was super helpful for me! Only issue I had was that Etcher wasn't working right and I wound up having to use Rufus to write the Mint ISO to the flash drive I was using.
Same here. Rufus needed to downland some dependencies for the linux distro. Used .ISO instead of DD, to keep the USB drive at full capacity.
Same here!! I thought it was my USB port or drives. Was going crazy!!
mee to, etcher dont work, but RUFUS work perfectly :P
perfect timing! 😄
Did this a month ago or so with a old laptop with the broken screen (10 years). Installed Ubuntu Server and then installed manually klipper and Mainsail and it's been awesome since then. I also salvaged the webcam from the laptop, printed a little case for it and been using it to monitor the printer.
This is a nice way to repurpose potential e-waste into really useful things!
How did you salvage the webcam and make it into a cam for the printer?
@@DKFX1 The webcam is connected to the motherboard through a wire that is passed by one of the hinges. In my case, the wire is shared with the screen so it goes to the same connector (to the motherboard). Also the webcam just consists of a small PCB like a RasPi camera, so just treat it like that. Since the screen is broken, I just disassembled the top part of the laptop and unplugged the screen connector of the wire, keeping just the camera in one end and the motherboard connector in the other. The software side is pretty simple, you can follow a RasPi camera setup for mainsail (in my case) since it's almost the same.
@@DKFX1 just to add. Laptop webcams usually use USB internally. So, you are often able to just wire them up to a usb cable, and then use like any other usb webcam.
Nice video, I made similar videos once with alternative abc and another with Intel compute stick, which is pretty much the laptop without the screen. I have yet to try multiple instances, maybe I will try it next
Woe, that script sure makes things easier!
Yeah, this was the most I have played around with it and I really get why so many like it.
How do you hook up the input shaper board using a pc? hopefully there is a way.. also how did you install the z calbration plugin?
thanks
I am using a proxmox server, where I created Ubuntu Server VM (could do LXC container or docker, but usb passtrough is much easier on VM) and I am using that for klipper. It has couple of advantages, like backups before updates, easy migration etc.
I have a similar thing going with octoprint. I have a ryzen 2700 linux box that just runs multiple instances of octoprint as systemd services (set to different ports on my network and with separate config folders), all running out of a single octoprint installation. Things get a little weird with plugins (if you install a plugin in one instance, it becomes available in all of them since you're running out of a single folder) which can totally be worked around with multiple octoprint folders.
Now i know how to reuse my old broken laptop, nice
I plan on doing this for my E3 S1 Pro, will I need to set up a touch display with klipperscreen or can everything be managed from the PC directly?
Thank you very much for making this video. Very helpful. I am wondering if there is an other linux distro that you would recommend for a system that has a puny 16GB SSD, unfortunately Linux Mint Xfce is too large to install on that drive.
Ja miałem problem z uzyskaniem połączenia z drukarka. A problem był w uzyskaniu serialu portu usb. A blokował go skrypt brltty. Wystarczy wpisać w konsoli "sudo apt remove brltty" żeby go osunąć i serial usb był dostępny.
Thanks for this video!
Just to be clear: to run a rack/cabinet with 4 printers, I need a laptop with 4 USB ports (and 4 USB cables), right?
Hello if possible to aply input shanper analisys on this way of klipper?
Thanks, this is a great idea to recycle some old laptop vs buying one of those RPi luxury item....
New to Klipper and Linux and I followed your tutorial but I can not access the mainsail interface from my windows machine and when I enter the IP address with the :xxxx at the end I get a moonraker page that I can do nothing with. Any suggestions?
just what I needed thank you!! is it possible to use two touch screens if you have two hdmi ports? looking to run two instances on a mini pc with 8gb of ram and 128gb ssd
Excellent video. At what point do we plug the printer into the laptop? Can we use a USB hub with 4 ports if we are running 4 printers? Is there anything special we need to do to the printer before plugging it in? Do we use the printer menus still for z offset ect? Thanks
I needed to know this too. I get stuck at the first log into mainsail, it just says 'klipper reports an error, once it's fixed restart' but no clue what needs fixing.
Really wish I had the skills to make Klipper for Windows.
Has anybody found a way to use an ADXL345 (or similar) with this setup? There seem to be accelerometers with a native USB interface, but I'd have no idea of how to get klipper to find that device
With a raspberry pi pico. There are various tutorials that cover this
@@santiagopostorivo no need, with native USB adxl it's almost plug and play with the provided instructions by the manufacturer (Trianglelab)
@@MrStoffzor I know they exist. But the option I mentioned is easy and cheap to do. I have done that myself and spent less than 20 dollars
I really like your videos. The question I have for this one, is when you make the firmware, what communication interface do you select for the second printer? If for ther first one I have USART1 PA10 / PA09, then do I pick USART PB06 / PB07 ?
Thank you
It's board specific. So if you are using multiple of the same board they will all communicate on the same interface. For example, the octopus pro PA11/PA12. This will be the same for any octopus pro you flash.
Where it differs PC side is each config file will have different serials identifying which main board is for each printer.
This tutorial helped me greatly, I did my install in one evening. I also did input shaper not long after with second mcu and pressure advance, pretty much dialed in everything important.
Just a note; linux mint sucks big time, something is very wrong with usb ch341 drivers, I would have to restart my printer few times every time to get it to work. When I tried to add second mcu it would disconnect 1st one. I've had enough at that point, switched to debian10 buster and all problems went away, buster works with atmel chips also, later edition run bullseye and those don't so beaware if you plan to run and flash atmel mcu at some point
How did you connect the accelerometer for inputshaper to your PC/Laptop?
@@Angelmeister336 I followed this video. Only difference I haven't used pico and axl but arduino and mpu because Ive had that from previous project but principle is the same ua-cam.com/video/W_VHbT_tsZw/v-deo.html
@@clixium Wow thank you, I've already watched that video and wonderd if I could do this with an arduino that is laying around, but you are the proof it's possible!
One of those small form factor cheap 1 letter size mini computers would be a good choice... You can get good deals on banged up ones
This video is a fantastic help. I've set up multiple printers on a single pc, using Orcaslicer, it only allows me to upload gcode files to the 1st instance of klipper, is there a way to tell it which printer I'm communicating with? I've tried adding the extra address (:7127) to the IP address output, but it just gives me an error
@modbot nice nice those T420's are still really good laptops and you can amp them up to 16GB ram even the Lenovo site states 8GB would be the limit
I am pretty sure one of my coworkers at the time recommended it basically as a cheap laptop that Erin could use for school. She inherited my previous gaming laptop which is way more speced out but they are solid work laptops.
When sending gcode files from the slicer, how do you differentiate between printers? When I add the ip address with the port in the slicer, it sends to both printers.
Thanks!
Stuck at 13:05 in video says from my main desktop im going to type in the IP address. I cant find were you opened mainsail. I see all installed but not sure how to open it. No icon and confused
I have a
Modbot how do you assign one of the ports / instances you created to a specific printer? The reason i ask is the laptop only has so many usb ports. Did you hook up a usb hub and then plug the printers in to that one by one ?
Very good guide ... thx
Absolutely thank you :)
wanted to ask, is a netbook with Intel Atom N280 and 2GB of RAM enough to run Klipper? or is a Raspberry Pi 3 B better in that scenario? i got both lying around in my house, the netbook is still using a harddrive but if it's enough i'll plan to get a cheap ssd for it.
I have an old Mac Mini 2007 which I can install Linux MX only. I woud be very glad if I can make it work with Klipper.
Any guidance on how to make this more secure? Seems a little light on security for something that can potentially run away thermally and burn down a house.
I assume the laptop doesn't go to sleep on a long print? If the Laptop were to sleep or shut off is your print dead? Or is the Gcode on the mainboard?
Is there a way to have a touchscreen interface when having klipper on a pc? Can't seem to find any info on the Web. Great tutorial, thanks
When you flash klipper to your 3d printer will you still be able to use the printer firmware to print with sd-card?
When you installed Linux into your laptop, did you have to install the drivers for your USBs? Or did they work automatically?
Also, does the USB drive transfer speed matter? Like UsB2.0, USB 3.0 etc for making the 3d prints? Thanks in advance!
aside from nvidia gpus and old amd ones, plus the odd wireless adapter, about *every common piece of hardware* you could plug into a computer works out of the box on most big distros, especially for bog standard x86 computers.
Thanks to this video, I’ve got 4 printers running on a single dell optiplex. Was wondering how I did this for ages
Awesome 🔥
@@ModBotArmy Thanks for the help, massively appreciated!
I have an old optiplex also that im wanting to use for this as well. It all looked like i could follow along but then he started using abbreviations ive never heard of much less understanding what they mean and do. Plus I dont have internet and not sure if linux/klipper will work offline
@@gsdtdeaux7978 He used typical computer jargon. Once you have everything installed it doesn't require a internet connection to use. To install the software you do need a internet connection.
Dumb question but how is the laptop now running the klipper UI of choice communicating with the printer? Plug in a micro USB? Also input shaping able to be used if I get one of those newer kbus accelerometers?
Thank you for replies
Hi Modbot. i assume you can use that script on a Raspberry Pi to install multiple incidences as well?
Can you run klipper on the PC but still have RPIs and Control board? I have 2 printers, but the webcam streamer keeps having issues and would like the PC just to control the USB webcams and easily swap between printers.
i'm constantly getting under voltage on my pi 3 and mcu connection problem im switching to my old lap top to see how things goes.
Hi, can i run all this on a disk partition (virtual disk) of my pc without erasing all the data from the other disk partitions?
HI, thanks for the video!, just wondering where printer.cfg is meant to reside (folder) on linux mint install? I can query the MCU from Kiauh and get it's address but the board (skrv1.4t) does not have a working USB connection otherwise, I have updated the printer.cfg with the MCU address odtained from Kiauh. I have tried placing Printer.cfg in every directory including on the sd card.
If I flash a Marlin firmware, the usb connection works. cheers, mike.
I have mine running on an old beelink tv box. 3 printers running off it and super small box. this is a great way to us an older laptop too.
Hmm, I wonder if you could do this with a virtual machine running in TrueNAS.
hi bro,
How many printers can we connect to 1 pc-laptop? All priters will work at the same time.
Will klipper launch directly after boot or do you have to launch everything manually every time?
I want to be able to shut down the laptop when not in use. And to quickly launch when needed. Like my rpi that only takes 15-20 seconds to get ready to connect via mainsail
Just to confirm, could we install Linux alongside Windows so we could swap back and forth as needed?
Is this possible to do by just running Linux over the flash drive and not deleting the existing OS on the laptop? Or would I need a VM for that?
I have a formbot raptor 2. Does the laptop or pi, etc with klippertake over the job board does? Been looking at new board with 2209 or better.. But, there is so much info I just don't know what route is best.. Raptor 2 is kinda big, large bed. I wonder how I can get the most out of this machine. Or frame, considering most things can be changed..
My main issue today is, no matter how fine I tune it. Input shaping, linear advancement, etc can probably improve print quality vs speed? Any advice, it's not the most known printer out there..
Would it be worth the hazzle to try to setup my old laptop, run klipper on this machine? What grind my gears the most is, tmc2208 don't support linear advanced, and board. Well, if I had a lot of cash. I probably go crazy, upgrade and mod the shit out of it. Anyways. I guess the worst bottleneck on this machine is the lack of support for newer software magic, lack of wifi is stupid considering could be standard from 2018 at least.... Frame is at least sturdy, and big. But a 400x400x700mm volume has its pros and cons.. Like making a enclosure, something I plan to do at some point.. I guess. But, I'm babbling. If anyone reads this, care to make me smarter? Perhaps throw in some tips to what upgrade path is best for this machine.🤔 Tnx 🙂
Kann man auch mit Laptop die Resonanz bzw. Beschleunigung nutzen? Und was für einen Sensor benötigt man dafür?
I am trying to install Mint on an old laptop and it just refuses to boot from the usbstick, all usb ports are working and confirmed that the flashed usb is ok on my new pc where it booted just fine. I figured that when flashed, the stick gets 2 partitions but they dont show on the old laptop, on the new pc I get 2 boot options from the same stick. any sugestions? tried flashing with Rufus but though it booted to temp desktop, when prompted to finalize instalation it was missing all the files...
Awesome tutorial but If I have to add input shaper accelerometer liek ADXL 345 how can I do that for all 4 instances? I dont know how to connect a i2c or spi to a desktop machine?
I still use my T420! Great laptop, great keyboard, pretty bad screen. I was going to use it for Klipper, but I've found a cheap linux box for $30 instead.
I have used to run octoprint in docker container. Does it make sense to do same with Klipper?
i dont get it, you need to plug a usb cable to the mainboard of the printer from the notebook or desktop computer or just via ip its connected? thanks
me da error: istalling required packages failed... al tratar de instalar klipper y elegir instancias
can you make a turtorial thats only about this installation, because i could do everything until the adding multiple printers part, because i dont know how to turn on mainsail or open it in my windows laptop, i tried opening it in my linux machine which i use for this installation, and i typed in the ip address and its not working
Can I run something like mainsail or an printer screen on the actual Klipper Debian laptop, without logging in over ssh from another machine?
a free mini PC attatched to my Ikea LACK enclosure is a lot cheaper than getting a Pi :p
I am using ubuntu server tho, as it is what i was already familiar with, works perfectly. Kiauh is a blessing!
Noob here. How do you link the laptop to the printer or printers, if more than one - what cable is needed and where is it plugged into, if more than one printer? Thanks
Hello,
I have a problem with install... It need to be install python2 dev and i cant find it anywhere