Ubuntu Rebuild Environment(1)
Recently I get a very powerful laptop from my company. 16G memory mac book. So I install ubuntu virtual client on my host machine.
My plan is to working in ubuntu system again. In the old days, I use ubuntu for almost 2 years for work, I like the old days. So I plan to work with grails on ubuntu desktop, hadoop/openstack and other service sides on ubuntu server, ios on macbook, android also on ubuntu desktop. Since our prod environment is debian, maybe in the future, I will use a debian too.
First step is to build the develop environment, let's rock and roll.
Install and Set up Git
Download the source from here.
https://www.kernel.org/pub/software/scm/git/
Here is the command to build them.
>make prefix=/home/carl/tool/git-2.0.1 all
>sudo make prefix=/home/carl/tool/git-2.0.1 install
After that, link it to my working directory, add it to path
Set git to remember the username and password
>git config --global credential.helper "cache --timeout=360000"
Install JAVA
>sudo add-apt-repository ppa:webupd8team/java
>sudo apt-get update
>sudo apt-get install oracle-java6-installer
if you want to install java 7
>sudo apt-get install oracle-java7-installer
Install intellij
when I start the intellij, I get this error Message
'tools.jar' seems to be not in IDEA classpath.
Please ensure JAVA_HOME points to JDK rather than JRE.
Solution:
I change the path configuration from
export JAVA_HOME=$(dirname $(dirname $(readlink -f /usr/bin/java)))
to
export JAVA_HOME=/usr/lib/jvm/java-6-oracle
alt+1, open the project window.
Open Menu [File]---> [Project Structure]
Install Scala
Download different version of Scala from here
http://www.scala-lang.org/downloads
And some versions are here.
http://www.scala-lang.org/files/archive/
Set up the Sublime3
Open the Menu [Preferences]----> [Key binding - user], and put these key short-cut there.
[ { "keys": ["shift+enter"], "command": "run_macro_file", "args": {"file": "Packages/Default/Add Line.sublime-macro"} }, { "keys": ["alt+up"], "command": "swap_line_up" }, { "keys": ["alt+down"], "command": "swap_line_down" }, { "keys": ["ctrl+alt+j"], "command": "join_lines" }, { "keys": ["ctrl+alt+down"], "command": "duplicate_line" }, { "keys": ["shift+ctrl+r"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} }, { "keys": ["ctrl+shift+s"], "command": "save_all" }, { "keys": ["ctrl+l"], "command": "show_overlay", "args": {"overlay": "goto", "text": ":"} }, { "keys": ["shift+ctrl+f4"], "command": "close_all" }, { "keys": ["shift+ctrl+y"], "command": "lower_case" }, { "keys": ["shift+ctrl+x"], "command": "upper_case" }, { "keys": ["ctrl+d"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} }]
Setup NodeJS
>sudo apt-add-repository ppa:chris-lea/node.js
Update the source and install the nodejs again. Then we should have the latest version.
>node --version
v0.10.29
Setup Yoman
Follow this blog and install all of them http://sillycat.iteye.com/blog/2077743
Error Message as follow:
>grunt --version
axconfig: port 1 not activeaxconfig: port 2 not active
Solution:
>sudo apt-get remove --purge node
>sudo apt-get clean
Setup Eclipse
Actually, we are using old grails 1.3.7 which build based on groovy 1.7. The best tool is groovy grails tool suite 3.1.0, but I can not download that from the official website anymore.
So here is what I did.
First download eclipse 3.7 from here http://archive.eclipse.org/eclipse/downloads/
Then install groovy plugin-in from here
http://groovy.codehaus.org/Groovy-Eclipse+2.5.2+New+and+Noteworthy
http://dist.springsource.org/release/GRECLIPSE/e3.7/
And do remember to un-check the checkbox 'sort by category', then we can see groovy-compiler 1.7.10. and install it.
Go here and install the grails plugin
http://spring.io/tools/ggts/all
http://dist.springsource.com/release/TOOLS/update/e3.7/
Install Gradle
Download the file from here
https://downloads.gradle.org/distributions/gradle-1.12-bin.zip
Setup Android Tool
Download the Android SDK from here
https://dl.google.com/android/android-sdk_r23-linux.tgz
Unzip and Install, add to the path
>android
Download and Install all the tools there.
Error Message:
Cannot run programe "/opt/android-sdk/build-tools/20.0.0/aapt":java.io.Exception
Solution:
http://stackoverflow.com/questions/16588969/android-hello-world-compile-error-intellij-cannot-find-aapt
64-bit system can not run the 32-bit aapt. Is that true?
>sudo apt-get install ia32-libs
Setup Mysql 5.6
>sudo apt-get install software-properties-common
>sudo add-apt-repository ppa:ondrej/mysql-5.6
>sudo apt-get update>sudo apt-get install mysql-server
Setup sbt
Download the version file we need from here
http://repo.typesafe.com/typesafereadonly/ivy-releases/org.scala-sbt/sbt-launch/
create a file sbt with these content
SBT_OPTS="-Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M"java $SBT_OPTS -jar `dirname $0`/sbt-launch.jar "$@"
References:
http://stackoverflow.com/questions/5343068/is-there-a-way-to-skip-password-typing-when-using-https-github
http://blog.icoloma.com/2011/10/eclipse-shortcuts-for-sublime-text-2.html
http://spring.io/tools/ggts/all
http://docs.codehaus.org/display/GROOVY/Compiler+Switching+within+Groovy-Eclipse
http://groovy.codehaus.org/Eclipse+Plugin#EclipsePlugin-GroovycompilerCompatibility
https://rtcamp.com/tutorials/nodejs/node-js-npm-install-ubuntu/
- 浏览: 2489393 次
- 性别:
- 来自: 成都
文章分类
最新评论
-
nation:
你好,在部署Mesos+Spark的运行环境时,出现一个现象, ...
Spark(4)Deal with Mesos -
sillycat:
AMAZON Relatedhttps://www.godad ...
AMAZON API Gateway(2)Client Side SSL with NGINX -
sillycat:
sudo usermod -aG docker ec2-use ...
Docker and VirtualBox(1)Set up Shared Disk for Virtual Box -
sillycat:
Every Half an Hour30 * * * * /u ...
Build Home NAS(3)Data Redundancy -
sillycat:
3 List the Cron Job I Have>c ...
Build Home NAS(3)Data Redundancy
评论
2 楼
sillycat
2015-10-30
https://dl.bintray.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/0.13.9/
1 楼
sillycat
2015-10-30
#!/bin/bash
SBT_OPTS="-Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M"
java $SBT_OPTS -jar `dirname $0`/sbt-launch.jar "$@"
SBT_OPTS="-Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M"
java $SBT_OPTS -jar `dirname $0`/sbt-launch.jar "$@"
发表评论
-
Diskspace Check and Fix
2020-04-01 00:28 358Diskspace Check and Fix First ... -
Play Raspberry Pi(6)Upgrade and Docker
2016-06-17 00:27 447Play Raspberry Pi(6)Upgrade and ... -
VirtualBox Network
2015-06-10 11:48 732VirtualBox Network Last one ye ... -
Debian System(2)Debian Desktop
2015-04-02 03:51 686Debian System(2)Debian Desktop ... -
Debian System(1)Java and NodeJS Env
2015-03-29 06:27 986Debian System(1)Java and NodeJS ... -
Play Raspberry Pi(3)Disable the logging on squid
2015-01-07 00:13 1084Play Raspberry Pi(3)Disable th ... -
Forget MySQL Root Password
2011-09-15 14:29 1515Forget MySQL Root Password 1. ... -
Rails3 and Ruby1.9.2 on Ubuntu11.04
2011-08-20 10:18 3341Rails3 and Ruby1.9.2 on Ubuntu1 ... -
Rails Deployment(1)modrails
2011-08-17 13:44 1192Rails Deployment(1)modrails 1. ... -
Install Ubuntu on Win7 64 bit System
2011-07-19 23:56 1921Install Ubuntu on Win7 64 bit S ... -
Review Board on Ubuntu System(II)Script and Server configuration
2011-07-06 13:52 2499Review Board on Ubuntu System(I ... -
Review Board on Ubuntu System(I)Installing and create sites
2011-07-05 15:07 1647Review Board on Ubuntu System(I ... -
Problem in Wireshark on Ubuntu
2011-06-01 20:04 1676Problem in Wireshark on Ubuntu ... -
Install Anti-Virus Software on Ubuntu
2011-05-11 12:46 1607Install Anti-Virus Software on ... -
Update Ubuntu to 11.04
2011-05-05 13:11 1183Update Ubuntu to 11.04 After I ... -
Using Apache ProxyPass on Ubuntu
2011-04-22 14:31 1810Using Apache ProxyPass on Ubunt ... -
Udpate my ip on ubuntu system
2011-04-17 12:39 1292Udpate my ip on ubuntu system ... -
Ubuntu useful softwares
2011-04-12 22:57 1495Ubuntu useful softwares BT too ... -
Start the applications on Ubuntu
2011-04-12 14:11 1223Start the applications on Ubunt ... -
SVN command introduction
2011-03-31 23:50 1289SVN command introduction >s ...
相关推荐
index rebuild
Solar Board Rebuild on TI part4
DELL_服务器硬盘掉线后的REBUILD修复操作全过程
X64安装Adobeair必备 rebuild_db-1.0-rc1.zip
SQL置疑REPAIR_REBUILD修复
高度可配置化的企业管理系统!可免费商用!...REBUILD 侧重于业务需求实现,而非基础技术框架或项目启动模板,通过 REBUILD 可以真正实现零代码快速搭建!无需编程、无需编译代码,甚至无需了解任何技术。
Solar Board Rebuild on TI part1
Android版Rebuild.fm Android的Rebuild.fm是收听Rebuild.fm的最佳播客播放器。 (非官方) 关于Rebuild.fm 的。 谈论技术,软件开发和小工具。 截屏 当前版本(0.10.0) 安装 建立在本地 $ git clone ...
rebuild硬盘\在IBM-x3650做RAID5更换硬盘后
rebuild
通过编写 MonoBehaviour 收集Unity UI 中的当前帧有那些元素触发了Rebuild。方便进行UI重建方面的性能检查,以便提升性能。 原理就是通过对 CanvasUpdateRegistry 中的属性值型判断收集实现。由于UGUI中...
rebuild-master
使用--save-dev安装软件包: npm install --save-dev electron-rebuild 然后,每当您安装新的npm软件包时,请重新运行electron-rebuild: $( npm bin ) /electron-rebuild 或者,如果您使用的是Windows: ....
This script is used to rebuild the Linux 32-bit cross-toolchain that allows you to generate 32-bit binaries that target Ubuntu 8.04.
The SQL Server Maintenance Solution lets you intelligently rebuild or reorganize only the indexes that are fragmented. In the IndexOptimize procedure, you can define a preferred index maintenance ...
向 nova-api 发送请求客户(可以是 OpenStack 最终用户,也可以是其他程序)向 API(nova-api)发送请求:“Rebuild 这个 In
开始使用 REBUILD 非常简单,不需要配置复杂的...git clone --depth=1 https://github.com/getrebuild/rebuild.git # 编译 mvn package # 运行 java -jar target/rebuild.jar [优化] 15+ 细节/BUG/安全性更新 ...
小牛牛对多米诺骨牌有很大兴趣,然而她的骨牌比较特别,只有黑色和白色的两种。她觉得如果存在连续三个骨牌是同一种颜色,那么这个骨牌排列便是不美观的。现在她有n个骨牌要来排列,她想知道不美观的排列的个数。...
Solar Board Rebuild on TI part
rebuild.rebuilt.摄像头驱动