`
sillycat
  • 浏览: 2543430 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

Ubuntu Rebuild Environment(1)

 
阅读更多

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/

分享到:
评论
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 "$@"

相关推荐

    rebuild_db-1.0-rc1.zip

    因此,`rebuild_db-1.0-rc1.zip`可能是专为Ubuntu优化的Adobe Air安装解决方案。 压缩包内的文件列表如下: 1. `rebuild_db.exe`:这是一个Windows可执行文件,很可能就是用于在Windows环境下重建Adobe Air数据库的...

    DELL_服务器硬盘掉线后的REBUILD修复操作全过程

    - **RAID级别**:确认当前RAID配置(如RAID 1或RAID 5)。 - **状态**:检查逻辑驱动器的**State**属性。**OPTIMAL**表示状态良好;**DEGRADED**意味着至少有一块硬盘掉线,阵列处于降级模式;**OFFLINE**则表示阵列...

    SQL置疑REPAIR_REBUILD修复

    SQL Server 修复工具 REPAIR_REBUILD SQL Server 是一个复杂的关系数据库管理系统,它提供了强大的数据存储和管理功能。但是,当 SQL Server 遇到 I/O 错误、磁盘问题或其他错误时,数据库可能会损坏,导致数据丢失...

    Solar Board Rebuild on TI part4

    Solar Board Rebuild on TI part4

    W589_Rebuild_Tool.exe

    W589_Rebuild_Tool.exe

    ubuntu编译安装.txt

    - 在完成开发环境的搭建之后,可以通过执行`./build/tools/rebuild.sh`脚本来开始编译过程。 - 编译过程中可能会遇到依赖问题,此时可以参考错误日志进行解决。 - 完成编译后,通常会生成一个名为`out/target/...

    REBUILD 通过创新的业务流程引擎帮助你快速搭建各类企业管理系统,全图形化配置无需了解技术

    高度可配置化的企业管理系统!可免费商用!...REBUILD 侧重于业务需求实现,而非基础技术框架或项目启动模板,通过 REBUILD 可以真正实现零代码快速搭建!无需编程、无需编译代码,甚至无需了解任何技术。

    Unity UI 重建(Rebuild)分析

    通过编写 MonoBehaviour 收集Unity UI 中的当前帧有那些元素触发了Rebuild。方便进行UI重建方面的性能检查,以便提升性能。 原理就是通过对 CanvasUpdateRegistry 中的属性值型判断收集实现。由于UGUI中...

    ubuntu终端命令大全

    * src.rpm 的安装需要使用 rpmbuild 命令加上 –rebuild 参数,如 rpmbuild –rebuild *.src.rpm,然后在/usr/src/下找到 FC3 下 iso 程序安装:system-config-packages –isodir=iso 所在目录 RH 下 iso 程序安装:...

    index rebuild

    根据提供的信息,我们可以总结出以下关于“索引重建(Index Rebuild)”的相关知识点: ### 索引重建概述 **索引重建**是数据库管理中的一个重要操作,它涉及删除现有的索引并重新创建它。这个过程可以帮助优化...

    WZ-Explorer-Rebuild-master_Explorer_tool_

    1. **文件浏览器**:提供一个直观的界面,用户可以浏览和选择WZ文件,通过目录结构查看内部内容。 2. **内容解析**:能够将二进制的WZ数据转化为可读的文本形式,便于理解各种数据结构。 3. **地图解压缩**:支持...

    IBM-x3650做RAID5更换硬盘后rebuild

    rebuild硬盘\在IBM-x3650做RAID5更换硬盘后

    Solar Board Rebuild on TI part1

    Solar Board Rebuild on TI part1

    OpenVAS在ubuntu下的客户端

    使用`openvasmd`命令来完成此操作,例如`sudo openvasmd --create --rebuild`。 5. 启动OpenVAS服务:运行`sudo systemctl start openvas-scanner openvas-manager`启动必要的服务。 6. 配置客户端连接:使用`gvm-...

    37-Rebuild Instance 操作详解1

    1. **关闭实例**:为了安全地替换镜像,`nova-compute`首先会停止实例的运行,确保数据一致性。 2. **下载新镜像**:根据重建请求中的镜像ID,`nova-compute`会从Glance镜像服务下载新的镜像文件到本地存储。 3. *...

    Rebuild:Android版Rebuild.fm

    Android版Rebuild.fm Android的Rebuild.fm是收听Rebuild.fm的最佳播客播放器。 (非官方) 关于Rebuild.fm 的。 谈论技术,软件开发和小工具。 截屏 当前版本(0.10.0) 安装 建立在本地 $ git clone ...

    Android studio的make Project、clean Project、Rebuild Project

    Clean Project :删除build目录下的所有文件,并对项目的大部分文件进行重新编译,时间相对于Rebuild Project短点; Rebuild Project :包含了Clean的操作,并对整个项目进行了重新编译(包括NDK和资源文件),因此...

    如何一次性利用生成的脚本rebuild所有table的index

    1. **Drop Index**:删除现有的索引,这将释放旧索引占用的空间。 2. **Create Index**:在表数据不变的情况下,重新创建索引。新索引将根据当前数据构建,避免了旧索引的碎片问题。 在实际操作中,手动对每个表...

    Ubuntu下make jar包

    1. 安装JDK、Android SDK和(可选的)Android Studio。 2. 配置`build.gradle`文件,引入第三方jar包。 3. 使用Gradle或Android Studio的构建功能编译和打包项目。 4. 如果必要,可以使用`jar`命令创建单独的jar包,...

Global site tag (gtag.js) - Google Analytics