VSCode on iPad Pro - Full Setup Guide with Raspberry Pi
Вставка
- Опубліковано 3 лип 2024
- Get a mobile VSCode setup on your iPad Pro/Raspberry Pi using the wonderful Code Server project.
NOTE: This is a re-upload of an earlier video that only had audio in the left channel. This one has audio in both channels!
All commands can be found on my website at: techcraft.co/videos/2022/2/vs....
CHAPTERS
=========
00:00 VSCode on iPad Pro
00:44 Installing NodeJS
01:30 Install code-server
02:32 Default configuration
04:08 Connecting from Blink
05:53 Full screen Safari
07:10 Re-enable password authentication
07:34 Auto start code-server
09:38 Installing extensions
12:10 Secure mode
LINKS
=====
* NodeSource Binary Installation: github.com/nodesource/distrib...
* Code Server: coder.com/docs/code-server/la...
* Blink Shell: blink.sh
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
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 - Наука та технологія
Code Server now requires NodeJS 16. In the instructions replace:
curl -fsSL deb.nodesource.com/setup_14.x | sudo -E bash -
With:
curl -fsSL deb.nodesource.com/setup_16.x | sudo -E bash -
to get the correct version
I’ve finally had the time to configure everything including the blink setup and it is an absolute joy to use. Great video, thank you
Thank you for another great video. I followed the link from your reply to my question on your video about connecting the iPad Pro to the Raspberry Pi. I can begin to see now how powerful this combination can be. 👍🏼
This fixes the audio in the earlier release of this video. Sorry for the delay in getting this out - I was away from home for a few days.
All commands can be found on my website at: techcraft.co/videos/2022/2/vscode-on-ipad-pro-full-setup-guide-with-raspberry-pi/
Sincerely thank you for the fix! Keep enjoying what you do!
Fabulous!! It really works. I ran java ee development on iPad. Magic!! Thank you!
I'm just getting excited to use this setup soon.
You are a star - thank you very much for this tutorial!
Awesome video! Thank you!
Thank you very nice tutorial! Thinking of buying an iPad setup now.
Very helpful..thanks a lot.
This is awesome! I’m outrageous about the fact that I’m forced to go through this process to make my $1,000+ iPad Pro useful.
Do a video on xmonad and VNC!!! Thanks for the videos, they are great!
Truly great video! One small suggestion - when you do things in the terminal or editing files, please allow a second or two more of that visual content before changing to something else. For example, after you edited the config file to enable certs, the scene changed so quickly that I had to rewind a few times and try to pause the video at just the right moment.
Good feedback. I included all the commands in the linked web page so that they are always available to copy without having to read from the video.
Nice job. Much better.
super dope... thanks
I absolutely love your videos and the pi is such a great addition to the iPad👍
100% BRILLIANT. FYI I installed Node v18 from NodeSource then got schwacked because code-server needs V16. After removing V18 and installing v16 all went well. The crazy Blink guy showing BlinkFS etc... I never got past the annoying Apple Files app BS. code-server is the bomb. I learned new tings about the iPad too. This was great, and very well presented.
I've found that code-server is very particular about the version of NodeJS that it requires.
Thank you for your inspirative video, i used it like my base tutorial for configuration of my combo. But i use different HW and insteat of PI4 i use Radxa Zero, which have similary performance with PI4 and is small like RPI Zero. This Radxa Zero has 4 GM RAM and also onboard eMMC, which is littlebit faster then classic SD card. And you can also find tutorial, howto Enable USB Ethernet gadget configuration for this Radxa Zero
Hello! Love this tutorial and have set up VSCode on my RPI4 4gb. Could you please upload a followup video showing how to integrate PlatformIO into VSCode running this way? I believe there are some networking issues as I have tried just about everything in the forums and for whatever reason PlatformIO runs in the browser but not in the tab within VSCode as it should. Thanks mate! Love your videos :)
funny and cool and creative
Excellent video. Running code-server via Safari worked fine, but every time I tried to run it via the blink ios app as per your video it kept advising I had to install blink-fs code extension. I installed this on the raspberry pi code-server, but it wouldn't install into the browser! I then read Blink's Code document page, and you have to first set-up by running "code ." in blink which loads a local instance of code, allowing you to download and install the blink-fs extension. After that, everything worked as per your video.
Well spotted. I had already done that step before shooting and forgot to include it.
How do I install blink-fs to the code-server. I've got the extension for vscode but blink can't seem to access my files still.
My Pi Zero2 just froze trying to compile code-server. The reason was that the Pi was stuck swapping memory.
I did the following to change the swap file size:
sudo service dphys-swapfile stop
sudo nano /etc/dphys-swapfile
CONF_SWAPSIZE=1024
sudo service dphys-swapfile start
This fixed it nicely.
I re-set the swapfile size to 100 afterwards.
Maybe this helps someone with a similar setup.
Hey! Great video, not sure if you’ve noticed but in the latest Blink major release, VSCode is baked in, just run code from your blink shell :D
I have seen that. The VSCode that's built in is missing quite a few things - it can't run code for example - without being connected to a code-server or similar.
@@tech_craft yeah it still requires a remote connection, it’s still abiding by the apple App Store policies, it’s still very cool
Blink shell now has code built in!
It does, however it's no a 'full' Code in that it doesn't have a terminal or any ability to run any code without connecting on to something like a code server. This setup is mentioned in the video.
This is really cool! Thank you for sharing. Will make it a point to implement this month. Quick question:
When you run or debug code within vscode where does it execute? On the server? On the iPad (which wouldn’t work I imagine)
Cheers
It runs on the server. In this mode you’re basically using the iPad as a remote terminal.
My experience was really weird. I had to install NPM and Node the long way round because my codename for my Raspberry Pi OS distro was "n/a". Anyway that seemed to go well and I could get version numbers with npm --version and node --version so I installed Yarn using nom and that worked good too and I got a version number for that when I typed the command yarn --version. However when I restarted my Pi and tried to get those version numbers through my zsh shell I got "unknown command: npm" etc for all three. So I changed my shell to a bash one and low and behold I could get version numbers again.
I then changed back to zsh and the version numbers came up then too. But if Restart they then they npm, node and yarn seem to stop being recognised all over again.
Also I managed to get the code server running and coming up in Safari once but now after restarts using systemctl I get a continuous redirect for the code server local webpage in Safari.
I think I may just have to give up unless anyone has any suggestions. :-(
Great video though. Cheers!
It sounds like wherever npm is installed isn’t in the path in your zshrc file. You can run ‘echo $PATH’ in bash to see what you have that’s missing when you start up directly in zsh. Then you can add those to your path in your .zshrc file
Quick question, after everything is installed, anytime you want to program, you would just have to plug the PI in and then when you're finished you would just plug it out right?
Is there any option to change the Zoom level for the whole VSCode screen? It‘s a little small on the iPad 11“
Really nice video. I've got one question. Once you've installed an extension from a downloaded file, will it be updated directly or you have to download the updated version file, transfer it to the pi and install it again?
For extensions that you download and add manually, you'll need to repeat the same process to upgrade.
Can you do a tutorial on how to use your IPad Pro as a monitor for a Steam Deck? I’m sure it would help a lot of people and would be a decent video to cover.
I just got a Steam Deck so if I figure out a since setup I will certainly share!
Never created a soft ever. Not one. I've watched dozens of videos lately and have learned all kinds of interesting stuff about mic
Good morning Rob, I am one of your followers and I am curious about which version of the Raspberry Pi can be used with an iPad 4 that has a lightning connector. I have three iPad 4s that I am hoping to bring back to life. Thank you in advance for your response and God bless.
As now it is impossible find a Raspberry Pi4, I wonder if this guide will work on different HW like khadas VIM4. Thank you
There will be some connectivity solution that works, even if it's just wifi or ethernet.
Can you use this method to turn the Ipad into a portable monitor for a steam deck?
Ahoy hoy - supa Rob !!
great videos - QQ had you updated the images w. vscode on them ?
Hey! The images I published were without VSCode and I haven’t updated those recently. The install process is a little simpler these days: coder.com/docs/code-server/latest/install
Hi! Recently came across your video and great tutorial btw. With the new iPad pros m4 are you still using this method? Or is this an easier method now to use vscode?
Is there any chance you could cover the camera ui in Hoobs please, the plug-in looks fantastic, I just don’t have the skills or experience yet 😩
I'm trying to find the time to return to more Home Automation content!
First of all, thank you for the great video! :)
I have a question about installing the extensions: Unfortunately, my pi is not displayed in files when I mount it via blink. Have I possibly forgotten something?
Nothing comes to mind. I'm shooting a tutorial showing this exact thing in the next few days so if there is anything missing, hopefully it will show up there.
What a brilliant setup. One thing comes to mind though, we not leave the PI connected to a router instead of carrying it along? Is there some obvious caveat I'm missing here?
This is what I do but I think some people like carrying it around for adding extra ports to their iPad through connection of the Raspberry Pi. Also if you want to access it when you are away from your home network you have to add port forwarding rules on your router to ssh to it remotely so it is probably easier for most people to just carry it around and connect it directly to their iPad.
The only caveat is whether you’ll have reliable connectivity back to your home/office. If you do, then leaving the Pi at home makes sense. If not, carrying it gives a bit of extra certainty
Please make a video how to install or use Android Studio in iPad over Linux Server
Is the master channel of the setuper peaking into the red? If you have any peaks over 0dB it will distort. Please do let know, We will get
Hello! Thanks for the video, are these steps the same if I use the Ubuntu image?
Thank you sir, in tNice tutorials tutorial I've learnt alot from you!
Awesome video. just couldn’t get the certificate part working, but i’ll try again. One question. Is it just me or the github integration does not work with this set up ?
I haven't tried it so I can't say for sure. I imagine this problem probably isn't going to be present on the official VSCode server
Due to the outrageous raise in price of the Raspberry Pi 4, could you please advise me another board with which I could use the same "one cable" setup with the Magic Keyboard? Thank you in advance, you videos are sooo good!
Everything seems expensive at the moment. I've been using some of the Khadas boards but they don't support the one cable setup - I end up using Wifi linking instead which isn't as nice. Sadly the Pi4 remains the best for this - in my experience at least.
Hi great video! Just wondering if you've been able to clone repos and push branches using git whilst having this setup? I'm had issues in the past. Thanks!
I haven't had any issues with this. What errors are you seeing?
Thanks Tech Craft, Do you think that this solution could be made to work wirelessly so there is no hard wire connection between the pi and the ipad?
There's RaspAp which turns the Pi into a wireless AP that can be paired with this setup. It used to be the case that you could do this with just the wifi adapter in the Pi in a reasonably supported way. This is now not really supported and you need a second USB-C wifif adapter. That itself is a pain because the driver situation is terrible.
Thanks Tech Craft for producing this video! I am pretty new to this and tried setting it up but am having some trouble.
What were the steps taken prior to 0:39?
Is the Raspberry Pi connected to the iPad Pro?
Some information on what I have done: I had downloaded your image of ARM64 Lite and flashed the file using balena etcher. Managed to set the WLAN and hostname via raspi-config. Tried to ssh using blink but I can't seem to establish a connection.
Do I watch the earlier video titled "Mobile Raspberry Pi Setup with iPad Pro - Coding, Productivity & More" as a pre-setup to this video?
I'm going to shoot an updated beginner's guide very soon. For now though, if you're using my images, it's enough to connect the Pi via USB-C to the iPad and then ssh in with `ssh pi@10.55.0.1` the password is `raspberry`.
@@tech_craft Thanks for the tip! WIll try again!
@@tech_craft What should you do if you dont have the pro version but a base model ipad?
@@RenM908 I'm using a 6th gen iPad and a pi4, the communication part its not the problem, the problem is that the older iPads (lightning port) don't have enough power to power up the pi.
My solution:
I'm supplying power to the pi through the GPIO pins and also a USB hub, then the USB-C from the pi goes to the hub and the hub connects to the iPad, also have the advantage that now i can use higher powered devices with my iPad.
This way the iPad only deals with the communication part.
My final setup is a pi4(8Gb) ina Argon M.2 case with a GPIO 4 port hub on top, a 10A/h power bank lasts me around 1 1/2 hours if i need to power the iPad also.
Hope it helps.
*not all of us can afford a PRO* :)
Hey all, when I try to do the step with certificate, I can't start the code-server anymore. It throws the "Failed with result 'exit-code'." error.
Any thoughts?
hi, I keep getting an error when running code-server and unable to access local host, it keep spitting out an error saying I dont have module 'Yazl' installed
what do I need to do to resolve this?
sorry, how did you access raspberry pi through your ipad? or is it just plain SSH that you mentioned in the other video?
Fantastic Video, thank you very much.
One question remains for me: I'd guess if I run something like the ng serve command from Angular, this would actually boot up at the raspberry. Is there a way to access the Website (e.g. localhost:8100) on the iPad?
Thanks. You certainly can access things on the Pi. Rather than using localhost, use the hostname or the IP address of the Pi instead.
@@tech_craft is there a setting that needs to be enabled? I can't seem to reach the site i'm working on using the pi hostname and port.
Hey! Great video, I have an ssl certificate from Let's Encrypt that I use for an apache server on the same pi (port 80/443). So I can access it from anywhere, my code-server port is also forwarded. Is it possible to use this certificate that I already have for code-server so it can actually be valid? Thanks!!
As long as the hostname you access code-server over matches the host-name of the cert, I see no reason why it wouldn't work.
Great tutorial. When using vocoder with blink it sometimes loses connection. Is mosh a way around this? I can’t seem to get mosh and vocoder working together with blink.
I don’t think mosh helps in this instance. Blink has a geolocation hack that can keep SSH tunnels alive for longer. You can run ‘geo track’ in Blink to turn this on
@@tech_craft Thanks for the tip! I don’t really know much about mosh and the advantages of using it. Looking forward to future videos regarding your setup and workflow. VSCode in Blink is a game changer for coding on the iPad.
Ok, just got this all going. It was fun, and I learned a lot. What's our next project Rob? =P
I'm currently working through moving off the Apple ecosystem of services towards self-hosted/open source tools. Quite a lot of moving parts, all at varying levels of working so far, but it's been interesting and I'll be documenting it all on the channel.
@@tech_craft I’ll look forward to it!
And Rob, you’re awesome. Really enjoy your channel. Is there somewhere we can send you a tip or beer $?
Glad you are enjoying the content.
I haven't really been very serious about making money from the channel. Right now I'm mostly focused on growing and serving the audience.
That said, I am planning on setting up a Discord server for a better way to have these discussions and I'll probably launch a Patreon at the same time.
Hi, I'm watching all your videos about connecting the RaspBerry Pi 4 to Ipad Pro (M1) and I think this is a great idea but I have a question. Is this setup powerful enough to code new mobile apps, web sites, pc videogames (no simple videogames), or "big" software (not just for hobby)? And is it also enough powerful "to code" hardware (for example mouse/keyboard), I mean create a new mouse from 0? Thank you. (Sorry for my bad english)
Websites yes, and 'big' software yes, depending on how big you go. You can certainly build real software on the Pi.
I don't have enough experience with mobile dev to really say - I certainly think this setup is unlikely to work for iOS development, but maybe for Android.
PC videogames. Things like Stardew Valley probably. Things like Crysis - definitely not.
You can definitely code hardware with the Pi and because it has built-in GPIO, things like making keyboards or mice is quite common.
Thanks for doing this, pretty cool. I have a question though. The USB setup get the Pi on a 10.55.x.x address... problem is: I have a network setup that is a bit picky on the firewall. The Pi WiFi get san IP address 192.168.1.x an dthe firewall rules do not allow 10.55.x.x to establish a connection... so occasionally (not all the time whcih is weird) I get intrusion detections and blocked... Any idea on how t make this work? I might need to re learn networking...
That’s strange. What’s the network path here? Is it iPad to Pi over 10.55 and then Pi to LAN over 192.168?
just run the vscode docker container on pi and presto. Takes 2 mins
excellent video thanks, however I can’t get code-server to run properly. I’ve tried it on a zero w 2 with buster and bullseye, cs starts ok but when I connect from the iPad it fails with an error that it can’t find module minimist :( I’ve tried manually installing minimist but it just fails on another module yauzl I think it was. Strangely enough if I run code server in a docker container on the pi it does work ok, but I have probs installing extensions so I’ve gone back to native cs on the pi and am trying and failing to figure this minimist thing :(
Which version of code server are you picking up? There was a bug in 4.0.2 that caused a bunch of issues. I saw this exact one and ended up waiting on the video until 4.1 came out. Worth checking you're not getting an old version some how.
@@tech_craft thanks for the reply, I’m on 4.1 and haven’t managed to figure a solution so I’m trying the docker version again to see if I can figure that out
ok i got a “solution”…i just went and “npm install -g” all the required modules (minimist, yauzl, yazl) and i got like code-server to present me with the UI before, within milliseconds, running into MORE “cannot find module [module].” having to installing these modules one-by-one gives me doubt that i installed code-server correctly in the first place or yarn…..:(
@Tech craft, I’m not Mac or iPad guy but my question is that new Mac M1 directly support VScode and new IPad also have M1 chip then why we are not able to install directly?
Sadly not. The chip would support it but the operating system does not.
Thank you for this video! Did you need to install an Ubuntu desktop for the vscode setup to work? I struggle to finish the setup on my Pi which has a headless ubuntu on it, I wonder if I missed that requirement. Thanks!
For this setup you don't need a GUI, but can have one if you prefer. I wonder if the issue you're seeing is that Code Server upgraded from Node 14 to Node 16.
In the instructions replace `curl -fsSL deb.nodesource.com/setup_14.x | sudo -E bash -` with `curl -fsSL deb.nodesource.com/setup_16.x | sudo -E bash -` to get version 16 instead of version 14.
@@tech_craft TYSM for the quick reply! I did notice that I needed version 16, I think there was a helpful error message along the way. I'll keep troubleshooting and post what worked
Can you connect the Raspberry Pi to the iPad-Pro with a normal USB-Type C ? Or do you have to use a More advanced cord for it to work ?
It depends on what revision of Pi4 you have. Revisions pre 1.2 need special cables. Tom’s Hardware has a list of know working ones: www.tomshardware.com/news/raspberry-pi-4-usb-c-cables-that-work,39869.html
Newer revision work with any cable of decent quality. Be a bit wary of cables that are overly long or thin. You might see voltage drops that cause the Pi to throttle.
So you run the server on the iPad too am I right?
CAN THIS WORK ON THE IPAD AIR
Have you been able to use the Jupyter Extension inside of code-server with this setup?
I haven't tried it. A few people had some issues so I'm going to give it try out to dig into the issues.
Does anyone know if this would work with an x86 SBC (such as a lattepanda)? If so, what model? I'd love to use this setup with an iPad Pro 12.9".
I don't see any reason why it wouldn't work with x86 platform. ZOTAC ZBOX pico PI225 would be great for this
I have it set up and running but I want to design a react web app, so i need to port forward more than one connection in blink. when i try adding another port in the SSH Config the ssh wont even run. What is the format for adding multiple forwarded ports?
You can add `LocalForward :` multiple times in the SSH config section of the host. So `LocalForward 8888 localhost:8080` forwards port 8888 on the target to port 8080 on the iPad
Using yarn is giving me an error stating that I must use NPM instead. How do I create the code-server.service file since the paths are different and the ones I've tried doesn't work. Do you know?
Sorted mine by trying some of the commands on the Yarn 'Installing Dependencies' page
Can you please have a link for that pi case
Here you go: geni.us/M5ph
Anyone can explain how did he opened the terminal in the ipad ? I didnt get it
for all the complexity of this installation, can someone explain if written code is lost when a connection goes down due to power or other connection disruption? I would really hate to lose code I've written in this setup.
I have auto save disabled so never lose anything when disconnecting.
Please take it slowly
My GMS (app) softs different. Why?
I went this route for a while, my most usecase is outside home/office, the experience is not good for three reasons:
1. the portability is not good with addtioanl dangle with Pi
2. the battery is wore with additioanl Pi consume the iPad battery.
3. the eco-system for arm is still not compatible with x86, many softwares are not running well.
Now I switch to Surface Go3, which has the similar screen size, but full x86 linux installation ( Arch Linux ) without any dangle, I have run this for a while, the Linux experience is perfect, the drawback is not much excellent touch App support. So it's really depends the use cases for different solutions, just sharing my expereince here for reference.
I was running the Surface Pro 7 for a while, but with WSL on Windows 10 rather than going full Linux. How's the battery life? That always seems to be the downfall of mobile Linux.
Where do you recommend obtaining a RaspberryPI from? There seems to be a dearth of them and some highly inflated prices. Also, at what point or what set of criteria (for you) do you think you won’t have to use the Pi?
There seems to be no reliable supply that’s priced well. In the U.K. I’m watching PiHut and Pimoroni regularly. A few came into stock recently but were gone in no time.
For your second question, a definitive switch off would be real virtualisation on the iPad, or real unix on the iPad.
Alternatively, a converged MacBook and iPad that was best of both.
I’m also trying out Android at the moment since a lot of people suggested it might fit the bill.
The Pi will remain usefully for many other use cases burgers are the main changes that would reduce its usefulness alongside the iPad I think
hi could u help every time i go to install code sever i get node is incompatible with this module expected version 16 got 14.19.3
Recently code-server upgraded to Node v16.
You can find install instructions for all versions here: github.com/nodesource/distributions#debinstall.
Use the instructions that say they are for Ubuntu.
I have the raspberry pie for B I think is that a 64 bit or 32 bit? And how do I find out if mine is a 64 bit raspberry pi?
All Pi4s are 64-bit. You can install either the 64-bit or 32-bit operating system. To tell which version you are running, run `uname -a` in the terminal. For 32-bit you'll see `armv7l` and for 64-bit you'll see `aarch64`.
can u show me best compiler for ipad
Which language are you compiling?
@@tech_craft C language for first year on university
Anyone know how long does the iPad battery last when Its powering the PI4?
It's very dependent on what you're doing with the Pi and things like screen brightness on the iPad, but I get 3-5 hours pretty reliably when I'm working.
Would the Pi connect exactly the same way to a Mac using USB C? Wondering if I could have a Pi plugged in as a development machine when I'm at the desktop, but rather than taking a MacBook and iPad with me when I travel, I could just take the iPad and Pi and not have to rebuild my dev environment
Sorry for the late reply, I wanted to double-check that it does work, but yes, you can absolutely do that.
@@tech_craft No problem, I appreciate you testing it for me. That's great news.
If I start ng serve on code-server so how can I access to run angular app on 4200 port?
You can access 4200 directly on the hostname of the code-server machine.
I'm getting this error on safari when I open the code-server saying "safari can't open the page because it couldn't connect to the server", can you help me please
Update- remember to start code-server before accessing from safari 😅😅
Small question. U use blink. Why d’u use rasp pi of the vscode IS Integratd with blink? And next one. On Video and in blink IS code Web edition. Maybe Eastern Is to show code on VNC connection. IT IS full version on Linux . And all extension can be installed. And next. Maybe it will be good to show How run Live Server to show running our Project.
The VSCode in Blink cannot run code - it can only edit. You need to connect it to separate server to have an execution environment as shown in the video.
Anyone experiencing the issue:
yarn.lock file not present, not running in development mode. use npm to install code-server!
This occurs after the yarn global add code-server command
i got exactly this. then after downloading through npm, i can run the code-server command, but when i access the port 8080, it tells me i’m missing a few modules like yazl and minimist. Even after specifically downloading these modules, nothing changes (code-server still tells me i’m missing those modules) and i can’t access code server through ipad
Let me take a look at this - I haven't done a new install for a while since mine has been stable, maybe something has changed.
@@tech_craft I'm having the same problem as Alex
Same for me, it seems that you can just use npm as suggested and then use the code-server command as is, without the need to specify /.yarn/...
anyone found a solution fir this? I'm having the same issue.
Need help with the code-server install via yarn. I keep getting the ff error “error /usr/local/share/.config/yarn/global/node_modules/code-server: Command failed. Exit code: 1” and further down it shows “yarn.lock file not present, not running in development mode. use npm to install code-server!”. Any ideas?
Not sure of the exact errors but the latest docs recommend `npm` for ARM installs now. You can see the docs here; coder.com/docs/code-server/latest/npm
@@tech_craft Would you be able to revisit code-server and update your video? A lot has changed and although I was able to get code-server installed with npm the dependencies are simply broken. It seems to be hardly functional as it is now. Thanks.
Does this work on the iPad Air need vscode
It does. If you have a USB-C Air then it works the same as with the iPad Pro. If you have a Lightning Air then you'll need a different connection method. See this video: ua-cam.com/video/cD3JN8BHosI/v-deo.html
I am running into a yarn lock file issue after running "yarn global add code-server" any suggestions?
I usually delete (or move yarn.lock) and try again when doing this.
Apple should just make tablet version of macos. Or a different linux distro supporting tablet features on their ipad for Ipads to be a usable computer. Otherwise its just a big-sized smartphone
I agree. I was disappointed that iPadOS 16 was so underwhelming for pro use cases. I really don’t get all the hype around it
So I have ubuntu on my raspberry pi, following the other tutorial you have but just using firefox is a hassle, would you say using raspbian OS is better?
Raspbian is still the least-friction setup, mostly because third parties create RPi docs/packages with RPi OS in mind. Ubuntu is catching up, but if you're facing problems, trying RPi OS is a good place to start.
@@tech_craft Okay I got Ubuntu to work with vscode and Firefox, I'll try over clocking it and see how it goes
@@arturfil hey, do u mind telling me how u got firefox working? the only thing happening to me is that it's complaining about not being able to open at display :2. Thank you so much in advance
@@regl0s On his video of Ubuntu on ipad he puts on a comment that you have to run the following command:
xhost +si:localuser:$USER
and after that you should be fine
@@arturfil thank you very much
Is there a guide for serving a website to localhost:4200, or similar, and showing it in another window? I’m sure I found it on a video of yours and can’t find it again.
You can access anything running on the Pi using the Pi’s own hostname, there’s no real need to tunnel to localhost.
@@tech_craft Ah, that’s perfect. I’m trying to live the iPad lifestyle. Linux is a black box to me as someone’s who’s always been a windows developer. Your videos have been invaluable. I’ve had to go to eBay for a zoo though as none exist anywhere else 😂
@@tech_craft Sorry, I have noticed I can get to the site via the USB0 IP (through ifconfig). Appending :4200 to the address didn’t work though. Any suggestions?
Is this still relevant if you have github codespace?
I think so. The last time I tried it, Codespaces didn't play too well in Safari on iOS. I'm hopeful that Codespaces and GitPod will both get that resolved eventually.
So is this basically using ipad as a monitor for rasberry pi ? ignoring all M1 powers ?
It’s doing things the iPad can’t do, M1 or otherwise.
tutorialng your tutorial video, i feel much more confident
Do I need a raspberry pi for this setup to use a vs code
You need a Pi for this exact setup, but you can also use pretty much any other machine that you have access to from your iPad. Sadly, the iPad won't run full VS Code so you'll need to host the server version somewhere.
honestly i’m done ive tried running through this tutorial 5 separate times, and it always gets hung up when i try and connect using the local url in safari, and it never connects. Can someone please tell me what i’m doing wrong?
What's your setup? Are you running the Pi connected over USB-C or WiFi?
I got an warning ("code-server > @coder/logger@3.0.0" has unmet peer dependency "@google-cloud/logging@^9.2.1") and an error (/usr/local/share/.config/yarn/global/node_modules/code-server: Command failed.) during execution of "sudo yarn global add code-server". It would be kind to get some help to determine what couses this problem. I am using a fresh install of Bullseye 64Bit (no desktop ) on an Pi4B and try the installation via SSH and follow the updated guide on the website. Thanks for your assistance.
First thing to check is which version of NodeJS is installed. What does `node -v` return?
@@tech_craft i have this same problem and node -v returns “v16.18.1”
Would this setup possible with a Rpi Zero W?
In theory yes. In practice, I suspect there will be too little memory for this to work well on the Zero.
@@tech_craft Thanks for the info!
BTW glad to see you're back. Keep up the good works!
Any way to use this on the go outside of the home?
Yeah, a few good options.
1. You can carry the Pi with you. That's how this project started for me.
2. You can run a machine in your home and make it accessible on the Internet. Port forwarding, VPN or services like remote.it are good options for this.
3. You can run a machine in the cloud on a one of the many cheap providers like Linode or Digital Ocean.
I have been trying to access the pi on the go taking it with me without internet connection and it wont connect via usb c. Any suggestions on what may be causing this?
Which OS are you using? Also, which cables are you using?
What I understand is that with out a pi, an Ipad has no long term use for someone looking to explore software developing as a hobby?
Without another device to connect to your options on the iPad are certainly limited. You do have some good options, especially if you want to explore for a hobby. Pyto is a pretty complete Python 3 environment on the iPad that is actively developed. Codea is an interesting tool for learning with the Lua language.
I get an error with npm, it can't be installed, and as a result I can't install yarn as well
Same!
What's the error message?
@@tech_craft bash: npm: command not found
Even after doing "sudo apt-get install npm"
Using a node version 14.x resolved the problem for me.
And note that an install via yarn is depreciated, following the code-server doc : coder.com/docs/code-server/latest/npm