公告版位
新版Blog peichengnote

目前分類:Gentoo (107)

瀏覽方式: 標題列表 簡短摘要



Symptom:
warning: Clock skew detected. Your build may be incomplete.

Solution:
# find . -print | xargs touch


peicheng 發表在 痞客邦 留言(0) 人氣()

在Gentoo上裝Lifetype上發生

[error] [client xxxxxxxxx] PHP Fatal error: Call to undefined function token_get_all() in /usr/home/www/xxxxxxxxxx

/public_html/class/template/smarty/internals/core.write_compiled_include.php on line 45

修改此檔案第三十九行

$this_varname = ((double)phpversion() >= 7.0) ? '_smarty' : 'this';

----

peicheng 發表在 痞客邦 留言(0) 人氣()

在Gentoo下播放DVD 有CSS的

需要
#emerge media-libs/libdvdcss
使用Mplayer播放
一些DVD的USE要放a52 etc....
#emerge smplayer
用有GUI介面的player

但是最後用指令

peicheng 發表在 痞客邦 留言(0) 人氣()


/usr/bin/startxfce4: X server already running on display :0


rm ~/.config/xfce4
rm ~/cache/xfce4



peicheng 發表在 痞客邦 留言(0) 人氣()

因為要去北京
他們那邊連國際網是要按照流量收費的
趁著這幾天有空
把自己的筆電 rebuild  一下
 
一般而言,大家都不再希望自己常再用的NB一直編來編去的,
會造成自己的不方便。

首先更新emerge
#emerge gentoolkit

peicheng 發表在 痞客邦 留言(0) 人氣()

!!! Your current profile is deprecated and not supported anymore. !!!
Please upgrade to the following profile if possible: default/linux/x86/2008.0
To upgrade do the following steps:
# cd /etc/ # rm make.profile
# ln -s ../usr/portage/default/linux/x86/2008.0 make.profile
 Calculating dependencies... done!

因為在裝globus 所以要裝其他lib 但是 出現了一些broken 的lib
所以我使用 revdep-rebuild 指令去 Gentoo: Reverse Dependency Rebuilder 之後出現的訊息
我之前的2007.0的 所以用

peicheng 發表在 痞客邦 留言(0) 人氣()


因為有個script查DNS是否正常連線
ispgoogle_dns.sh

#!/bin/sh
ispdns() {
    host -t ns hinet.net | awk '{print $NF}'
    host -t ns seed.net.tw | awk '{print $NF}'
    host -t ns giga.net.tw | awk '{print $NF}'
    host -t ns tfn.net.tw | awk '{print $NF}'

peicheng 發表在 痞客邦 留言(0) 人氣()

因為用Gentoo 開啟再Windows上寫的Java檔
所以中文看起來是亂碼的,
原因在於windows使用big5
而Linux現在大多使用UTF8

How to work with Big5 encoded Java Source Files in Eclipse?

Click: Window -> Preferences -> Content Types -> Java Source File ->
Specify Default Encoding: BIG5

文件夾按右鍵 直接鍵入BIG5

peicheng 發表在 痞客邦 留言(0) 人氣()

因為忘記mediawiki的管理者密碼
所以找了一下幾個改變密碼的方法

UPDATE user SET user_password = MD5(CONCAT(user_id, '-', MD5('somepass'))) WHERE user_name = 'someuser';

Maintanance script

Execute this script to change the password for username to foo

php changePassword.php --user='username' --password='foo'

http://www.mediawiki.org/wiki/Manual:Resetting_passwords

peicheng 發表在 痞客邦 留言(0) 人氣()


"Mercury was unable to sign you in because the connection with the MSN server (messenger.hotmail.com:1863) could not be established. The connection timed out."

今天中午上完msn就發生這個問題
換了別的msn client就可以上
所以不是server那端的問題

之後找了一下mercury 的forums 也沒有解答

我是 把 ~/.Mercury/MSN/Accounts/username@hotmail.com/ 下的 Account.xml 給移除掉

peicheng 發表在 痞客邦 留言(0) 人氣()

在Vim加入水平標線

set cursorline

這樣編輯起來就比較好看了


peicheng 發表在 痞客邦 留言(0) 人氣()


因為覺得thunar ( gnome-base/nautilus) 不是很好用

因為想到 pcman 的lxde 有pcmafm
所以就裝了
想要取代原本的file manager    nautilus
有個笨拙的方法


sudo mv /usr/bin/thunar /usr/bin/thunar.backup

peicheng 發表在 痞客邦 留言(0) 人氣()

drvc .so fail



peicheng 發表在 痞客邦 留言(0) 人氣()

因為 音效卡聲音太小聲了

mixer軟體有的又很難調到最高

在archLinux froums 找到

   amixer -q set 'Capture',0 100%,100% on

把聲音調到最大

peicheng 發表在 痞客邦 留言(0) 人氣()


emesene出現再下面問題

Invalid Application Header Application ID is either not defined in database or blocked from access.



sudo sed -i.bak 's/09607671-1C32-421F-A6A6-CBFAA51AB5F4/CFE80F9D-180F-4399-82AB-413F33A1FA11/g' /usr/share/emesene/emesenelib/XmlTemplates.py

peicheng 發表在 痞客邦 留言(0) 人氣()



PC vmware-distrib # ./vmware-install.pl
The following VMware kernel modules have been found on your system that were
not installed by the VMware Installer.  Please remove them then run this
installer again.

vmnet
vmmon

peicheng 發表在 痞客邦 留言(0) 人氣()

# emerge --sync
# emerge --ask --oneshot --verbose ">=app-emulation/vmware-player-1.0.5.56455"
http://www.gentoo.org/security/en/glsa/glsa-200711-23.xml









peicheng 發表在 痞客邦 留言(0) 人氣()

今天剛好lance提到wicd  無線網路的工具

在gentoo上  沒有收進官方的 portage

所幸有人寫了ebuild

我第一次使用ebuild的指令

也看了ebuild檔

感覺內容簡單

大概寫一下安裝過程

先下載ebuild 檔 放在 /usr/portage/misc-net/wicd 下

ebuild wicd-xxx.ebuild digest
產生好檔案

就可以emerge wicd

成功




peicheng 發表在 痞客邦 留言(0) 人氣()



PC Desktop # mount -t vfat -o iocharset=utf8 /dev/sdb1 /mnt/usb

這樣就解決

在gentoo上 mount win 的檔案會產生亂碼的情形了



peicheng 發表在 痞客邦 留言(0) 人氣()

今天終於把w7s的無線網卡設定成功

這樣以後出去就可以開Gentoo上網了

不用再開vista了

把nvidia-settings 也設好了

之前出在的問題

peicheng 發表在 痞客邦 留言(1) 人氣()