2009年8月5日 星期三
2009年7月15日 星期三
2009年7月12日 星期日
校園漫遊 with hinet wlan
2009年7月10日 星期五
unmet dependencies
deb ftp://os.nchc.org.tw/ubuntu jaunty-updates main restricted universe multiverse deb ftp://os.nchc.org.tw/ubuntu jaunty main universe multiverse restricted deb ftp://os.nchc.org.tw/ubuntu jaunty-backports main universe multiverse restricted deb ftp://os.nchc.org.tw/ubuntu jaunty-proposed main universe multiverse restricted deb ftp://os.nchc.org.tw/ubuntu jaunty-security main restricted universe multiverse #deb-src ftp://os.nchc.org.tw/ubuntu jaunty-updates main restricted universe multiverse #deb-src ftp://os.nchc.org.tw/ubuntu jaunty main universe multiverse restricted #deb-src ftp://os.nchc.org.tw/ubuntu jaunty-backports main universe multiverse restricted #deb-src ftp://os.nchc.org.tw/ubuntu jaunty-proposed main universe multiverse restricted #deb-src ftp://os.nchc.org.tw/ubuntu jaunty-security main restricted universe multiverse
Ubuntu Linux GPG Key 匯入
- sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com key_value
- sudo apt-get update ps. 如果多個 PUBKEY, 可以空格隔開,
2009年7月9日 星期四
Hadoop 安裝
前陣子參加了趨勢的雲端設計比賽,雖然沒寫出什麼東西,不過卻學了這套軟體,說穿了就是把自己寫好的程式,將他分散化到不同的server上運行,不過小弟是窮人,沒有那麼多的server,所以就只能先裝在自己的筆電上面,以下就是紀錄我的安裝過程:
Environment: Ubuntu 9.04 Hadoop (現在最新的版本是0.20)
需要安裝:
Java1.6
sudo apt-get install sun-java6-jdk
JDK會被放在/usr/lib/jvm/java-6-sun
這個時候可以去check一下/etc/jvm 應該會像
# /etc/jvm # # This file defines the default system JVM search order. Each # JVM should list their JAVA_HOME compatible directory in this file. # The default system JVM is the first one available from top to # bottom. /usr/lib/jvm/java-6-sun /usr/lib/jvm/java-gcj /usr/lib/jvm/ia32-java-1.5.0-sun /usr/lib/jvm/java-1.5.0-sun /usrssh rsync sudo apt-get install ssh rsync
因為Hadoop之間要用SSH溝通
Adding Hadoop User
sudo addgroup hadoop sudo adduser --ingroup hadoop hadoop
設定SSH
su - hadoop ssh-keygen -t rsa -P "" cat $HOME/.ssh/id_rsa.pub >> $HOME/.ssh/authorized_keys這樣是建立使用SSH連線不用密碼 接著可以用ssh localhost看看是否正常
Install Hadoop
cd /opt sudo tar zxvf hadoop-0.20.0.tar.gz sudo mv hadoop-0.20.0 hadoop sudo chown -R hadoop:hadoop hadoop
也可以使用人家包好的deb http://www.cloudera.com/hadoop-deb
Configuration
/opt/hadoop/conf/hadoop-env
修改路徑
export JAVA_HOME=/usr/lib/jvm/java-6-sun
/opt/hadoop/conf/hadoop-site.xml
修改內容
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!-- Put site-specific property overrides in this file. -->
<configuration>
<property>
<name>hadoop.tmp.dir</name>
<value>/your/path/to/hadoop/tmp/dir/hadoop-${user.name}</value>
<description>A base for other temporary directories.</description>
</property>
<property>
<name>fs.default.name</name>
<value>hdfs://localhost:54310</value>
<description>The name of the default file system. A URI whose
scheme and authority determine the FileSystem implementation. The
uri's scheme determines the config property (fs.SCHEME.impl) naming
the FileSystem implementation class. The uri's authority is used to
determine the host, port, etc. for a FileSystem.</description>
</property>
<property>
<name>mapred.job.tracker</name>
<value>localhost:54311</value>
<description>The host and port that the MapReduce job tracker runs
at. If "local", then jobs are run in-process as a single map
and reduce task.
</description>
</property>
<property>
<name>dfs.replication</name>
<value>1</value>
<description>Default block replication.
The actual number of replications can be specified when the file is created.
The default is used if replication is not specified in create time.
</description>
</property>
</configuration>Formatting the name node
建立namenode
/opt/hadoop/bin/hadoop namenode -format
啟動Hadoop
/opt/hadoop/bin/start-all.sh
Hadoop Web Interfaces
Hadoop 提供了Web 介面 (conf/hadoop-default.xml):
http://localhost:50030/ - web UI for MapReduce job tracker(s)
http://localhost:50060/ - web UI for task tracker(s)
http://localhost:50070/ - web UI for HDFS name node(s)
Reference:
2009年7月3日 星期五
2009年6月14日 星期日
X61 intel顯示卡 在Ubuntu的問題
之前X61上面灌的是ubuntu8.04,因為gcin不知道為什麼常常選字框會爛掉,又聽JER丸大大說更新到8.10就不會了,想說反正也要更新,就心一狠更新到了9.04,沒想到更新上去問題一堆,先是compiz都沒效用了,然後也不能用alt+tab,然後滑鼠中鍵也沒用了XD
後來才知道要把compiz重開才能用alt+tab,但是換成9.04不知道為什麼compiz的效能低下,所以解決方法就是更新驅動程式或更新kernel,如此找了不少東西,看了下面兩篇
http://www.ubuntu-tw.org/modules/newbb/viewtopic.php?viewmode=compact&topic_id=11851&forum=1
http://heavenchou.buddhason.org/node/145
結果後來一直用alt+tab會一直當機,應該是因為compiz的問題,後來又一直找有沒有解決辦法,
然後又給我找到還有更新的kernel和驅動程式,把他們裝起來,然後不要開EXA,我後來懷疑是EXA的問題,會讓他不穩定,雖然後來測glxgear只剩下500多FPS,但是整個特效用起來還蠻順的,也不會一直在當機,以下是我去找的一些路徑,之前都不知道有這些地方可以找package
要裝intel的驅動程式要先更新libdrm,這裡都已經包成package,非常方便
http://packages.ubuntu.com/karmic/i386/libdrm-intel1/download
接下來要裝intel的驅動程式
http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/
不過後來有找到deb版本的比較好安裝
http://archive.ubuntu.com/ubuntu/pool/main/x/xserver-xorg-video-intel/
我是安裝2.7.99.1
新版的kernel
http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.30/