完成开题工作,开始做论文的工作了。
目前需要看的主要东西,以下内容是本季度要做的事情:
1、分布式文件系统,《分布式操作系统》
2、DHT算法详细研究
3、已下载的论文逐个看,大约45篇。
4、编程方面,现在也要开始玩玩xml了,因为这是编程部分的一个重点,也是比较容易学会的。
5、准备Grid方面的东西,简单研究一下wsrf规范。
初步规划,一般上午看文章,下午玩java+xml。
posted @
2007-07-22 07:14 J2EE 阅读(241) |
评论 (0) |
编辑 收藏
1、安装显卡驱动,启动3D特效。详细操作参见相关随笔
2、安装beryl和emeraid:
Installing the Beryl Packages
Beryl on Edgy Eft
Install the following packages:
sudo apt-get install beryl emerald-themes
Note: Beryl is a metapackage that will install all the dependencies
(beryl-core, beryl-plugins, beryl-manager, beryl-settings) and also the
decoration themes (emerald but not emerald-themes).
Beryl on Dapper Drake
Install the following packages:
sudo apt-get install xserver-xgl libgl1-mesa xserver-xorg libglitz-glx1 beryl emerald-themes
Note: Beryl is a metapackage that will install all the dependencies
(beryl-core, beryl-plugins, beryl-manager, beryl-settings) and also the
decoration themes (emerald but not emerald-themes).
Beryl on Feisty Fawn
Install the following packages:
sudo apt-get install beryl
Note: Beryl is a metapackage that will install all dependencies and decoration themes).
Starting Beryl
Now it's time to test Beryl. Open a terminal, and invoke:
beryl-manager
If all goes well, Beryl should show a splash screen, and your
windows will suddenly become wobbly! Also note that there is a new
icon, a red gem, in your system tray - this allows you to control
Beryl, run the Beryl settings manager or Emerald (the theme manager).
It also provides fallback to a different window manager, in case Beryl
crashes (remember Beryl is very much alpha software).
If you don't get a splash screen immediately, you may need to tell
the manager to load Beryl - right-click on the icon in the system tray,
go to "Select Window Manager" and choose "Beryl". If that doesn't work,
there's a problem somewhere! Hopefully, useful debugging output will be
in the terminal session; ask for help on the #ubuntu-xgl or #xgl
channels on irc://irc.freenode.net/
Making Beryl start automatically when you log in (GNOME)
From the menu at the top of your screen, select "System >
Preferences > Sessions". Click on the right-most tab, "Startup
Programs".
Now create a new entry for beryl:
beryl-manager
Close the Session Preference Panel. Beryl will now start automatically when you log in.
Troubleshooting
If you find that you cannot set icon or gtk themes while using beryl
with Xgl on display :1, invoke the following command in a terminal:
gnome-settings-daemon &
Your chosen theme should now appear.
source:
link,
link
The console message
beryl: water: GL_ARB_fragment_program is missing
points to an OpenGL extension that your card cannot use. Simply switch off the water effect in the Beryl Settings Manager.
source:
link
You might find that when you try to start beryl that you get the following:
chris@ubuntu:~$ beryl
**************************************************************
* Beryl system compatiblity check *
**************************************************************
Detected xserver : XGL
Checking Display localhost:1.0 ...
Checking for XComposite extension : passed (v0.3)
Checking for XDamage extension : passed
Checking for RandR extension : passed
Checking for XSync extension : passed
beryl: GLX_EXT_texture_from_pixmap is missing
beryl: Using non-tfp mode
beryl: GLX_SGIX_fbconfig is missing
beryl: Failed to manage screen: 0
beryl: No manageable screens found on display localhost:1.0
I fixed this by creating the following shell script in
/usr/local/bin/start-beryl and adding it to the startup programs in
Gnome.
#!/bin/bash
LD_PRELOAD=/usr/lib/fglrx/libGL.so.1.2.xlibmesa /usr/bin/beryl &
gtk-window-decorator --replace &
xmodmap -e \"keycode 22 = BackSpace Delete\"
Many thanks to
Michele Campeotto, who discovered this workaround for compwiz. From Michele's page:
"the problem is that ATI hasn’t yet released a driver with that new
extension that Novell and Nvidia developed specifically for Xgl and
compiz.
The extension is implemented by Mesa though, so we need get compiz
to use that. The problem is that when you install the fglrx driver it
overwrites /usr/lib/libGL.so.1.2 with its own version wich lacks this
feature."
posted @
2007-05-30 22:18 J2EE 阅读(474) |
评论 (0) |
编辑 收藏
3D Nvidia Video Card Driver
No
Nvidia Video cards have 3D acceleration enabled automatically with
Ubuntu, because the manufacturer does not release open source drivers.
However, it is possible to activate 3D acceleration. The process
depends on which type of video card you have.
-
If you have an older TNT, TNT2, TNT Ultra, GeForce1 or GeForce2 card, install the nvidia-glx-legacy and nvidia-settings packages from the Restricted repository (see Chapter 2, Adding, Removing and Updating Applications).
-
Alternatively, if you have a newer card, install the nvidia-glx package from the Restricted repository (see Chapter 2, Adding, Removing and Updating Applications).
-
To enable the new driver, run the following command in a terminal:
sudo nvidia-glx-config enable
-
You may adjust the settings of the new drivers by running the application nvidia-settings (see the section called “Start a Program Manually”). If you wish, add a menu entry for this program (see the section called “Menu Editing”).
posted @
2007-05-30 21:41 J2EE 阅读(554) |
评论 (0) |
编辑 收藏
3D ATI Video Card Driver
Many ATI video cards work well with Ubuntu automatically. To check that 3d acceleration works with your card, see the section called “Introduction to 3D Video Acceleration”. If it does not work, this procedure should activate it.
-
Install the xorg-driver-fglrx package from the Restricted repository (see Chapter 2, Adding, Removing and Updating Applications).
-
You now need to configure the computer to use the new driver so run this command in a terminal:
sudo dpkg-reconfigure xserver-xorg
-
When the dialogue appears and asks whether to do automatic detection of your video, pick Yes .
-
When asked to select a driver, pick fglrx .
-
Follow the remaining instructions as appropriate.
-
Restart your machine for changes to take effect.
posted @
2007-05-30 21:41 J2EE 阅读(775) |
评论 (0) |
编辑 收藏
Howto: ATI Xpress 200M+ XGL + Beryl in Feisty
This is very simple actually. It worked perfectly for me.
After installing Feisty, make sure your system is completely updated.
Code:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
First step is getting your drivers set up. To do this use the Restricted Driver Manager.
Code:
System >> Administration >> Restricted Drivers Manager
and enable your ATI driver.
Reboot the computer and make sure fglrx loaded correctly. There should
be an icon in the notification area telling you that you have
restricted modules loaded. You may also need to add this to your
xorg.conf file, I don't remember adding it by hand, I'm pretty sure the
restricted modules manager did it for me but I'll put it here just in
case.
Code:
Section "Extensions"
Option "Composite" "0"
EndSection
Now we need to install XGL.
Code:
sudo apt-get install xserver-xgl
the package in the Ubuntu repo works.
XGL won't load on its own so we need to write a few scripts to have it start.
Code:
sudo gedit /usr/local/bin/startxgl.sh
put this in your startxgl.sh file
Code:
#!/bin/sh
Xgl :1 -fullscreen -ac -accel xv:pbuffer -accel glx:pbuffer &
DISPLAY=:1
exec dbus-launch --exit-with-session gnome-session
if you experience a bug where you have no restart/shutdown button in the shutdown menu then you need to edit startxgl.sh to this
Code:
#!/bin/sh
Xgl :1 -fullscreen -ac -accel xv:pbuffer -accel glx:pbuffer &
DISPLAY=:1
cookie="$(xauth -i nextract - :0 | cut -d ' ' -f 9)"
xauth -i add :1 . "$cookie"
exec dbus-launch --exit-with-session gnome-session
now save and make the script executable
Code:
sudo chmod a+x /usr/local/bin/startxgl.sh
Now we need to create a way to login and launch that
Code:
sudo gedit /usr/share/xsessions/xgl.desktop
put this test into that file
Code:
[Desktop Entry]
Encoding=UTF-8
Name=GNOME with XGL
Comment=
Exec=/usr/local/bin/startxgl.sh
Icon=
Type=Application
now make that script executable
Code:
sudo chmod a+x /usr/share/xsessions/xgl.desktop
Now test your login. Logout, click sessions and chose GNOME with XGL.
If you get to the desktop you're now very close. If you have the
universe repository enabled we need to disable it. The beryl that is in
the universe does not work with xgl.
Code:
System >> Administration >> Software sources
now disable the universe repo and reload.
Now we need to add the beryl repo.
Code:
wget http://ubuntu.beryl-project.org/root@lupine.me.uk.gpg -O- | sudo apt-key add -
Now add this source to your Software sources via the Third party tab
Code:
deb http://ubuntu.beryl-project.org/ feisty main
reload sources and it's time to install!
Code:
sudo apt-get install beryl emerald-themes
Once that's finished installing you can launch beryl with
That's it! Now if you want to enable the universe repo be careful
not to update any beryl packages. They will break beryl as they do not
have XGL support unfortunately,
hopefully by release date this will be fixed. I don't think I left
anything out but if I did please let me know! I'll do my best to answer
any questions I can, as you can see it went very smoothly for me and i
wish all of you the best of luck.
posted @
2007-05-30 14:09 J2EE 阅读(259) |
评论 (0) |
编辑 收藏
-
Install sun-java5-jdk from the “Multiverse” repository (see Add Applications). You will need to use Synaptic Package Manager to install these packages.
-
Read the Java license presented. You must accept it to continue.
-
To get your system to use Sun Java instead of the open-source (but less functional) GIJ that is installed by default, run:
sudo update-alternatives --config java
and choose the option that has j2re1.5-sun
in it.
Java 1.6 is also available, and can be installed by following the above directions, swapping all instances of 1.5 to 1.6
posted @
2007-05-21 16:16 J2EE 阅读(355) |
评论 (0) |
编辑 收藏
It is very likely that you will not want to have the Geronimo server
process under the super user root. The following are a series of simple
steps for changing the ownership and permissions for the required files
in order to run Geronimo with a different user.
The following tasks should be performed while logged as root or a user with enough access rights.
- create a new user (i.e. gmo) and add it to a specific user group. You could use the predefined www user group for instance.
- edit the .bashrc for the user you just created and add the PATH and JAVA_HOME variables:
PATH=$PATH:<java_home>/bin
export PATH
JAVA_HOME=<java_home>
export JAVA_HOME
- change the user group to all the subdirs in <geronimo_home>
chown -R root:www <geronimo_home>
- create a deploy directory within the <geronimo_home> directory structure.
- change the access permissions to the following directories
chmod -R 774 <geronimo_home>/bin
chmod -R 774 <geronimo_home>/deploy
chmod -R 774 <geronimo_home>/repository
chmod -R 774 <geronimo_home>/var
- login as the new user (i.e. gmo)
- cd <geronimo_home>/bin
- ./geronimo.sh run
You are now able to run and deploy applications with a user other than root.
posted @
2007-05-05 09:42 J2EE 阅读(211) |
评论 (0) |
编辑 收藏
SubVision安装配置手册
1、 相关网站
http://httpd.apache.org/:下载Apache
2.0.59;因为目前subversion推荐采用这个版本,更高版本可能存在一些问题;
http://subversion.tigris.org/:下载subversion
1.4.3;
http://tortoisesvn.tigris.org/:下载tortoisesvn1.4.3;svn客户端,与windows的资源管理器集成;
http://tortoisesvn.net/translation_status:下载tortoisesvn1.4.3中文语言包
2、 安装步骤
首先安装Apache 2.0.59,简单按提示安装即可;安装目录
其次安装subversion 1.4.3,简单按提示安装即可;
最后安装tortoisesvn1.4.3,简单按提示安装即可;
3、 配置步骤
a.
Apache 2.0.59基本上不需要配置
b.
subversion 1.4.3:主要配置是修改apache的配置文件httpd.conf主要是增加以下内容:
i.
LoadModule dav_svn_module "e:/Program
Files/Subversion/bin/mod_dav_svn.so"
ii.
LoadModule authz_svn_module "e:/Program
Files/Subversion/bin/mod_authz_svn.so"
iii.
iv.
<Location /svn>
1.
DAV svn
2.
SVNListParentPath on
3.
SVNParentPath e:\SVN #指定svn版本库根目录;在根目录下创建不同的项目目录
4.
AuthType Basic
5.
AuthName "Subversion repositories"
6.
AuthUserFile passwd #指定用户名密码文件,文件名为passwd;默认目录为apache安装目录“X:\Program
Files\Apache Group\Apache2”
7.
AuthzSVNAccessFile svnacl.txt #指定访问控制文件,文件名为svnacl.txt;默认目录为apache安装目录“X:\Program
Files\Apache Group\Apache2”
8.
Require valid-user
v.
</Location>
vi.
访问控制文件例子svnacl.txt:
1.
[groups]
2.
#定义不同的用户组
3.
admin = admin
4.
devteam1 = admin
5.
devteam2 = admin
6.
7.
# Default access rule for ALL repositories
8.
# Everyone can read, admins can write, Dan
German is excluded.
9.
[/]
10.
* = r
11.
@admin = rw
12.
dangerman =
13.
# Allow developers complete access to their
project repos
14.
#zyn是一个例子项目project
15.
[zyn:/]
16.
@devteam1 = rw #表示组devteam1可以读写,即check in/out
17.
#test是另外一个例子项目project
18.
[test:/]
19.
@devteam2 = r # rw #表示组devteam2只读,即check out
c.
tortoisesvn1.4.3安装完成基本上不用配置;详细使用手册另行编写
posted @
2007-05-04 22:17 J2EE 阅读(1729) |
评论 (0) |
编辑 收藏
## Multimedia Codecs
# sudo apt-get install w32codecs
# sudo apt-get install gstreamer0.10-plugins-base
# sudo apt-get install gstreamer0.10-plugins-good
# sudo apt-get install gstreamer0.10-plugins-ugly
# sudo apt-get install gstreamer0.10-plugins-ugly-multiverse
# sudo apt-get install gstreamer0.10-plugins-bad
# sudo apt-get install gstreamer0.10-plugins-bad-multiverse
# sudo apt-get install gstreamer0.10-pitfdll
# sudo apt-get install gstreamer0.10-gl
# sudo apt-get install gstreamer0.10-ffmpeg
# sudo apt-get install vorbis-tools
# sudo apt-get install lame
# sudo apt-get install sox
# sudo apt-get install ffmpeg
# sudo apt-get install mjpegtools
## DVD playback
# sudo apt-get install libdvdcss2
# sudo apt-get install libdvdread3
# sudo apt-get install libdvdplay0
# sudo apt-get install libdvdnav4
# sudo apt-get install totem-xine
# sudo apt-get install libxine-extracodecs
# sudo apt-get install totem-xine-firefox-plugin
# sudo apt-get install vlc
# sudo apt-get install mplayer
posted @
2007-04-24 13:56 J2EE 阅读(941) |
评论 (0) |
编辑 收藏
管理 Eclipse 中的服务器
安装 Eclipse WTP 服务器适配器后,您可以使用 Eclipse 框架管理服务器。您可以
-
将服务器添加到 Eclipse 框架
-
启动(可启用调试,也可不启用调试)、停止和重新启动服务器。
-
从 Eclipse 包含的内部 Web 浏览器使用服务器的 Web 控制台。
-
将正在开发的 J2EE 资产部署到服务器,取消在服务器上的部署,或重新部署到服务器。
-
使用 Eclipse 调试功能,调试正在已启动的服务器(启用了调试功能)上运行的开发中的 J2EE 资产。
注:J2EE 透视图是使用 Eclipse 框架开发 J2EE 应用程序的首选透视图。
如果您不在 J2EE 透视图中,请单击 Windows,Open Perspective,Other...
在 Select Perspective 面板中,选择 J2EE,然后单击 OK,以切换到 J2EE 透视图。
定义新服务器和服务器运行时
在可以执行其他操作之前,您必须定义新的 Community Edition 服务器和服务器运行时。
这将标识目标服务器,并将服务器的类库添加到开发环境中。
您必须执行该任务,即使您希望使用远程服务器。
-
在 Eclipse 菜单栏中,单击 File,然后选择 New,Other。单击 Next。
-
在 Select a wizard 面板中,选择 Server,Server,然后单击 Next。
-
在 New Server 面板中,请确保将 Server's host name 设置为 localhost。选择 IBM, WebSphere Application Server Community Edition
v1.1 作为服务器类型。(如果您正在使用其他版本的 WebSphere Application Server Community Edition,请将那个版本作为服务器类型。)单击 Next。
-
在 New WebSphere Application Server Community Edition v1.1 Server Runtime 面板上,指定 JRE 和应用程序服务器安装目录。如果在指定的目录中不存在该服务器,那么,单击 Download and install,从 Eclipse Update site for IBM WebSphere Applicaton Server Community Edition 将服务器安装到指定的目录。
单击 Next。
-
根据需要,更改端口、管理员名称和密码。单击 Finish。
如果希望使用远程服务器,仅需要更改服务器定义中的主机名的值。
打开 Servers 视图,双击已定义的服务器,然后将主机名的值更改为远程服务器的主机名。保存更改。
查看服务器状态
要在 J2EE 透视图中查看服务器状态,请打开 Servers 视图。Eclipse WTP 服务器适配器监控服务器的状态,并相应地设置“已停止”、“正在启动”和“已启动”指示符。即使您未使用 Eclipse 启动或停止服务器,这些信息仍然适用。
启动服务器
通过以下过程,用 Eclipse 框架启动服务器。
-
在 J2EE 透视图中,打开 Servers 视图。
-
在 Server 面板上,右键单击要启动的服务器。
-
在弹出的上下文菜单上,单击 Start。
停止服务器
通过以下过程,用 Eclipse 框架停止服务器。
-
在 J2EE 透视图中,打开 Servers 视图。
-
在 Server 面板上,右键单击将要停止的服务器。
-
在弹出的上下文菜单中,单击 Stop。
启动 Web 控制台
通过以下过程,用 Eclipse 启动服务器的 Web 控制台。
-
在 J2EE 透视图中,打开 Servers 视图。
-
在 Server 面板上,右键单击要管理的服务器。
-
在弹出的上下文菜单中,单击 Launch Community Edition Console
posted @
2007-02-21 18:56 J2EE 阅读(621) |
评论 (0) |
编辑 收藏