公告版位
目前分類:Gentoo (107)
- Nov 16 Tue 2010 15:51
[Gentoo]awk 在public_html下為資料夾的檔案變成網頁連結
- Nov 09 Tue 2010 16:07
[Gentoo]一般使用者使用cron /var/spool/cron: Permission denie
crontab -lcannot chdir(/var/spool/cron), bailing out.
/var/spool/cron: Permission denie
把一般user pc 加入cron群組
- Nov 06 Sat 2010 10:10
[Gentoo]BSD 切換locale zh_TW.UTF-8
[Gentoo]BSD 切換locale zh_TW.UTF-8
in Linux and BSD
$ locale
你可以看到你現在的 LC的相關設定
LANG=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
- Nov 03 Wed 2010 02:58
[Gentoo]bind named could not configure root hints from 'named.ca': file not found
bind named could not configure root hints from 'named.ca': file not found
/etc/bind/ 下面有沒有named.ca這個file
沒有
dig @a.root-servers.net . ns > named.ca
/etc/init.d/named restart
還是error
- Oct 31 Sun 2010 23:11
[Gentoo]Gentoo安裝與配置NFS
- Oct 28 Thu 2010 14:03
[Gentoo]解決gsynaptics觸控版不能連點
我就想出奇怪了....
從blogspot把舊文轉過來。
vi /etc/X11/xorg.conf
在xorg.conf加入Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
InputDevice "Keyboard0" "CoreKeyboard"
- Sep 28 Tue 2010 12:54
[Gentoo]Reverse SSH Tunnel 反向ssh tunnel
先在我們要連線的機器上建立一條連線到我們的ssh server上
ssh -NfR 12345:localhost:22 pc@myhost.com
在我們的ssh server上
ssh localhost -p 12345
進入那台我們要連線機器的ssh server了
- Sep 25 Sat 2010 15:16
[Gentoo]Linux大小寫轉換方法
Linux大小寫轉換方法
小寫轉大寫
(1)sed:cat file | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'
(2)tr:cat file | tr a-z A-Z
cat file | tr "[:lower:]" "[:upper:]"
(3)perl:$string="abcdef";
$string =~ tr/[a-z]/[A-Z]/;
- Sep 20 Mon 2010 17:43
[Gentoo]wget 整個目錄
常常用的一個問題是,
我們要下載整個目錄的連結檔案。
以CCU課程網站為例,
下download下來會看到有個session id的
wget -i 網址
這樣話把這個頁面的所有連結抓回來。
- Sep 19 Sun 2010 17:17
[Gentoo]ld.so: dl-open.c: 611: _dl_open: Assertion `_dl_debug_initialize
安裝 google talk 的plugin發生的錯誤
peicheng@PCsNB ~ $ chromium-bin
Inconsistency detected by ld.so: dl-open.c: 611: _dl_open: Assertion `_dl_debug_initialize (0, args.nsid)->r_state == RT_CONSISTENT' failed!
PCsNB Downloads # ldd /opt/google/talkplugin/*
/opt/google/talkplugin/cron:
ldd: /opt/google/talkplugin/cron: 並非正常的檔案
/opt/google/talkplugin/GoogleTalkPlugin:
/opt/google/talkplugin/GoogleTalkPlugin: /usr/lib/libssl.so.0.9.8: no version information available (required by /opt/google/talkplugin/GoogleTalkPlugin)
- Sep 15 Wed 2010 11:07
[Gentoo]man 5
最近發現 man 5 滿值得看的
查一下man man
MANUAL SECTIONS
The standard sections of the manual include:
1 User Commands
2 System Calls
- Sep 15 Wed 2010 11:04
[Gentoo]ssh connection 連線數設置
- Sep 14 Tue 2010 23:41
[Gentoo]crontab Cron Daemon送信
在crontab執行完只要有stdout
他就會送信出來
除了導向/dev/null外
在/etc/crontab 加上
MAILTO=""
這樣就不會把信送出了。
man 5 crontab
- Sep 09 Thu 2010 15:04
[Gentoo]mask by ~x86
mail peicheng # ACCEPT_KEYWORDS="~x86" emerge dev-php/PEAR-Services_JSON
- Sep 07 Tue 2010 09:24
[Gentoo]update gcin
check layman gentoo-taiwan
*add
layman -a gentoo-taiwan
source /etc/make.conf
*or sync
layman -s gentoo-taiwan
emerge gcin -pv
somthing ............happend ...
- Aug 28 Sat 2010 14:10
[Gentoo] mov avi wmv 轉3gp
因為想把些影片轉到手機裏面看,手機只支援3gp
使用ffmpeg來轉檔
在 emerge ffmpeg 時至少要加上
USE="a52 aac altivec amr dts encode ieee1394 imlib mmx network ogg oss sdl theora threads truetype v4l vorbis x264 xvid zlib"
單行轉換是這樣
ffmpeg -y -i input.mov -s qcif -r 20 -b 200k -vcodec mpeg4 -ab 64k -ac 2 -ar 22050 -acodec libfaac output.3gp
可以參照 script 多檔轉換 : )
- Aug 27 Fri 2010 13:26
[Gentoo]/etc/init.d/vboxdrv setup error
在
PCsNB peicheng # /etc/init.d/vboxdrv setup
* Stopping VirtualBox kernel module ... [ ok ]
* Recompiling VirtualBox kernel module ...
* Look at /var/log/vbox-install.log to find out what went wrong
--------------
ERROR: Kernel configuration is invalid."; \
- Aug 27 Fri 2010 00:18
[Gentoo]Halevt automount
emerge halevt
/etc/init.d/halevt start
automount done.
- Jun 17 Thu 2010 17:07
[Gentoo]apache apache2: apr_sockaddr_info_get() failed for
PCsNB bin # /etc/init.d/apache2 restart
* Caching service dependencies ... [ ok ]
* Stopping apache2 ...
apache2: apr_sockaddr_info_get() failed for PCsNB
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
httpd (no pid file) not running [ ok ]
* Starting apache2 ...
apache2: apr_sockaddr_info_get() failed for PCsNB
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
- Jun 17 Thu 2010 15:04
[Gentoo]google-chrome error
PCsNB lib # ln -s /usr/lib/libnss3.so /lib/libnss3.so.1d
PCsNB lib # ln -s /usr/lib/libnssutil3.so /lib/libnssutil3.so.1d
libnssutil3.so libnssutil3.so.12
PCsNB lib # ln -s /usr/lib/libnssutil3.so /lib/libnssutil3.so.1d
PCsNB lib # ln -s /usr/lib/libsmime3.so /lib/libsmime3.so.1d
libsmime3.so libsmime3.so.12
PCsNB lib # ln -s /usr/lib/libsmime3.so /lib/libsmime3.so.1d
PCsNB lib # ln -s /usr/lib/libpl /lib/libplds4.so.0d