LinuxÒÁµéÔ°ÂÛ̳'s Archiver

davi ·¢±íÓÚ 2004-8-8 16:02

°²×°gdesklets

gdesklets¿ÉÒÔÈÃ×ÀÃæ¸ü¼Ópp,ÏÂÃæ½éÉÜÒ»ÏÂÈçºÎÔÚgentooϰ²×°ºÍʹÓãºD
ʹÓ÷½·¨ÊÇ[color=blue]·çÖÐ×··ç[/color]´ó´óдµÄ£¬Å¼´úËûÌù³öÀ´¡£

ʹÓû·¾³£ºgnome
#emerge gdesklets-core
×°ÉϺ󻹵Ã×°ËüµÄÖ÷Ìâ²ÅÄÜʹÓã¬ÔÚ/usr/portage/x11-pluginsÀïµÄÒÔdesklet¿ªÍ·µÄ¶¼ÊÇËüµÄÖ÷Ì⣬ÕâÀïÎÒʹÓÃÁËmultitail(ÔÚ×ÀÃæÉÏÏÔʾlog)ºÍstarterbar(¿ìËÙÆô¶¯£©Á½¸öÖ÷Ìâ¡£

#emerge desklet-multitail
#emerge desklet-starterbar

ÕâÑùÔÚ/usr/share/gdesklets/DistplaysÀï¾Í¿ÉÒÔ¿´µ½Ö÷ÌâĿ¼ÁË¡£
gdeskletsÿÆô¶¯Ò»¸öÖ÷Ìâ¶¼ÒªÖ´ÐÐÒ»ÏÂÃüÁ¾ÍÊÇ˵ҪʹÓÃÕâÁ½¸öÖ÷Ìâ¾ÍÒªÖ´ÐÐÁ½´ÎgdeskletsÃüÁ
#gdesklets /usr/share/gdesklets/Displays/Multitail/multitail.display

#gdesklets /usr/share/gdesklets/Displays/StarterBar/starterbar.display

ÏÖÔÚÅäÖÃÖ÷Ìâ
multitail£ºÓÒ¼üµã³ö²Ëµ¥-add titail-add,¼ÓÉÏÄãÒªÏÔʾµÄlog£¬±ÈÈç/var/log/apache2/access_log£¬×¢ÒâµÄÊÇȨÏÞ£¬ÆÕͨÓû§ÊDz»ÄܶÁÈ¡µÄ¡£

starterbar:½øÈë~/.gdesklets/Mystarbar/Ëæ»úÊý×ÖĿ¼£¬¿½±´/usr/share/applicationsÀïµÄÐèÒª¿ìËÙÆô¶¯µÄ³ÌÐòµÄ
.desktopµ½µ±Ç°Ä¿Â¼£¬ È»ºó±à¼­.order£¬¼ÓÈë¸Õ²Å¿½±´µÄ.desktop£¬±£´æÍ˳ö¡£ÔÚstarterbarÉÏÓÒ¼ü²Ëµ¥ÀïÖ´ÐÐrestart display£¬¾ÍÄÜ¿´µ½¿ìËÙÆô¶¯µÄ³ÌÐòͼ±êÁË¡£

Òª¹ØµôÄã²»ÐèÒªµÄÖ÷Ì⣬ֻÐèÒªÔÚÖ÷ÌâÉÏÓÒ¼ü²Ëµ¥ÀïÖ´ÐÐremove display¾ÍÐÐÁË¡£

gdesklets»á¼ÇסÄãÉÏ´ÎʹÓõÄÖ÷Ì⣬ÔÚÏÂ´ÎÆô¶¯Ê±¾ÍÖ»ÒªÖ´ÐÐgdeskletsÃüÁî¾Í¿ÉÒÔÁË£¬Èç¹ûÔÚÒªÆô¶¯Xʱ¼ÓÔØËü£¬¾ÍÔڻỰÀï¼ÓÈëgdesklets£¬»òÕßÔÚ~/.xinitrcÀïµÄ¼ÓÔØ´°¿Ú¹ÜÀíÆ÷ºóÃæÐ´ÉÏgdesklets &¾ÍÐÐÁË¡£

²¹³ä£ºÖ÷ÌâµÄλÖÿÉÒÔͨ¹ýÊó±êµÄÖмüÀ´Òƶ¯Î»Öá£starterbarÖÐÎÞ·¨¼ÓÈëbmp

davi ·¢±íÓÚ 2004-8-8 16:12

ÔÚÌùÒ»ÕÅÎҵĽØÍ¼£º0£¬´ó¼Ò¿´¿´Ð§¹û

[IMG]ftp://ftp.linuxeden.com/davi/egg.jpg[/IMG]

blackspace ·¢±íÓÚ 2004-8-11 22:33

Õâ¸öÎĵµÊDz»È«ÃæµÄ£¬»¹Òª°²×°2,3¸ö¶«¶«¡£

ÖÁÓÚÊÇʲôÎÒÒ²ÍüÁË¡£

davi ·¢±íÓÚ 2004-8-11 23:20

Ŷ£¬Ôõ½²£¿
ÎÒÓõúúõİ¢

blackspace ·¢±íÓÚ 2004-8-12 07:09

»áÓУºgnome.uiÕÒ²»µ½µÄÎÊÌâ¡£

davi ·¢±íÓÚ 2004-8-12 12:14

blackspace
Äܲ»ÄÜ˵Ã÷°×µã¡£¶àл

blackspace ·¢±íÓÚ 2004-8-12 13:52

ImportError: No module named gnome.ui

The most common reason for missing gnome.ui module is that there was no py-orbit available when you compiled or installed gnome-python.

So as a solution you need to install py-orbit first and after that recompile and reinstall gnome-python.
-----------------
import´íÎó£ºÃ»ÓÐgnome.uiµÄÄ£¿é

Õâ¸ö×î³£¼ûµÄÔ­ÒòÊÇ£ºµ±±àÒë°²×°gnome-pythonʱ£¬Ã»Óа²×°py-orbit¡£

Òò´ËÄãÐèÒª°²×°py-orbit£¬È»ºóÔÙ°²×°gnome-python

davi ·¢±íÓÚ 2004-8-12 14:51

[code]

davi root # emerge -ep  gdesklets-core

These are the packages that I would merge, in order:

Calculating dependencies -x86
x86
x86
|x86
x86
x86
...done!
....
....
....
[ebuild  N   ]gnome-base/libgnomeui-2.6.1.1
[ebuild  N    ] x11-themes/hicolor-icon-theme-0.5
[ebuild  N    ] x11-themes/gnome-icon-theme-1.2.3
[ebuild  N    ] media-libs/tiff-3.6.1-r1
[ebuild  N    ] media-libs/giflib-4.1.0-r3
[ebuild  N    ] x11-libs/gtk+-1.2.10-r11
[ebuild  N    ] media-libs/imlib-1.9.14-r1
[ebuild  N    ] x11-themes/gtk-engines-2.2.0
[ebuild  N    ] x11-themes/gnome-themes-2.6.2
[ebuild  N    ] gnome-base/libgtop-2.6.0
[color=red][ebuild  N    ] dev-python/pyorbit-2.0.0 [/color]
....
....
....
[/code]

blackspace ·¢±íÓÚ 2004-8-12 16:18

¿ÉÄܰ汾²»Ò»Ñù£¡

davi ·¢±íÓÚ 2004-8-12 16:27

ÄãÓõIJ»ÊÇgentoo£¿£¿

blackspace ·¢±íÓÚ 2004-8-13 07:47

import´íÎó£ºÃ»ÓÐgnome.uiµÄÄ£¿é

¿ÉÄÜÎÒemergeµÄÊÇÀϰ汾µÄgdesklets.
Àϰ汾µÄgdeskletsûÓÐpyorbit£¬ÎÒÉý¼¶gdeskletsʱ
pyorbit¾Í¸øºöÂÔÁË¡£

Õâ¸öÎÊÌâÀ§ÈÅÁËÎҺó¤Ê±¼ä¡£µ½gdeskletsÖ÷Õ¾²Å¸ã¶¨µÄ¡£

ȫƴ ·¢±íÓÚ 2004-11-9 09:05

ot@localhost gDesklets-0.30]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking for strerror in -lcposix... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for gcc option to accept ANSI C... none needed
checking for perl... /usr/bin/perl
checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... i686-redhat-linux-gnu
checking host system type... i686-redhat-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking how to run the C++ preprocessor... /lib/cpp
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
libtool.m4: error: problem compiling CXX test program
checking for g++ option to produce PIC...
checking if g++ supports -c -o file.o... no
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
./configure: line 20382: CFLAGS: command not found
checking for python... /usr/bin/python
checking for python version... 2.2
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.2/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.2/site-packages
checking for pkg-config... no
*** The pkg-config script could not be found. Make sure it is
*** in your path, or set the PKG_CONFIG environment variable
*** to the full path to pkg-config.
*** Or see [url]http://www.freedesktop.org/software/pkgconfig[/url] to get pkg-config.
configure: error: Library requirements (gnome-python-2.0 >= 2.0.0 pygtk-2.0 >= 2.0.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.

ȫƴ ·¢±íÓÚ 2004-11-9 09:09

ÎÒ×°µÄÊÇ3.0µÄ°æ±¾£¬³öÏÖÈçÏÂÌáʾ£¬Ê²Ã´Òâ˼£¬Ð»Ð»
  
ÎÒµÄϵͳÊÇred hat 9.0

     
root@localhost gDesklets-0.30]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking for strerror in -lcposix... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for gcc option to accept ANSI C... none needed
checking for perl... /usr/bin/perl
checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... i686-redhat-linux-gnu
checking host system type... i686-redhat-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking how to run the C++ preprocessor... /lib/cpp
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
libtool.m4: error: problem compiling CXX test program
checking for g++ option to produce PIC...
checking if g++ supports -c -o file.o... no
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
./configure: line 20382: CFLAGS: command not found
checking for python... /usr/bin/python
checking for python version... 2.2
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.2/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.2/site-packages
checking for pkg-config... no
*** The pkg-config script could not be found. Make sure it is
*** in your path, or set the PKG_CONFIG environment variable
*** to the full path to pkg-config.
*** Or see [url]http://www.freedesktop.org/software/pkgconfig[/url] to get pkg-config.
configure: error: Library requirements (gnome-python-2.0 >= 2.0.0 pygtk-2.0 >= 2.0.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.

ldh168 ·¢±íÓÚ 2004-11-15 08:37

ÕâÍæÒâÌ«ÄÑ×°ÁË£¬ÎÒ°´ÕÕgentooµÄ¹Ù·½Îĵµ½øÐоÍûÓÐÒ»´Î³É¹¦£¬ÏÖÔÚÒ²²»Öª´íÔÚÄÄ£¡

Ò³: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.