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/
- 浏览: 2567193 次
- 性别:
- 来自: 成都
-
文章分类
最新评论
-
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 435Diskspace Check and Fix First ... -
Play Raspberry Pi(6)Upgrade and Docker
2016-06-17 00:27 492Play Raspberry Pi(6)Upgrade and ... -
VirtualBox Network
2015-06-10 11:48 794VirtualBox Network Last one ye ... -
Debian System(2)Debian Desktop
2015-04-02 03:51 742Debian System(2)Debian Desktop ... -
Debian System(1)Java and NodeJS Env
2015-03-29 06:27 1047Debian System(1)Java and NodeJS ... -
Play Raspberry Pi(3)Disable the logging on squid
2015-01-07 00:13 1153Play Raspberry Pi(3)Disable th ... -
Forget MySQL Root Password
2011-09-15 14:29 1565Forget MySQL Root Password 1. ... -
Rails3 and Ruby1.9.2 on Ubuntu11.04
2011-08-20 10:18 3393Rails3 and Ruby1.9.2 on Ubuntu1 ... -
Rails Deployment(1)modrails
2011-08-17 13:44 1245Rails Deployment(1)modrails 1. ... -
Install Ubuntu on Win7 64 bit System
2011-07-19 23:56 1971Install Ubuntu on Win7 64 bit S ... -
Review Board on Ubuntu System(II)Script and Server configuration
2011-07-06 13:52 2562Review Board on Ubuntu System(I ... -
Review Board on Ubuntu System(I)Installing and create sites
2011-07-05 15:07 1710Review Board on Ubuntu System(I ... -
Problem in Wireshark on Ubuntu
2011-06-01 20:04 1735Problem in Wireshark on Ubuntu ... -
Install Anti-Virus Software on Ubuntu
2011-05-11 12:46 1661Install Anti-Virus Software on ... -
Update Ubuntu to 11.04
2011-05-05 13:11 1234Update Ubuntu to 11.04 After I ... -
Using Apache ProxyPass on Ubuntu
2011-04-22 14:31 1873Using Apache ProxyPass on Ubunt ... -
Udpate my ip on ubuntu system
2011-04-17 12:39 1337Udpate my ip on ubuntu system ... -
Ubuntu useful softwares
2011-04-12 22:57 1539Ubuntu useful softwares BT too ... -
Start the applications on Ubuntu
2011-04-12 14:11 1271Start the applications on Ubunt ... -
SVN command introduction
2011-03-31 23:50 1331SVN command introduction >s ...
相关推荐
10}t${Package}n' | sort -k1,1n 以大小为依据显示已安装的deb包所使用的空间 (ubuntu, debian类系统) 返回顶部索引 ^ 用户和群组 groupadd group_name 创建一个新用户组 groupdel group_name 删除一个用户组 ...
SCGCQ00459022 (DFCT) - System crashes when tried to issue command exceeding around 90- 100 characters in EFI Environment. SCGCQ00470761 (DFCT) - Megacli wrongly reports PCI bus number for 2208 based ...
基于Andorid的音乐播放器项目改进版本设计实现源码,主要针对计算机相关专业的正在做毕设的学生和需要项目实战练习的学习者,也可作为课程设计、期末大作业。
uniapp-machine-learning-from-scratch-05.rar
game_patch_1.30.21.13250.pak
【毕业设计-java】springboot-vue计算机学院校友网源码(完整前后端+mysql+说明文档+LunW).zip
特征变换 特征选择
吸烟数据集 991张原始图片,平均识别率在88.3% coco json格式标注
c++万能头文件picture.h
spaceX 动力学分析
python教程学习
内容概要:本文详细整理了与uniapp有关的一系列学习资源及开发工具。首先对官方文档与教程进行梳理,这是学习uni-app的基础部分,涵盖从基本概念到具体开发指引的全方位资料。接着详细介绍了一款专为uni-app打造的高效开发工具HBuilderX的功能特点及其使用指南,并提到了CLI命令行工具可用于完成开发过程中的常规操作任务。同时,指出uni-app所处的强大社区氛围,无论是社区还是论坛都为开发者解决了实际遇到的问题并分享了大量有价值的经验;还提及多个专门为uni-app量身定制的UI框架和丰富的组件库,进一步提高了开发的便捷性和灵活性;最后列举了几类学习资源,诸如视频教程、博客与文章还有相关书籍均能助力新手成长为熟练工。所有这些资源都将有助于深入学习和理解uni-app这个跨平台框架的相关知识点,进而开发出优秀的多平台应用程序。 适用人群:有意进入跨平台移动应用开发领域的初学者,以及希望提升开发技能的专业人士。 使用场景及目标:为想要深入了解或者开始使用uni-app框架进行开发的人群提供完整路径指导;为目标受众建立起一套完整的学习路径来降低入门难度并提升实际操作能力。
AI Agent 行业研究报告.pdf
请到网盘中自取压缩包,此包为kibana-7.10.2 镜像压缩包,是通过现有镜像导出来的,主要是为了解决有些机器无法连接外网,导致无法下载镜像 加载镜像: docker load -i kibana-7.10.2.tar 查看镜像: docker images 备注:elk此镜像配套资源,相同版本的elasticsearch和logstash,请在我的资源中搜索其他镜像
图解AUTOSAR-CP-TcpIp逻辑图打包
【毕业设计-java】springboot-vue交友网站平台实现源码(完整前后端+mysql+说明文档+LunW).zip
海康相机平场矫正对比图
python教程学习
【论文+PPT+代码+开题+任务书】手机APP遥控的相关测试主要完成设计当中按键控制对应继电器是否正确打开以及关上,可以通过观察按下按键时继电器想匹配的LED是否点亮来进行验证。 进入手机APP后,根据APP中的按键分别控制不同的继电器,继电器1这个按键控制对应1号继电器的开启和关闭,手机蓝牙按下按键由OFF转变为ON那么电控制器件就可以变化一次,1号指示灯就可以由暗变亮了,再次按下手机蓝牙按键由ON转变为OFF电控制器件又变化一次,1号指示灯就可以由亮变暗。 如果点击继电器2则控制对应2号继电器的开启和关闭,手机蓝牙按下按键由OFF转变为ON那么电控制器件就可以变化一次,2号指示灯就可以由暗变亮了,再次按下手机蓝牙按键由ON转变为OFF电控制器件又变化一次,2号指示灯就可以由亮变暗。 如果点击继电器3则控制对应3号继电器的开启和关闭,手机蓝牙按下按键由OFF转变为ON那么电控制器件就可以变化一次,3号指示灯就可以由暗变亮了,再次按下手机蓝牙按键由ON转变为OFF电控制器件又变化一次,3号指示灯就可以由亮变暗。 如果点击继电器4则控制对应4号继电器的开启和关闭
【毕业设计】java-springboot+vue教师人事档案管理系统实现源码(完整前后端+mysql+说明文档+LunW).zip