2014年8月4日 星期一

使用 opengrok 在 ubuntu 13.04 上面


使用  opengrok 去 找 source code
基本上  以這一分 為主
http://blog.csdn.net/weihan1314/article/details/8944291

要注意的事情是 第一 如果用  ubuntu 13.0.4 版本
則 首先 要去安裝 sudo apt-get install exuberant-ctags    

第二件事 :
我自己測試的經驗和 結果  不要去更改 web.xml 裡面的東西
接下需要更改/data_2/tools/apache-tomcat-7.0.40/webapps/source/WEB-INF目录下的web.xml配置文件
下面這一段 不用去改動他

最後 就是 有一些寫在 Opengrok 裡面的 環境變數 要注意 有些要自己設定  寫在 ~~/.bashrc
例如
export OPENGROK_TOMCAT_BASE=/home/CODE/tool/apache-tomcat-7.0.55    // ( 安裝 tomcat 的地方 )

以及  export  JAVA_HOME=/home/andy_li/tools/jdk_1.6.0.  // (安裝 java 的地方)


最後 附上我的版本
opengrok  0.11.1
tomecat 7.0.55
java SE 1.6



補充資料
這個外國人寫的教學也相當的好
可供參考
http://bytesthink.com/blog/?p=184

2014年6月10日 星期二

ssh set to server

at initial state
netstatu -tul
可以查看
目前有建立的连线

install  ssh
會预設 ssh server 的功能  

2014年6月6日 星期五

scp 教學

http://web.presby.edu/support/Terminal/scp.html


the following has many example in describing how to using the scp command


http://www.hypexr.org/linux_scp_help.php



basic


scp  -r    remote_user@remote_ip:/home/"the file I need to transfer"    /home/"local path to put"



-r :  means recursive copy the file




2014年5月4日 星期日

http://goodjack.blogspot.tw/2013/08/linux-phonetic-setting.html

2014年4月28日 星期一

linux version and kernel version

1. 看Linux版本
# cat /etc/issue*
----------------------------------------------
CentOS release 5.5 (Final)
Kernel \r on an \m

CentOS release 5.5 (Final)
Kernel \r on an \m
----------------------------------------------

2. 看Kernel的版號
# uname -a
or
# uname -r

2014年2月11日 星期二

centos X stop and start

init 3
This will stop X and X logins
Configure your X

startx 
Test your x. Then exit the session.

init 5
This restarts X logins. 

in inittab  ----> ???
在 這個檔案裏面這樣改

/etc/inittab

id:5:initdefault:    x server 被開啟 
id:3:initdefault     x server 預設 被關掉