Connect Pi 3 to iPad

December 12, 2023, 23:10

isaac_c

Is it possible to connect my Raspberry Pi 3 Model B V1.2 to my iPad 8th Generation? I would like to use my iPad as a screen for my raspberry Pi so I can learn coding and I’d like to use my magic keyboard to type into the raspberry Pi. From my research I’ve found its possible to connect an iPad with a USB-C port, but i’ve got a lightning port and haven’t found a way to connect my Pi in a way that will let me use it how I would like to. Help with this would be greatly appreciated, my Pi is already set up with an operating system installed so I'm just struggling to work out how to connect it to my iPad.

k9t33n

you can use vnc

k9t33n

it wirelessly connects to the pi and as long as both have good internet it's got quite low latency

k9t33n

all you need to is install "real vnc" on your ipad

k9t33n

and on the pi type in this command in the terminal, sudo raspi-config, go down to interfaces, click vnc, yes, and then finish. and for good measure type in sudo reboot now

k9t33n

now you need to find out the IP of your pi. you can do this either by hovering over the network symbol. or use "fing" which you can also download on your Ipad

k9t33n

this is assuming you don't have lite version. once you have done this tell me and I can help you further

oops.se

And you don't need the IP, you can use the Raspberry Pi hostname. The RPi hostname is multicasted/broadcasted over the network via mDNS. Apple has excellent support for mDNS in comparison with MS.

k9t33n

Yes that too

isaac_c

okay <@1071178789939331253> i’ve got vnc, typed in the commands you told me

isaac_c

hovering over the wi-fi symbol on the pi home screen gives me “associated with (my wifi)”

isaac_c

and “configured (the ip?)”

isaac_c

is that right?

isaac_c

<@796000224690307072> any idea aswell as i see you’re online?

isaac_c

how do i know my the username and password

isaac_c

i think i worked out the ip thing

isaac_c

oh never mind!

isaac_c

i used the pi raspberry username and password and it worked

k9t33n

btw we can't do anything with this

k9t33n

you set it in the imager, or in the raspi config

isaac_c

oh ok haha i got no clue what’s going on

isaac_c

ive got it connected and working

isaac_c

the magic keyboard and trackpad both work perfectly

isaac_c

the s

isaac_c

the aspect ratio is wrong

isaac_c

and i unplugged the pi to move it and when i plugged it back in it wasn’t connected to wi-fi and i had to put the password in again

isaac_c

do i have to set it to remember the network or something?

k9t33n

no problem, people think it can be dangerous to share but this is your local IP so I cant do anything with it unless I find a way to come to your house and steal you WiFi password

isaac_c

i see i see

k9t33n

shouldn't do

k9t33n

wait so it's working on the iPad?

isaac_c

yeap 🙂

isaac_c


isaac_c

ta da haha

k9t33n

great

k9t33n

ok now any other problems?

isaac_c

okay so first i had it connected to a to with hdmi before i wirelessly connected

isaac_c

but now ive gone straight to the ipad

isaac_c

the wi-fi issues are gone

isaac_c

but the python idle is massive

isaac_c

takes up the whole screen and the font size is silly big

isaac_c

i went into the idle options and changed the font size but it didn’t actually change anything

k9t33n

yes you can set the resolution higher

isaac_c

okay how do i do that?

k9t33n

the main menu --> preferences --> display or interfaces

k9t33n

the main menu is the raspberry icon

isaac_c

okay thank you ill give it a go

isaac_c


isaac_c

im sorry but i cant find resolution in here?

k9t33n

is this an old os?

k9t33n

it looks so different from mine

k9t33n

also I said "preferences"

isaac_c

im not sure what os it is

isaac_c

i set it up years ago

isaac_c

and then haven’t really used it since

isaac_c


isaac_c

thats all ive got

isaac_c

and then clicking appearance settings takes me to the menu i sent before

k9t33n

oh well get the newest os

k9t33n

sudo apt update && sudo apt full-upgrade && sudo reboot now
then once it reboots
sudo apt autoremove && sudo apt clean && sudo rpi-eeprom-update && sudo rpi-eeprom-update -a && sudo reboot now

k9t33n

in the terminal

isaac_c

im having some problems installing the update

isaac_c


isaac_c

got this error message

isaac_c

it got all the failed to fetch messages after doing sudo apt full-upgrade

k9t33n

problem is you didnt start it with sudo, in this pic atleest

isaac_c


isaac_c

i get all this after runner sudo apt full-upgrade

isaac_c

exactly that

k9t33n

ok do sudo reboot now and just continue with the rest

isaac_c

sorry thank you so much for all your help

isaac_c


isaac_c

is it a problem that its failing to fetch some files after running sudo apt update

isaac_c

yeah sudo apt full-upgrade doesn’t work still

isaac_c

it says “ maybe run apt-get update or try with —fix-missing”

null

Always first sudo apt update And only then sudo apt upgrade Or sudo apt full-upgrade

k9t33n

yes try sudo apt-get full-upgrade and if that doesnt work try sudo apt full-upgrade --fix-missing

k9t33n

yes the full command i gave him has this

isaac_c

im still getting loads of 404 not found and ips and then failed to fetch and then urls with the second command

isaac_c

the first command is not valid

null

But since the first error after the update, he only talks about upgrading... And Jessi? This is Debian 8...

k9t33n

yeah i thought it was old

null

Very old...

isaac_c

i set it up years ago

k9t33n

ok try sudo reboot now an do the second lot of commands here

k9t33n

it should be fine

k9t33n

if not were just gonna use the imager

k9t33n

is it old enough for these commands to not work?

null

404 It may be that the mirror server no longer exists, you would have to see if there is another one

k9t33n

were probs just gonna use the imager

isaac_c


isaac_c

this is after a reboot

k9t33n

no not those commands

isaac_c

ohh

isaac_c

which ones sorry?

k9t33n

sudo apt autoremove && sudo apt clean && sudo rpi-eeprom-update && sudo rpi-eeprom-update -a && sudo reboot now
these ones

isaac_c

ah okok

isaac_c

ill try

null

Remove before he has made an update? Has the system been reinstalled or not used for a long time?

isaac_c

not used for a long time

isaac_c

i tried these

isaac_c

got “invalid operation autoremove”

k9t33n

thought so

k9t33n

ok just gonna reflash

k9t33n

ok you got a sd card reader handy?

isaac_c

like

isaac_c

a laptop?

k9t33n

yes

isaac_c

yeah i can get one quick

isaac_c

am i gonna reformat the pi sd card or something?

k9t33n

yes

k9t33n

you need raspi os imager

k9t33n

one second ill be right back

isaac_c

family laptop

isaac_c

is so slow

isaac_c

im not meant to have a slot to put an sd card in am i

isaac_c

because i don’t

k9t33n

oh

k9t33n

yes you are

isaac_c

ok hang on

isaac_c

let me check

isaac_c

another one

k9t33n

how did you do it all those years ago?

isaac_c

i cannot remember

k9t33n

I can attempt to do it without a SD card reader but your unlikely to have much success with me

isaac_c


isaac_c

thats the best i got

isaac_c

but thats waaay bigger than the card in the pi

k9t33n

yes your using a micro SD card that's a full size SD card

isaac_c

yeah thats not gonna work

k9t33n

ok so you have nothing else in your house?

isaac_c

ive got a cd drive haha

isaac_c

but no sd card

isaac_c

there’s one more laptop

isaac_c

ill look at it quick

isaac_c

but its a work laptop with restrictions so it might not work for it

k9t33n

oki

isaac_c


isaac_c

that’s the card

isaac_c

and that what’s in the laptop

isaac_c

the card doesn’t fit

k9t33n

ok

k9t33n

one second let me think

isaac_c

okay thank you so much

k9t33n

<@808278006614196262>, you got any ideas?

k9t33n

im all out i think

isaac_c

damn

isaac_c

thanks anyway

isaac_c

so the pi has a micro sd right`/

isaac_c

?

isaac_c

and the laptop had a full size sd slot

isaac_c

can you get converters

isaac_c

like with sim cards

k9t33n

yes you can

isaac_c

so that would work?

isaac_c

what about putting the pis card in my phone?

k9t33n

i wouldnt suggest it

k9t33n

its gonna be harder than just getting a converter

isaac_c

ah okok

isaac_c

so if i got a converter

isaac_c

and got the sim card into the laptop

isaac_c

what would i then do

isaac_c

should i reset the whole thing from scratch?

isaac_c

would my Pi 3 work with the newest os?

k9t33n

yes

isaac_c

okay so should i just fins a guide online to install an os on the pi

isaac_c

find*

k9t33n

well you dont need a guide

k9t33n

when you get the converter you simply download the imager https://www.raspberrypi.com/software/ on your laptop, select the correct os. follow a few steps i show you and press done

isaac_c

okok

isaac_c

thank you

isaac_c

would i clear the sd card first?

isaac_c

and can i come back here and @ you when ive got a converter for help please

k9t33n

yes

isaac_c

thank you so much for all your help

isaac_c

much appreciated ill see if i can get a converter

k9t33n

np, i do this for my own benifit too so you realy dont have to thank me

k9t33n

actually thank you for being one of the easiest people here to help

isaac_c

haha im glad i wasn’t too much of a pain

k9t33n

no your fine

isaac_c

sorry one more thing

isaac_c


isaac_c

would any of these be fine

isaac_c

oh also

isaac_c

would me not being a root be a problem

isaac_c

i’ve been trying to do all this via the ipad vnc

isaac_c

and i remember somewhere in the error messages it said about root access

isaac_c

yes in this sc

isaac_c

it says at the bottom

isaac_c

are you rooting for?

isaac_c

root?*

k9t33n

i was thinking the £3 one

k9t33n

thats what sudo is meant to be for i think

isaac_c

yeah seems good

isaac_c

thank you

k9t33n

np

isaac_c

oh i seee

isaac_c

i wondered what that was all about

k9t33n

sudo gives stuff permisions

isaac_c

sudo means ‘as’ doesn’t it?

isaac_c

maybe ive made that up

isaac_c

the permission thing makes sense though

k9t33n

i just kinda know it gives permisions

isaac_c

alright

isaac_c

thanks again

isaac_c

ill be back once ive got the adapter

k9t33n

great

isaac_c

hey <@1071178789939331253> i got the adapter

isaac_c

what am i meant to be doing now?

k9t33n

download the imager on your laptop, choose 64 bit normal and tell me when youve done this

isaac_c

alrighty

isaac_c

should i clear the sd card first

isaac_c

like delete everything off it?

isaac_c

okay <@1071178789939331253> i’ve installed it on my laptop

k9t33n

ok now select 64 bit and press on the settings icon

k9t33n

then set the hostname (the name of your pi) to something you can remember. hostname to your name for simplicity and a password you can remember

k9t33n

aswell well adding you network details and turning on ssh ofc

isaac_c

yeap okay all done

isaac_c

waiting for install now

isaac_c

what is ssh?

isaac_c

all done

k9t33n

it's like vnc without the ui

isaac_c

ah okok

isaac_c

<@1071178789939331253> how do i install python idle on the pi now?

k9t33n

python is already installed, i dont know what you mean by idle

isaac_c

like the text editor

isaac_c

how do i open it to start projects then?

isaac_c

cos when i go to the menu and then programming it’s not there like it was before i updated my system

isaac_c

oh never mind

isaac_c

i found it

isaac_c

its just different to what i used to do

k9t33n

yup