codebuilds
codebuilds copied to clipboard
Install failing on Samsung Pro
Trying to install on a new Intel Chromebook Pro The install fails and the screen is cleared before I can read any error message.
Digging into it a bit
uname -m returns x86_64 which doesn't appear in the chromebook.sh script
I'm busy following the script and running the commands manually .. we'll see what happens
Didn't get too far.
the command
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.
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
@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! 🙂
Here's what I did:
- Download crouton & VS Code Insiders to your Downloads folder.
- Open a crosh shell (Ctrl+Alt+T).
- Run some commands:
# 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.
Oh-- one more note-- look at the FAQ for file watcher handles:
https://code.visualstudio.com/docs/setup/linux#_error-enospc
Thank you, I will try it.
Regards Guy
On Tue, Oct 31, 2017 at 5:20 AM, Kyle Dodson [email protected] wrote:
Oh-- one more note-- look at the FAQ for file watcher handles:
https://code.visualstudio.com/docs/setup/linux#_error-enospc
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/headmelted/codebuilds/issues/36#issuecomment-340648581, or mute the thread https://github.com/notifications/unsubscribe-auth/AAcbQU_8WdjcmQgQv2134F8F6jMA2QE4ks5sxpISgaJpZM4PttJt .
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.
- Download crouton & VS Code Insiders to your Downloads folder.
- Open a crosh shell (Ctrl+Alt+T).
- Run some commands:
# 1) Open a shell:
$ shell
# 2) Create the chroot (and follow the prompts):
$ chmod +x ~/Downloads/crouton
$ sudo sh ~/Downloads/crouton -t xiwi,keyboard -n code-insiders
# 3) Enter the chroot:
$ sudo enter-chroot -n code-insiders
# 4) At the chroot prompt, setup environment (replace language with desired values):
$ sudo apt-get update
$ sudo apt-get install language-pack-en
$ sudo update-locale LANG="en_US.UTF-8" LANGUAGE="en:en"
$ sudo locale-gen "en_US.UTF-8"
$ sudo dpkg-reconfigure locales
# Select en_US.UTF-8 UTF-8
$ sudo sed -i 's/XKBMODEL=".*"/XKBMODEL="chromebook"/' /etc/default/keyboard
$ echo "fs.inotify.max_user_watches=131072" | sudo tee -a /etc/sysctl.conf
$ sudo sysctl -p
$ exit
# 5) Re-enter the chroot:
$ sudo enter-chroot -n code-insiders
# 6) At the chroot prompt, install VS Code Insiders:
$ sudo apt-get install git
$ sudo dpkg -i ~/Downloads/code-insiders_1.19.0-1513192186_amd64.deb
$ sudo apt-get -f install
$ sudo apt-get install libgtk2.0-0 libxss1
$ sudo apt-get clean
# 5) Launch VS Code Insiders:
$ xiwi -f code-insiders
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 https://github.com/headmelted/codebuilds/issues/12 and progress/success getting it working on a Chromebook Plus in https://github.com/headmelted/codebuilds/pull/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
into
apt-get install -y ${CODE_EXECUTABLE_NAME};
and execute it inside the chroot.
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!
having same issue with Chromebook plus