Тёмный

Raspberry Pi iPad Pro Setup Explained 

Tech Craft
Подписаться 92 тыс.
Просмотров 51 тыс.
50% 1

In this video I'll take you through all the steps needed to connect your Raspberry Pi to your iPad over USB-C and I'll explain each step in detail.
CHAPTERS
=========
00:00 - Start
01:12 - Configure Ethernet Over USB-C
02:35 - USB-C Network
03:32 - Handing Out IP Addresses
GEAR
=====
* iPad Pro 11" - geni.us/H0qJ
* Apple Magic Keyboard - geni.us/8uBg
* Anker Thunderbolt 3 Cable - geni.us/BTOsQ
* Aluminium Armour Case - geni.us/M5ph
LINKS
=====
* Pre-built images - github.com/techcraftco/rpi-us...
SUPPORT THE CHANNEL
=====================
* Buy me a coffee - www.buymeacoffee.com/techcrafted
AFFILIATE LINKS
==============
Tech Craft is a participant in the Amazon EU Associates Programme, an affiliate advertising programme designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.co.uk

Кино

Опубликовано:

 

8 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 124   
@DavidJohnson-zv5ir
@DavidJohnson-zv5ir 2 года назад
Thanks Rob! Straightforward and concise as usual!
@BobDenny
@BobDenny 2 года назад
Brilliant!! I have mindlessly applied the changes for the USB gadget that you posted a while back. I was able to remove most of that and get down to the simplest. And thank you very much for explaining each piece. It is exactly what I was looking for.
@zestynotions
@zestynotions 2 года назад
Brilliant overview as always Rob, cheers.
@Tandy625
@Tandy625 2 года назад
Rob, as requested, thank you. This video is appreciated! Can’t wait to play around with this.
@ioannis69k
@ioannis69k 2 года назад
Nice ! Thanks ! Great to see a use of a different than /24 subnet !
@x0rZ15t
@x0rZ15t 2 года назад
Awesome, can't wait to try this out on my new RPi4!!!
@premdale
@premdale 2 года назад
nice one Rob - thanks
@jammies701
@jammies701 6 месяцев назад
Nice vid mate
@roripocket6273
@roripocket6273 11 месяцев назад
WOW, very detailed, now I will try it!
@roripocket6273
@roripocket6273 2 месяца назад
It worked !!!
@MapSurfer
@MapSurfer 2 года назад
Thanks, Rob. You packed a lot of useful material in this 6-minute video! I noticed a few differences here vs the configs on your pre-built images. Any reason why? For example, in /boot/cmdline.txt -prebuilt: rootwait modules-load=dwc2 -this tutorial: modules-load=dwc2,g_ether rootwait
@tech_craft
@tech_craft 2 года назад
The earlier versions of the images used a different mechanism for setting up the OTG ethernet. That mechanism allows for more OTG features to be enabled but I found that pretty pointless in this setup, so I've switched this simpler setup. I'm going to change all the pre-built images to use this approach too.
@ManuelCastillo-kq3xy
@ManuelCastillo-kq3xy Год назад
hello. For the initial setup, is it still necessary to have a keyboard, mouse, and monitor, or can you do it with the iPad connected?
@sfuoncall
@sfuoncall 2 года назад
Thank you. I am looking into to something similar using FreeBSD. Currently, I don't see how to do the same when it comes to using USB as an network interface. Thank you for explaining. I will look into see if the same is possible using FreeBSD.
@Andreasytac
@Andreasytac 2 года назад
The technical term for it is USB gadget mode. It's a core linux feature, so it could be possible, but I imagine the kernel would need to have it implemented.
@sfuoncall
@sfuoncall 2 года назад
@@Andreasytac Understood. I know that the Wifi chip is currently not support in FreeBSD so I am using an external Wifi device to have network access (the router is sitting behind the TV so it makes it awkward to connect a hardwire)
@DoctorAtomTNT
@DoctorAtomTNT 2 года назад
I have followed this and its dead easy to do, thanks a lot. One thing: apart from my ipad, my main phone is an android (Galaxy Fold 3). Is there a way to get the Rpi to work with both iPad Pro and with Android?
@tech_craft
@tech_craft 2 года назад
There's a few options for Android - I just got my Android tablet and I'm working through the different options. I'll drop a video soon.
@DoctorAtomTNT
@DoctorAtomTNT 2 года назад
@@tech_craft thanks mate
@winsleyvanderhooft3850
@winsleyvanderhooft3850 7 месяцев назад
How to prioritize wifi over USB-C? So when I'm at home it just uses wifi and when i'm on the road it uses the usb-c?
@daviddidas4266
@daviddidas4266 2 года назад
I do Wonder if it is possible to use the codeserver on the pi to run a tkinter Script… could u tell me, if it is possible?
@tech_craft
@tech_craft 2 года назад
I'm not super familiar with tkinter, but I think this should work. You don't even really need code-server. You can trigger the script over SSH, either from an SSH client or from the Shortcuts app. You'll need to tell tkinter which virtual display to use, but I imagine it will work just fine.
@jyvben1520
@jyvben1520 2 года назад
does it need usb-c wire, or usb wire with usb-c connector, or plain usb3 (male to male, pi to pc device) ? could pi as access point do the same, device client uses 2.4 to connect and uses 5Ghz to connect to internet
@tech_craft
@tech_craft 2 года назад
You'll need to use USB-C to be able deliver power reliably. There are some configurations for using the Pi as the access point with RaspAp
@avihayl7911
@avihayl7911 2 года назад
What do you think should be the minimal size of a tablet with this kind of setup? Is 10-11 inch too small?
@tech_craft
@tech_craft 2 года назад
I've been using the 11" iPad Pro for years now. For me it's absolutely the right size. My wife has the 12.9" which is an excellent device - she's an illustrator - but I prefer the compact setup.
@maddogman529
@maddogman529 2 года назад
How do you set up VNC so you can use the iPad as a monitor of sorts for your Raspberry Pi? Over USB C of course
@tech_craft
@tech_craft 2 года назад
I'm using tigervnc with Jump Desktop - video on that very soon.
@juri14111996
@juri14111996 2 года назад
just search vor a vnc toutorial. the usb-c is now just a normal network interface.
@x-bravedz7328
@x-bravedz7328 22 дня назад
Hello, I followed all the steps but it's not working. After connecting my Raspberry Pi with the USB cable to my iPad, I do not see Ethernet appearing on my iPad. I also have a question: does the IP address you used work in all cases? For example, on my local network, IP addresses are like this: 192.168.1.xx.
@josephlebo7320
@josephlebo7320 2 года назад
So if this is setup and you're connected to the pi via USB C, can you also connect to the pi via wifi (sans the usb c). Or would I have to have one Pi OS for the usb C way and then another for the wifi way? (not sure if this question makes sense haha)
@tech_craft
@tech_craft 2 года назад
Makes perfect sense - you can absolutely connect with both options without having a separate Pi. My Pi is configured for Wifi, USB ethernet and standard ethernet. Depending on where I'm I'll use the most appropriate config.
@josephlebo7320
@josephlebo7320 2 года назад
@@tech_craft Thanks! Also as a follow-up, if I'm connected to the Pi via the usb c ethernet connection, can I also be connected to wifi on the ipad or does the ipad require one or the other? So i could be working with the pi via a ssh client or vnc client but then maybe try searching the web for something in safari?
@dnldnl4880
@dnldnl4880 2 года назад
I’m having problem with my terminal on ipad what software are you using>?
@tech_craft
@tech_craft 2 года назад
I'm using Blink Shell - blink.sh/
@txufer12
@txufer12 2 года назад
I don't understand what can be done with a rpi 4 connected by usb to my ipad pro, which do you use it?
@SomeYouTubeGuy
@SomeYouTubeGuy 2 года назад
Check his previous videos
@alessandrospedito8091
@alessandrospedito8091 2 года назад
Hi, can the same be done with an Asus Tinker board or other sbc?
@tech_craft
@tech_craft 2 года назад
If the board supports USB OTG you’ll be able to get this working. If not, you can use a USB Ethernet adapter to get a similar setup.
@mmikhan
@mmikhan Год назад
👋 Any idea how do I connect the Raspberry Pi using the USB C to my MacBook and control it through SSH without using any power adapter?
@tech_craft
@tech_craft Год назад
The same setup works on my MacBook Pro without any changes.
@BastianInukChristensen
@BastianInukChristensen 2 года назад
Are you filming interlaced, or is there something in my setup that makes some sort of flickering?
@tech_craft
@tech_craft 2 года назад
I didn't, just plain 4K30fps
@BastianInukChristensen
@BastianInukChristensen 2 года назад
@@tech_craft interesting, this was the only video of yours I saw it also
@prabeshbajracharya99
@prabeshbajracharya99 7 месяцев назад
will it work in raspberry pi 5?
@brendanmurphy1827
@brendanmurphy1827 2 года назад
Thanks Rob. Any idea how transferable this is to an android tablet with USB-C?
@tech_craft
@tech_craft 2 года назад
I have the keyboard for my Samsung S8 turning up in a few days so I plan to put some effort into getting this set up.
@juri14111996
@juri14111996 2 года назад
it works to. the pi just acts as a usb network adapter.
@Andreasytac
@Andreasytac 2 года назад
Your biggest problem will be Android not having any support for zeroconf, so hostname variants won't work. You'll have to use a static IP. Even then, Android is so fragmented that it will be hit or miss
@s.i.m.c.a
@s.i.m.c.a 2 года назад
@@Andreasytac hm? Author clearly used in this video dhcp server, Andoid is perfectly fine with that.
@BobDenny
@BobDenny 2 месяца назад
I burned out with loads of Old Wives' tales trying to get this going on the RPi5 (Debian 12 with nmcli/NetworkManager, no dhcpcd, etc.). Just could not get past usb0 being listed as 'unmanaged'.
@dineshnandanwar5138
@dineshnandanwar5138 Год назад
I am trying to do this exact setup on Ubuntu server but stuck at third step as I am not able to find /etc/network/interfaces.d folder. Can you advice?
@tech_craft
@tech_craft Год назад
Certainly. Ubuntu Server has a different networking setup - it uses Netplan. I have a dedicated video on that topic here: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-RPBnyAFJ6gQ.html
@rashie
@rashie 2 года назад
👍👍
@CaptZenPetabyte
@CaptZenPetabyte 2 года назад
Im guessing if your android tablet it usb c then it should be pretty much the same setup?
@tech_craft
@tech_craft 2 года назад
Mine very first test didn't work. I was able to get physically connected and powered, but I couldn't actually get a route from the tablet to the Pi. That said, I spent about ten minutes trying and have yet to find the real time needed to sit down and do a thorough test.
@ErikTaraldsen
@ErikTaraldsen 2 года назад
waving hands seems to have interlace effects?
@tech_craft
@tech_craft 2 года назад
Not sure where that's come from - will double check my settings.
@ErikTaraldsen
@ErikTaraldsen 2 года назад
@@tech_craft Good. :) Interlacing is a relic I'd like to not make a comeback like vinyl has had.
@tigerding8418
@tigerding8418 4 месяца назад
Does this work for bookworm (Debian 12)?
@joshsticko
@joshsticko 2 года назад
Hi the ethernet tab in settings does not show up when I connect the pi via USB-C to the iPad. I flashed one of the images off your github release.
@Josh-nt5jl
@Josh-nt5jl 2 года назад
I'm having the same issue
@tech_craft
@tech_craft 2 года назад
Which image have you downloaded? I’ll check it today and see if there’s an issue that needs fixing.
@Josh-nt5jl
@Josh-nt5jl 2 года назад
@@tech_craft Hi i downloadd the arm64 lite
@tech_craft
@tech_craft 2 года назад
I’ll check today. Out of interest, did you customise the image with hostname, user and password?
@Josh-nt5jl
@Josh-nt5jl 2 года назад
@@tech_craft Yeah I set the hostname to padpi, user to padpi and a password. I selected AU as the LAN country which I'm not sure about - I live in Australia.
@kragrrr
@kragrrr 2 года назад
Can one run sudo raspi-config to see the GUI?
@tech_craft
@tech_craft 2 года назад
You'll need VNC to access the GUI. I have a video coming up on that exact topic very soon.
@kragrrr
@kragrrr 2 года назад
@@tech_craft Can one do a similar thing with Jetson Nano connected to the 5V micro USB by a USBC to micro USB cable and VNC into it as in a headless mode?
@jugnu361
@jugnu361 2 года назад
Looking for a 100 MB headless Linux on PI4
@patryk888888
@patryk888888 Год назад
It’s driving me crazy. Can I access blink In iPad files app without Wi-Fi just by using usbc ?
@tech_craft
@tech_craft Год назад
That's how I have in configured to work. Is it not working for you?
@patryk888888
@patryk888888 Год назад
@@tech_craft Hi thx for responding. I’ve still been trying to figure it out but it’s the same. When I turn off Wi-Fi on my iPad and try to access a raspberry folder using blink in the files app I get an error “you’re offline. Check your internet connection, then try again.” But if I connect to any network “it doesn’t have to be the same one as raspberry, it works. FYI if I switch off Wi-Fi on either or both devices everything else works fine over usbc (ssh jumpd etc). Am I missing something ? Is there a way to copy files from raspberry to iPad using the terminal ? I feel like I saw you doing it in one of your vids but I watched all so many times and can’t find it.
@rashie
@rashie 2 года назад
🙂🙂
@eduitguy9016
@eduitguy9016 2 года назад
I'm really curious about your Ubuntu setup!
@eduitguy9016
@eduitguy9016 2 года назад
Will you keep the GUI enabled? Or Ubuntu Server?
@tech_craft
@tech_craft 2 года назад
I’ve done a bit of a mix so far. Adding the GUI on top of server. I’m also playing with the direct Ubuntu Desktop but I’ve had a few issues getting Network Manager to play nicely.
@eduitguy9016
@eduitguy9016 2 года назад
@Tech Craft Awesome! I like using my Pi for more wireless work… and I’ve just found that easier with Ubuntu. Cheers.
@AVSTechYT
@AVSTechYT 2 года назад
Hello, how about getting the pi to work with an Android tablet
@juri14111996
@juri14111996 2 года назад
the same: android support usb network adapter since many years
@tech_craft
@tech_craft 2 года назад
I bought an Android tablet recently to start exploring the setup. Will report back when I have more information.
@HyperionBadger
@HyperionBadger Год назад
2:45 you said "usbc0" but typed "usb0". Does this matter at all?
@tech_craft
@tech_craft Год назад
It should be `usb0`.
@Powergeek2011
@Powergeek2011 2 года назад
I tried with my Kali Linux installation and it didn’t work.
@tech_craft
@tech_craft 2 года назад
I’ve been trying a few Kali options myself. Somebody in another comment suggested that the config might be simplified quite a bit and that might work on Kali. I’ll try and report back.
@DigiDriftZone
@DigiDriftZone 2 года назад
Question, will the Raspberry Pi be able to get Internet through the iPad's 5G or Wifi? - if not, is there a way to enable that?
@tech_craft
@tech_craft 2 года назад
There's no return network path over the USB-C, but you can connect the Pi to the hotspot on a cellular iPad. For Wifi-only iPads there's no mechanism for sharing the connection that I'm aware of.
@DigiDriftZone
@DigiDriftZone 2 года назад
@@tech_craft That's another area of frustration. While I love my iPad, a second hand M1 MacBook can be had at a lower price than an iPad Pro. Apple silicon laptops run all MacOS and iOS software side by side, battery is literally 3-4x longer for many tasks (like dev). it's also lighter than the iPad + Magic Keyboard and you don't need to bring the RPi.
@Andreasytac
@Andreasytac 2 года назад
@@DigiDriftZone If you have a 5G iPad anyways, running a separate hotspot to it isn't a big issue. You can also power the Pi externally and run a USB A to C cable from the Pi's normal USB A ports to the iPad, and enable tethering for a wired tether. You do need to install something on the Pi for this to work - it's a while since I did it, but I think it was "sudo apt-get install usbmuxd". This will work on both iPhones and 5G iPads using whatever USB cable fits between them (A-C or A-Lightning). All the normal stuff like SSH, VNC will still work as well - but connect using hostname.local instead of IP (replace hostname with your actual hostname for the Pi).
@DigiDriftZone
@DigiDriftZone 2 года назад
@@Andreasytac None of these things are a "big deal" in isolation but when looking at the whole setup, yes, you can do all that... or.. you can get a device that's lighter, has 3-4x the battery, larger/brighter screen, nicer keyboard and has none of these external dependencies, setup, wire spaghetti, many bugs, glitches and frustrating workarounds like... no escape key... APPLE! :) - I mean it's cool you can do this with the iPad, but M1 Macbook seems like an infinitely more practical, pleasant and even cheaper solution (amazing second hand deals at the moment). With all this said, all of this information is useful to use the iPad alongside the Macbook for sure.
@Andreasytac
@Andreasytac 2 года назад
@@DigiDriftZone Depends what profession you're in. For me, the Macbook would be a no-go for a number of reasons ranging from the lack of a touch screen and pen to even the lack of a LiDAR that I use at work all the time. I can add a Pi to an iPad easier than I can add all of that to a Mac.
@shadow.banned
@shadow.banned 2 года назад
If you can even find one in 2022...
@tech_craft
@tech_craft 2 года назад
The best option I have for now is to track RPi Locator: rpilocator.com/
@Andreasytac
@Andreasytac 2 года назад
Most of this is completely unnecessary. You're enabling a workaround for devices that don't support Avahi/Bonjour/mDNS, which is basically just Android. Once you add the line in config.txt and cmdline.txt, you're done and it works, since you can just use the hostname instead of messing around with IPs. Doesn't matter if the IP is dynamic when you use the hostname anyways. I use an rPi with an iPad at work daily, and I've never had any issues relying just on hostnames on iOS. SSH through clients and Shortcuts, SFTP, SMB, node-RED, VNC, even streaming video - all works. You can also add those two lines right as you flash the image, and just connect to the iPad right away. I did make the same mistake as you originally though, since the guide you're likely following for this specifically adds the option to not rely on hostnames. But it's essentially redundant.
@tech_craft
@tech_craft 2 года назад
Are you sure? Just enabling the ethernet OTG doesn't create any network on that adapter so the iPad and the Pi are not on the same network. Are you sure you're not just picking up the Pi by being on the same wifi network?
@Andreasytac
@Andreasytac 2 года назад
@@tech_craft RU-vid blocked my original response for including a URL it seems. In any case, yes I'm sure. I've done this dozens of times, including on Pi Zeros, including ones without wifi. I know exact what error you're making because I made the same one originally. Those changes to config and cmdline are all you need to enable Linux's bog standard USB gadget mode. At that point, it will work. You need to either use the dynamic IP you can find in the iPad's settings (under ethernet once connected) or just use the hostname. Everything else you're doing in this video is to give the connection a static IP, which is not necessary on iOS since they can resolve the hostname. A bonus is that you can use the same SSH, VNC, whatever bookmarks and it will work no matter if the Pi is connected via USB C, Ethernet (also works BTW, just use an ethernet adapter on the iPad), wifi on the same network, or hotspot - both wired and wireless. This is also why USB C is not necessary here. It allows you to power the Pi, but if you scrap that requirement, you can connect to any iOS device. Just tried on an iPhone to double check a response to another comment.
@tech_craft
@tech_craft 2 года назад
I’ll give this a try as soon as I can. Would certainly be a big improvement to the process.
@Andreasytac
@Andreasytac 2 года назад
@@tech_craft I found your video a year-ish back when I first ventured into this area, which is why I'm subscribed - but have had to chart 98% of what I'm currently doing with this setup myself. I have no interest in being a content creator, but I've always felt a bit bad for all the info I'm current sitting on about Pi-iPads that would blow people's minds. If you want to chat about it, let me know how to hit you up privately. I probably have enough stuff for you to make videos on for the next couple of years, and you're welcome to it.
@tech_craft
@tech_craft 2 года назад
Sounds great. You can get me on rob@techcraft.co
@dietherdave37
@dietherdave37 2 года назад
I bought an rpi first not thinking. I should have bought the keyboard first :( it is just so much expensive and I am looking to buy a the logitech combo touch. but I lost my job and cant afford of it anymore. If you have some spare combo touch for an 11 inch ipad, i would appreciate it :(((
@nebulousJames12345
@nebulousJames12345 2 года назад
You forgot to explain wtf you were doing....
@tech_craft
@tech_craft 2 года назад
I explained it in the linked videos. Starting from scratch in every single video would lead to a lot of duplication.
@nebulousJames12345
@nebulousJames12345 2 года назад
@@tech_craft let me suggest that in the beginning you say "In my last video I showed you guys how to XYZ - check it out linked up here and in the description". not start from scratch!
@tech_craft
@tech_craft 2 года назад
A fair point!
@nebulousJames12345
@nebulousJames12345 2 года назад
@@tech_craft A LIKE FOR YOU
Далее
the Raspberry Pi 5
17:57
Просмотров 1 млн
My Favourite iPad Pro Accessory: The Raspberry Pi 4
10:25
ОСКАР И ДЖОНИ БРОСИЛИ НАС 😭
01:00
Khadas VIM4 - Powerful Mobile Setup with iPad Pro
18:39
The Petabyte Pi Project
22:27
Просмотров 2,2 млн
How To Use The iPad in 2023! My Best iPad Apps & Uses
11:33
I Built A 4-Bay NAS Using A Raspberry Pi 5
12:24
Просмотров 242 тыс.
When Did Raspberry Pi become the villain?
21:54
Просмотров 1,4 млн
Web Development with an iPad and Raspberry Pi
9:41
Просмотров 1,7 тыс.
How to start your HomeLab journey?
17:32
Просмотров 60 тыс.
Бывший #шортс #комедии #юмор
0:45