在Archlinux ARM

升级软件包

一个 pacman 命令就可以升级整个系统。花费的时间取决于系统有多老。这个命令会同步非本地(local)软件仓库并升级系统的软件包:

# pacman -Syu

提示:确保make以及gcc软件包已安装,否则后面安装google coder会失败。

安装nodejs

# pacman -S nodejs

安装Google Coder

转到/home目录下,从github上获得最新版的google coder.

# git clone git://github.com/googlecreativelab/coder
# cd coder/coder-base
# npm install

安装 basic Coder apps

# cd coder-apps
# ./install_common.sh
 
运行Google Coder
# cd coder/coder-base
# npm start
 
打开google coder
用chrome浏览器打开: https://RASPIPADDRESS:8081/ (默认地址)
 
 
 
开机自启动google coder

创建/etc/systemd/system/multi-user.target.wants/gcoder.service文件:

[Unit]
Description=Google Coder
After=network.target

[Service]
Type=simple
WorkingDirectory=/home/YOURUSERNAME/coder/coder-base
ExecStart=/bin/npm start
Restart=always

[Install]
WantedBy=multi-user.target
重启生效。
 

参考网站:

http://ingamedeo.blogspot.com/2013/09/how-to-install-google-coder-on.html

https://github.com/googlecreativelab/coder/blob/master/INSTALL

http://goo.gl/coder

原文地址:https://www.cnblogs.com/joe-yang/p/3446598.html