posts - 35,  comments - 8,  trackbacks - 0
          完成開題工作,開始做論文的工作了。
          目前需要看的主要東西,以下內容是本季度要做的事情:
          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: [WWW] link, [WWW] 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: [WWW] 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 [WWW] 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.

          1. 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).

          2. Alternatively, if you have a newer card, install the nvidia-glx package from the Restricted repository (see Chapter 2, Adding, Removing and Updating Applications).

          3. To enable the new driver, run the following command in a terminal:

            sudo nvidia-glx-config enable 

          4. 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.

          1. Install the xorg-driver-fglrx package from the Restricted repository (see Chapter 2, Adding, Removing and Updating Applications).

          2. You now need to configure the computer to use the new driver so run this command in a terminal:

            sudo dpkg-reconfigure xserver-xorg
          3. When the dialogue appears and asks whether to do automatic detection of your video, pick Yes .

          4. When asked to select a driver, pick fglrx .

          5. Follow the remaining instructions as appropriate.

          6. 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
          Code:
          beryl-manager
          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)編輯 收藏
          1. Install sun-java5-jdk from the “Multiverse” repository (see Add Applications). You will need to use Synaptic Package Manager to install these packages.

          2. Read the Java license presented. You must accept it to continue.

          3. 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.

          1. 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.
          2. 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
          3. change the user group to all the subdirs in <geronimo_home>
            chown -R root:www <geronimo_home>
          4. create a deploy directory within the <geronimo_home> directory structure.
          5. 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
          6. login as the new user (i.e. gmo)
          7. cd <geronimo_home>/bin
          8. ./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 服務器和服務器運行時。 這將標識目標服務器,并將服務器的類庫添加到開發環境中。 您必須執行該任務,即使您希望使用遠程服務器。

          1. 在 Eclipse 菜單欄中,單擊 File,然后選擇 New,Other。單擊 Next
          2. Select a wizard 面板中,選擇 Server,Server,然后單擊 Next。
          3. New Server 面板中,請確保將 Server's host name 設置為 localhost。選擇 IBM, WebSphere Application Server Community Edition v1.1 作為服務器類型。(如果您正在使用其他版本的 WebSphere Application Server Community Edition,請將那個版本作為服務器類型。)單擊 Next
          4. 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
          5. 根據需要,更改端口、管理員名稱和密碼。單擊 Finish

          如果希望使用遠程服務器,僅需要更改服務器定義中的主機名的值。 打開 Servers 視圖,雙擊已定義的服務器,然后將主機名的值更改為遠程服務器的主機名。保存更改。

          查看服務器狀態

          要在 J2EE 透視圖中查看服務器狀態,請打開 Servers 視圖。Eclipse WTP 服務器適配器監控服務器的狀態,并相應地設置“已停止”、“正在啟動”和“已啟動”指示符。即使您未使用 Eclipse 啟動或停止服務器,這些信息仍然適用。

          啟動服務器

          通過以下過程,用 Eclipse 框架啟動服務器。

          1. 在 J2EE 透視圖中,打開 Servers 視圖。
          2. Server 面板上,右鍵單擊要啟動的服務器。
          3. 在彈出的上下文菜單上,單擊 Start

          停止服務器

          通過以下過程,用 Eclipse 框架停止服務器。

          1. 在 J2EE 透視圖中,打開 Servers 視圖。
          2. Server 面板上,右鍵單擊將要停止的服務器。
          3. 在彈出的上下文菜單中,單擊 Stop。

          啟動 Web 控制臺

          通過以下過程,用 Eclipse 啟動服務器的 Web 控制臺。

          1. 在 J2EE 透視圖中,打開 Servers 視圖。
          2. Server 面板上,右鍵單擊要管理的服務器。
          3. 在彈出的上下文菜單中,單擊 Launch Community Edition Console
          posted @ 2007-02-21 18:56 J2EE 閱讀(621) | 評論 (0)編輯 收藏
          僅列出標題
          共4頁: 上一頁 1 2 3 4 下一頁 

          <2025年6月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          293012345

          常用鏈接

          留言簿(2)

          隨筆檔案

          文章檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 延长县| 锡林郭勒盟| 达日县| 永清县| 辽宁省| 新平| 越西县| 历史| 永春县| 永安市| 柳江县| 横山县| 深州市| 河西区| 屯昌县| 比如县| 新野县| 长垣县| 获嘉县| 锡林郭勒盟| 陵川县| 雷波县| 宜都市| 黑山县| 新竹县| 开平市| 宁波市| 布尔津县| 富民县| 故城县| 柘城县| 迁西县| 漳平市| 墨竹工卡县| 青冈县| 万宁市| 罗甸县| 高陵县| 东乌| 凤山市| 太仆寺旗|