Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install failing on Samsung Pro #36

Open
gplatt opened this issue Oct 4, 2017 · 14 comments
Open

Install failing on Samsung Pro #36

gplatt opened this issue Oct 4, 2017 · 14 comments

Comments

@gplatt
Copy link

gplatt commented Oct 4, 2017

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

@gplatt
Copy link
Author

gplatt commented 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:

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.

@gplatt gplatt closed this as completed Oct 4, 2017
@gplatt gplatt reopened this Oct 4, 2017
@gplatt
Copy link
Author

gplatt commented 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
Copy link

@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
Copy link
Author

gplatt commented 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
Copy link

seniorquico commented 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:

  1. Download crouton & VS Code Insiders to your Downloads folder.
  2. Open a crosh shell (Ctrl+Alt+T).
  3. 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!

samsung-pro-vs-code-insiders

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
Copy link

Oh-- one more note-- look at the FAQ for file watcher handles:

https://code.visualstudio.com/docs/setup/linux#_error-enospc

@gplatt
Copy link
Author

gplatt commented Oct 31, 2017 via email

@seniorquico
Copy link

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.

  1. Download crouton & VS Code Insiders to your Downloads folder.
  2. Open a crosh shell (Ctrl+Alt+T).
  3. 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

@gmanfredi
Copy link

gmanfredi commented 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
Copy link

@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
Copy link

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
Copy link

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
Copy link

magic-k commented Jan 8, 2018

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.

@Toler
Copy link

Toler commented Mar 9, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants