本文介绍了Kscope,openssl,SourceInsight,SDL,VNC的搭建。
kscope
下载kscope-1.6.2.tar.gz,地址为:http://download.chinaunix.net/download/0006000/5469.shtml。
执行:tar zxvf kscope-1.6.2.tar.gz
执行:cd kscope-1.6.2
执行:./configure
提示错误:configure: error: The important program kde-config was not found!
执行:yum install kdelibs3 kdelibs3-devel
执行:./configure
提示错误:checking for Qt... configure: error: Qt (>= Qt 3.3 and < 4.0) (headers and
libraries) not found. Please check your installation!
执行:yum install qt3 qt3-devel
执行:./configure
提示成功:Good - your configure finished. Start make now
执行:make
提示错误:/usr/bin/ld: cannot find -lkateinterfaces
打开src/Makefile,修改kscope_LDADD = -lkateinterfaces为kscope_LDADD = -lkatepartinterfaces
执行:make
提示:无错误,执行完成。
执行:make install
到此,kscope已经安装完成,如果要成功运行,还需要安装ctags graphviz,和cscope。
执行:yum install ctags
执行:yum install graphviz
执行:yum install cscope
第一次启动时,需要对Kscope做一些简单的配置,在配置时可能要指定Kscope所需的cscope,ctags和dot,直接点击下面的按钮Guess,让它自己检测就可以了,或者按下面这样子设置。
Cscope path:/usr/bin/cscope
Ctags path:/usr/bin/ctags
Dot path:/usr/bin/dot
到此所有的安装已结束,打开VNC,运行“Terminal”,执行:kscope,即会出现kscope软件的界面。
openssl
从官网上下载openssi源码,放到linux机器上,我放在home目录下。
命令步骤如下:
1:.../openssl-0.9.8c]# ./config --prefix=/usr/local/ssl-0.9.8c shared zlib-dynamic enable-camellia
解释如下:
--prefix=/usr/local/ssl-0.9.8c
[this is the installation location; default is '/usr/local/ssl' -- which we will symlink]
shared
[in addition to the usual static libraries, create shared libraries]
zlib-dynamic
[like "zlib", but has OpenSSL load the zlib library dynamically when needed]
enable-camellia
[enables the symmetric cipher 'Camellia' (128-bit, 192-bit, 256-bit key versions), which is now available for royalty-free use]
2:Configure
#: ./config -t
3: Build and Install
#:make depend
#:make
#: make test
#:make install
//测试一下:openssl version 打印:openssl版本,如:OpenSSL 1.0.0-fips 29 Mar 2010
4:Symlink
#:cd /usr/local
#:ln -s ssl-0.9.8c ssl
5:Update the Run-time Linker
Edit /etc/ld.so.conf, add to paths...
/usr/local/ssl/lib
6:Update the PATH
Edit /root/.bash_profile, add to PATH variable...
/usr/local/ssl/bin
7:[sanity check] OpenSSL
ldd /usr/local/openssl/bin/openssl
soure insight
首先安装wine,执行:yum install wine
下载soure insight,解压出EXE文件,如Si3572Setup.exe。
执行:wine Si35Setup.exe
接下来步骤同windows安装,附上序列号:
序列号(任选其一):
SI3US-343066-11287
SI3US-956386-80191
SI3US-840598-11493
SI3US-404808-04697
SI3US-510811-93484
问题:
Source Insight开始能够打开,后来不能打开(提示程序错误,要关闭)。
只要删除%HOME/Soutce Insight/Settings下的所有文件,重新运行Source Insight即可。
SDL
去SDL官网"http://www.libsdl.org/"下载源码,依次执行“./configure make make install”即可。
2.0版本不能被最新的ffmpeg识别,还是得用1.2版本。
1.2版本会有_XData32错误提示,这是SDL的一个BUG,需要打上SDL的一个patch,
内容如下:
libX11-1.5.99.901 has changed prototype of _XData32
<http://bugzilla.libsdl.org/show_bug.cgi?id=1769>
diff -r b6b2829cd7ef src/video/x11/SDL_x11sym.h
--- a/src/video/x11/SDL_x11sym.h Wed Feb 27 15:20:31 2013 -0800
+++ b/src/video/x11/SDL_x11sym.h Wed Mar 27 16:07:23 2013 +0100
@@ -165,7 +165,7 @@
*/
#ifdef LONG64
SDL_X11_MODULE(IO_32BIT)
-SDL_X11_SYM(int,_XData32,(Display *dpy,register long *data,unsigned len),(dpy,data,len),return)
+SDL_X11_SYM(int,_XData32,(Display *dpy,register _Xconst long *data,unsigned len),(dpy,data,len),return)
SDL_X11_SYM(void,_XRead32,(Display *dpy,register long *data,long len),(dpy,data,len),)
#endif
如把它保存在 SDL目录 ,文件名:SDL-1.2-const_XData32.patch,如下的命令执行:
patch -p1 < SDL-1.2-const_XData32.patch
完成后,再次make。
VNC
VNC可以用来远程Linux服务端,网上有很多VNC安装配置的文档,今天把自己安装步骤写下来。
1安装
VNC有很多个版本,我选的是tigervnc,首先检查服务端是否安装VNC,输入命令:?# rpm –q vnc-server或者?# rpm –q tigervnc-server;如果有返回信息,说明已经装过VNC,如果没有返回信息,执行命令:yum install tigervnc-server。
2配置
2.1加用户信息
执行命令:?# vi /etc/sysconf/vncservers,类似添加如下信息:
VNCSERVERS="1:user1 2:user2"
VNCSERVERARGS[1]="-geometry 1440 x900"
VNCSERVERARGS[2]="-geometry 1440 x900"
这些信息是添加用户,若是你还有更多用户想远程登录,就得在VNCSERVERS这一行中持续添加3:user3等等,下面的VNCSERVERARGS[i]是对应第i个用户远程登录的参数。这个参数还有很多多少选项,我就设置了一下辨别率,你可以按照本身的需要将1440 x900改成你想要的辨别率,默认的话如同是800 x600
接下来是为每个用户设置密码,切换到用户(?# su - user1),再执行?# vncpassword,输入两次密码即可。
最后启动VNC服务,执行命令:?# vnserver。
到此,服务端的配置已经完成,客户端装打开vncviewer(下载地址:http://download.csdn.net/detail/evsqiezi/8044681),输入ip:port或ip:id,如:192.168.1.1000:5901或192.168.1.1000:1(如果不知道端口号,用ip:id),点“连接后”,输入密码后,即可显示画面。
命令:
vncserver 创建。
vncserver -list 查看。
vncserver -kill :2 删除ID为2的。
问题:
unable connect to socket: Connection time out(10060)
1 看起来是SOCKET连接超时的问题,后来通过打开防火墙解决。
2 将/etc/hosts中的IP主机名与network中的hostname相对应,如将172.0.0.1改成192.168.1.100。