完成開題工作,開始做論文的工作了。
目前需要看的主要東西,以下內(nèi)容是本季度要做的事情:
1、分布式文件系統(tǒng),《分布式操作系統(tǒng)》
2、DHT算法詳細(xì)研究
3、已下載的論文逐個(gè)看,大約45篇。
4、編程方面,現(xiàn)在也要開始玩玩xml了,因?yàn)檫@是編程部分的一個(gè)重點(diǎn),也是比較容易學(xué)會(huì)的。
5、準(zhǔn)備Grid方面的東西,簡(jiǎn)單研究一下wsrf規(guī)范。
初步規(guī)劃,一般上午看文章,下午玩java+xml。
1、安裝顯卡驅(qū)動(dòng),啟動(dòng)3D特效。詳細(xì)操作參見相關(guān)隨筆
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."
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”).
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.
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.
-
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
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.
SubVision安裝配置手冊(cè)
1、 相關(guān)網(wǎng)站
http://httpd.apache.org/:下載Apache
2.0.59;因?yàn)槟壳?/span>subversion推薦采用這個(gè)版本,更高版本可能存在一些問題;
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中文語(yǔ)言包
2、 安裝步驟
首先安裝Apache 2.0.59,簡(jiǎn)單按提示安裝即可;安裝目錄
其次安裝subversion 1.4.3,簡(jiǎn)單按提示安裝即可;
最后安裝tortoisesvn1.4.3,簡(jiǎn)單按提示安裝即可;
3、 配置步驟
a.
Apache 2.0.59基本上不需要配置
b.
subversion 1.4.3:主要配置是修改apache的配置文件httpd.conf主要是增加以下內(nèi)容:
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版本庫(kù)根目錄;在根目錄下創(chuàng)建不同的項(xiàng)目目錄
4.
AuthType Basic
5.
AuthName "Subversion repositories"
6.
AuthUserFile passwd #指定用戶名密碼文件,文件名為passwd;默認(rèn)目錄為apache安裝目錄“X:\Program
Files\Apache Group\Apache2”
7.
AuthzSVNAccessFile svnacl.txt #指定訪問控制文件,文件名為svnacl.txt;默認(rèn)目錄為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是一個(gè)例子項(xiàng)目project
15.
[zyn:/]
16.
@devteam1 = rw #表示組devteam1可以讀寫,即check in/out
17.
#test是另外一個(gè)例子項(xiàng)目project
18.
[test:/]
19.
@devteam2 = r # rw #表示組devteam2只讀,即check out
c.
tortoisesvn1.4.3安裝完成基本上不用配置;詳細(xì)使用手冊(cè)另行編寫
## 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
管理 Eclipse 中的服務(wù)器
安裝 Eclipse WTP 服務(wù)器適配器后,您可以使用 Eclipse 框架管理服務(wù)器。您可以
-
將服務(wù)器添加到 Eclipse 框架
-
啟動(dòng)(可啟用調(diào)試,也可不啟用調(diào)試)、停止和重新啟動(dòng)服務(wù)器。
-
從 Eclipse 包含的內(nèi)部 Web 瀏覽器使用服務(wù)器的 Web 控制臺(tái)。
-
將正在開發(fā)的 J2EE 資產(chǎn)部署到服務(wù)器,取消在服務(wù)器上的部署,或重新部署到服務(wù)器。
-
使用 Eclipse 調(diào)試功能,調(diào)試正在已啟動(dòng)的服務(wù)器(啟用了調(diào)試功能)上運(yùn)行的開發(fā)中的 J2EE 資產(chǎn)。
注:J2EE 透視圖是使用 Eclipse 框架開發(fā) J2EE 應(yīng)用程序的首選透視圖。
如果您不在 J2EE 透視圖中,請(qǐng)單擊 Windows,Open Perspective,Other...
在 Select Perspective 面板中,選擇 J2EE,然后單擊 OK,以切換到 J2EE 透視圖。
定義新服務(wù)器和服務(wù)器運(yùn)行時(shí)
在可以執(zhí)行其他操作之前,您必須定義新的 Community Edition 服務(wù)器和服務(wù)器運(yùn)行時(shí)。
這將標(biāo)識(shí)目標(biāo)服務(wù)器,并將服務(wù)器的類庫(kù)添加到開發(fā)環(huán)境中。
您必須執(zhí)行該任務(wù),即使您希望使用遠(yuǎn)程服務(wù)器。
-
在 Eclipse 菜單欄中,單擊 File,然后選擇 New,Other。單擊 Next。
-
在 Select a wizard 面板中,選擇 Server,Server,然后單擊 Next。
-
在 New Server 面板中,請(qǐng)確保將 Server's host name 設(shè)置為 localhost。選擇 IBM, WebSphere Application Server Community Edition
v1.1 作為服務(wù)器類型。(如果您正在使用其他版本的 WebSphere Application Server Community Edition,請(qǐng)將那個(gè)版本作為服務(wù)器類型。)單擊 Next。
-
在 New WebSphere Application Server Community Edition v1.1 Server Runtime 面板上,指定 JRE 和應(yīng)用程序服務(wù)器安裝目錄。如果在指定的目錄中不存在該服務(wù)器,那么,單擊 Download and install,從 Eclipse Update site for IBM WebSphere Applicaton Server Community Edition 將服務(wù)器安裝到指定的目錄。
單擊 Next。
-
根據(jù)需要,更改端口、管理員名稱和密碼。單擊 Finish。
如果希望使用遠(yuǎn)程服務(wù)器,僅需要更改服務(wù)器定義中的主機(jī)名的值。
打開 Servers 視圖,雙擊已定義的服務(wù)器,然后將主機(jī)名的值更改為遠(yuǎn)程服務(wù)器的主機(jī)名。保存更改。
查看服務(wù)器狀態(tài)
要在 J2EE 透視圖中查看服務(wù)器狀態(tài),請(qǐng)打開 Servers 視圖。Eclipse WTP 服務(wù)器適配器監(jiān)控服務(wù)器的狀態(tài),并相應(yīng)地設(shè)置“已停止”、“正在啟動(dòng)”和“已啟動(dòng)”指示符。即使您未使用 Eclipse 啟動(dòng)或停止服務(wù)器,這些信息仍然適用。
啟動(dòng)服務(wù)器
通過以下過程,用 Eclipse 框架啟動(dòng)服務(wù)器。
-
在 J2EE 透視圖中,打開 Servers 視圖。
-
在 Server 面板上,右鍵單擊要啟動(dòng)的服務(wù)器。
-
在彈出的上下文菜單上,單擊 Start。
停止服務(wù)器
通過以下過程,用 Eclipse 框架停止服務(wù)器。
-
在 J2EE 透視圖中,打開 Servers 視圖。
-
在 Server 面板上,右鍵單擊將要停止的服務(wù)器。
-
在彈出的上下文菜單中,單擊 Stop。
啟動(dòng) Web 控制臺(tái)
通過以下過程,用 Eclipse 啟動(dòng)服務(wù)器的 Web 控制臺(tái)。
-
在 J2EE 透視圖中,打開 Servers 視圖。
-
在 Server 面板上,右鍵單擊要管理的服務(wù)器。
-
在彈出的上下文菜單中,單擊 Launch Community Edition Console