Nexus 4 under Ubuntu touch Configuration Nodejs Environment

Source: Internet
Author: User
Tags ubuntu touch

There are several ways, one is to download the source of their own compilation, generally to build the environment

First, compile or download the official website arm-pi.tar.gz

The official website has Raspberry Pi compiled arm version, I personally prefer 0.10.25, and there is no arm-pi version, the latest only support to 0.10.28, Hand wood ah

You have to configure the. Environment variables for node in BASHRC

Export path= "$HOME/node/Bin: $PATH" export node_path= "$HOME/node: $HOME/local/node/lib/node_modules"

But you found this one. Running node in the mobile terminal app will have a permission dennied problem!!!!

Maybe you'll think about it, I'll compile it myself.

You can enter this code under Ubuntu Touch's mobile terminal app,

Of course also can be on the computer adb shell and then input, adb shell is generally root, you can su to phablet users, do not do root expendables

There is a difference between Android and Android to get root permissions, the first ADB root, to push, and sometimes the ADB remount, more troublesome

sudo Install build-essential curl git M4 ruby texinfo libbz2-dev libcurl4-openssl-dev libexpat-dev libncurses-dev Zli B1g-dev

wget Nodejs source into the directory

./configure--without-Snapshot make &&makeinstall

Here the parameters, it is said that because the characteristics of the V8 on arm has a bug so to bring, I also turned a lot of places, without the compilation failed, only make clean

The Yankees sometimes are more reliable [play openwrt on the Nodejs next time]

Ubuntu Touch has a strange place, if it is under the mobile app./configure will have permissions error!!! I found a lot of methods, including the/etc/passwd in the mobile terminal to promote myself as root, can not solve, but in the ADB shell, it is strange to trample the pit to death

You still have permission dennied!!!.

Second, Apt-get

This thing is a pit of goods, I compile things, compile pouchdb never passed

sudo Install Nodejs NPM

is still more convenient, but you want NPM install cnpm-g will be error, compile on their own no problem

Third, the solution: So I'm going to ssh to localhost

Configuration/etc/ssh/sshd_config Basic not how to move

The pit daddy is Ubuntu touch has not sshd this service, reinstall Openssh-server also not crest matter son

ssh-v [email protected] and then look at the tip.

Key public key all ADB push up general file Tpye State is-1 is not present

mkdir/ssh/

Then on another console adb push up and try again

Nexus 4 under Ubuntu touch Configuration Nodejs Environment

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.