Xming X Server安装部署
1.下载
http://sourceforge.net/project/showfiles.php?group_id=156984
Xming 6.9.0.31 用OpenGL展示界面
Xming-fonts 7.4.0.3 标准X字体,部分传统的X应用的显示也需要这些字体
Xming-mesa 6.9.0.31 用更慢的Mesa展示界面, 有时X转发会更好
Xming-portable-PuTTY 7.3.0.26 不写注册表的putty, 也可用传统的putty或secureCRT等提供X界面转发ssh程序
Xming-tools-and-clients 6.9.0.28 提供一些X应用专用的工具
2.Xming安装和运行
双击Xming-6-9-0-31-setup.exe安装Xming, 第一次运行时使用开始菜单里面的XLaunch来启动, 产生一个初始的配置文件. 对于简单的使用来说, 不需要任何特殊的配置, 一切使用默认即可. 需要记住的是下图中标示出的"Display number"中的数字, 此处使用默认的0.
最后一步中的Save configuration可以把这个设置保存为一个文件, 以后每次用这个设置只需运行该文件, 而不用每次都重新配置. 启动完成后, 在托盘区会出现一个"X"形状的图标, 这表示Xming已经在运行了, 将鼠标悬停上去, 能看到当前使用的"Display number".
3.PuTTY对X转发的配置
在Session页面的Host name和port里填好putty的服务器地址和端口.
在Data页面的Auto-login username里填好登录用户名.
在SSH页面的Preffered SSH protocal version里设置优先SSH版本是2.
最重要的一步, 在X11页面选择Enable X11 forwarding, X display location填上localhost:0, 下面的协议选择MIT-Magic-Cookie-1.
然后连接登录远程主机, 看上去一切正常的样子. 试着运行一下 emacs & 图形界面就出来了, 只是看不到文字, 全是些方块.
看看终端的输出信息:
$ emacs &
Warning: Cannot convert string “--courier-medium-r----120-----iso8859-" to type FontStruct
Warning: Cannot convert string "--helvetica-medium-r-–-120-----iso8859-1” to type FontStruct
原来是Xming没有相应的字体. 下面安装Xming-fonts 7.4.0.3
4.Xming-fonts的安装
双击Xming-fonts-7-4-0-3-setup.exe安装Xming-fonts, 安装路径为默认的C:\Program Files\Xming, 则安装字体之后的字体路径就是C:\Program Files\Xming\fonts. 这样安装字体后, 运行 emacs & 字体能正常显示了. 再来试试, 这下子emacs就正常多了.
5.开发
这时我们已经打开了熟悉的kettle图形化界面了
开发job或者transform的时候,直接保存到系统的固定目录中
例如
/software/pdi-ce-8.2.0.0-342/data-integration/job
/software/pdi-ce-8.2.0.0-342/data-integration/transform
6.运行
有两种方式Kitchen 和 Pan
Kitchen的命令行参数及语法:
执行本地job的命令行语句:
/software/pdi-ce-8.2.0.0-342/data-integration/kitchen.sh -file=/software/pdi-ce-8.2.0.0-342/data-integration/job/test.kjb -log=/software/pdi-ce-8.2.0.0-342/data-integration/logs/test.log
7.定时
使用crontab进行定时执行
*/40 * * * * root cd /software/pdi-ce-8.2.0.0-342/data-integration; kitchen.sh -file=/software/pdi-ce-8.2.0.0-342/data-integration/job/test.kjb -log=/software/pdi-ce-8.2.0.0-342/data-integration/logs/test.log