You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sudo sh ./crouton -t xiwi -a armhf -n code-oss-chroot;
ends with the following error:
chroot: failed to run command '/prepare.sh': Exec format error
Failed to complete chroot setup.
Unmounting /mnt/stateful_partition/crouton/chroots/code-oss-chroot...
I guess I will stop and wait for some guidance here.
was able to proceed a bit further by removing the -a armhf option, but have run into probelms in the apt.sh script as it also doesn't recognise the X86_64
@gplatt I also found that the shell script won't install/configure everything. However, I was successfully able to get this going on my Samsung Pro by extracting the shell commands one-by-one, tweaking them as you've noted, and running them manually in a developer shell. So, from experience-- it works on a Samsung Pro, just not as easy as the docs promise.
I might be able to come back and reproduce the installation and document the changes for a PR in a couple of weeks after a work crunch ends. Let me know if you get stuck on anything, and I might be able to compare it to my environment.
@seniorquico Thanks for the response, I have made some progress but not a stable install yet.
I managed to get the install to complete and even got Code running, but I am plagued with "Cannot connect to extension, re-trying ..." messages, and then normally the command fails. So while it has worked before it is normally doesn't run.
@gplatt Sorry for the delay. I just tried again... setup a brand new chroot and installed using the commands in the scripts from this project. It didn't work.☹️ So, I installed VS Code Insiders manually with some helpful pointers from a VS Code issue. It worked! 🙂
# 1) Open a shell:
$ shell
# 2) Create the chroot (and follow the prompts):
$ chmod +x ~/Downloads/crouton
$ sudo sh ~/Downloads/crouton -t xiwi -n code-insiders
# 3) Enter the chroot:
$ sudo enter-chroot -n code-insiders
# 4) At the chroot prompt, install VS Code Insiders and dependencies:
$ sudo dpkg -i ~/Downloads/code-insiders_1.18.0-1509344649_amd64.deb
$ sudo apt-get -f install
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install gvfs-bin libgtk2.0 libgtk2.0-0 libatk1.0 libpango1.0 libpangocairo-1.0 libcairo2 libfreetype6 libfontconfig1 libdbus-1-3 libxi6 libxcursor1 libxdamage1 libxrandr2 libxcomposite1 libxext6 libxfixes3 libxrender1 libxtst6 libgconf-2-4 libasound2 libcups2 libexpat1 libxss1
# 5) Launch VS Code Insiders:
$ xiwi -f code-insiders
Not sure if you've had any more luck, but let me know if this works for you!
Edit: Ugh... just noticed that the screenshot is nasty. Can't get it to come out any better. Doesn't look like that on screen. It's just showing version 1.18.0-insider in VS Code.
This is still working great for me. I love VS Code on my Chromebook Pro! I am also running NVM, Node.js, Yarn, GitKraken, and the Azure CLI within my chroot.
For anyone that may be following along... my installation script has changed a bit to address a couple of minor issues and updates. I'm currently on Chrome OS 62.0.3202.97 and using the latest VS Code Insiders 1.19.
Is there a variation or way to install for ARM64, specifically Samsung Chromebook Plus? The original way shown on https://code.headmelted.com/ doesn't finish -- craps out at the very end and suddenly exits the shell and clears the terminal and shows crosh>. On this github issues/36 page, obviously the insider version of code-insiders is amd64.deb and won't install on arm64. Thanks in advance for any help.
@gmanfredi Unfortunately, I don't think the approach documented on this thread will work for you. As you've noted, we're taking advantage of the official x64 binaries from Microsoft thanks to the Chromebook Pro's CPU.
However, it looks like there was some discussion in #12 and progress/success getting it working on a Chromebook Plus in #33. You may want to check out those threads and proposed changes.
Thanks, @seniorquico. Yes, I looked at those threads but was unable to figure out how to get mine working. DanielFallon said "I got the installer working on the Samsung Chromebook Plus (AArch64), this weekend, I'll make the necessary modifications to the install scripts to make it behave itself." but that was back in Sept 2017 and I haven't had luck.
I just purchased the Chromebook Plus last night, I think the easiest is for me to return my Plus and upgrade it to a Pro. I'm really looking forward to possibly having my dev environment on these awesome little machines!
Sorry, I can't provide any additional help. I don't have a Chromebook Plus on which to test.
I can comment that the Chromebook Pro has been a great, lightweight development machine for my road warrior and couchsurfing scenarios. I've been able to do a fairly significant amount of development work on Node.js and C# applications while off the grid. It's still a fairly constrained machine, so I wouldn't expect it to replace an existing, more powerful development machine. When workloads get bigger, I often remote into my desktop development machine.
The simplest way is the following. Create a 32bit chroot with
sudo sh ./crouton -t xiwi -a armhf -n code-oss-chroot
The download the apt.sh script from headmeltet and change
if [ "${ARCH}" = "aarch64" ]; then
echo "aarch64 currently disabled. THIS IS BEING WORKED ON, APOLOGIES FOR THE INCONVENIENCE, PLEASE CHECK https://code.headmelted.com FOR UPDATES";
exit 1;
else
apt-get install -y ${CODE_EXECUTABLE_NAME};
fi
Thanks, @seniorquico. Yes, I looked at those threads but was unable to figure out how to get mine working. DanielFallon said "I got the installer working on the Samsung Chromebook Plus (AArch64), this weekend, I'll make the necessary modifications to the install scripts to make it behave itself." but that was back in Sept 2017 and I haven't had luck.
I just purchased the Chromebook Plus last night, I think the easiest is for me to return my Plus and upgrade it to a Pro. I'm really looking forward to possibly having my dev environment on these awesome little machines!
Activity
gplatt commentedon Oct 4, 2017
Didn't get too far.
the command
sudo sh ./crouton -t xiwi -a armhf -n code-oss-chroot;ends with the following error:
I guess I will stop and wait for some guidance here.
gplatt commentedon Oct 4, 2017
Oops, closed by mistake.
was able to proceed a bit further by removing the -a armhf option, but have run into probelms in the apt.sh script as it also doesn't recognise the X86_64
seniorquico commentedon Oct 5, 2017
@gplatt I also found that the shell script won't install/configure everything. However, I was successfully able to get this going on my Samsung Pro by extracting the shell commands one-by-one, tweaking them as you've noted, and running them manually in a developer shell. So, from experience-- it works on a Samsung Pro, just not as easy as the docs promise.
I might be able to come back and reproduce the installation and document the changes for a PR in a couple of weeks after a work crunch ends. Let me know if you get stuck on anything, and I might be able to compare it to my environment.
gplatt commentedon Oct 9, 2017
@seniorquico Thanks for the response, I have made some progress but not a stable install yet.
I managed to get the install to complete and even got Code running, but I am plagued with "Cannot connect to extension, re-trying ..." messages, and then normally the command fails. So while it has worked before it is normally doesn't run.
seniorquico commentedon Oct 31, 2017
@gplatt Sorry for the delay. I just tried again... setup a brand new chroot and installed using the commands in the scripts from this project. It didn't work.☹️ So, I installed VS Code Insiders manually with some helpful pointers from a VS Code issue. It worked! 🙂
Here's what I did:
Not sure if you've had any more luck, but let me know if this works for you!
Edit: Ugh... just noticed that the screenshot is nasty. Can't get it to come out any better. Doesn't look like that on screen. It's just showing version 1.18.0-insider in VS Code.
seniorquico commentedon Oct 31, 2017
Oh-- one more note-- look at the FAQ for file watcher handles:
https://code.visualstudio.com/docs/setup/linux#_error-enospc
gplatt commentedon Oct 31, 2017
seniorquico commentedon Dec 15, 2017
This is still working great for me. I love VS Code on my Chromebook Pro! I am also running NVM, Node.js, Yarn, GitKraken, and the Azure CLI within my chroot.
For anyone that may be following along... my installation script has changed a bit to address a couple of minor issues and updates. I'm currently on Chrome OS 62.0.3202.97 and using the latest VS Code Insiders 1.19.
gmanfredi commentedon Jan 6, 2018
Is there a variation or way to install for ARM64, specifically Samsung Chromebook Plus? The original way shown on https://code.headmelted.com/ doesn't finish -- craps out at the very end and suddenly exits the shell and clears the terminal and shows
crosh>. On this github issues/36 page, obviously the insider version of code-insiders is amd64.deb and won't install on arm64. Thanks in advance for any help.seniorquico commentedon Jan 6, 2018
@gmanfredi Unfortunately, I don't think the approach documented on this thread will work for you. As you've noted, we're taking advantage of the official x64 binaries from Microsoft thanks to the Chromebook Pro's CPU.
However, it looks like there was some discussion in #12 and progress/success getting it working on a Chromebook Plus in #33. You may want to check out those threads and proposed changes.
gmanfredi commentedon Jan 6, 2018
Thanks, @seniorquico. Yes, I looked at those threads but was unable to figure out how to get mine working. DanielFallon said "I got the installer working on the Samsung Chromebook Plus (AArch64), this weekend, I'll make the necessary modifications to the install scripts to make it behave itself." but that was back in Sept 2017 and I haven't had luck.
I just purchased the Chromebook Plus last night, I think the easiest is for me to return my Plus and upgrade it to a Pro. I'm really looking forward to possibly having my dev environment on these awesome little machines!
seniorquico commentedon Jan 6, 2018
Sorry, I can't provide any additional help. I don't have a Chromebook Plus on which to test.
I can comment that the Chromebook Pro has been a great, lightweight development machine for my road warrior and couchsurfing scenarios. I've been able to do a fairly significant amount of development work on Node.js and C# applications while off the grid. It's still a fairly constrained machine, so I wouldn't expect it to replace an existing, more powerful development machine. When workloads get bigger, I often remote into my desktop development machine.
magic-k commentedon Jan 8, 2018
The simplest way is the following. Create a 32bit chroot with
sudo sh ./crouton -t xiwi -a armhf -n code-oss-chrootThe download the apt.sh script from headmeltet and change
into
apt-get install -y ${CODE_EXECUTABLE_NAME};and execute it inside the chroot.
Toler commentedon Mar 9, 2019
having same issue with Chromebook plus