2014年10月27日 星期一

[Ubuntu] CPU Test


Linux CPU information by issue following command

#cat /proc/cpuinfo



You can install “cpuburn” in Ubuntu 12.04 Precise Pangolin, 11.10 Oneiric Ocelot, 11.04 Natty Narwhal, 10.10 and 10.04 by using the below command in your Terminal window.

#sudo apt-get install cpuburn

An example …

#burnP6

If you have multi-cores …

#burnP6 &

you can combine all those needed running instances into a single chain command as well. For instance, if I wanted to run 4 instances of ‘burnP6′ (without having to enter one after the other) then I can use it in the below format (note there’s a space between each ‘burnP6 &‘ command).

#burnP6 & burnP6 & burnP6 & burnP6 &

When you want to terminate them all, simply enter the below command.

#killall burnP6

You can read its manual by using the below command in your Terminal as well.

#man cpuburn

[Linux]Fix Lubuntu / Xubuntu 14.04 Network Manager Missing From The Panel



Lubuntu 14.04: fix 1


To fix the Network Manager not showing up on the panel issue, from the Lubuntu menu select Preferences > Default applications for LXSession, then click on the Autostart tab and under "Manual autostarted applications" type "nm-applet", then click the "+ Add" button on the left:

If the above solution didn't work for you in Lubuntu 14.04 or if you're using Xubuntu 14.04 and you're having this issue, here's another solution. Basically, the solution below is for those who must run "nm-applet" as root to get it to show up in the pane - we'll be using dbus-launch to launch nm-applet at startup.

To get the Network Manager applet to work properly in either Lubuntu 14.04 or Xubuntu 14.04, run the following command:
sudo sed -i 's/Exec=nm-applet/Exec=dbus-launch nm-applet/' /etc/xdg/autostart/nm-applet.desktop

[Linux]Ubuntu install NTP Server


1.執行下列指令安裝
sudo apt-get install ntp

2.修改ntp設定檔
sudo gedit /etc/ntp.conf

(1)找到  #statsdir /var/log/ntpstats

將 #字號拿掉 開啟紀錄功能

(2)設定外界NTP Server
找到
server 0.ubuntu.pool.ntp.org
server 1.ubuntu.pool.ntp.org
server 2.ubuntu.pool.ntp.org
server 3.ubuntu.pool.ntp.org

 設定你想使用的台灣區NTP伺服器,請選擇伺服器速度快且穩定的NTP伺服器,依據優先性設定0~3四個NTP伺服器

server tock.stdtime.gov.tw 
server tick.stdtime.gov.tw 
server time.stdtime.gov.tw 
server clock.stdtime.gov.tw

3.修改要廣播更新時間的子網段,假設我的網段是192.168.2.0/24
可於設定檔找到下列說明 

# If you want to provide time to your local subnet, change the next line.
# (Again, the address is an example only.)
#broadcast 192.168.123.255

broadcast 192.168.168.255

4.重新啟動NTP服務 

 sudo service ntp restart

5.檢查NTP服務是否同步

sudo ntpq -c lpeer

執行後會出現步驟2.設定的網域對應的IP資料與

6.檢查NTP服務同步紀錄檔是否正常寫入

sudo tail -f /var/log/syslog

7.記得檢查UDP 123 port是否開啟
iptables -A OUTPUT -p udp --dport 123 -j ACCEPT 
iptables -A INPUT -p udp --dport 123 -j ACCEPT

[Ubuntu]Create VLAN in Ubuntu Linux


1. Install the vlan package using apt-get tool

· sudo apt-get install vlan

2. Load the Vlan (802.1q) module

· modprobe 8021q
· echo 8021q >> /etc/modules

3. Add vlan interface by using ‘vconfig add [interface-name] [vlan_id]‘ command syntax

· vconfig add eth0 188
· ifconfig eth0.188 192.168.188.100 netmask 255.255.255.0
· sudo gedit /etc/network/interfaces 

· auto eth0.188
· iface eth0.188 inet static
· address 192.168.188.100
· netmask 255.255.255.0
· vlan-raw-device eth0

 

 

4. Remove Vlan interface

· vconfig rem eth0.188

[Linux]nVidia VGA lock glxgears fps = 60 fps


如果你在linux下用nvidia卡,
跑glxgears,fps固定鎖在60fps,
那應該是你的vsync被打開了。

解決方法很簡單,
只要 " export __GL_SYNC_TO_VBLANK=0 " ,
然後再跑一次glxgear,fps應該就能突破60了。
--------------------------------------------
Intel VGA:

export vblank_mode=0 
glxgears

2013年3月16日 星期六

跑馬的時光

不知不覺的…
已經超過一年以上沒在WordPress上面寫文章了,
反正,不論是否有寫網誌,
現在的話我就是用跑馬來度過假日時光…
這也是我生活唯一的調節劑。


image





2013香港馬

image





2013萬金石

2010年4月29日 星期四

高雄母校行~

就開始今天的高雄行吧!!

從高速公路交流道處騎車返母校吧~~~Go!!

抵達學校門時,跟以前差不多~~


但進了校園後,發覺跟以前差好多呦~~
多了一堆沒見過的建築物,而且校內還有全家便利商店~~

 

回到我的系所晃晃~~也看了一下曾經教室的位子~~
還有打水的地方((因為高雄不喝自來水,我都在學校打RO水...))
現在茶水間的過濾系統比以前還高檔了說~~~!!

  


離開校園後~~就到對面的早餐店吃我以前最常點的~~
蛋餅+豆漿^^


還是南部的蛋餅比較軟Q~~不像台北都是用現成的餅皮下去煎!!
真是的~~~好吃極了

吃飽後~~動身~~出發到蓮池潭....
雖然我在高雄念了兩年的書,這裏也經過無數次~~
但從來沒有一次走進來逛過~~
這次就來蓮池潭走走先~~~

發覺到,這裏真的滿適合。散步、釣憩、寫生、拍照、乘涼的~~

 

 


如果,以前念書時有車(單車)的話,我想~~假日的時候,我應該會常常來晃晃晒太陽吧XDD

 

離開蓮池潭後~~原本打算騎到高醫那,找以前的同學,沒想到居然騎到大樂?!
奇怪!!我又不是要購物,為何間到大樂?!?!啊~~不管啦,轉向,騎回高醫~~吧!
到了高醫後,跟志偉喝個下午茶聊個天~~
發覺許久不見的同學,似乎也變的~~成熟許多...((但幼稚的部份依舊存在))
也聊了下最近幾年大家的生活~~~雖然說,過的不怎麼樣,但也還算過的去~~

聊完後,結束了下午的行程,我~~一直想去的旗津分校走走~~
就從高醫騎車到鼓山那裏搭渡輪~~往旗津

可能是假日的關係,人超多的~~~

 

 
不過抵達旗津時,第一件事就是去買~~烤小捲XDDDD
以前每次來分校上課時,都會吃3隻50元的小捲~~
不過怎麼感覺現在3隻50的小捲變小了,索~性請老闆換成2隻50的~~比較大一點

吃完後接著去一個,也是經過無數次,但遲遲沒進去晃過的地方~~
就是中山大學、西子灣、柴山~~~


穿過隧道後~~一路往柴山方向騎,騎到最高點~~~
發覺....中山大學~~怎麼到處都是閃光呀!!!
天啊,到處都是親親、抱抱、沒有推倒啦XDDD
算了,不要打擾人家,趕快閃吧~~~
騎到最頂的地方~~要準備滑下柴山時~~突然一隻老猴跟我四目想望!!!

說真的,我是沒在校園內看到猴子過~~~

 

 
覺得超好奇的說XDDDD

離開中山後~~就去找De姐開始就是~~
瑞豐夜市狂吃狂喝的~~~~高雄生活!!!

2010年4月5日 星期一

手與耳

手與耳

小手輕敲著鍵盤 傳遞訊息
耳朵細細地傾聽 遠端訊息

觸覺和聽覺 交互間

原來是 我的耳朵 聽見你 手的心聲
煞那間的文字 頓時間的聲音

僅是小手告知的離別
確讓耳朵不知的所措

緣來手與耳
盡是別與離

最深遠的鍵盤聲
不知能否聽的見

2010年4月4日 星期日

午夜的台北雨

午夜的台北雨~
陪伴著我進入寂寞~

優雅的紅酒杯  裝滿著無奈的思緒~
隨手的遙控器  切換著無數的頻道~

不知所措的感覺  油然而生~
享受孤獨的滋味  蔓延整夜~

沒人能分享  無人可體會
這一切的一切只是放逐自我的宿命

寒風的深夜裏  忘確了內心的感動
雨聲的屋簷間  停留了一切的情感

手裏溫度的消逝  隨即冰封
心中熱情的悸動  立即停止

沒人能訴說  無人可理解
這一切的一切只是放棄你我的……

2009年11月5日 星期四

無聲的交談

人與人之間太多隔閡,也有著許多衝突~~

同學會隨著畢業而漸淡,

朋友會隨著環境而改變,

同事會隨著利益而背叛,

這些的零零種種,說奇不奇見怪不怪,

剎那間,冒出個想法~~

許多恐怖驚悚片時常出現的場景,

就是如廁後,到洗手台低頭打開水龍頭洗手,

洗手時,頭抬起來,看到鏡子反映出鬼的時候。

一般人似乎都是轉過頭看清楚是人是鬼?!

接著就傳來陣陣的尖叫聲~~~~!!

但~~現在的我,確只想平靜地和鬼聊聊天~~

聊什麼? 聊為何你變成鬼之後還要出來見人?

你難道不知道人是多麼可怕的生物嗎?

"生人勿近"的道理,死後的你難道不明白嗎?

別靠近活人,因為只有活著的人才會害人~~~

[Game] Rimworld enable Dev mode (for Mac)

In Finder Press Command+Shift+Dot to open hidden folder /Users/[user name]/Library/Application Support/RimWorld/Config/DevModeDisable Dele...