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/
- 浏览: 2543430 次
- 性别:
- 来自: 成都
文章分类
最新评论
-
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 408Diskspace Check and Fix First ... -
Play Raspberry Pi(6)Upgrade and Docker
2016-06-17 00:27 479Play Raspberry Pi(6)Upgrade and ... -
VirtualBox Network
2015-06-10 11:48 774VirtualBox Network Last one ye ... -
Debian System(2)Debian Desktop
2015-04-02 03:51 729Debian System(2)Debian Desktop ... -
Debian System(1)Java and NodeJS Env
2015-03-29 06:27 1027Debian System(1)Java and NodeJS ... -
Play Raspberry Pi(3)Disable the logging on squid
2015-01-07 00:13 1134Play Raspberry Pi(3)Disable th ... -
Forget MySQL Root Password
2011-09-15 14:29 1550Forget MySQL Root Password 1. ... -
Rails3 and Ruby1.9.2 on Ubuntu11.04
2011-08-20 10:18 3376Rails3 and Ruby1.9.2 on Ubuntu1 ... -
Rails Deployment(1)modrails
2011-08-17 13:44 1229Rails Deployment(1)modrails 1. ... -
Install Ubuntu on Win7 64 bit System
2011-07-19 23:56 1956Install Ubuntu on Win7 64 bit S ... -
Review Board on Ubuntu System(II)Script and Server configuration
2011-07-06 13:52 2540Review Board on Ubuntu System(I ... -
Review Board on Ubuntu System(I)Installing and create sites
2011-07-05 15:07 1690Review Board on Ubuntu System(I ... -
Problem in Wireshark on Ubuntu
2011-06-01 20:04 1715Problem in Wireshark on Ubuntu ... -
Install Anti-Virus Software on Ubuntu
2011-05-11 12:46 1642Install Anti-Virus Software on ... -
Update Ubuntu to 11.04
2011-05-05 13:11 1217Update Ubuntu to 11.04 After I ... -
Using Apache ProxyPass on Ubuntu
2011-04-22 14:31 1854Using Apache ProxyPass on Ubunt ... -
Udpate my ip on ubuntu system
2011-04-17 12:39 1322Udpate my ip on ubuntu system ... -
Ubuntu useful softwares
2011-04-12 22:57 1524Ubuntu useful softwares BT too ... -
Start the applications on Ubuntu
2011-04-12 14:11 1252Start the applications on Ubunt ... -
SVN command introduction
2011-03-31 23:50 1316SVN command introduction >s ...
相关推荐
因此,`rebuild_db-1.0-rc1.zip`可能是专为Ubuntu优化的Adobe Air安装解决方案。 压缩包内的文件列表如下: 1. `rebuild_db.exe`:这是一个Windows可执行文件,很可能就是用于在Windows环境下重建Adobe Air数据库的...
- **RAID级别**:确认当前RAID配置(如RAID 1或RAID 5)。 - **状态**:检查逻辑驱动器的**State**属性。**OPTIMAL**表示状态良好;**DEGRADED**意味着至少有一块硬盘掉线,阵列处于降级模式;**OFFLINE**则表示阵列...
SQL Server 修复工具 REPAIR_REBUILD SQL Server 是一个复杂的关系数据库管理系统,它提供了强大的数据存储和管理功能。但是,当 SQL Server 遇到 I/O 错误、磁盘问题或其他错误时,数据库可能会损坏,导致数据丢失...
Solar Board Rebuild on TI part4
W589_Rebuild_Tool.exe
- 在完成开发环境的搭建之后,可以通过执行`./build/tools/rebuild.sh`脚本来开始编译过程。 - 编译过程中可能会遇到依赖问题,此时可以参考错误日志进行解决。 - 完成编译后,通常会生成一个名为`out/target/...
高度可配置化的企业管理系统!可免费商用!...REBUILD 侧重于业务需求实现,而非基础技术框架或项目启动模板,通过 REBUILD 可以真正实现零代码快速搭建!无需编程、无需编译代码,甚至无需了解任何技术。
通过编写 MonoBehaviour 收集Unity UI 中的当前帧有那些元素触发了Rebuild。方便进行UI重建方面的性能检查,以便提升性能。 原理就是通过对 CanvasUpdateRegistry 中的属性值型判断收集实现。由于UGUI中...
* src.rpm 的安装需要使用 rpmbuild 命令加上 –rebuild 参数,如 rpmbuild –rebuild *.src.rpm,然后在/usr/src/下找到 FC3 下 iso 程序安装:system-config-packages –isodir=iso 所在目录 RH 下 iso 程序安装:...
根据提供的信息,我们可以总结出以下关于“索引重建(Index Rebuild)”的相关知识点: ### 索引重建概述 **索引重建**是数据库管理中的一个重要操作,它涉及删除现有的索引并重新创建它。这个过程可以帮助优化...
1. **文件浏览器**:提供一个直观的界面,用户可以浏览和选择WZ文件,通过目录结构查看内部内容。 2. **内容解析**:能够将二进制的WZ数据转化为可读的文本形式,便于理解各种数据结构。 3. **地图解压缩**:支持...
rebuild硬盘\在IBM-x3650做RAID5更换硬盘后
Solar Board Rebuild on TI part1
使用`openvasmd`命令来完成此操作,例如`sudo openvasmd --create --rebuild`。 5. 启动OpenVAS服务:运行`sudo systemctl start openvas-scanner openvas-manager`启动必要的服务。 6. 配置客户端连接:使用`gvm-...
1. **关闭实例**:为了安全地替换镜像,`nova-compute`首先会停止实例的运行,确保数据一致性。 2. **下载新镜像**:根据重建请求中的镜像ID,`nova-compute`会从Glance镜像服务下载新的镜像文件到本地存储。 3. *...
Android版Rebuild.fm Android的Rebuild.fm是收听Rebuild.fm的最佳播客播放器。 (非官方) 关于Rebuild.fm 的。 谈论技术,软件开发和小工具。 截屏 当前版本(0.10.0) 安装 建立在本地 $ git clone ...
Clean Project :删除build目录下的所有文件,并对项目的大部分文件进行重新编译,时间相对于Rebuild Project短点; Rebuild Project :包含了Clean的操作,并对整个项目进行了重新编译(包括NDK和资源文件),因此...
1. **Drop Index**:删除现有的索引,这将释放旧索引占用的空间。 2. **Create Index**:在表数据不变的情况下,重新创建索引。新索引将根据当前数据构建,避免了旧索引的碎片问题。 在实际操作中,手动对每个表...
1. 安装JDK、Android SDK和(可选的)Android Studio。 2. 配置`build.gradle`文件,引入第三方jar包。 3. 使用Gradle或Android Studio的构建功能编译和打包项目。 4. 如果必要,可以使用`jar`命令创建单独的jar包,...