layman -f -a gentoo-china
modify /etc/make.conf
PORTDIR_OVERLAY="/usr/local/portage/layman/gentoo-china"
#PORTDIR_OVERLAY="/usr/local/portage/layman/gentoo-taiwan"
eix-update
公告版位
目前分類:Gentoo (107)
- Jun 14 Mon 2010 12:18
[Gentoo]layman gentoo-china
- Jun 14 Mon 2010 02:22
[Gentoo]警告:隱含宣告與內建函式 「gettext」 不相容
peicheng@PCsNB ~/tools/betaradio/src $ make
gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -DEGG_COMPILATION -DDATADIR=\"/usr/local/share\" -DLOCALEDIR=\"/usr/local/share/locale\" -g -O2 -MT betaradio-betaradio.o -MD -MP -MF .deps/betaradio-betaradio.Tpo -c -o betaradio-betaradio.o `test -f 'betaradio.c' || echo './'`betaradio.c
betaradio.c:30:30: 錯誤:/usr/lib/gettext.h:沒有此一檔案或目錄
betaradio.c: In function 「main」:
betaradio.c:184: 警告:隱含宣告與內建函式 「gettext」 不相容
make: *** [betaradio-betaradio.o] Error 1
- Jun 14 Mon 2010 02:04
[Gentoo]autogent的一些技巧
http://code.google.com/p/betaradio/wiki/InstallationFromSourceCode
This page describes how to build betaradio executable binary from source code and install it.
P.S. "$ sudo command" can replace "# command" with root privilege.
Prepare the source code
- From the released tarball
- Download the released tarball from http://code.google.com/p/betaradio/downloads/list and untar it.
$ wget http://betaradio.googlecode.com/files/betaradio-X.X.X.tar.bz2
$ tar xjvf betaradio-X.X.X.tar.bz2
- Retrieve source code from http://betaradio.googlecode.com/svn/
$ svn checkout http://betaradio.googlecode.com/svn/trunk/ betaradio
Prepare the source compilation environment
- Debian/Ubuntu
$ sudo aptitude install libgtk2.0-dev libgstreamer0.10-dev libcurl-dev
- If you check out from subversion, you need to intall extra packages.
$ sudo aptitude install autotools-dev
- Fedora 6/7/8
# yum install gcc gtk2-devel gstreamer-devel curl-devel
Configure, compile, and install
- Change the directory to the root of source code
$ cd betaradio-X.X.X
- If you check out from subversion
$ cd betaradio
- Configure
- This step will set the installation directory to /usr/local
$ ./configure
$ ./configure --prefix=/usr
$ autoreconf -i
- Compile
$ make
- Install
$ sudo make install
Execute
- Betaradio need some extra packages to execute normally.
- Debian/Ubuntu
$ sudo aptitude install \
gstreamer0.10-plugins-base \
- Jun 11 Fri 2010 23:01
[Gentoo]error while loading shared libraries: libjpeg.so.7: cannot open shared object file
peicheng@PCsNB /mnt/Win/dcim/112_pana $ gpicview p1120848.jpg
gpicview: error while loading shared libraries: libjpeg.so.7: cannot open shared object file: No such file or director
emerge jpeg:7
- Jun 10 Thu 2010 17:50
[Gentoo]emerge world 之後要注意的事情
- Jun 06 Sun 2010 14:16
[Linux]Screen message
Screen message
那天看學弟小黑雞在報來聽talk的時候,看到他用了一個類似大字報的軟體。
他跟我說叫SM
我查查之後是有收到debian sm叫作 screen message
python寫的140行的script
- Jun 04 Fri 2010 22:22
[Gentoo]kill user login out
skill -KILL -u username
- Jun 03 Thu 2010 15:18
[Gentoo]Lxde 虛擬桌面切換
- Jun 01 Tue 2010 15:14
[Gentoo]Install Google Chrome 官方版
[Gentoo]Install Google Chrome 官方版
在portage裡面的
* www-client/google-chromium-bin [1]
Available versions: (~)9999
Homepage: http://code.google.com:80/chromium/
Description: Chromium is the open-source project behind Google Chrome.
是google chrome的open source所以再html5上面有些不支援,
例如video 沒有h.264的授權。
- Apr 01 Thu 2010 15:18
[Gentoo]You still haven't deleted //etc/locales.build.
when emerge glibc, an error occured.
* You still haven't deleted //etc/locales.build.
* Do so now after making sure //etc/locale.gen is kosher.
*
* ERROR: sys-libs/glibc-2.9_p20081201-r2 failed.
* Call stack:
* ebuild.sh, line 49: Called pkg_setup
* glibc-2.9_p20081201-r2.ebuild, line 179: Called eblit-run 'pkg_setup'
* glibc-2.9_p20081201-r2.ebuild, line 165: Called eblit-glibc-pkg_setup
* pkg_setup.eblit, line 42: Called die
- Mar 31 Wed 2010 23:52
[Gentoo] gcc and glibc circular dependencies
as gcc is sloted it's safe to force gcc first
emerge --nodeps gcc
gcc-config i686-pc-linux-gnu-4.4.2
emerge glibc && emerge gcc
- Mar 10 Wed 2010 22:32
[Gentoo]Note that circular dependencies can often be avoided by temporarily
sun15 linux # emerge -pv gcc
These are the packages that would be merged, in order:
Calculating dependencies... done!
[nomerge ] sys-devel/gcc-4.4.3 [4.1.1-r3] USE="fortran gtk mudflap nls nptl openmp (-altivec) -bootstrap -build -doc (-fixed-point) -gcj -graphite (-hardened) (-libffi) (-multilib) -multislot (-n32) (-n64) -nocxx -objc -objc++ -objc-gc -test -vanilla"
[ebuild U ] sys-libs/glibc-2.11-r1 [2.5-r4] USE="-gd% -vanilla%"
- Jan 13 Wed 2010 20:25
[Gentoo]emulation/virtualbox-bin-3.0.8 (masked by: PUEL license)
Calculating dependencies... done!
[ebuild N ] gnome-base/gdm-2.20.10-r2 USE="consolekit ipv6 pam tcpd -accessibility -afs -branding -debug -dmx -gnome-keyring -remote (-selinux) -xinerama" 0 kB
Total: 1 package (1 new), Size of downloads: 0 kB
!!! The following installed packages are masked:
- app-emulation/virtualbox-bin-3.0.8 (masked by: PUEL license(s))
A copy of the 'PUEL' license is located at '/usr/portage/licenses/PUEL'.
- Dec 11 Fri 2009 23:44
apache error could not bind to address 0.0.0.0:80 no listening sockets available, shutting do
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down
Is usually caused by an already running apache. You can check what's listening on port 80 with:
sudo netstat -lpnt | grep 80 tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 3647/nginx
Then you can kill that proc with:
kill 3647
Use the number in your output not just 3647 :) . If it still won't die you can use -9:
kill -9 3647
Of course all this should be just fixable with a reboot too.
- Sep 26 Sat 2009 21:42
[Gentoo]openbox快捷鍵 LXDE
Keyboard shortcuts
Openbox default key combinations
-
Alt-F4 Close the active window
-
Alt-Space Show the client menu for the active window
-
Alt-Tab Cycle between windows on the desktop
-
Alt-Shift-Tab Cycle between windows on the desktop in reverse order
-
Control-Alt-Tab Cycle between panel and desktop windows on the desktop
- Sep 26 Sat 2009 20:32
[Gentoo]dindin-pdf
走冰大神寫了隻pdf viewer
再很平凡無奇的pdf投影片也會搖身一變成為眾所矚目的焦點。
從google code svn下 源碼
svn checkout http://dindin-pdf.googlecode.com/svn/trunk/ dindin-pdf-read-only
然後 裏面有隻autugen.sh
他會幫你產生一些make的變數如果你環境都符合的話
應該一下就跑出來了
- Sep 26 Sat 2009 16:26
[Gentoo]LXDE使用xcompmgr transset 達到透明
emerge xcompmgr
emerge transset
xcompmgr -c -t-5 -l-5 -r4 -o.55 &
$ transset .5 # 例子为实现50%透明。
$ transset .3 # 实现30%透明
- Sep 26 Sat 2009 01:39
[gentoo]使用google chrome
关于Google Chromium和Google Chrome的关系请看这里。所以呢,叫Chromium比较好。 偶前天说写个google chromium的ebuild,但是木时间哈,所以今天看看ebuild how to才写完。 这是Shellex第一次写ebuild哦,里面用到了curl来获取最新的版本号。不知道可以不可以,因为不知道如何用wget做到一样的功能。所以请保证安装有curl,有什么不对的地方还请大家见谅喽,可以直接告诉我。 嗯,现在用gentoo的同学,不用编译也可以用上最新的Google Chromium的开发版快照了! 首先,下载这个文件[右键另存: google-chromium-bin-9999.ebuild]。放到你的本地portage的某分类下。比如我放在是/usr/local/portage/www-client/google-chromium-bin/ 当然啦,Shellex不保证上面那个下载链接是最新的。如果有变化,请移步Shellex-overlay,在那儿可以找到Shellex用的最新ebuilds. 接下来请执行: # ebuild google-chromium-bin-9999.ebuild digest # emerge google-chromium-bin 如果没有错的话,chromium就安装完毕了。执行 $ chromium-bin 可以启动它啦。以后想用最新的Chromium, 只要emerge google-chromium-bin就可以啦 BTW: 当然版本2.0.177.0 (14518),支持Tab拖动了。 轉載 http://linuxdesktop.cn/2009/04/27/use-latest-google-chromium-without-compile-the-source-code.html
- Sep 26 Sat 2009 01:16
[Gentoo]pcmanx libpcmanx_core.so.0: cannot open shared object file: No such file or
layman 裡的pcmanx-gtk2不能編譯成功 似乎跟我的firefox是bin的關係 有個萬掛是firefox的 所以從從svn取回code # ./autogen.sh # ./configure # make ; make install 發現 应 在终端里运行pcmanx 告诉我pcmanx: error while loading shared libraries: libpcmanx_core.so.0: cannot open shared object file: No such file or directory 用root執行ldconfig 就可以了
- Sep 25 Fri 2009 16:23
[gentoo]安裝與lxde
前幾天把硬碟整理完,
Windows下的工作也先告一段落了。
趁星期五開始重新我的Gentoo生活
使用LXDE
看著quick install的文件 很快就把基本的系統安裝好了.
LXDE 還有一些微調問題.
http://en.gentoo-wiki.com/wiki/LXDE