2011年12月18日 星期日

InspireGate 派克空間

http://inspire.twgg.org/

嘸蝦米 for ibus onubuntu lucid

http://sreal.pixnet.net/blog/post/31827824



一直認為在ubuntu預設的ibus輸入法安裝嘸蝦米是很困難的一件事
事實上,不一定困難,但也真的非常麻煩,所以一直是用gcin的
直到有一天發現ubuntu 10.04裝了gcin以後,類MSN的軟體就不能登入了...orz
所以又把希望放在ibus上,輾轉終於從其他人手邊得知有個很方便的方法可以裝好嘸蝦米

在網路上已有人打包成安裝檔,讓安裝變得很方便
到 這裡 下載ibus-table-boshiamy_1.2.0.20091209-0ubuntu1_all.deb
double click即可開始安裝,安裝後可能需要重新啟動ibus

[2010-10-24 補充][START]
重啟ibus後,在工作列上的ibus圖示按右鍵,選擇偏好設定
ibus偏好設定
在選取輸入法的下拉框中,選擇「漢語」的分類,正常來說會看到嘸蝦米
選擇「嘸蝦米」,點右邊的「加入」按鈕,關閉後就可試看看有沒有嘸蝦米囉~
[2010-10-24 補充][END]

[2011-06-11 補充][START]
經網友反應,ubuntu 11.04安裝完嘸蝦米後,語言面板很害羞不出現
所謂的語言面板如下圖:
語言面板
在工作列上的ibus圖示按右鍵,選擇偏好設定,將「顯示語言面板」改為「總是」或「當啟用時」
顯示語言面板.png
語言面板就會在切換輸入法時很大方地出現在右下角了
[2011-06-11 補充][END]

用久了會發現,有時候打出來的字和預料的不同
例如: DAA,我預想的是出現「太」,但是它出現「時」
這時就是自己修改字碼表的時候了
在同一個網站下載ibus-table-boshiamy-1.2.0.20091209.tar.gz
解壓縮後,切換到/tables/下,找到並修改boshiamy.txt
請注意同樣的拆碼,第三欄數字愈大的排愈前面,如果有一樣的拆碼在不同語系,第3欄數字要相同

存檔後,開啟終端機輸入指令建立字碼的轉換檔:
[sreal@local ~]# ibus-table-createdb -s boshiamy.txt -n boshiamy.db

將檔案複製到ibus讀取字碼轉換檔的位置,覆蓋原來的檔案 (不放心可先備份):
[sreal@local ~]# sudo cp boshiamy.db /usr/share/ibus-table/tables/

完成後重新啟動ibus即可

2011年12月13日 星期二

Ubuntu Server 安裝筆記

from:http://blog.yam.com/leo2016/article/19679466


雖然Ubuntu Server 安裝已經非常的簡單,但還是記錄一下好了,當作日後參考的依據,畢竟人老了,腦子無法記憶太多東西,只好靠筆記來補強了

安裝SSHD
sudo apt-get install ssh

安裝LAMP套件
sudo apt-get install apache2-mpm-prefork libapache2-mod-php5 php5-gd php5-imagick php5-mysql mysql-server

將IP設定成固定IP
sudo vi /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.2.250
netmask 255.255.255.0
gateway 192.168.2.1

# sudo /etc/init.d/networking restart

顯示英文資訊
export LC_ALL=C

2011年12月9日 星期五

Ubuntu 1104 on IBM X60

from : http://www.arthurtoday.com/2010/06/thinkpad-x60-ubuntu.html

阿舍把小黑 ( ThinkPad x60 ) 裝上  Ubuntu 10.04 之後,第一個遇到的問題就是小黑的那些快捷按鍵好像都不太有用了,還有一些驅動程式的問題,所以,阿舍就去找了一下,整理如下:

tpb 是讓  ThinkPad 的快捷按鍵可以生效的軟體,安裝指令如下:

sudo aptitude install tpb

hdapsd 是硬碟防震的保護工具,安裝指令如下:

sudo aptitude install hdapsd

sensors-applet  是用來顯示硬碟和 CPU 的溫度的,安裝指令如下:

sudo aptitude install sensors-applet

ThinkPad Fan Control 是可以用來手動控制風扇轉速的,安裝指令如下:

sudo aptitude install tpfand

Thinkfinger tools 是指紋機的驅動程式,安裝指令如下:

sudo aptitude install thinkfinger-tools

嘸蝦米 for gicn on Ubuntu

from : http://blog.yam.com/ddy1280/article/2458455


無蝦米安裝程序:
1. 於/etc/apt/sources.lst 加入這行
     deb http://www.calno.com unstable main
2. sudo apt-get update;sudo apt-get install gcin (安裝gcin)
3. sudo im-switch -s gcin  (下次登入即可使用gcin)
4. wget http://edt1023.sayya.org/misc/noseeing-6.tar.gz (下載無蝦米表格檔)
5. tar zxvf noseeing-6.tar.gz
6. sudo cp noseeing.gtab /usr/share/gcin/table/
7. (system restart)

2011年11月13日 星期日

vncserver 設定


參考來源:曾阿銘的技術資料與吃喝玩樂

啟動Linux VNC Server

啟動VNC
第一次啟動VNC需輸入兩次密碼
#vncserver
You will require a password to access your desktops.
 
Password: 輸入密碼,畫面上不會顯示
Verify:再輸入一次
 
New 'localhost.localdomain:1(root)' desktop is localhost.localdomain:1
Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/localhost.localdomain:1.log
 
接下來可以用VNC客戶端軟體連至localhost.localdomain:1 ,再輸入剛剛設定之密碼測試連線是否成功。
 
往後如忘記密碼,可直接刪除/root/.vnc資料夾,再重新執行vncserver來設定產生。
#rm -rf /root/.vnc
#vncserver
 
若系統不想再提供遠端遙控的服務,可以將服務刪除:
#vncserver  -kill:1
 
如要連接Xwindows桌面,需編輯/root/.vnc/xstartup
1 #!/bin/sh
2
3 #Uncomment the following two lines for normal desktop:
4 unset SESSION_MANAGER       #將第四、五行的#拿掉
5 exec /etc/X11/xinit/xinitrc
6
 
存檔離開,重啟vncserver
#vncserver

2011年9月18日 星期日

iptable設定

1、阻止MAC地址為 XX:XX:XX:XX:XX:XX主機的所有通信:
    iptables -A INPUT -m mac --mac-source XX:XX:XX:XX:XX:XX -j DROP

2、允許MAC地址為XX:XX:XX:XX:XX:XX主機訪問22端口:
    iptables -A INPUT -p tcp --destination-port 22 -m mac --mac-source XX:XX:XX:XX:XX:XX -j ACCEPT

3、允許IP地址為192.168.1.21,MAC地址為XX:XX:XX:XX:XX:XX的主機通信,拒絕多有其他主機:
    iptables -A INPUT -s 192.168.1.21 -m mac --mac-source XX:XX:XX:XX:XX:XX -j ACCEPT
    iptables -P INPUT DROP

4、可以寫腳本限制MAC:
    iptables -P FORWARD DROP
    for mac in $(cat ipaddressfile); do
        iptables -A FORWARD -m mac --mac-source $mac -j ACCEPT
    done